blob: db211a2bf3621369589fd2756842127fe2532c8f [file] [log] [blame]
Andrew Lenharth0def2262005-04-06 20:39:17 +00001; Make sure this testcase codegens to the S4ADDQ instruction
2; RUN: llvm-as < %s | llc -march=alpha | grep 'S4ADDQ'
3
Andrew Lenharth0def2262005-04-06 20:39:17 +00004implementation ; Functions:
5
6long %bar(long %x, long %y) {
7entry:
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}