1 ; RUN: llc < %s -march=x86-64 | FileCheck %s
3 ; CodeGen should remat the zero instead of spilling it.
5 declare void @foo(i64 %p)
8 ; CHECK: xorl %edi, %edi
9 ; CHECK: xorl %edi, %edi
10 define void @bar() nounwind {
17 ; CHECK: movq $-1, %rdi
18 ; CHECK: movq $-1, %rdi
19 define void @bat() nounwind {
20 call void @foo(i64 -1)
21 call void @foo(i64 -1)
26 ; CHECK: movl $1, %edi
27 ; CHECK: movl $1, %edi
28 define void @bau() nounwind {