Skip to content
Snippets Groups Projects
Commit 1dd175a0 authored by Raphael Moreira Zinsly's avatar Raphael Moreira Zinsly Committed by Jeff Law
Browse files

[PATCH 2/2 v2] RISC-V: Constant synthesis of inverted halves

Changes since v1:
	- Fix synthesis-15.c.

-- >8 --

Improve handling of constants where the high half can be constructed by
inverting the lower half.

gcc/ChangeLog:
	* config/riscv/riscv.cc (riscv_build_integer): Detect constants
	were the higher half is the lower half inverted.

gcc/testsuite/ChangeLog:
	* gcc.target/riscv/synthesis-15.c: New test.
parent ecdb9f59
No related branches found
No related tags found
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