Fix iconst.i8 0 miscompilation

This commit is contained in:
bjorn3
2020-12-11 17:17:18 +01:00
committed by Benjamin Bouvier
parent 1d90c329b4
commit 8f7f8ee0b4
4 changed files with 14 additions and 14 deletions

View File

@@ -44,9 +44,9 @@ block0:
function %zero_byte() -> i8 fast {
block0:
; asm: xor %al, %al
[-,%rax] v0 = iconst.i8 0 ; bin: 30 c0
; asm: xor %dh, %dh
[-,%rdi] v1 = iconst.i8 0 ; bin: 30 ff
; asm: xor %eax, %eax
[-,%rax] v0 = iconst.i8 0 ; bin: 31 c0
; asm: xor %edi, %edi
[-,%rdi] v1 = iconst.i8 0 ; bin: 31 ff
return v0
}

View File

@@ -62,11 +62,11 @@ block0:
function %zero_byte() -> i8 fast {
block0:
; asm: xor %r8b, %r8b
[-,%r15] v0 = iconst.i8 0 ; bin: 45 30 ff
; asm: xor %al, %al
[-,%rax] v1 = iconst.i8 0 ; bin: 30 c0
; asm: xor %dh, %dh
[-,%rdi] v2 = iconst.i8 0 ; bin: 30 ff
; asm: xor %r8d, %r8d
[-,%r15] v0 = iconst.i8 0 ; bin: 45 31 ff
; asm: xor %eax, eax
[-,%rax] v1 = iconst.i8 0 ; bin: 31 c0
; asm: xor %edi, %edi
[-,%rdi] v2 = iconst.i8 0 ; bin: 31 ff
return v0
}