blob: 9042015d72ac5e278c5ac9bed9890728b33fd53e [file] [log] [blame]
Andrew Lenharthf80d2f62006-04-02 21:47:07 +00001; Make sure this testcase does not use mulq
Tanya Lattner53a66d12008-02-19 01:41:04 +00002; RUN: llvm-as < %s | llvm-as | llc -march=alpha | \
Reid Spencer65f47a32007-04-15 18:40:57 +00003; RUN: not grep -i mul
Chris Lattner95d85932007-11-28 05:37:13 +00004; XFAIL: *
Andrew Lenharthf80d2f62006-04-02 21:47:07 +00005
Tanya Lattner53a66d12008-02-19 01:41:04 +00006define i64 @foo1(i64 %x) {
Andrew Lenharthf80d2f62006-04-02 21:47:07 +00007entry:
Tanya Lattner53a66d12008-02-19 01:41:04 +00008 %tmp.1 = mul i64 %x, 9 ; <i64> [#uses=1]
9 ret i64 %tmp.1
Andrew Lenharth0fb79fa2006-04-03 03:16:09 +000010}
11
Tanya Lattner53a66d12008-02-19 01:41:04 +000012define i64 @foo3(i64 %x) {
Andrew Lenharth87e021d2006-04-03 04:14:39 +000013entry:
Tanya Lattner53a66d12008-02-19 01:41:04 +000014 %tmp.1 = mul i64 %x, 259 ; <i64> [#uses=1]
15 ret i64 %tmp.1
Andrew Lenharth87e021d2006-04-03 04:14:39 +000016}
17
Tanya Lattner53a66d12008-02-19 01:41:04 +000018define i64 @foo4l(i64 %x) {
Andrew Lenharth87e021d2006-04-03 04:14:39 +000019entry:
Tanya Lattner53a66d12008-02-19 01:41:04 +000020 %tmp.1 = mul i64 %x, 260 ; <i64> [#uses=1]
21 ret i64 %tmp.1
Andrew Lenharth87e021d2006-04-03 04:14:39 +000022}
23
Tanya Lattner53a66d12008-02-19 01:41:04 +000024define i64 @foo4ln(i64 %x) {
Andrew Lenharth0fb79fa2006-04-03 03:16:09 +000025entry:
Tanya Lattner53a66d12008-02-19 01:41:04 +000026 %tmp.1 = mul i64 %x, 508 ; <i64> [#uses=1]
27 ret i64 %tmp.1
Andrew Lenharthf80d2f62006-04-02 21:47:07 +000028}
29
Tanya Lattner53a66d12008-02-19 01:41:04 +000030define i64 @foo4ln_more(i64 %x) {
Andrew Lenharth87e021d2006-04-03 04:14:39 +000031entry:
Tanya Lattner53a66d12008-02-19 01:41:04 +000032 %tmp.1 = mul i64 %x, 252 ; <i64> [#uses=1]
33 ret i64 %tmp.1
Andrew Lenharth87e021d2006-04-03 04:14:39 +000034}
35
Tanya Lattner53a66d12008-02-19 01:41:04 +000036define i64 @foo1n(i64 %x) {
Andrew Lenharthf80d2f62006-04-02 21:47:07 +000037entry:
Tanya Lattner53a66d12008-02-19 01:41:04 +000038 %tmp.1 = mul i64 %x, 511 ; <i64> [#uses=1]
39 ret i64 %tmp.1
Andrew Lenharthf80d2f62006-04-02 21:47:07 +000040}
Tanya Lattner53a66d12008-02-19 01:41:04 +000041
42define i64 @foo8l(i64 %x) {
43entry:
44 %tmp.1 = mul i64 %x, 768 ; <i64> [#uses=1]
45 ret i64 %tmp.1
46}
47
48define i64 @bar(i64 %x) {
49entry:
50 %tmp.1 = mul i64 %x, 5 ; <i64> [#uses=1]
51 ret i64 %tmp.1
52}
53