blob: 956fbf90abbf5e6c92d385cfd84f784586670b39 [file] [log] [blame]
Andrew Lenharthf80d2f62006-04-02 21:47:07 +00001; Make sure this testcase does not use mulq
Reid Spencer65f47a32007-04-15 18:40:57 +00002; RUN: llvm-upgrade < %s | llvm-as | llc -march=alpha | \
3; RUN: not grep -i mul
Chris Lattner95d85932007-11-28 05:37:13 +00004; XFAIL: *
Andrew Lenharthf80d2f62006-04-02 21:47:07 +00005
6implementation ; Functions:
7
Andrew Lenharth0fb79fa2006-04-03 03:16:09 +00008ulong %foo1(ulong %x) {
Andrew Lenharthf80d2f62006-04-02 21:47:07 +00009entry:
Andrew Lenharth0fb79fa2006-04-03 03:16:09 +000010 %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
Andrew Lenharth87e021d2006-04-03 04:14:39 +000019ulong %foo4l(ulong %x) {
20entry:
21 %tmp.1 = mul ulong %x, 260
22 ret ulong %tmp.1
23}
24
25ulong %foo4ln(ulong %x) {
26entry:
Andrew Lenhartha54f6b12006-10-31 19:50:55 +000027 %tmp.1 = mul ulong %x, 508
28 ret ulong %tmp.1
29}
30ulong %foo4ln_more(ulong %x) {
31entry:
Andrew Lenharth87e021d2006-04-03 04:14:39 +000032 %tmp.1 = mul ulong %x, 252
33 ret ulong %tmp.1
34}
35
Andrew Lenharth0fb79fa2006-04-03 03:16:09 +000036ulong %foo1n(ulong %x) {
37entry:
38 %tmp.1 = mul ulong %x, 511
Andrew Lenharthf80d2f62006-04-02 21:47:07 +000039 ret ulong %tmp.1
40}
41
Andrew Lenharth87e021d2006-04-03 04:14:39 +000042ulong %foo8l(ulong %x) {
43entry:
44 %tmp.1 = mul ulong %x, 768
45 ret ulong %tmp.1
46}
47
Andrew Lenharthf80d2f62006-04-02 21:47:07 +000048long %bar(long %x) {
49entry:
50 %tmp.1 = mul long %x, 5 ; <long> [#uses=1]
51 ret long %tmp.1
52}