Hexagon (target/hexagon) fix bug in fLSBNEW*
authorTaylor Simpson <tsimpson@quicinc.com>
Tue, 1 Jun 2021 23:19:41 +0000 (18:19 -0500)
committerTaylor Simpson <tsimpson@quicinc.com>
Tue, 29 Jun 2021 16:32:50 +0000 (11:32 -0500)
commit07c0f65385b94bbc8efc398ff82edd05953e39c2
tree177e93c33990a7724c66c350a930dec62fb9e52e
parent13d5f87cc3b94bfccc501142df4a7b12fee3a6e7
Hexagon (target/hexagon) fix bug in fLSBNEW*

Change fLSBNEW/fLSBNEW0/fLSBNEW1 from copy to "x & 1"
Remove gen_logical_not function
Clean up fLSBNEWNOT to use andi-1 followed by xori-1

Test cases added to tests/tcg/hexagon/misc.c

Signed-off-by: Taylor Simpson <tsimpson@quicinc.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <1622589584-22571-2-git-send-email-tsimpson@quicinc.com>
target/hexagon/macros.h
target/hexagon/op_helper.c
tests/tcg/hexagon/misc.c