Since I fixed both vec_sra and vec_vsrad, the testcase should be testing both. Committed as obvious.
-Pat 2017-03-01 Pat Haugen <pthau...@us.ibm.com> * gcc.target/powerpc/pr79544.c: Add test for vec_vsrad and fix up scan string. Index: gcc.target/powerpc/pr79544.c =================================================================== --- gcc.target/powerpc/pr79544.c (revision 245811) +++ gcc.target/powerpc/pr79544.c (working copy) @@ -11,5 +11,11 @@ test_sra (vector unsigned long long x, v 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 } } */