[llvm-commits] CVS: llvm/test/Regression/CodeGen/Alpha/ctlz_e.ll
Andrew Lenharth
alenhar2 at cs.uiuc.edu
Wed May 11 10:23:58 PDT 2005
Changes in directory llvm/test/Regression/CodeGen/Alpha:
ctlz_e.ll added (r1.1)
---
Log message:
Legalize for CTLZ generates a ctpop, but this ctpop is not expanded.
This is bad. It is generated if you are ctlz a type that is not
legal for the arch (aka ctlz of bytes on alpha legalize fine).
---
Diffs of the changes: (+12 -0)
ctlz_e.ll | 12 ++++++++++++
1 files changed, 12 insertions(+)
Index: llvm/test/Regression/CodeGen/Alpha/ctlz_e.ll
diff -c /dev/null llvm/test/Regression/CodeGen/Alpha/ctlz_e.ll:1.1
*** /dev/null Wed May 11 12:23:51 2005
--- llvm/test/Regression/CodeGen/Alpha/ctlz_e.ll Wed May 11 12:23:41 2005
***************
*** 0 ****
--- 1,12 ----
+ ; Make sure this testcase does not use ctpop
+ ; RUN: llvm-as < %s | llc -march=alpha | grep -i 'ctpop' |wc -l |grep 0
+
+ declare ulong %llvm.ctlz(ulong)
+
+ implementation ; Functions:
+
+ ulong %bar(ulong %x) {
+ entry:
+ %tmp.1 = call ulong %llvm.ctlz( ulong %x )
+ ret ulong %tmp.1
+ }
More information about the llvm-commits
mailing list