From: Pat Haugen Date: Wed, 1 Mar 2017 18:09:51 +0000 (+0000) Subject: pr79544.c: Add test for vec_vsrad and fix up scan string. X-Git-Tag: upstream/12.2.0~40922 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f5ef6bfc3049187c0d84e12ed676b1b74207a693;p=platform%2Fupstream%2Fgcc.git pr79544.c: Add test for vec_vsrad and fix up scan string. * gcc.target/powerpc/pr79544.c: Add test for vec_vsrad and fix up scan string. From-SVN: r245812 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 3408e1c..25b59da 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2017-03-01 Pat Haugen + + * gcc.target/powerpc/pr79544.c: Add test for vec_vsrad and fix up + scan string. + + 2017-03-01 Kelvin Nilsen PR target/79395 diff --git a/gcc/testsuite/gcc.target/powerpc/pr79544.c b/gcc/testsuite/gcc.target/powerpc/pr79544.c index 336c6d9..1016fbd 100644 --- a/gcc/testsuite/gcc.target/powerpc/pr79544.c +++ b/gcc/testsuite/gcc.target/powerpc/pr79544.c @@ -11,5 +11,11 @@ test_sra (vector unsigned long long x, vector unsigned long long y) return vec_sra (x, y); } -/* { dg-final { scan-assembler "vsrad" } } */ +vector unsigned long long +test_vsrad (vector unsigned long long x, vector unsigned long long y) +{ + return vec_vsrad (x, y); +} + +/* { dg-final { scan-assembler-times {\mvsrad\M} 2 } } */