llvm-6502/test/CodeGen/X86/remat-mov-0.ll
Dan Gohman 71c25b7d7b Re-instate MOV64r0 and MOV16r0, with adjustments to work with the
new AsmPrinter. This is perhaps less elegant than describing them
in terms of MOV32r0 and subreg operations, but it allows the
current register to rematerialize them.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@93158 91177308-0d34-0410-b5e6-96231b3b80d8
2010-01-11 17:37:57 +00:00

14 lines
289 B
LLVM

; RUN: llc < %s -march=x86-64 | grep {xorl %edi, %edi} | count 4
; CodeGen should remat the zero instead of spilling it.
declare void @foo(i64 %p)
define void @bar() nounwind {
call void @foo(i64 0)
call void @foo(i64 0)
call void @foo(i64 0)
call void @foo(i64 0)
ret void
}