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