1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-01 08:23:21 +01:00
llvm-mirror/test/CodeGen/X86/remat-mov-0.ll
2010-01-12 04:42:54 +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
}