[llvm-commits] CVS: llvm/test/Regression/CodeGen/Alpha/s4addl.ll
Andrew Lenharth
alenhar2 at cs.uiuc.edu
Tue Apr 12 21:41:22 PDT 2005
Changes in directory llvm/test/Regression/CodeGen/Alpha:
s4addl.ll added (r1.1)
---
Log message:
added s4addl matching test
---
Diffs of the changes: (+14 -0)
s4addl.ll | 14 ++++++++++++++
1 files changed, 14 insertions(+)
Index: llvm/test/Regression/CodeGen/Alpha/s4addl.ll
diff -c /dev/null llvm/test/Regression/CodeGen/Alpha/s4addl.ll:1.1
*** /dev/null Tue Apr 12 23:41:16 2005
--- llvm/test/Regression/CodeGen/Alpha/s4addl.ll Tue Apr 12 23:41:06 2005
***************
*** 0 ****
--- 1,14 ----
+ ; Make sure this testcase codegens to the bic instruction
+ ; RUN: llvm-as < %s | llc -march=alpha | grep 's4addl'
+
+ ; ModuleID = 'test.o'
+ deplibs = [ "c", "crtend" ]
+
+ implementation ; Functions:
+
+ int %foo(int %x, int %y) {
+ entry:
+ %tmp.1 = shl int %y, ubyte 2 ; <int> [#uses=1]
+ %tmp.3 = add int %tmp.1, %x ; <int> [#uses=1]
+ ret int %tmp.3
+ }
More information about the llvm-commits
mailing list