summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/X86/machine-cse.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/machine-cse.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/machine-cse.ll')
-rw-r--r--llvm/test/CodeGen/X86/machine-cse.ll3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/test/CodeGen/X86/machine-cse.ll b/llvm/test/CodeGen/X86/machine-cse.ll
index d171fd5f1d9..b42d82e4cbe 100644
--- a/llvm/test/CodeGen/X86/machine-cse.ll
+++ b/llvm/test/CodeGen/X86/machine-cse.ll
@@ -52,13 +52,14 @@ entry:
]
sw.bb: ; preds = %entry, %entry, %entry
+; CHECK: %sw.bb
+; CHECK: imull
%mul = mul nsw i32 %test_case, 3
%mul20 = mul nsw i32 %mul, %scale
br i1 undef, label %if.end34, label %sw.bb307
if.end34: ; preds = %sw.bb
; CHECK: %if.end34
-; CHECK: imull
; CHECK: leal
; CHECK-NOT: imull
tail call void (...)* @printf(i32 %test_case, i32 %mul20) nounwind
OpenPOWER on IntegriCloud