From 53d172975f269138ba227f6d4560950265c36df8 Mon Sep 17 00:00:00 2001 From: Andrew Pinski Date: Sat, 25 Jan 2020 05:20:38 +0000 Subject: [PATCH] Fix gcc.target/aarch64/vec_zeroextend.c for big-endian vec_zeroextend.c fails on big-endian as it assumes 0 index is the lower part but it is not for big-endian case. This fixes the problem by using the correct index for the lower part for big-endian. Committed as obvious after a test on aarch64_be-linux-gnu. ChangeLog: * gcc.target/aarch64/vec_zeroextend.c: Fix for big-endian. --- gcc/testsuite/ChangeLog | 4 ++++ gcc/testsuite/gcc.target/aarch64/vec_zeroextend.c | 8 ++++++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index a8d517ad8a3..ecf0a664ed8 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2020-01-25 Andrew Pinski + + * gcc.target/aarch64/vec_zeroextend.c: Fix for big-endian. + 2020-01-24 Jeff Law