blob: 956fbf90abbf5e6c92d385cfd84f784586670b39 [file] [log] [blame]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001; Make sure this testcase does not use mulq
2; RUN: llvm-upgrade < %s | llvm-as | llc -march=alpha | \
3; RUN: not grep -i mul
Chris Lattnerdbda0bd2007-11-28 05:37:13 +00004; XFAIL: *
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005
6implementation ; Functions:
7
8ulong %foo1(ulong %x) {
9entry:
10 %tmp.1 = mul ulong %x, 9 ; <ulong> [#uses=1]
11 ret ulong %tmp.1
12}
13ulong %foo3(ulong %x) {
14entry:
15 %tmp.1 = mul ulong %x, 259
16 ret ulong %tmp.1
17}
18
19ulong %foo4l(ulong %x) {
20entry:
21 %tmp.1 = mul ulong %x, 260
22 ret ulong %tmp.1
23}
24
25ulong %foo4ln(ulong %x) {
26entry:
27 %tmp.1 = mul ulong %x, 508
28 ret ulong %tmp.1
29}
30ulong %foo4ln_more(ulong %x) {
31entry:
32 %tmp.1 = mul ulong %x, 252
33 ret ulong %tmp.1
34}
35
36ulong %foo1n(ulong %x) {
37entry:
38 %tmp.1 = mul ulong %x, 511
39 ret ulong %tmp.1
40}
41
42ulong %foo8l(ulong %x) {
43entry:
44 %tmp.1 = mul ulong %x, 768
45 ret ulong %tmp.1
46}
47
48long %bar(long %x) {
49entry:
50 %tmp.1 = mul long %x, 5 ; <long> [#uses=1]
51 ret long %tmp.1
52}