[llvm-commits] CVS: llvm/test/Regression/CodeGen/Alpha/srl_and.ll

Andrew Lenharth alenhar2 at cs.uiuc.edu
Mon Feb 13 10:52:23 PST 2006



Changes in directory llvm/test/Regression/CodeGen/Alpha:

srl_and.ll added (r1.1)
---
Log message:

test for improved zap discovery

---
Diffs of the changes:  (+10 -0)

 srl_and.ll |   10 ++++++++++
 1 files changed, 10 insertions(+)


Index: llvm/test/Regression/CodeGen/Alpha/srl_and.ll
diff -c /dev/null llvm/test/Regression/CodeGen/Alpha/srl_and.ll:1.1
*** /dev/null	Mon Feb 13 12:52:11 2006
--- llvm/test/Regression/CodeGen/Alpha/srl_and.ll	Mon Feb 13 12:52:01 2006
***************
*** 0 ****
--- 1,10 ----
+ ; Make sure this testcase codegens to the zapnot instruction
+ ; RUN: llvm-as < %s | llc -march=alpha | grep 'zapnot'
+ 
+ ulong %foo(ulong %y) {
+ entry:
+         %tmp = shr ulong %y, ubyte 3            ; <ulong> [#uses=1]
+         %tmp2 = and ulong %tmp, 8191            ; <ulong> [#uses=1]
+         ret ulong %tmp2
+ }
+ 






More information about the llvm-commits mailing list