From 855b85b4e705df7f0bf893b00f4e8c10a2c6bcec Mon Sep 17 00:00:00 2001 From: Bill Schmidt Date: Tue, 15 Oct 2019 12:44:25 +0000 Subject: [PATCH] re PR testsuite/92093 (New test case gcc.target/powerpc/pr91275.c from r276410 fails on BE) 2019-10-15 Bill Schmidt PR target/92093 * gcc.target/powerpc/pr91275.c: Fix type and endian issues. From-SVN: r276999 --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/gcc.target/powerpc/pr91275.c | 7 ++++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 56c5e483412..d18f5b4a3ad 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2019-10-15 Bill Schmidt + + PR target/92093 + * gcc.target/powerpc/pr91275.c: Fix type and endian issues. + 2019-10-15 Richard Biener PR testsuite/92048 diff --git a/gcc/testsuite/gcc.target/powerpc/pr91275.c b/gcc/testsuite/gcc.target/powerpc/pr91275.c index b23d75be29b..cd461158af7 100644 --- a/gcc/testsuite/gcc.target/powerpc/pr91275.c +++ b/gcc/testsuite/gcc.target/powerpc/pr91275.c @@ -10,12 +10,17 @@ int main() { const unsigned long long r0l = 0x8e7dfceac070e3a0; vector unsigned long long r0 = (vector unsigned long long) {r0l, 0}, v; const vector unsigned long long pd - = (vector unsigned long) {0xc2LLU << 56, 0}; + = (vector unsigned long long) {0xc2LLU << 56, 0}; v = __builtin_crypto_vpmsumd ((vector unsigned long long) {r0[0], 0}, pd); +#if __LITTLE_ENDIAN__ if (v[0] != 0x4000000000000000 || v[1] != 0x65bd7ab605a4a8ff) __builtin_abort (); +#else + if (v[1] != 0x4000000000000000 || v[0] != 0x65bd7ab605a4a8ff) + __builtin_abort (); +#endif return 0; } -- 2.30.2