[PATCH, MIPS] Fix *extzv_trunc<mode>_exts
Adam Nemet
anemet@caviumnetworks.com
Thu May 21 07:23:00 GMT 2009
This is an oversight from the time I initially added Octeon support. The DI
mode instance of this template makes no sense so I am removing it.
Bootstrapped and tested with mips64octeon-linux.
OK?
Adam
* config/mips/mips.md (*extzv_trunc<mode>_exts): Turn the template
into a regular pattern and rename it ...
(*extzv_truncsi_exts): ... to this.
Index: mips.md
===================================================================
--- mips.md (revision 147538)
+++ mips.md (working copy)
@@ -3462,16 +3497,16 @@ (define_insn "extzv<mode>"
[(set_attr "type" "arith")
(set_attr "mode" "<MODE>")])
-(define_insn "*extzv_trunc<mode>_exts"
- [(set (match_operand:GPR 0 "register_operand" "=d")
- (truncate:GPR
+(define_insn "*extzv_truncsi_exts"
+ [(set (match_operand:SI 0 "register_operand" "=d")
+ (truncate:SI
(zero_extract:DI (match_operand:DI 1 "register_operand" "d")
(match_operand 2 "const_int_operand" "")
(match_operand 3 "const_int_operand" ""))))]
"ISA_HAS_EXTS && TARGET_64BIT && IN_RANGE (INTVAL (operands[2]), 32, 63)"
"exts\t%0,%1,%3,31"
[(set_attr "type" "arith")
- (set_attr "mode" "<MODE>")])
+ (set_attr "mode" "SI")])
(define_expand "insv"
More information about the Gcc-patches
mailing list