Skip to content

Commit

Permalink
Enable enable_multi_ret_implicit_sret for windows tests that use i128
Browse files Browse the repository at this point in the history
  • Loading branch information
bjorn3 committed Oct 27, 2024
1 parent 2057196 commit 5057651
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 8 deletions.
5 changes: 3 additions & 2 deletions cranelift/filetests/filetests/runtests/sadd_overflow.clif
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
test interpret
test run
set enable_llvm_abi_extensions=true
target x86_64
target aarch64
set enable_multi_ret_implicit_sret
target x86_64

function %saddof_i128(i128, i128) -> i128, i8 {
block0(v0: i128,v1: i128):
Expand Down Expand Up @@ -82,4 +83,4 @@ block0(v0: i32, v1: i32):
; run: %saddof_i32(0x7FFF_FFFE, 1) == [0x7FFF_FFFF, 0]
; run: %saddof_i32(0x7FFF_FFFF, 1) == [0x8000_0000, 1]
; run: %saddof_i32(0x8000_0000, 0xFFFF_FFFF) == [0x7FFF_FFFF, 1]
; run: %saddof_i32(0x8000_0001, 0xFFFF_FFFF) == [0x8000_0000, 0]
; run: %saddof_i32(0x8000_0001, 0xFFFF_FFFF) == [0x8000_0000, 0]
5 changes: 3 additions & 2 deletions cranelift/filetests/filetests/runtests/ssub_overflow.clif
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
test interpret
test run
set enable_llvm_abi_extensions=true
target x86_64
target aarch64
set enable_multi_ret_implicit_sret
target x86_64

function %ssubof_i128(i128, i128) -> i128, i8 {
block0(v0: i128,v1: i128):
Expand Down Expand Up @@ -88,4 +89,4 @@ block0(v0: i32, v1: i32):
; run: %ssubof_i32(0xFFFF_FFFE, 0xFFFF_FFFF) == [-1, 0]
; run: %ssubof_i32(0xFFFF_FFFE, 0xFE) == [0xFFFF_FF00, 0]
; run: %ssubof_i32(0x7FFF_FFFF, 0xFFFF_FFFF) == [0x8000_0000, 1]
; run: %ssubof_i32(0x7FFF_FFFE, 0xFFFF_FFFF) == [0x7FFF_FFFF, 0]
; run: %ssubof_i32(0x7FFF_FFFE, 0xFFFF_FFFF) == [0x7FFF_FFFF, 0]
5 changes: 3 additions & 2 deletions cranelift/filetests/filetests/runtests/uadd_overflow.clif
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
test interpret
test run
set enable_llvm_abi_extensions=true
target x86_64
target aarch64
set enable_multi_ret_implicit_sret
target x86_64

function %uaddof_i128(i128, i128) -> i128, i8 {
block0(v0: i128,v1: i128):
Expand Down Expand Up @@ -74,4 +75,4 @@ block0(v0: i32, v1: i32):
; run: %uaddof_i32(100, 27) == [127, 0]
; run: %uaddof_i32(100, 28) == [128, 0]
; run: %uaddof_i32(3000000000, 1294967295) == [-1, 0]
; run: %uaddof_i32(3000000000, 1294967296) == [0, 1]
; run: %uaddof_i32(3000000000, 1294967296) == [0, 1]
5 changes: 3 additions & 2 deletions cranelift/filetests/filetests/runtests/usub_overflow.clif
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
test interpret
test run
set enable_llvm_abi_extensions=true
target x86_64
target aarch64
set enable_multi_ret_implicit_sret
target x86_64

function %usubof_i128(i128, i128) -> i128, i8 {
block0(v0: i128,v1: i128):
Expand Down Expand Up @@ -71,4 +72,4 @@ block0(v0: i32, v1: i32):
; run: %usubof_i32(100, 20) == [80, 0]
; run: %usubof_i32(0xFFFF_FFFF, 0xFFFF_FFFF) == [0, 0]
; run: %usubof_i32(0xFFFF_FFFE, 0xFFFF_FFFF) == [-1, 1]
; run: %usubof_i32(0xFFFF_FFFE, 0xFE) == [0xFFFF_FF00, 0]
; run: %usubof_i32(0xFFFF_FFFE, 0xFE) == [0xFFFF_FF00, 0]

0 comments on commit 5057651

Please sign in to comment.