blob: 7f6ed5c85e9c23c96f55eaf8aafdf27b441e900e [file] [log] [blame]
Andrew Lenharth0def2262005-04-06 20:39:17 +00001; Make sure this testcase codegens to the S4ADDQ instruction
Andrew Lenharth0b5031a2005-04-07 17:47:00 +00002; RUN: llvm-as < %s | llc -march=alpha | grep 's4addq'
Andrew Lenharth0def2262005-04-06 20:39:17 +00003
Andrew Lenharth0def2262005-04-06 20:39:17 +00004implementation ; Functions:
5
6long %bar(long %x, long %y) {
7entry:
Andrew Lenharth3cfc4012005-05-13 19:49:02 +00008 %tmp.1 = shl long %x, ubyte 2 ; <long> [#uses=1]
Andrew Lenharth0def2262005-04-06 20:39:17 +00009 %tmp.3 = add long %tmp.1, %y ; <long> [#uses=1]
10 ret long %tmp.3
11}