summaryrefslogtreecommitdiff
path: root/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
commite5609f37323b105c7720d5d423a9203d1e869c29 (patch)
treeb833920ba791a63f5f903bc006254ac93541442e /test/CodeGen/X86/machine-cse.ll
parent6d315c6cf201a111d6e7c9118fafc6c39915d1db (diff)
downloadllvm-e5609f37323b105c7720d5d423a9203d1e869c29.tar.gz
llvm-e5609f37323b105c7720d5d423a9203d1e869c29.tar.bz2
llvm-e5609f37323b105c7720d5d423a9203d1e869c29.tar.xz
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@183693 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/X86/machine-cse.ll')
-rw-r--r--test/CodeGen/X86/machine-cse.ll3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/CodeGen/X86/machine-cse.ll b/test/CodeGen/X86/machine-cse.ll
index d171fd5f1d..b42d82e4cb 100644
--- a/test/CodeGen/X86/machine-cse.ll
+++ b/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