[llvm-commits] CVS: llvm/test/Regression/CodeGen/Alpha/s4addq.ll
Andrew Lenharth
alenhar2 at cs.uiuc.edu
Wed Apr 6 13:40:12 PDT 2005
Changes in directory llvm/test/Regression/CodeGen/Alpha:
s4addq.ll added (r1.1)
---
Log message:
added first alpha codegen regression test
---
Diffs of the changes: (+16 -0)
s4addq.ll | 16 ++++++++++++++++
1 files changed, 16 insertions(+)
Index: llvm/test/Regression/CodeGen/Alpha/s4addq.ll
diff -c /dev/null llvm/test/Regression/CodeGen/Alpha/s4addq.ll:1.1
*** /dev/null Wed Apr 6 15:39:31 2005
--- llvm/test/Regression/CodeGen/Alpha/s4addq.ll Wed Apr 6 15:39:17 2005
***************
*** 0 ****
--- 1,16 ----
+ ; Make sure this testcase codegens to the S4ADDQ instruction
+ ; RUN: llvm-as < %s | llc -march=alpha | grep 'S4ADDQ'
+
+ target endian = little
+ target pointersize = 64
+ target triple = "alphapca56-unknown-linux-gnu"
+ deplibs = [ "c", "crtend" ]
+
+ implementation ; Functions:
+
+ long %bar(long %x, long %y) {
+ entry:
+ %tmp.1 = shl long %x, ubyte 3 ; <long> [#uses=1]
+ %tmp.3 = add long %tmp.1, %y ; <long> [#uses=1]
+ ret long %tmp.3
+ }
More information about the llvm-commits
mailing list