Files
wasmtime/cranelift/filetests/filetests/runtests/icmp.clif
2021-09-29 17:37:23 +02:00

19 lines
505 B
Plaintext

test interpret
test run
target aarch64
target s390x
target x86_64
; This test is also a regression test for aarch64.
; We were not correctly handling the fact that the rhs constant value
; overflows its type when viewed as a signed value, and thus encoding the wrong
; value into the resulting instruction.
function %overflow_rhs_const(i8) -> b1 {
block0(v0: i8):
v1 = iconst.i8 192
v2 = icmp sge v0, v1
return v2
}
; run: %overflow_rhs_con(49) == true
; run: %overflow_rhs_con(-65) == false