llvm-6502/lib/CodeGen/SelectionDAG
Andrew Lenharth fecf095292 Make promoteOp work for CT*
Proof?

ubyte %bar(ubyte %x) {
entry:
        %tmp.1 = call ubyte %llvm.ctlz( ubyte %x )
        ret ubyte %tmp.1
}

==>

zapnot $16,1,$0
CTLZ $0,$0
subq $0,56,$0
zapnot $0,1,$0
ret $31,($26),1


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21691 91177308-0d34-0410-b5e6-96231b3b80d8
2005-05-04 19:11:05 +00:00
..
LegalizeDAG.cpp Make promoteOp work for CT* 2005-05-04 19:11:05 +00:00
Makefile Change Library Names Not To Conflict With Others When Installed 2004-10-27 23:18:45 +00:00
SelectionDAG.cpp Implement count leading zeros (ctlz), count trailing zeros (cttz), and count 2005-05-03 17:19:30 +00:00
SelectionDAGISel.cpp Implement count leading zeros (ctlz), count trailing zeros (cttz), and count 2005-05-03 17:19:30 +00:00
SelectionDAGPrinter.cpp Convert tabs to spaces 2005-04-22 04:01:18 +00:00
TargetLowering.cpp Remove trailing whitespace 2005-04-21 22:55:34 +00:00