Andrew Lenharth | 0def226 | 2005-04-06 20:39:17 +0000 | [diff] [blame] | 1 | ; Make sure this testcase codegens to the S4ADDQ instruction |
Andrew Lenharth | 0b5031a | 2005-04-07 17:47:00 +0000 | [diff] [blame] | 2 | ; RUN: llvm-as < %s | llc -march=alpha | grep 's4addq' |
Andrew Lenharth | 0def226 | 2005-04-06 20:39:17 +0000 | [diff] [blame] | 3 | |
Andrew Lenharth | 0def226 | 2005-04-06 20:39:17 +0000 | [diff] [blame] | 4 | implementation ; Functions: |
| 5 | |
| 6 | long %bar(long %x, long %y) { |
| 7 | entry: |
Andrew Lenharth | 3cfc401 | 2005-05-13 19:49:02 +0000 | [diff] [blame] | 8 | %tmp.1 = shl long %x, ubyte 2 ; <long> [#uses=1] |
Andrew Lenharth | 0def226 | 2005-04-06 20:39:17 +0000 | [diff] [blame] | 9 | %tmp.3 = add long %tmp.1, %y ; <long> [#uses=1] |
| 10 | ret long %tmp.3 |
| 11 | } |