diff options
author | Dan Gohman <gohman@apple.com> | 2010-01-11 17:37:57 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2010-01-11 17:37:57 +0000 |
commit | 71c25b7d7bdf9b49dd70965c7486ce930b846aac (patch) | |
tree | b1ce33512c39fef7514399ffbf7a46d3710d26a6 /test/CodeGen/X86/remat-mov-0.ll | |
parent | 3e8e4fd40c9d5b3afad2d4c7c1d5d4374b752651 (diff) | |
download | llvm-71c25b7d7bdf9b49dd70965c7486ce930b846aac.tar.gz llvm-71c25b7d7bdf9b49dd70965c7486ce930b846aac.tar.bz2 llvm-71c25b7d7bdf9b49dd70965c7486ce930b846aac.tar.xz |
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
Diffstat (limited to 'test/CodeGen/X86/remat-mov-0.ll')
-rw-r--r-- | test/CodeGen/X86/remat-mov-0.ll | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/CodeGen/X86/remat-mov-0.ll b/test/CodeGen/X86/remat-mov-0.ll new file mode 100644 index 0000000000..c4f768ca52 --- /dev/null +++ b/test/CodeGen/X86/remat-mov-0.ll @@ -0,0 +1,13 @@ +; 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 +} |