From f5ef6bfc3049187c0d84e12ed676b1b74207a693 Mon Sep 17 00:00:00 2001 From: Pat Haugen Date: Wed, 1 Mar 2017 18:09:51 +0000 Subject: [PATCH] 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 --- gcc/testsuite/ChangeLog | 6 ++++++ gcc/testsuite/gcc.target/powerpc/pr79544.c | 8 +++++++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 3408e1cdd7b..25b59da1a76 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 336c6d91a0c..1016fbdb482 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 } } */ -- 2.30.2