Andrew Lenharth | f80d2f6 | 2006-04-02 21:47:07 +0000 | [diff] [blame] | 1 | ; Make sure this testcase does not use mulq |
| 2 | ; RUN: llvm-as < %s | llc -march=alpha | grep -i 'mul' |wc -l |grep 0 |
| 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 | |
| 17 | ulong %foo1n(ulong %x) { |
| 18 | entry: |
| 19 | %tmp.1 = mul ulong %x, 511 |
Andrew Lenharth | f80d2f6 | 2006-04-02 21:47:07 +0000 | [diff] [blame] | 20 | ret ulong %tmp.1 |
| 21 | } |
| 22 | |
| 23 | long %bar(long %x) { |
| 24 | entry: |
| 25 | %tmp.1 = mul long %x, 5 ; <long> [#uses=1] |
| 26 | ret long %tmp.1 |
| 27 | } |