Legalize bnot using xor with -1.
This commit is contained in:
@@ -32,7 +32,8 @@ ebb0(v0: i32):
|
||||
function %bitclear(i32, i32) -> i32 {
|
||||
ebb0(v0: i32, v1: i32):
|
||||
v2 = band_not v0, v1
|
||||
; check: bnot
|
||||
; check: iconst.i32 -1
|
||||
; check: bxor
|
||||
; check: band
|
||||
return v2
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user