mips.mips.md (zero_extendsidi2): Do not allow SP to appear in operands[1] if it is a MEM and TARGET_MIPS16 is active.
* config/mips.mips.md (zero_extendsidi2): Do not allow SP to appear in operands[1] if it is a MEM and TARGET_MIPS16 is active. (zero_extendsidi2_dext): Likewise. From-SVN: r246924
This commit is contained in:
parent
67630cef4d
commit
1f33abd75d
|
@ -1,3 +1,9 @@
|
|||
2017-04-13 Jeff Law <law@redhat.com>
|
||||
|
||||
* config/mips.mips.md (zero_extendsidi2): Do not allow SP to appear
|
||||
in operands[1] if it is a MEM and TARGET_MIPS16 is active.
|
||||
(zero_extendsidi2_dext): Likewise.
|
||||
|
||||
2017-04-13 Jakub Jelinek <jakub@redhat.com>
|
||||
|
||||
PR sanitizer/80403
|
||||
|
|
|
@ -3493,7 +3493,10 @@
|
|||
(define_insn_and_split "*zero_extendsidi2"
|
||||
[(set (match_operand:DI 0 "register_operand" "=d,d")
|
||||
(zero_extend:DI (match_operand:SI 1 "nonimmediate_operand" "d,W")))]
|
||||
"TARGET_64BIT && !ISA_HAS_EXT_INS"
|
||||
"TARGET_64BIT && !ISA_HAS_EXT_INS
|
||||
&& !(TARGET_MIPS16
|
||||
&& MEM_P (operands[1])
|
||||
&& reg_mentioned_p (stack_pointer_rtx, operands[1]))"
|
||||
"@
|
||||
#
|
||||
lwu\t%0,%1"
|
||||
|
@ -3509,7 +3512,10 @@
|
|||
(define_insn "*zero_extendsidi2_dext"
|
||||
[(set (match_operand:DI 0 "register_operand" "=d,d")
|
||||
(zero_extend:DI (match_operand:SI 1 "nonimmediate_operand" "d,W")))]
|
||||
"TARGET_64BIT && ISA_HAS_EXT_INS"
|
||||
"TARGET_64BIT && ISA_HAS_EXT_INS
|
||||
&& !(TARGET_MIPS16
|
||||
&& MEM_P (operands[1])
|
||||
&& reg_mentioned_p (stack_pointer_rtx, operands[1]))"
|
||||
"@
|
||||
dext\t%0,%1,0,32
|
||||
lwu\t%0,%1"
|
||||
|
|
Loading…
Reference in New Issue