OSDN Git Service

Hexagon (target/hexagon) assignment to c4 should wait until packet commit
authorTaylor Simpson <tsimpson@quicinc.com>
Thu, 10 Feb 2022 02:15:56 +0000 (18:15 -0800)
committerTaylor Simpson <tsimpson@quicinc.com>
Sat, 12 Mar 2022 17:14:22 +0000 (09:14 -0800)
commitc0d86060f033fc8d591b0163e380ff6cd04f213a
tree2cdcbf0c3bc5425e35458d995a8362a112e23db3
parent3977ba3078503fca0f182aa8a39fad2388f43cb1
Hexagon (target/hexagon) assignment to c4 should wait until packet commit

On Hexagon, c4 is an alias for predicate registers P3:0.  If we assign to
c4 inside a packet with reads from predicate registers, the predicate
reads should get the old values.

Test case added to tests/tcg/hexagon/preg_alias.c

Co-authored-by: Michael Lambert <mlambert@cuicinc.com>
Signed-off-by: Taylor Simpson <tsimpson@quicinc.com>
Message-Id: <20220210021556.9217-13-tsimpson@quicinc.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
target/hexagon/genptr.c
tests/tcg/hexagon/preg_alias.c