This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH][ARM][stage-1] Use correct scheduling type for rbit instruction
- From: Kyrill Tkachov <kyrylo dot tkachov at arm dot com>
- To: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Cc: Ramana Radhakrishnan <ramana dot radhakrishnan at arm dot com>, Richard Earnshaw <Richard dot Earnshaw at arm dot com>
- Date: Wed, 04 Mar 2015 11:20:07 +0000
- Subject: [PATCH][ARM][stage-1] Use correct scheduling type for rbit instruction
- Authentication-results: sourceware.org; auth=none
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 --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" "")