Skip to content
Snippets Groups Projects
Commit aaa5a531 authored by Claudiu Zissulescu's avatar Claudiu Zissulescu
Browse files

arc: Refurbish add.f combiner patterns


Refurbish add compare patterns: use 'r' constraint, fix identation,
and fix pattern to match 'if (a+b) { ... }' constructions.

gcc/

	* config/arc/arc.cc (arc_select_cc_mode): Match NEG code with
	the first operand.
	* config/arc/arc.md (addsi_compare): Make pattern canonical.
	(addsi_compare_2): Fix identation, constraint letters.
	(addsi_compare_3): Likewise.

gcc/testsuite/

	* gcc.target/arc/add_f-combine.c: New test.

Signed-off-by: default avatarClaudiu Zissulescu <claziss@gmail.com>
parent 4ecb9b03
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment