blob: 9042015d72ac5e278c5ac9bed9890728b33fd53e [file] [log] [blame]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001; Make sure this testcase does not use mulq
Tanya Lattnerf28e0ce2008-02-19 01:41:04 +00002; RUN: llvm-as < %s | llvm-as | llc -march=alpha | \
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003; RUN: not grep -i mul
Chris Lattnerdbda0bd2007-11-28 05:37:13 +00004; XFAIL: *
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005
Tanya Lattnerf28e0ce2008-02-19 01:41:04 +00006define i64 @foo1(i64 %x) {
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007entry:
Tanya Lattnerf28e0ce2008-02-19 01:41:04 +00008 %tmp.1 = mul i64 %x, 9 ; <i64> [#uses=1]
9 ret i64 %tmp.1
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010}
11
Tanya Lattnerf28e0ce2008-02-19 01:41:04 +000012define i64 @foo3(i64 %x) {
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013entry:
Tanya Lattnerf28e0ce2008-02-19 01:41:04 +000014 %tmp.1 = mul i64 %x, 259 ; <i64> [#uses=1]
15 ret i64 %tmp.1
Dan Gohmanf17a25c2007-07-18 16:29:46 +000016}
17
Tanya Lattnerf28e0ce2008-02-19 01:41:04 +000018define i64 @foo4l(i64 %x) {
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019entry:
Tanya Lattnerf28e0ce2008-02-19 01:41:04 +000020 %tmp.1 = mul i64 %x, 260 ; <i64> [#uses=1]
21 ret i64 %tmp.1
Dan Gohmanf17a25c2007-07-18 16:29:46 +000022}
23
Tanya Lattnerf28e0ce2008-02-19 01:41:04 +000024define i64 @foo4ln(i64 %x) {
Dan Gohmanf17a25c2007-07-18 16:29:46 +000025entry:
Tanya Lattnerf28e0ce2008-02-19 01:41:04 +000026 %tmp.1 = mul i64 %x, 508 ; <i64> [#uses=1]
27 ret i64 %tmp.1
Dan Gohmanf17a25c2007-07-18 16:29:46 +000028}
29
Tanya Lattnerf28e0ce2008-02-19 01:41:04 +000030define i64 @foo4ln_more(i64 %x) {
Dan Gohmanf17a25c2007-07-18 16:29:46 +000031entry:
Tanya Lattnerf28e0ce2008-02-19 01:41:04 +000032 %tmp.1 = mul i64 %x, 252 ; <i64> [#uses=1]
33 ret i64 %tmp.1
Dan Gohmanf17a25c2007-07-18 16:29:46 +000034}
35
Tanya Lattnerf28e0ce2008-02-19 01:41:04 +000036define i64 @foo1n(i64 %x) {
Dan Gohmanf17a25c2007-07-18 16:29:46 +000037entry:
Tanya Lattnerf28e0ce2008-02-19 01:41:04 +000038 %tmp.1 = mul i64 %x, 511 ; <i64> [#uses=1]
39 ret i64 %tmp.1
Dan Gohmanf17a25c2007-07-18 16:29:46 +000040}
Tanya Lattnerf28e0ce2008-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