blob: 4075dd6289ebc90497925f2d557ca6ffb982f738 [file] [log] [blame]
Andrew Lenharthf80d2f62006-04-02 21:47:07 +00001; Make sure this testcase does not use mulq
Dan Gohmanfce288f2009-09-09 00:09:15 +00002; RUN: llc < %s -march=alpha | not grep -i mul
Andrew Lenharthf80d2f62006-04-02 21:47:07 +00003
Tanya Lattner53a66d12008-02-19 01:41:04 +00004define i64 @foo1(i64 %x) {
Andrew Lenharthf80d2f62006-04-02 21:47:07 +00005entry:
Tanya Lattner53a66d12008-02-19 01:41:04 +00006 %tmp.1 = mul i64 %x, 9 ; <i64> [#uses=1]
7 ret i64 %tmp.1
Andrew Lenharth0fb79fa2006-04-03 03:16:09 +00008}
9
Tanya Lattner53a66d12008-02-19 01:41:04 +000010define i64 @foo3(i64 %x) {
Andrew Lenharth87e021d2006-04-03 04:14:39 +000011entry:
Tanya Lattner53a66d12008-02-19 01:41:04 +000012 %tmp.1 = mul i64 %x, 259 ; <i64> [#uses=1]
13 ret i64 %tmp.1
Andrew Lenharth87e021d2006-04-03 04:14:39 +000014}
15
Tanya Lattner53a66d12008-02-19 01:41:04 +000016define i64 @foo4l(i64 %x) {
Andrew Lenharth87e021d2006-04-03 04:14:39 +000017entry:
Tanya Lattner53a66d12008-02-19 01:41:04 +000018 %tmp.1 = mul i64 %x, 260 ; <i64> [#uses=1]
19 ret i64 %tmp.1
Andrew Lenharth87e021d2006-04-03 04:14:39 +000020}
21
Tanya Lattner53a66d12008-02-19 01:41:04 +000022define i64 @foo8l(i64 %x) {
23entry:
24 %tmp.1 = mul i64 %x, 768 ; <i64> [#uses=1]
25 ret i64 %tmp.1
26}
27
28define i64 @bar(i64 %x) {
29entry:
30 %tmp.1 = mul i64 %x, 5 ; <i64> [#uses=1]
31 ret i64 %tmp.1
32}
33