Andrew Lenharth | f80d2f6 | 2006-04-02 21:47:07 +0000 | [diff] [blame] | 1 | ; Make sure this testcase does not use mulq |
Reid Spencer | 65f47a3 | 2007-04-15 18:40:57 +0000 | [diff] [blame] | 2 | ; RUN: llvm-upgrade < %s | llvm-as | llc -march=alpha | \ |
| 3 | ; RUN: not grep -i mul |
Chris Lattner | 95d8593 | 2007-11-28 05:37:13 +0000 | [diff] [blame^] | 4 | ; XFAIL: * |
Andrew Lenharth | f80d2f6 | 2006-04-02 21:47:07 +0000 | [diff] [blame] | 5 | |
| 6 | implementation ; Functions: |
| 7 | |
Andrew Lenharth | 0fb79fa | 2006-04-03 03:16:09 +0000 | [diff] [blame] | 8 | ulong %foo1(ulong %x) { |
Andrew Lenharth | f80d2f6 | 2006-04-02 21:47:07 +0000 | [diff] [blame] | 9 | entry: |
Andrew Lenharth | 0fb79fa | 2006-04-03 03:16:09 +0000 | [diff] [blame] | 10 | %tmp.1 = mul ulong %x, 9 ; <ulong> [#uses=1] |
| 11 | ret ulong %tmp.1 |
| 12 | } |
| 13 | ulong %foo3(ulong %x) { |
| 14 | entry: |
| 15 | %tmp.1 = mul ulong %x, 259 |
| 16 | ret ulong %tmp.1 |
| 17 | } |
| 18 | |
Andrew Lenharth | 87e021d | 2006-04-03 04:14:39 +0000 | [diff] [blame] | 19 | ulong %foo4l(ulong %x) { |
| 20 | entry: |
| 21 | %tmp.1 = mul ulong %x, 260 |
| 22 | ret ulong %tmp.1 |
| 23 | } |
| 24 | |
| 25 | ulong %foo4ln(ulong %x) { |
| 26 | entry: |
Andrew Lenharth | a54f6b1 | 2006-10-31 19:50:55 +0000 | [diff] [blame] | 27 | %tmp.1 = mul ulong %x, 508 |
| 28 | ret ulong %tmp.1 |
| 29 | } |
| 30 | ulong %foo4ln_more(ulong %x) { |
| 31 | entry: |
Andrew Lenharth | 87e021d | 2006-04-03 04:14:39 +0000 | [diff] [blame] | 32 | %tmp.1 = mul ulong %x, 252 |
| 33 | ret ulong %tmp.1 |
| 34 | } |
| 35 | |
Andrew Lenharth | 0fb79fa | 2006-04-03 03:16:09 +0000 | [diff] [blame] | 36 | ulong %foo1n(ulong %x) { |
| 37 | entry: |
| 38 | %tmp.1 = mul ulong %x, 511 |
Andrew Lenharth | f80d2f6 | 2006-04-02 21:47:07 +0000 | [diff] [blame] | 39 | ret ulong %tmp.1 |
| 40 | } |
| 41 | |
Andrew Lenharth | 87e021d | 2006-04-03 04:14:39 +0000 | [diff] [blame] | 42 | ulong %foo8l(ulong %x) { |
| 43 | entry: |
| 44 | %tmp.1 = mul ulong %x, 768 |
| 45 | ret ulong %tmp.1 |
| 46 | } |
| 47 | |
Andrew Lenharth | f80d2f6 | 2006-04-02 21:47:07 +0000 | [diff] [blame] | 48 | long %bar(long %x) { |
| 49 | entry: |
| 50 | %tmp.1 = mul long %x, 5 ; <long> [#uses=1] |
| 51 | ret long %tmp.1 |
| 52 | } |