blob: 4075dd6289ebc90497925f2d557ca6ffb982f738 [file] [log] [blame]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001; Make sure this testcase does not use mulq
Dan Gohmanda594cf2009-09-09 00:09:15 +00002; RUN: llc < %s -march=alpha | not grep -i mul
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003
Tanya Lattnerf28e0ce2008-02-19 01:41:04 +00004define i64 @foo1(i64 %x) {
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005entry:
Tanya Lattnerf28e0ce2008-02-19 01:41:04 +00006 %tmp.1 = mul i64 %x, 9 ; <i64> [#uses=1]
7 ret i64 %tmp.1
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008}
9
Tanya Lattnerf28e0ce2008-02-19 01:41:04 +000010define i64 @foo3(i64 %x) {
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011entry:
Tanya Lattnerf28e0ce2008-02-19 01:41:04 +000012 %tmp.1 = mul i64 %x, 259 ; <i64> [#uses=1]
13 ret i64 %tmp.1
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014}
15
Tanya Lattnerf28e0ce2008-02-19 01:41:04 +000016define i64 @foo4l(i64 %x) {
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017entry:
Tanya Lattnerf28e0ce2008-02-19 01:41:04 +000018 %tmp.1 = mul i64 %x, 260 ; <i64> [#uses=1]
19 ret i64 %tmp.1
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020}
21
Tanya Lattnerf28e0ce2008-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