summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/X86/inline-asm-2addr.ll
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2009-03-30 21:34:07 +0000
committerEvan Cheng <evan.cheng@apple.com>2009-03-30 21:34:07 +0000
commit09f5be814639e29bebdf818cff7baaa5a81cb22c (patch)
treed165554fcde103195bd22de5821544e0fe29ccb5 /llvm/test/CodeGen/X86/inline-asm-2addr.ll
parent6683b8a272092fde47ddf9e27ef4344a9224cee3 (diff)
downloadbcm5719-llvm-09f5be814639e29bebdf818cff7baaa5a81cb22c.tar.gz
bcm5719-llvm-09f5be814639e29bebdf818cff7baaa5a81cb22c.zip
Turn a 2-address instruction into a 3-address one when it's profitable even if the two-address operand is killed.
e.g. %reg1024<def> = MOV r1 %reg1025<def> = ADD %reg1024, %reg1026 r0 = MOV %reg1025 If it's not possible / profitable to commute ADD, then turning ADD into a LEA saves a copy. llvm-svn: 68065
Diffstat (limited to 'llvm/test/CodeGen/X86/inline-asm-2addr.ll')
-rw-r--r--llvm/test/CodeGen/X86/inline-asm-2addr.ll2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/test/CodeGen/X86/inline-asm-2addr.ll b/llvm/test/CodeGen/X86/inline-asm-2addr.ll
index 119495372a7..619629407fe 100644
--- a/llvm/test/CodeGen/X86/inline-asm-2addr.ll
+++ b/llvm/test/CodeGen/X86/inline-asm-2addr.ll
@@ -1,4 +1,4 @@
-; RUN: llvm-as < %s | llc -march=x86-64 | grep movq | count 1
+; RUN: llvm-as < %s | llc -march=x86-64 | not grep movq
define i64 @t(i64 %a, i64 %b) nounwind ssp {
entry:
OpenPOWER on IntegriCloud