[committed] Fix gcc.target/aarch64/sve/sel_3.c for big-endian targets
diff mbox series

Message ID mptiml3smk0.fsf@arm.com
State New
Headers show
  • [committed] Fix gcc.target/aarch64/sve/sel_3.c for big-endian targets
Related show

Commit Message

Richard Sandiford Jan. 22, 2020, 12:27 p.m. UTC
A pasto in this test meant that we needed extra reverse instructions
for big-endian targets.

Tested on aarch64-linux-gnu and aarch64_be-elf, applied.


2020-01-22  Richard Sandiford  <richard.sandiford@arm.com>

	* gcc.target/aarch64/sve/sel_3.c (permute_vnx4sf): Take __SVFloat32_t
	rather than __SVFloat16_t
 gcc/testsuite/gcc.target/aarch64/sve/sel_3.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff mbox series

diff --git a/gcc/testsuite/gcc.target/aarch64/sve/sel_3.c b/gcc/testsuite/gcc.target/aarch64/sve/sel_3.c
index 0de1fae6d03..36ec15b7da6 100644
--- a/gcc/testsuite/gcc.target/aarch64/sve/sel_3.c
+++ b/gcc/testsuite/gcc.target/aarch64/sve/sel_3.c
@@ -82,7 +82,7 @@  permute_vnx8hf (__SVFloat16_t x, __SVFloat16_t y)
 **	ret
-permute_vnx4sf (__SVFloat16_t x, __SVFloat16_t y)
+permute_vnx4sf (__SVFloat32_t x, __SVFloat32_t y)
   return __builtin_shuffle ((vnx4sf) x, (vnx4sf) y, (vnx4si) MASK_8);