diff mbox series

[Darwin,PPC,testsuite,committed] Fix pr80125 testcase for Darwin.

Message ID 6AB6F56B-8863-4A43-BB83-72679E181546@sandoe.co.uk
State New
Headers show
Series [Darwin,PPC,testsuite,committed] Fix pr80125 testcase for Darwin. | expand

Commit Message

Iain Sandoe June 23, 2019, 8:14 p.m. UTC
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.

tested on powerpc-darwin9, powerpc-linux-gnu
applied to mainline
thanks
Iain

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.
diff mbox series

Patch

diff --git a/gcc/testsuite/gcc.target/powerpc/pr80125.c b/gcc/testsuite/gcc.target/powerpc/pr80125.c
index 494a6e6..366602d 100644
--- a/gcc/testsuite/gcc.target/powerpc/pr80125.c
+++ b/gcc/testsuite/gcc.target/powerpc/pr80125.c
@@ -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);