aboutsummaryrefslogtreecommitdiffstats
path: root/test/CodeGen/XCore
diff options
context:
space:
mode:
authorRichard Osborne <richard@xmos.com>2008-11-17 17:34:31 +0000
committerRichard Osborne <richard@xmos.com>2008-11-17 17:34:31 +0000
commit104de6cf7b80ec5e9beb502a069f376810a0a1e3 (patch)
treec431dc740afc8e8addeaca74fc17bed1ce535a84 /test/CodeGen/XCore
parent35fde150591d7c5f032a5e7c9643315e5f2bedde (diff)
downloadexternal_llvm-104de6cf7b80ec5e9beb502a069f376810a0a1e3.zip
external_llvm-104de6cf7b80ec5e9beb502a069f376810a0a1e3.tar.gz
external_llvm-104de6cf7b80ec5e9beb502a069f376810a0a1e3.tar.bz2
Don't produce ADDC/ADDE when expanding SHL unless they are legal
for the target. This fixes PR3080. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59450 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/XCore')
-rw-r--r--test/CodeGen/XCore/2008-11-17-Shl64.ll6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/CodeGen/XCore/2008-11-17-Shl64.ll b/test/CodeGen/XCore/2008-11-17-Shl64.ll
new file mode 100644
index 0000000..97ea41b
--- /dev/null
+++ b/test/CodeGen/XCore/2008-11-17-Shl64.ll
@@ -0,0 +1,6 @@
+; RUN: llvm-as < %s | llc -march=xcore > %t1.s
+; PR3080
+define i64 @test(i64 %a) {
+ %result = shl i64 %a, 1
+ ret i64 %result
+}