]> Cypherpunks.ru repositories - gostls13.git/commit
codegen: check for PPC64 ISEL in condmove tests
authorPaul E. Murphy <murp@ibm.com>
Mon, 24 Oct 2022 22:12:57 +0000 (17:12 -0500)
committerPaul Murphy <murp@ibm.com>
Mon, 7 Nov 2022 15:19:20 +0000 (15:19 +0000)
commit390abbbbf1018f9bb814baf6ab38e31efaf58666
tree518b289186f9ed64f81ae5eb5911c46c5429be92
parent8ec1c9e2850c642e3ebd0ea3a9749dd13cd4545a
codegen: check for PPC64 ISEL in condmove tests

ISEL is roughly equivalent to CMOV on PPC64. Verify ISEL generation
in all reasonable cases.

Note "ISEL test x y z" is the same as "ISEL !test y x z". test is
always one of LT (0), GT (1), EQ (2), SO (3). Sometimes x and y are
swapped if GE/LE/NE is desired.

Change-Id: Ie1bf029224064e004d855099731fe5e8d05aa990
Reviewed-on: https://go-review.googlesource.com/c/go/+/445215
Reviewed-by: Lynn Boger <laboger@linux.vnet.ibm.com>
Reviewed-by: Bryan Mills <bcmills@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Paul Murphy <murp@ibm.com>
Reviewed-by: Than McIntosh <thanm@google.com>
test/codegen/condmove.go