add tests

This commit is contained in:
MaxGraey
2020-07-15 14:16:56 +03:00
parent 5b38857e7f
commit 54ecc7593b

View File

@@ -324,3 +324,17 @@ block0(v0: i32):
; nextln: v1 = iadd_imm v0, 42 ; nextln: v1 = iadd_imm v0, 42
; nextln: nop ; nextln: nop
; nextln: return v2 ; nextln: return v2
function %bxor_imm_32(i32) -> i32 {
block0(v0: i32):
v1 = bxor_imm v0, -1
; check: bnot v0
return v1
}
function %bxor_imm_64(i64) -> i64 {
block0(v0: i64):
v1 = bxor_imm v0, -1
; check: bnot v0
return v1
}