aboutsummaryrefslogtreecommitdiffstats
path: root/test/CodeGen/Alpha/mul5.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/Alpha/mul5.ll')
-rw-r--r--test/CodeGen/Alpha/mul5.ll16
1 files changed, 16 insertions, 0 deletions
diff --git a/test/CodeGen/Alpha/mul5.ll b/test/CodeGen/Alpha/mul5.ll
new file mode 100644
index 0000000..cb19550
--- /dev/null
+++ b/test/CodeGen/Alpha/mul5.ll
@@ -0,0 +1,16 @@
+; Make sure this testcase does not use mulq
+; RUN: llvm-as < %s | llc -march=alpha | grep -i 'mul' |wc -l |grep 0
+
+implementation ; Functions:
+
+ulong %foo(ulong %x) {
+entry:
+ %tmp.1 = mul ulong %x, 5 ; <ulong> [#uses=1]
+ ret ulong %tmp.1
+}
+
+long %bar(long %x) {
+entry:
+ %tmp.1 = mul long %x, 5 ; <long> [#uses=1]
+ ret long %tmp.1
+}