Skip to content
Snippets Groups Projects
Commit cdca2387 authored by Kewen Lin's avatar Kewen Lin Committed by Kewen Lin
Browse files

testsuite, rs6000: Replace powerpc_vsx_ok with powerpc_vsx

Following up the previous r15-886, this patch to clean up
the remaining powerpc_vsx_ok which actually should use
powerpc_vsx instead.

	PR testsuite/114842

gcc/testsuite/ChangeLog:

	* gcc.target/powerpc/error-1.c: Replace powerpc_vsx_ok check with
	powerpc_vsx.
	* gcc.target/powerpc/warn-2.c: Likewise.
	* gcc.target/powerpc/fold-vec-logical-ors-longlong.c: Likewise.
	* gcc.target/powerpc/ppc-fortran/pr80108-1.f90: Replace powerpc_vsx_ok
	check with powerpc_vsx and remove useless -mfloat128.
	* gcc.target/powerpc/pragma_power8.c: Replace powerpc_vsx_ok check with
	powerpc_vsx.
parent 4ddd886f
No related branches found
No related tags found
No related merge requests found
/* { dg-do compile { target { powerpc*-*-* } } } */
/* { dg-skip-if "" { powerpc*-*-darwin* } } */
/* { dg-require-effective-target powerpc_vsx_ok } */
/* { dg-require-effective-target powerpc_vsx } */
/* { dg-options "-O -mvsx -mno-altivec" } */
/* { dg-error "'-mvsx' and '-mno-altivec' are incompatible" "" { target *-*-* } 0 } */
......
......@@ -4,7 +4,7 @@
/* { dg-do compile } */
/* { dg-options "-mvsx -O2" } */
/* { dg-additional-options "-mdejagnu-cpu=power8" { target { ! has_arch_pwr8 } } } */
/* { dg-require-effective-target powerpc_vsx_ok } */
/* { dg-require-effective-target powerpc_vsx } */
#include <altivec.h>
......@@ -154,7 +154,7 @@ test6_nor (vector unsigned long long x, vector unsigned long long y)
// The number of xxlor instructions generated varies between 6 and 24 for
// older systems (power6,power7), as well as for 32-bit versus 64-bit targets.
// For simplicity, this test now only targets "powerpc_vsx_ok" environments
// For simplicity, this test now only targets "powerpc_vsx" environments
// where the answer is expected to be 6.
/* { dg-final { scan-assembler-times {\mxxlor\M} 6 } } */
......
! Originally contributed by Tobias Burnas.
! { dg-do compile { target { powerpc*-*-* } } }
! { dg-require-effective-target powerpc_vsx_ok }
! { dg-options "-mdejagnu-cpu=405 -mpower9-minmax -mfloat128" }
! { dg-require-effective-target powerpc_vsx }
! { dg-options "-mdejagnu-cpu=405 -mpower9-minmax" }
! { dg-excess-errors "expect error due to conflicting target options" }
! Since the error message is not associated with a particular line
! number, we cannot use the dg-error directive and cannot specify a
......
/* { dg-do compile } */
/* { dg-require-effective-target lp64 } */
/* { dg-require-effective-target powerpc_vsx_ok } */
/* Ensure there is no explicit -mno-vsx etc., otherwise
the below bif __builtin_vec_vcmpeq_p replies on power8
vsx would fail. */
/* { dg-require-effective-target powerpc_vsx } */
/* { dg-options "-mdejagnu-cpu=power6 -maltivec -O2" } */
#include <altivec.h>
......
/* { dg-do compile { target { powerpc*-*-* } } } */
/* { dg-skip-if "" { powerpc*-*-darwin* } } */
/* { dg-require-effective-target powerpc_vsx_ok } */
/* { dg-require-effective-target powerpc_vsx } */
/* { dg-options "-O -mdejagnu-cpu=power7 -mno-altivec" } */
/* { dg-warning "'-mno-altivec' disables vsx" "" { target *-*-* } 0 } */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment