blob: 8159ff007f2868a10a28fb1239f2090b887205a6 [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
Andrew Lenharthf80d2f62006-04-02 21:47:07 +00004
5implementation ; Functions:
6
Andrew Lenharth0fb79fa2006-04-03 03:16:09 +00007ulong %foo1(ulong %x) {
Andrew Lenharthf80d2f62006-04-02 21:47:07 +00008entry:
Andrew Lenharth0fb79fa2006-04-03 03:16:09 +00009 %tmp.1 = mul ulong %x, 9 ; <ulong> [#uses=1]
10 ret ulong %tmp.1
11}
12ulong %foo3(ulong %x) {
13entry:
14 %tmp.1 = mul ulong %x, 259
15 ret ulong %tmp.1
16}
17
Andrew Lenharth87e021d2006-04-03 04:14:39 +000018ulong %foo4l(ulong %x) {
19entry:
20 %tmp.1 = mul ulong %x, 260
21 ret ulong %tmp.1
22}
23
24ulong %foo4ln(ulong %x) {
25entry:
Andrew Lenhartha54f6b12006-10-31 19:50:55 +000026 %tmp.1 = mul ulong %x, 508
27 ret ulong %tmp.1
28}
29ulong %foo4ln_more(ulong %x) {
30entry:
Andrew Lenharth87e021d2006-04-03 04:14:39 +000031 %tmp.1 = mul ulong %x, 252
32 ret ulong %tmp.1
33}
34
Andrew Lenharth0fb79fa2006-04-03 03:16:09 +000035ulong %foo1n(ulong %x) {
36entry:
37 %tmp.1 = mul ulong %x, 511
Andrew Lenharthf80d2f62006-04-02 21:47:07 +000038 ret ulong %tmp.1
39}
40
Andrew Lenharth87e021d2006-04-03 04:14:39 +000041ulong %foo8l(ulong %x) {
42entry:
43 %tmp.1 = mul ulong %x, 768
44 ret ulong %tmp.1
45}
46
Andrew Lenharthf80d2f62006-04-02 21:47:07 +000047long %bar(long %x) {
48entry:
49 %tmp.1 = mul long %x, 5 ; <long> [#uses=1]
50 ret long %tmp.1
51}