diff options
author | Duncan Sands <baldrick@free.fr> | 2008-07-11 16:54:57 +0000 |
---|---|---|
committer | Duncan Sands <baldrick@free.fr> | 2008-07-11 16:54:57 +0000 |
commit | edfba7e707a4f2f2e800843a7ef980c27d7f4eff (patch) | |
tree | f1de28a47c1f6a8ed58c89371d07d5689797e836 /test | |
parent | dddc6291fb5274282a20d5923b50535d456d34a4 (diff) | |
download | external_llvm-edfba7e707a4f2f2e800843a7ef980c27d7f4eff.zip external_llvm-edfba7e707a4f2f2e800843a7ef980c27d7f4eff.tar.gz external_llvm-edfba7e707a4f2f2e800843a7ef980c27d7f4eff.tar.bz2 |
Port a shift-by-1 optimization from LegalizeDAG: it
was presumably added after the rest of the code was
copied to LegalizeTypes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53459 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/CodeGen/X86/2008-07-11-SHLBy1.ll | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/CodeGen/X86/2008-07-11-SHLBy1.ll b/test/CodeGen/X86/2008-07-11-SHLBy1.ll new file mode 100644 index 0000000..5b94a35 --- /dev/null +++ b/test/CodeGen/X86/2008-07-11-SHLBy1.ll @@ -0,0 +1,5 @@ +; RUN: llvm-as < %s | llc -march=x86-64 -o - | not grep shr +define i128 @sl(i128 %x) { + %t = shl i128 %x, 1 + ret i128 %t +} |