[llvm-commits] CVS: llvm/test/Regression/CodeGen/SparcV8/ctpop.ll
Chris Lattner
lattner at cs.uiuc.edu
Sun Jan 29 22:11:48 PST 2006
Changes in directory llvm/test/Regression/CodeGen/SparcV8:
ctpop.ll added (r1.1)
---
Log message:
new testcase
---
Diffs of the changes: (+11 -0)
ctpop.ll | 11 +++++++++++
1 files changed, 11 insertions(+)
Index: llvm/test/Regression/CodeGen/SparcV8/ctpop.ll
diff -c /dev/null llvm/test/Regression/CodeGen/SparcV8/ctpop.ll:1.1
*** /dev/null Mon Jan 30 00:11:46 2006
--- llvm/test/Regression/CodeGen/SparcV8/ctpop.ll Mon Jan 30 00:11:36 2006
***************
*** 0 ****
--- 1,11 ----
+ ; RUN: llvm-as < %s | llc -march=sparcv8 -mattr=-v9 &&
+ ; RUN: llvm-as < %s | llc -march=sparcv8 -mattr=v9 -enable-sparc-v9-insts &&
+ ; RUN: llvm-as < %s | llc -march=sparcv8 -mattr=-v9 | not grep popc &&
+ ; RUN: llvm-as < %s | llc -march=sparcv8 -mattr=v9 -enable-sparc-v9-insts | grep popc
+
+ declare uint %llvm.ctpop.i32(uint)
+ uint %test(uint %X) {
+ %Y = call uint %llvm.ctpop.i32(uint %X)
+ ret uint %Y
+ }
+
More information about the llvm-commits
mailing list