* config/mips/mips.md (ffs<mode>2): Remove.

From-SVN: r101896
This commit is contained in:
Ian Lance Taylor 2005-07-11 18:48:37 +00:00 committed by Ian Lance Taylor
parent 2f6bd5398e
commit 8564e10e6e
2 changed files with 4 additions and 39 deletions

View file

@ -1,3 +1,7 @@
2005-07-11 Ian Lance Taylor <ian@airs.com>
* config/mips/mips.md (ffs<mode>2): Remove.
2005-07-11 Ian Lance Taylor <ian@airs.com>
* doc/tree-ssa.texi (Cleanups): Improve description of

View file

@ -1906,45 +1906,6 @@
(set_attr "mode" "<UNITMODE>")])
;;
;; ....................
;;
;; FIND FIRST BIT INSTRUCTION
;;
;; ....................
;;
(define_insn "ffs<mode>2"
[(set (match_operand:GPR 0 "register_operand" "=&d")
(ffs:GPR (match_operand:GPR 1 "register_operand" "d")))
(clobber (match_scratch:GPR 2 "=&d"))
(clobber (match_scratch:GPR 3 "=&d"))]
"!TARGET_MIPS16"
{
if (optimize && find_reg_note (insn, REG_DEAD, operands[1]))
return "%(\
move\t%0,%.\;\
beq\t%1,%.,2f\n\
%~1:\tand\t%2,%1,0x0001\;\
<d>addu\t%0,%0,1\;\
beq\t%2,%.,1b\;\
<d>srl\t%1,%1,1\n\
%~2:%)";
return "%(\
move\t%0,%.\;\
move\t%3,%1\;\
beq\t%3,%.,2f\n\
%~1:\tand\t%2,%3,0x0001\;\
<d>addu\t%0,%0,1\;\
beq\t%2,%.,1b\;\
<d>srl\t%3,%3,1\n\
%~2:%)";
}
[(set_attr "type" "multi")
(set_attr "mode" "<MODE>")
(set_attr "length" "28")])
;;
;; ...................
;;
;; Count leading zeroes.