aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRichard Ball <richard.ball@arm.com>2024-10-10 19:16:39 +0100
committerRichard Ball <richard.ball@arm.com>2024-10-10 19:16:39 +0100
commita17a9bdcb3f749b895abf1fbf4f62859df9e8184 (patch)
treeba195e78b27d767c99a42d5dd8740dce7243e2b1 /gcc
parent85bee4f77b1b0ebe68b3efe0c356b7d5fb006c4d (diff)
downloadgcc-a17a9bdcb3f749b895abf1fbf4f62859df9e8184.zip
gcc-a17a9bdcb3f749b895abf1fbf4f62859df9e8184.tar.gz
gcc-a17a9bdcb3f749b895abf1fbf4f62859df9e8184.tar.bz2
aarch64: Alter pr116258.c test to correct for big endian.
The test at pr116258.c fails on big endian targets, this is because the test checks that the index of a floating point multiply is 0, which is correct only for little endian. gcc/testsuite/ChangeLog: PR tree-optimization/116258 * gcc.target/aarch64/pr116258.c: Alter test to add big-endian support.
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/gcc.target/aarch64/pr116258.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/testsuite/gcc.target/aarch64/pr116258.c b/gcc/testsuite/gcc.target/aarch64/pr116258.c
index e727ad4..5b63de2 100644
--- a/gcc/testsuite/gcc.target/aarch64/pr116258.c
+++ b/gcc/testsuite/gcc.target/aarch64/pr116258.c
@@ -12,6 +12,7 @@
return (x + h(t));
}
-/* { dg-final { scan-assembler-times "\\\[0\\\]" 1 } } */
+/* { dg-final { scan-assembler-times "\\\[0\\\]" 1 { target { aarch64_little_endian } } } } */
+/* { dg-final { scan-assembler-times "\\\[3\\\]" 1 { target { aarch64_big_endian } } } } */
/* { dg-final { scan-assembler-not "dup\t" } } */
/* { dg-final { scan-assembler-not "ins\t" } } */