summaryrefslogtreecommitdiff
path: root/gcc/genrecog.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/genrecog.c')
-rw-r--r--gcc/genrecog.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/genrecog.c b/gcc/genrecog.c
index c727fec97c5..6dc10840c74 100644
--- a/gcc/genrecog.c
+++ b/gcc/genrecog.c
@@ -2522,7 +2522,7 @@ make_insn_sequence (rtx insn, enum routine_type type)
{
rtx y = XVECEXP (x, 0, i - 1);
if (GET_CODE (y) != CLOBBER
- || (GET_CODE (XEXP (y, 0)) != REG
+ || (!REG_P (XEXP (y, 0))
&& GET_CODE (XEXP (y, 0)) != MATCH_SCRATCH))
break;
}