From 5fe352455b80c6a998607cd80b7c9452484718da Mon Sep 17 00:00:00 2001 From: Iain Sandoe Date: Sun, 23 Jun 2019 20:12:22 +0000 Subject: [PATCH] [Darwin, PPC, testsuite] Fix pr80125 testcase for Darwin. 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 * gcc.target/powerpc/pr80125.c (foo): Use an unsigned char vector explicitly for the vec_perm. From-SVN: r272605 --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/gcc.target/powerpc/pr80125.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 7074bf83b1b..87b0f5867d9 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2019-06-23 Iain Sandoe + + * gcc.target/powerpc/pr80125.c (foo): Use an unsigned char + vector explicitly for the vec_perm. + 2019-06-23 Iain Sandoe * gcc.target/powerpc/builtins-1.c: Account for Darwin's use of diff --git a/gcc/testsuite/gcc.target/powerpc/pr80125.c b/gcc/testsuite/gcc.target/powerpc/pr80125.c index 494a6e673b1..366602d9668 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); -- 2.30.2