Andrew Lenharth | 0def226 | 2005-04-06 20:39:17 +0000 | [diff] [blame] | 1 | ; Make sure this testcase codegens to the S4ADDQ instruction |
2 | ; RUN: llvm-as < %s | llc -march=alpha | grep 'S4ADDQ' | ||||
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: | ||||
8 | %tmp.1 = shl long %x, ubyte 3 ; <long> [#uses=1] | ||||
9 | %tmp.3 = add long %tmp.1, %y ; <long> [#uses=1] | ||||
10 | ret long %tmp.3 | ||||
11 | } |