Dan Gohman | f17a25c | 2007-07-18 16:29:46 +0000 | [diff] [blame] | 1 | ; 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 Lattner | dbda0bd | 2007-11-28 05:37:13 +0000 | [diff] [blame^] | 4 | ; XFAIL: * |
Dan Gohman | f17a25c | 2007-07-18 16:29:46 +0000 | [diff] [blame] | 5 | |
| 6 | implementation ; Functions: |
| 7 | |
| 8 | ulong %foo1(ulong %x) { |
| 9 | entry: |
| 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 | |
| 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: |
| 27 | %tmp.1 = mul ulong %x, 508 |
| 28 | ret ulong %tmp.1 |
| 29 | } |
| 30 | ulong %foo4ln_more(ulong %x) { |
| 31 | entry: |
| 32 | %tmp.1 = mul ulong %x, 252 |
| 33 | ret ulong %tmp.1 |
| 34 | } |
| 35 | |
| 36 | ulong %foo1n(ulong %x) { |
| 37 | entry: |
| 38 | %tmp.1 = mul ulong %x, 511 |
| 39 | ret ulong %tmp.1 |
| 40 | } |
| 41 | |
| 42 | ulong %foo8l(ulong %x) { |
| 43 | entry: |
| 44 | %tmp.1 = mul ulong %x, 768 |
| 45 | ret ulong %tmp.1 |
| 46 | } |
| 47 | |
| 48 | long %bar(long %x) { |
| 49 | entry: |
| 50 | %tmp.1 = mul long %x, 5 ; <long> [#uses=1] |
| 51 | ret long %tmp.1 |
| 52 | } |