Fix abs not to use powerpc instructions on -mcpu=common
From-SVN: r9569
This commit is contained in:
parent
a5a799d19c
commit
3595d104fa
|
@ -1044,7 +1044,12 @@
|
||||||
(abs:SI (match_operand:SI 1 "gpc_reg_operand" "r,0")))
|
(abs:SI (match_operand:SI 1 "gpc_reg_operand" "r,0")))
|
||||||
(clobber (match_scratch:SI 2 "=&r,&r"))]
|
(clobber (match_scratch:SI 2 "=&r,&r"))]
|
||||||
"!TARGET_POWER"
|
"!TARGET_POWER"
|
||||||
"{srai|srawi} %2,%1,31\;xor %0,%2,%1\;subf %0,%2,%0"
|
"*
|
||||||
|
{
|
||||||
|
return (TARGET_POWERPC)
|
||||||
|
? \"{srai|srawi} %2,%1,31\;xor %0,%2,%1\;subf %0,%2,%0\"
|
||||||
|
: \"{srai|srawi} %2,%1,31\;xor %0,%2,%1\;{sf|subfc} %0,%2,%0\";
|
||||||
|
}"
|
||||||
[(set_attr "length" "12")])
|
[(set_attr "length" "12")])
|
||||||
|
|
||||||
(define_split
|
(define_split
|
||||||
|
@ -1068,7 +1073,12 @@
|
||||||
(neg:SI (abs:SI (match_operand:SI 1 "gpc_reg_operand" "r,0"))))
|
(neg:SI (abs:SI (match_operand:SI 1 "gpc_reg_operand" "r,0"))))
|
||||||
(clobber (match_scratch:SI 2 "=&r,&r"))]
|
(clobber (match_scratch:SI 2 "=&r,&r"))]
|
||||||
"!TARGET_POWER"
|
"!TARGET_POWER"
|
||||||
"{srai|srawi} %2,%1,31\;xor %0,%2,%1\;subf %0,%0,%2"
|
"*
|
||||||
|
{
|
||||||
|
return (TARGET_POWERPC)
|
||||||
|
? \"{srai|srawi} %2,%1,31\;xor %0,%2,%1\;subf %0,%0,%2\"
|
||||||
|
: \"{srai|srawi} %2,%1,31\;xor %0,%2,%1\;{sf|subfc} %0,%0,%2\";
|
||||||
|
}"
|
||||||
[(set_attr "length" "12")])
|
[(set_attr "length" "12")])
|
||||||
|
|
||||||
(define_split
|
(define_split
|
||||||
|
|
Loading…
Reference in New Issue