]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
[Darwin, PPC, testsuite] Fix pr80125 testcase for Darwin.
authoriains <iains@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 23 Jun 2019 20:12:22 +0000 (20:12 +0000)
committeriains <iains@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 23 Jun 2019 20:12:22 +0000 (20:12 +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-06-23  Iain Sandoe  <iain@sandoe.co.uk>

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

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@272605 138bc75d-0d04-0410-961f-82ee72b054a4

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

index 7074bf83b1b072468a5a21756bad20821d8cc046..87b0f5867d972fdf9ced3a252a7bb31d9e0f15f5 100644 (file)
@@ -1,3 +1,8 @@
+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-06-23  Iain Sandoe  <iain@sandoe.co.uk>
 
        * gcc.target/powerpc/builtins-1.c: Account for Darwin's use of
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);