x86: add encoding for bnot.b1.

Fixes #1743.

Co-authored-by: iximeow <git@iximeow.net>
This commit is contained in:
whitequark
2020-05-21 22:09:25 +00:00
committed by Andrew Brown
parent b017844bef
commit 880e692fd4
2 changed files with 15 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
test binemit
test run
target x86_64
function u0:323() -> b1 {
block0:
[-,%rax] v221 = bconst.b1 false ; bin: 40 b8 00000000
[-,%rcx] v222 = bconst.b1 true ; bin: 40 b9 00000001
[-,%rax] v223 = bnot v221 ; bin: 40 f7 d0
[-,%rax] v224 = band v223, v222 ; bin: 40 21 c8
return v224
}
; run