diff mbox

[ARM,stage-1] Use correct scheduling type for rbit instruction

Message ID 54F6EA67.8020201@arm.com
State New
Headers show

Commit Message

Kyrylo Tkachov March 4, 2015, 11:20 a.m. UTC
Hi all,

This obvious patch changes the type of the rbit instruction to 'rbit' 
rather than clz.

Tested arm-none-linux-gnueabihf.

P.S. The pipeline descriptions we have handle rbit, except 
marvell-pj4.md but that one doesn't handle the current 'clz' type 
either, so it will have not have a codegen impact.

Ok for next stage 1?

Thanks,
Kyrill

2015-03-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>

     * config/arm/arm.md (rbitsi2): Change type attr to 'rbit'.
diff mbox

Patch

diff --git a/gcc/config/arm/arm.md b/gcc/config/arm/arm.md
index 018e9c6..abe2b4c 100644
--- a/gcc/config/arm/arm.md
+++ b/gcc/config/arm/arm.md
@@ -10821,7 +10821,7 @@  (define_insn "rbitsi2"
   "rbit%?\\t%0, %1"
   [(set_attr "predicable" "yes")
    (set_attr "predicable_short_it" "no")
-   (set_attr "type" "clz")])
+   (set_attr "type" "rbit")])
 
 (define_expand "ctzsi2"
  [(set (match_operand:SI           0 "s_register_operand" "")