]> Cypherpunks.ru repositories - gostls13.git/commit
cmd/asm: on PPC64, allow ISEL to accept a CR bit arg
authorPaul E. Murphy <murp@ibm.com>
Tue, 26 Apr 2022 15:32:43 +0000 (10:32 -0500)
committerPaul Murphy <murp@ibm.com>
Wed, 4 May 2022 21:03:31 +0000 (21:03 +0000)
commit2f23364340750fc96afc38cd28c71117f916f23b
treec81f3bcc3234a27b7dc36b143ea747ee5a2700e9
parente1e056fa6a2f788a15e17d55b7953712053fd760
cmd/asm: on PPC64, allow ISEL to accept a CR bit arg

Using the CR bit register arguments makes it more easy to
understand which condition and CR field is being tested when
using ISEL.

Likewise, cleanup optab setup for ISEL. ISEL should only
accept a 5 bit unsigned constant (C_U5CON), and C_ZCON
arguments are accepted by a C_U5CON optab arg.

Change-Id: I2495dbe3595dd3f16c510b3492a88133af9f7e1a
Reviewed-on: https://go-review.googlesource.com/c/go/+/402375
Reviewed-by: Lynn Boger <laboger@linux.vnet.ibm.com>
Run-TryBot: Paul Murphy <murp@ibm.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
src/cmd/asm/internal/asm/testdata/ppc64.s
src/cmd/internal/obj/ppc64/asm9.go