* config/rs6000/rs6000.md (*lt0_disi): New.

From-SVN: r226006
This commit is contained in:
Segher Boessenkool 2015-07-20 18:32:55 +02:00 committed by Segher Boessenkool
parent 7fc5cca388
commit 824478c04c
2 changed files with 15 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2015-07-20 Segher Boessenkool <segher@kernel.crashing.org>
* config/rs6000/rs6000.md (*lt0_disi): New.
2015-07-20 Segher Boessenkool <segher@kernel.crashing.org>
PR target/66217

View File

@ -3475,6 +3475,17 @@
(set_attr "dot" "yes")
(set_attr "length" "4,8")])
; Special case for less-than-0. We can do it with just one machine
; instruction, but the generic optimizers do not realise it is cheap.
(define_insn "*lt0_disi"
[(set (match_operand:DI 0 "gpc_reg_operand" "=r")
(lt:DI (match_operand:SI 1 "gpc_reg_operand" "r")
(const_int 0)))]
"TARGET_POWERPC64"
"rlwinm %0,%1,1,31,31"
[(set_attr "type" "shift")])
; Two forms for insert (the two arms of the IOR are not canonicalized,
; both are an AND so are the same precedence).