]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Darwin, PPC, testsuite, backport fix for pr80125.
authorIain Sandoe <iain@sandoe.co.uk>
Sun, 4 Aug 2019 12:46:00 +0000 (12:46 +0000)
committerIain Sandoe <iains@gcc.gnu.org>
Sun, 4 Aug 2019 12:46:00 +0000 (12:46 +0000)
Darwin (unlike most of the members of the PowerPC port family)
defaults to signed chars, so the test was failing to compile with
a "mismatched parameters" error.

2019-08-04  Iain Sandoe  <iain@sandoe.co.uk>

Backport from mainline.
2019-06-23  Iain Sandoe  <iain@sandoe.co.uk>

* gcc.target/powerpc/pr80125.c (foo): Use an unsigned char
vector explicitly for the vec_perm.

From-SVN: r274084

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/powerpc/pr80125.c

index ad5924183107c7307f038934ad6108c03837cb40..1bfa1de326858816bd1bd2e688a4b7f05c8296dc 100644 (file)
@@ -1,3 +1,11 @@
+2019-08-04  Iain Sandoe  <iain@sandoe.co.uk>
+
+       Backport from mainline.
+       2019-06-23  Iain Sandoe  <iain@sandoe.co.uk>
+
+       * gcc.target/powerpc/pr80125.c (foo): Use an unsigned char
+       vector explicitly for the vec_perm.
+
 2019-08-04  Iain Sandoe  <iain@sandoe.co.uk>
 
        Backport from mainline.
index 494a6e673b1372e413c6812b626187b49178f2ef..366602d966855e846c39338a0fba255990252c27 100644 (file)
@@ -16,7 +16,7 @@ foo ()
   vector int k = vec_mergel (i, j);
   vector int l = vec_sl (k, c);
   vector int m = vec_sl (l, d);
-  vector char o;
+  vector unsigned char o;
   vector int p = vec_perm (m, n, o);
   e = vec_sra (p, c);
   vec_st (e, 0, a);