diff options
author | Bill Schmidt <wschmidt@linux.ibm.com> | 2019-10-17 15:32:40 +0000 |
---|---|---|
committer | Bill Schmidt <wschmidt@linux.ibm.com> | 2019-10-17 15:32:40 +0000 |
commit | 708873fc59a5a9a1b1ffbb0ecdb94a5716602625 (patch) | |
tree | e9707a613489a7e4b673129e30fd9d9917b772e6 | |
parent | a6092f963cec2885bfa21441c266235743b4e297 (diff) |
2019-10-17 Bill Schmidt <wschmidt@linux.ibm.com>
Backport from mainline
2019-10-15 Bill Schmidt <wschmidt@linux.ibm.com>
PR target/92093
* gcc.target/powerpc/pr91275.c: Fix type and endian issues.
git-svn-id: https://gcc.gnu.org/svn/gcc/branches/gcc-9-branch@277117 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r-- | gcc/testsuite/ChangeLog | 8 | ||||
-rw-r--r-- | gcc/testsuite/gcc.target/powerpc/pr91275.c | 7 |
2 files changed, 14 insertions, 1 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index ab2f9044bfe..9ee59f0c43e 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,11 @@ +2019-10-17 Bill Schmidt <wschmidt@linux.ibm.com> + + Backport from mainline + 2019-10-15 Bill Schmidt <wschmidt@linux.ibm.com> + + PR target/92093 + * gcc.target/powerpc/pr91275.c: Fix type and endian issues. + 2019-10-16 Richard Biener <rguenther@suse.de> Backport from mainline 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; } |