From 375ffbe6225d1ae36fda78655daf7edc69b0ad66 Mon Sep 17 00:00:00 2001 From: Eric Botcazou Date: Tue, 1 Apr 2003 22:45:19 +0200 Subject: [PATCH] sparc.c (input_operand): Accept bare CONSTANT_P_RTX operands. * config/sparc/sparc.c (input_operand): Accept bare CONSTANT_P_RTX operands. From-SVN: r65143 --- gcc/ChangeLog | 5 +++++ gcc/config/sparc/sparc.c | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 0de4ad0cad2..9410ca539a1 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2003-04-01 Eric Botcazou + + * config/sparc/sparc.c (input_operand): Accept bare + CONSTANT_P_RTX operands. + 2003-04-01 Zdenek Dvorak * gcse.c (struct ls_expr): Added pattern_regs field. diff --git a/gcc/config/sparc/sparc.c b/gcc/config/sparc/sparc.c index bb84f45cb09..3d99ac9ef1a 100644 --- a/gcc/config/sparc/sparc.c +++ b/gcc/config/sparc/sparc.c @@ -1297,8 +1297,8 @@ input_operand (op, mode) if (mode != VOIDmode && GET_MODE (op) != VOIDmode && mode != GET_MODE (op)) return 0; - /* Only a tiny bit of handling for CONSTANT_P_RTX is necessary. */ - if (GET_CODE (op) == CONST && GET_CODE (XEXP (op, 0)) == CONSTANT_P_RTX) + /* Accept CONSTANT_P_RTX, since it will be gone by CSE1 and result in 0/1. */ + if (GET_CODE (op) == CONSTANT_P_RTX) return 1; /* Allow any one instruction integer constant, and all CONST_INT