summaryrefslogtreecommitdiff
path: root/test/CodeGen/Alpha/mul5.ll
diff options
context:
space:
mode:
authorEd Schouten <ed@FreeBSD.org>2009-06-02 17:52:33 +0000
committerEd Schouten <ed@FreeBSD.org>2009-06-02 17:52:33 +0000
commit009b1c42aa6266385f2c37e227516b24077e6dd7 (patch)
tree64ba909838c23261cace781ece27d106134ea451 /test/CodeGen/Alpha/mul5.ll
Diffstat (limited to 'test/CodeGen/Alpha/mul5.ll')
-rw-r--r--test/CodeGen/Alpha/mul5.ll33
1 files changed, 33 insertions, 0 deletions
diff --git a/test/CodeGen/Alpha/mul5.ll b/test/CodeGen/Alpha/mul5.ll
new file mode 100644
index 0000000000000..5af73a1cc774c
--- /dev/null
+++ b/test/CodeGen/Alpha/mul5.ll
@@ -0,0 +1,33 @@
+; Make sure this testcase does not use mulq
+; RUN: llvm-as < %s | llc -march=alpha | not grep -i mul
+
+define i64 @foo1(i64 %x) {
+entry:
+ %tmp.1 = mul i64 %x, 9 ; <i64> [#uses=1]
+ ret i64 %tmp.1
+}
+
+define i64 @foo3(i64 %x) {
+entry:
+ %tmp.1 = mul i64 %x, 259 ; <i64> [#uses=1]
+ ret i64 %tmp.1
+}
+
+define i64 @foo4l(i64 %x) {
+entry:
+ %tmp.1 = mul i64 %x, 260 ; <i64> [#uses=1]
+ ret i64 %tmp.1
+}
+
+define i64 @foo8l(i64 %x) {
+entry:
+ %tmp.1 = mul i64 %x, 768 ; <i64> [#uses=1]
+ ret i64 %tmp.1
+}
+
+define i64 @bar(i64 %x) {
+entry:
+ %tmp.1 = mul i64 %x, 5 ; <i64> [#uses=1]
+ ret i64 %tmp.1
+}
+