diff mbox series

[08/11] mips: Update unexpected empty split condition

Message ID be343b6b2648e93433e489b9a95295a3aa0cb0de.1622179420.git.linkw@linux.ibm.com
State New
Headers show
Series Fix up some unexpected empty split conditions | expand

Commit Message

Kewen.Lin June 2, 2021, 5:04 a.m. UTC
gcc/ChangeLog:

	* config/mips/mips.md (<anonymous>, bswapsi2, bswapdi2): Fix empty
	split condition.
---
 gcc/config/mips/mips.md | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

Comments

Jeff Law June 2, 2021, 5:11 p.m. UTC | #1
On 6/1/2021 11:04 PM, Kewen Lin via Gcc-patches wrote:
> gcc/ChangeLog:
>
> 	* config/mips/mips.md (<anonymous>, bswapsi2, bswapdi2): Fix empty
> 	split condition.
The mips, or1k and sparc changes are fine.  They're all preserving 
existing behavior.


jeff
diff mbox series

Patch

diff --git a/gcc/config/mips/mips.md b/gcc/config/mips/mips.md
index eef3cfd50a8..455b9b802f6 100644
--- a/gcc/config/mips/mips.md
+++ b/gcc/config/mips/mips.md
@@ -5835,7 +5835,7 @@  (define_insn_and_split ""
 		     (match_operand:SI 2 "immediate_operand" "I")))]
   "TARGET_MIPS16"
   "#"
-  ""
+  "&& 1"
   [(set (match_dup 0) (match_dup 1))
    (set (match_dup 0) (lshiftrt:SI (match_dup 0) (match_dup 2)))]
   ""
@@ -5871,7 +5871,7 @@  (define_insn_and_split "bswapsi2"
 	(bswap:SI (match_operand:SI 1 "register_operand" "d")))]
   "ISA_HAS_WSBH && ISA_HAS_ROR"
   "#"
-  ""
+  "&& 1"
   [(set (match_dup 0) (unspec:SI [(match_dup 1)] UNSPEC_WSBH))
    (set (match_dup 0) (rotatert:SI (match_dup 0) (const_int 16)))]
   ""
@@ -5882,7 +5882,7 @@  (define_insn_and_split "bswapdi2"
 	(bswap:DI (match_operand:DI 1 "register_operand" "d")))]
   "TARGET_64BIT && ISA_HAS_WSBH"
   "#"
-  ""
+  "&& 1"
   [(set (match_dup 0) (unspec:DI [(match_dup 1)] UNSPEC_DSBH))
    (set (match_dup 0) (unspec:DI [(match_dup 0)] UNSPEC_DSHD))]
   ""