diff options
author | Richard Osborne <richard@xmos.com> | 2008-11-17 17:34:31 +0000 |
---|---|---|
committer | Richard Osborne <richard@xmos.com> | 2008-11-17 17:34:31 +0000 |
commit | 104de6cf7b80ec5e9beb502a069f376810a0a1e3 (patch) | |
tree | c431dc740afc8e8addeaca74fc17bed1ce535a84 /test/CodeGen/XCore | |
parent | 35fde150591d7c5f032a5e7c9643315e5f2bedde (diff) | |
download | external_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.ll | 6 |
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 +} |