summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/X86/MachineSink-CritEdge.ll
diff options
context:
space:
mode:
authorTim Northover <tnorthover@apple.com>2013-06-10 20:43:49 +0000
committerTim Northover <tnorthover@apple.com>2013-06-10 20:43:49 +0000
commit6833e3fd75350c3273f948aced502af567b10213 (patch)
tree062f5e1a1c690eec778da80932ea6a7c97c31375 /llvm/test/CodeGen/X86/MachineSink-CritEdge.ll
parent134cc996aeb85c364ca58bb185fb9d5c8d1d9b9f (diff)
downloadbcm5719-llvm-6833e3fd75350c3273f948aced502af567b10213.tar.gz
bcm5719-llvm-6833e3fd75350c3273f948aced502af567b10213.zip
X86: Stop LEA64_32r doing unspeakable things to its arguments.
Previously LEA64_32r went through virtually the entire backend thinking it was using 32-bit registers until its blissful illusions were cruelly snatched away by MCInstLower and 64-bit equivalents were substituted at the last minute. This patch makes it behave normally, and take 64-bit registers as sources all the way through. Previous uses (for 32-bit arithmetic) are accommodated via SUBREG_TO_REG instructions which make the types and classes agree properly. llvm-svn: 183693
Diffstat (limited to 'llvm/test/CodeGen/X86/MachineSink-CritEdge.ll')
-rw-r--r--llvm/test/CodeGen/X86/MachineSink-CritEdge.ll4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/test/CodeGen/X86/MachineSink-CritEdge.ll b/llvm/test/CodeGen/X86/MachineSink-CritEdge.ll
index 74a1049772a..bc058354a21 100644
--- a/llvm/test/CodeGen/X86/MachineSink-CritEdge.ll
+++ b/llvm/test/CodeGen/X86/MachineSink-CritEdge.ll
@@ -30,10 +30,10 @@ land.lhs.true:
%cmp4 = icmp eq i32 %call3, 10
br i1 %cmp4, label %do.body.preheader, label %if.then
-; %shl.i should be sinked all the way down to do.body.preheader, but not into the loop.
+; %add16.i should be sinked all the way down to do.body.preheader, but not into the loop.
; CHECK: do.body.preheader
; CHECK-NOT: do.body
-; CHECK: shll $12
+; CHECK: leal ([[SRC:%r[a-z0-9]+]],[[SRC]],8)
do.body.preheader:
%xor29.i = xor i32 %shr27.i, %add25.i
OpenPOWER on IntegriCloud