r235623 - in /trunk/gcc: ChangeLog config/arc/a...
claziss@gcc.gnu.org
claziss@gcc.gnu.org
Fri Apr 29 08:39:00 GMT 2016
Author: claziss
Date: Fri Apr 29 08:39:22 2016
New Revision: 235623
URL: https://gcc.gnu.org/viewcvs?rev=235623&root=gcc&view=rev
Log:
[ARC] Fix unwanted match for sign extend 16-bit constant.
The combine pass may conclude umulhisi3_imm pattern can accept also sign
extended 16-bit constants. This patch prohibits the combine in considering
this pattern as suitable.
gcc/
2016-04-29 Claudiu Zissulescu <claziss@synopsys.com>
* config/arc/arc.h (UNSIGNED_INT12, UNSIGNED_INT16): Define.
* config/arc/arc.md (umulhisi3): Use arc_short_operand predicate.
(umulhisi3_imm): Update predicates and constraint letters.
(umulhisi3_reg): Declare instruction as commutative.
* config/arc/constraints.md (J12, J16): New constraints.
* config/arc/predicates.md (short_unsigned_const_operand): New
predicate.
(arc_short_operand): Likewise.
* testsuite/gcc.target/arc/umulsihi3_z.c: New file.
Added:
trunk/gcc/testsuite/gcc.target/arc/umulsihi3_z.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/config/arc/arc.h
trunk/gcc/config/arc/arc.md
trunk/gcc/config/arc/constraints.md
trunk/gcc/config/arc/predicates.md
More information about the Gcc-cvs
mailing list