Skip to content

Commit

Permalink
fixup! Implement llvm.x86.subborrow.32 and llvm.x86.subborrow.64
Browse files Browse the repository at this point in the history
  • Loading branch information
eduardosm committed Sep 23, 2023
1 parent 46434b2 commit fed4244
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/pass/intrinsics-x86.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ mod x86 {

assert_eq!(sbb(0, 1, 1), (0, 0));
assert_eq!(sbb(1, 1, 1), (1, u32::MAX));
assert_eq!(sbb(2, 1, 1), (1, u32::MAX));
assert_eq!(sbb(2, 1, 1), (1, u32::MAX)); // any non-zero borrow acts as 1!
assert_eq!(sbb(u8::MAX, 1, 1), (1, u32::MAX));
assert_eq!(sbb(0, 2, 1), (0, 1));
assert_eq!(sbb(1, 2, 1), (0, 0));
Expand Down Expand Up @@ -78,7 +78,7 @@ mod x86_64 {

assert_eq!(sbb(0, 1, 1), (0, 0));
assert_eq!(sbb(1, 1, 1), (1, u64::MAX));
assert_eq!(sbb(2, 1, 1), (1, u64::MAX));
assert_eq!(sbb(2, 1, 1), (1, u64::MAX)); // any non-zero borrow acts as 1!
assert_eq!(sbb(u8::MAX, 1, 1), (1, u64::MAX));
assert_eq!(sbb(0, 2, 1), (0, 1));
assert_eq!(sbb(1, 2, 1), (0, 0));
Expand Down

0 comments on commit fed4244

Please sign in to comment.