aboutsummaryrefslogtreecommitdiffstats
path: root/test/CodeGen/IA64
diff options
context:
space:
mode:
authorDuraid Madina <duraid@octopus.com.au>2005-10-29 04:06:49 +0000
committerDuraid Madina <duraid@octopus.com.au>2005-10-29 04:06:49 +0000
commitad856778792324f36dd521e638634aafcb170482 (patch)
tree6c4c885501051f838a02cfe419f0fa337e03184f /test/CodeGen/IA64
parent455fcc8d3579c84aa0c2b876482983eb2f81bc7d (diff)
downloadexternal_llvm-ad856778792324f36dd521e638634aafcb170482.zip
external_llvm-ad856778792324f36dd521e638634aafcb170482.tar.gz
external_llvm-ad856778792324f36dd521e638634aafcb170482.tar.bz2
test for the formation of shladd
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24077 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/IA64')
-rw-r--r--test/CodeGen/IA64/2005-10-29-shladd.ll11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/CodeGen/IA64/2005-10-29-shladd.ll b/test/CodeGen/IA64/2005-10-29-shladd.ll
new file mode 100644
index 0000000..0f241ab
--- /dev/null
+++ b/test/CodeGen/IA64/2005-10-29-shladd.ll
@@ -0,0 +1,11 @@
+; this should turn into shladd
+; RUN: llvm-as < %s | llc -march=ia64 | grep 'shladd'
+
+implementation ; Functions:
+
+long %bogglesmoggle(long %X, long %Y) {
+ %A = shl long %X, ubyte 3
+ %B = add long %A, %Y
+ ret long %B
+}
+