Thanks to Vincent and Adrien for both reporting the bug and providing the solution. I've converted their manual testing into executable tests.
r~ Richard Henderson (3): tests/tcg/aarch64: Fix compilation parameters for pauth-% tests/tcg/aarch64: Add pauth-3 tests/tcg/aarch64: Add pauth-4 Vincent Dehors (1): target/arm: Fix PAuth sbox functions target/arm/pauth_helper.c | 4 +-- tests/tcg/aarch64/pauth-1.c | 2 -- tests/tcg/aarch64/pauth-2.c | 2 -- tests/tcg/aarch64/pauth-4.c | 25 ++++++++++++++ tests/tcg/aarch64/system/pauth-3.c | 40 +++++++++++++++++++++++ tests/tcg/aarch64/Makefile.softmmu-target | 5 ++- tests/tcg/aarch64/Makefile.target | 3 +- 7 files changed, 73 insertions(+), 8 deletions(-) create mode 100644 tests/tcg/aarch64/pauth-4.c create mode 100644 tests/tcg/aarch64/system/pauth-3.c -- 2.20.1