x64: special case 0 to use xor in Inst::gen_constant for i128s
This commit is contained in:
@@ -702,10 +702,10 @@ block2(v6: i128):
|
||||
; nextln: testb $$1, %dl
|
||||
; nextln: jnz label1; j label2
|
||||
; check: Block 1:
|
||||
; check: movl $$0, %edi
|
||||
; nextln: movl $$0, %esi
|
||||
; check: xorq %rdi, %rdi
|
||||
; nextln: xorq %rsi, %rsi
|
||||
; nextln: movl $$1, %ecx
|
||||
; nextln: movl $$0, %eax
|
||||
; nextln: xorq %rax, %rax
|
||||
; nextln: addq %rcx, %rdi
|
||||
; nextln: adcq %rax, %rsi
|
||||
; nextln: movq %rdi, %rax
|
||||
@@ -714,10 +714,10 @@ block2(v6: i128):
|
||||
; nextln: popq %rbp
|
||||
; nextln: ret
|
||||
; check: Block 2:
|
||||
; check: movl $$0, %edi
|
||||
; nextln: movl $$0, %esi
|
||||
; check: xorq %rdi, %rdi
|
||||
; nextln: xorq %rsi, %rsi
|
||||
; nextln: movl $$2, %ecx
|
||||
; nextln: movl $$0, %eax
|
||||
; nextln: xorq %rax, %rax
|
||||
; nextln: addq %rcx, %rdi
|
||||
; nextln: adcq %rax, %rsi
|
||||
; nextln: movq %rdi, %rax
|
||||
|
||||
Reference in New Issue
Block a user