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 | 33a8d20d065c549ab1d216c0cdfeece754a4cc57 (patch) | |
tree | c431dc740afc8e8addeaca74fc17bed1ce535a84 /test/CodeGen/XCore | |
parent | eb71ecf2a8f380206bf8a9e27e6e7855730c88e4 (diff) | |
download | external_llvm-33a8d20d065c549ab1d216c0cdfeece754a4cc57.zip external_llvm-33a8d20d065c549ab1d216c0cdfeece754a4cc57.tar.gz external_llvm-33a8d20d065c549ab1d216c0cdfeece754a4cc57.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 +} |