]> git.ipfire.org Git - thirdparty/gcc.git/commit
rs6000/test: Adjust pr104992.c with vect_int_mod [PR106516]
authorKewen Lin <linkw@linux.ibm.com>
Fri, 30 Sep 2022 12:16:36 +0000 (07:16 -0500)
committerKewen Lin <linkw@linux.ibm.com>
Fri, 30 Sep 2022 12:16:36 +0000 (07:16 -0500)
commitc28957176dc0adff6e4b8fcbe6b91f5b82900563
treea67a5cb1b9221ab53cfd86c91fb1d8db999790a9
parentc09663eabfb84ac56ddd8d44abcab3f4902c83bd
rs6000/test: Adjust pr104992.c with vect_int_mod [PR106516]

As PR106516 shows, we can get unexpected gimple outputs for
function thud on some target which supports modulus operation
for vector int.  This patch introduces one effective target
vect_int_mod for it, then adjusts the test case with it.

PR testsuite/106516

gcc/testsuite/ChangeLog:

* gcc.dg/pr104992.c: Adjust with vect_int_mod.
* lib/target-supports.exp (check_effective_target_vect_int_mod): New
effective target.
gcc/testsuite/gcc.dg/pr104992.c
gcc/testsuite/lib/target-supports.exp