@@ -1,6 +1,6 @@
/* { dg-do compile } */
-/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-options "-maltivec -fdump-tree-gimple" } */
+/* { dg-require-effective-target powerpc_altivec } */
/* PR 72747: Test that cascaded definition is happening for constant vectors. */
@@ -1,6 +1,6 @@
/* { dg-do compile } */
-/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-options "-c -maltivec -fdump-tree-gimple" } */
+/* { dg-require-effective-target powerpc_altivec } */
/* PR 72747: test that cascaded definition is happening for non constants. */
@@ -1,7 +1,7 @@
// PR target/79905
// { dg-do compile { target { powerpc*-*-* } } }
-// { dg-require-effective-target powerpc_altivec_ok }
// { dg-options "-maltivec" }
+// { dg-require-effective-target powerpc_altivec }
typedef int V4i __attribute__((vector_size(16)));
void a (V4i) {
@@ -1,6 +1,6 @@
/* { dg-do compile } */
-/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-options "-maltivec" } */
+/* { dg-require-effective-target powerpc_altivec } */
#include <altivec.h>
@@ -1,8 +1,8 @@
/* This is a compile-only test for interaction of "-maltivec" and "-save-temps". */
/* Author: Ziemowit Laski <zlaski@apple.com>. */
/* { dg-do compile } */
-/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-options "-save-temps -maltivec" } */
+/* { dg-require-effective-target powerpc_altivec } */
#include <altivec.h>
@@ -1,7 +1,7 @@
/* Test handling of literal constant for dss operation. */
/* { dg-do compile } */
-/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-options "-maltivec" } */
+/* { dg-require-effective-target powerpc_altivec } */
#include <altivec.h>
@@ -1,7 +1,7 @@
/* Test vec_dst* functions with float pointer as first argument. */
/* { dg-do compile } */
-/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-options "-maltivec" } */
+/* { dg-require-effective-target powerpc_altivec } */
#include <altivec.h>
@@ -3,8 +3,8 @@
AltiVec testsuite. */
/* { dg-do compile } */
-/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-options "-maltivec" } */
+/* { dg-require-effective-target powerpc_altivec } */
#include <altivec.h>
@@ -1,6 +1,6 @@
/* { dg-do compile } */
-/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-options "-maltivec" } */
+/* { dg-require-effective-target powerpc_altivec } */
void f (__attribute__((altivec (vector__))) signed int * a,
__attribute__((altivec (vector__))) signed int * const b);
@@ -1,6 +1,6 @@
/* { dg-do compile } */
-/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-options "-maltivec -mno-vsx" } */
+/* { dg-require-effective-target powerpc_altivec } */
/* This test was added for an internal compiler error. The number and
content of error messages is irrelevant. */
@@ -1,7 +1,7 @@
// PR c++/36662
// { dg-do compile }
-// { dg-require-effective-target powerpc_altivec_ok }
// { dg-options "-maltivec" }
+// { dg-require-effective-target powerpc_altivec }
#define vector __attribute__((altivec (vector__)))
@@ -1,6 +1,6 @@
// { dg-do compile }
-// { dg-require-effective-target powerpc_altivec_ok }
// { dg-options "-maltivec" }
+// { dg-require-effective-target powerpc_altivec }
// Make sure that bool vectors have distinct names to int vectors
@@ -1,7 +1,7 @@
// PR target/82112
// { dg-do compile }
-// { dg-require-effective-target powerpc_altivec_ok }
// { dg-options "-maltivec" }
+// { dg-require-effective-target powerpc_altivec }
#include <altivec.h>
@@ -1,6 +1,6 @@
/* { dg-do compile } */
-/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-options "-maltivec -Wall -Wno-unused-but-set-variable -Wno-deprecated" } */
+/* { dg-require-effective-target powerpc_altivec } */
/* This test checks if AltiVec builtins accept const-qualified
arguments. */
@@ -1,7 +1,7 @@
/* { dg-do run { target { vmx_hw } } } */
/* { dg-do compile { target { ! vmx_hw } } } */
-/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-options "-maltivec" } */
+/* { dg-require-effective-target powerpc_altivec } */
/* Test for correct handling of AltiVec constants passed
through '...' (va_arg). */
@@ -1,6 +1,6 @@
/* { dg-do compile } */
-/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-options "-maltivec" } */
+/* { dg-require-effective-target powerpc_altivec } */
/* PR c++/14425 */
@@ -1,6 +1,6 @@
/* { dg-do compile } */
-/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-options "-maltivec" } */
+/* { dg-require-effective-target powerpc_altivec } */
/* PR c++/14426 */
@@ -1,8 +1,8 @@
/* Test for correct handling of literal arguments. */
/* Author: Ziemowit Laski <zlaski@apple.com> */
/* { dg-do compile } */
-/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-options "-maltivec" } */
+/* { dg-require-effective-target powerpc_altivec } */
#include <altivec.h>
@@ -1,7 +1,7 @@
/* Test for AltiVec type overloading and name mangling. */
/* { dg-do compile } */
-/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-options "-maltivec" } */
+/* { dg-require-effective-target powerpc_altivec } */
#include <altivec.h>
@@ -1,6 +1,6 @@
/* { dg-do compile } */
-/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-options "-maltivec" } */
+/* { dg-require-effective-target powerpc_altivec } */
/* Author: Ziemowit Laski <zlaski@apple.com> */
/* This test case exercises intrinsic/argument combinations that,
@@ -1,7 +1,7 @@
/* Test for AltiVec function vec_ld, passing a pointer to const vector */
/* { dg-do compile } */
-/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-options "-maltivec" } */
+/* { dg-require-effective-target powerpc_altivec } */
#include <altivec.h>
@@ -1,6 +1,6 @@
/* { dg-do compile } */
-/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-options "-maltivec" } */
+/* { dg-require-effective-target powerpc_altivec } */
/* Basic test for the new VMX intrinsics. */
#include <altivec.h>
@@ -1,7 +1,7 @@
/* { dg-do run { target { vmx_hw } } } */
/* { dg-do compile { target { ! vmx_hw } } } */
-/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-options "-maltivec" } */
+/* { dg-require-effective-target powerpc_altivec } */
/* Test the vec_extract VMX intrinsics. */
#include <altivec.h>
@@ -1,7 +1,7 @@
/* { dg-do run { target { vmx_hw } } } */
/* { dg-do compile { target { ! vmx_hw } } } */
-/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-options "-maltivec" } */
+/* { dg-require-effective-target powerpc_altivec } */
/* Test the vec_splats and vec_promote VMX intrinsics. */
#include <altivec.h>
@@ -1,7 +1,7 @@
/* { dg-do run { target { vmx_hw } } } */
/* { dg-do compile { target { ! vmx_hw } } } */
-/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-options "-maltivec" } */
+/* { dg-require-effective-target powerpc_altivec } */
/* Test the vec_splats and vec_promote VMX intrinsics. */
#include <altivec.h>
@@ -1,6 +1,6 @@
/* { dg-do compile } */
-/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-options "-maltivec" } */
+/* { dg-require-effective-target powerpc_altivec } */
/* Basic test for the new VMX intrinsics and error messages. */
#include <altivec.h>
@@ -1,6 +1,6 @@
/* { dg-do compile } */
-/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-options "-maltivec -mno-vsx -std=c++98" } */
+/* { dg-require-effective-target powerpc_altivec } */
/* Valid AltiVec vector types should be accepted with no warnings. */
@@ -1,7 +1,7 @@
/* { dg-do compile } */
-/* { dg-require-effective-target ilp32 } */
-/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-options "-maltivec -mno-vsx" } */
+/* { dg-require-effective-target ilp32 } */
+/* { dg-require-effective-target powerpc_altivec } */
/* These should get warnings for 32-bit code. */
@@ -1,7 +1,7 @@
/* { dg-do compile } */
-/* { dg-require-effective-target powerpc_altivec_ok } */
-/* { dg-require-effective-target lp64 } */
/* { dg-options "-maltivec -mno-vsx" } */
+/* { dg-require-effective-target powerpc_altivec } */
+/* { dg-require-effective-target lp64 } */
/* These should be rejected for 64-bit code. */
@@ -1,7 +1,7 @@
/* { dg-do compile } */
-/* { dg-require-effective-target ilp32 } */
-/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-options "-maltivec -mno-vsx -mno-warn-altivec-long" } */
+/* { dg-require-effective-target ilp32 } */
+/* { dg-require-effective-target powerpc_altivec } */
/* These should not get warnings for 32-bit code when the warning is
disabled. */
@@ -1,5 +1,6 @@
-/* { dg-do compile { target powerpc_altivec_ok } } */
+/* { dg-do compile } */
/* { dg-options "-O -gdwarf-2 -dA -maltivec" } */
+/* { dg-require-effective-target powerpc_altivec } */
/* { dg-final { scan-assembler "DW_AT_const_value" } } */
typedef float FloatVect __attribute__((__vector_size__(16)));
@@ -1,5 +1,6 @@
-/* { dg-do compile { target powerpc_altivec_ok } } */
+/* { dg-do compile } */
/* { dg-options "-O -gdwarf -dA -maltivec" } */
+/* { dg-require-effective-target powerpc_altivec } */
/* { dg-final { scan-assembler "DW_AT_const_value" } } */
typedef float FloatVect __attribute__((__vector_size__(16)));
@@ -1,5 +1,6 @@
-/* { dg-do compile { target { powerpc*-*-linux* && powerpc_altivec_ok } } } */
+/* { dg-do compile { target powerpc*-*-linux* } } */
/* { dg-options "-maltivec" } */
+/* { dg-require-effective-target powerpc_altivec } */
/* GNU extension: PowerPC AltiVec Built-in Functions.
These should be rejected as invalid AltiVec types. */
@@ -1,7 +1,7 @@
/* PR target/88234 */
/* { dg-do run { target { powerpc*-*-* && vmx_hw } } } */
-/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-options "-fsanitize=signed-integer-overflow -fno-sanitize-recover=signed-integer-overflow -O2 -maltivec" } */
+/* { dg-require-effective-target powerpc_altivec } */
#include <altivec.h>
@@ -1,6 +1,7 @@
-/* { dg-do run { target { { powerpc*-*-* && lp64 } && powerpc_altivec_ok } } } */
-/* { dg-do compile { target { { powerpc*-*-* && ilp32 } && powerpc_altivec_ok } } } */
+/* { dg-do run { target { powerpc*-*-* && lp64 } } } */
+/* { dg-do compile { target { powerpc*-*-* && ilp32 } } } */
/* { dg-additional-options "-mpowerpc64 -maltivec -fdump-tree-optimized-details-blocks" } */
+/* { dg-require-effective-target powerpc_altivec } */
/* { dg-skip-if "" { powerpc-ibm-aix* } } */
#include <stdarg.h>
@@ -1,6 +1,7 @@
-/* { dg-do run { target { { powerpc*-*-* && lp64 } && powerpc_altivec_ok } } } */
-/* { dg-do compile { target { { powerpc*-*-* && ilp32 } && powerpc_altivec_ok } } } */
+/* { dg-do run { target { powerpc*-*-* && lp64 } } } */
+/* { dg-do compile { target { powerpc*-*-* && ilp32 } } } */
/* { dg-additional-options "-mpowerpc64 -maltivec -fdump-tree-optimized-details-blocks" } */
+/* { dg-require-effective-target powerpc_altivec } */
/* { dg-skip-if "" { powerpc-ibm-aix* } } */
#include <stdarg.h>
@@ -1,6 +1,6 @@
/* { dg-do compile { target powerpc*-*-* } } */
-/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-options "-maltivec" } */
+/* { dg-require-effective-target powerpc_altivec } */
#include <altivec.h>
@@ -1,7 +1,7 @@
/* { dg-do run { target { powerpc*-*-* && vmx_hw } } } */
/* { dg-do compile { target { powerpc*-*-* && { ! vmx_hw } } } } */
-/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-options "-maltivec" } */
+/* { dg-require-effective-target powerpc_altivec } */
/* Program to test PowerPC AltiVec instructions. */
@@ -1,7 +1,7 @@
/* { dg-do run { target { powerpc*-*-* && vmx_hw } } } */
/* { dg-do compile { target { powerpc*-*-* && { ! vmx_hw } } } } */
-/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-options "-maltivec -mabi=altivec -fno-inline" } */
+/* { dg-require-effective-target powerpc_altivec } */
#include <altivec.h>
@@ -1,6 +1,6 @@
/* { dg-do compile { target powerpc*-*-* } } */
-/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-options "-O2 -maltivec -mno-vsx -mabi=altivec" } */
+/* { dg-require-effective-target powerpc_altivec } */
/* { dg-final { scan-assembler-not "lvx" } } */
#include <altivec.h>
@@ -1,7 +1,7 @@
/* { dg-do run { target { powerpc*-*-* && vmx_hw } } } */
/* { dg-do compile { target { powerpc*-*-* && { ! vmx_hw } } } } */
-/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-options "-maltivec" } */
+/* { dg-require-effective-target powerpc_altivec } */
/* Program to test PowerPC AltiVec instructions. */
@@ -1,6 +1,6 @@
/* { dg-do compile { target powerpc*-*-* } } */
-/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-options "-maltivec" } */
+/* { dg-require-effective-target powerpc_altivec } */
/* Author: Ziemowit Laski <zlaski@apple.com> */
@@ -1,6 +1,6 @@
/* { dg-do compile { target { powerpc*-*-* && ilp32 } } } */
-/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-options "-maltivec -mno-vsx" } */
+/* { dg-require-effective-target powerpc_altivec } */
#include <altivec.h>
@@ -1,6 +1,6 @@
/* { dg-do compile { target powerpc*-*-* } } */
-/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-options "-maltivec" } */
+/* { dg-require-effective-target powerpc_altivec } */
#include <altivec.h>
@@ -1,8 +1,8 @@
/* This is a compile-only test for interaction of "-maltivec" and "-save-temps". */
/* Author: Ziemowit Laski <zlaski@apple.com>. */
/* { dg-do compile { target powerpc*-*-* } } */
-/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-options "-save-temps -maltivec" } */
+/* { dg-require-effective-target powerpc_altivec } */
#include <altivec.h>
@@ -2,8 +2,8 @@
typedef name as a vector type specifier. */
/* { dg-do compile { target powerpc*-*-* } } */
-/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-options "-maltivec -mabi=altivec" } */
+/* { dg-require-effective-target powerpc_altivec } */
typedef unsigned int ui;
typedef signed char sc;
@@ -1,6 +1,6 @@
/* { dg-do compile { target powerpc*-*-* } } */
-/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-options "-maltivec -mabi=altivec" } */
+/* { dg-require-effective-target powerpc_altivec } */
/* { dg-final { scan-assembler "vcmpgtub" { target *-*-linux* } } } */
/* { dg-final { scan-assembler "vcmpgtsb" { target *-*-darwin* } } } */
/* { dg-final { scan-assembler "vcmpgtsh" } } */
@@ -1,6 +1,6 @@
/* { dg-do compile { target powerpc*-*-* } } */
-/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-options "-maltivec" } */
+/* { dg-require-effective-target powerpc_altivec } */
/* { dg-final { scan-assembler "dst" } } */
void foo ( char* image )
@@ -1,6 +1,6 @@
/* { dg-do compile { target powerpc*-*-* } } */
-/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-options "-maltivec" } */
+/* { dg-require-effective-target powerpc_altivec } */
/* Program to test the vector_size attribute. This needs to run on a
target that has vectors, so use AltiVec. */
@@ -1,5 +1,7 @@
-/* { dg-do compile { target powerpc_altivec_ok } } */
+/* { dg-do compile } */
/* { dg-options "-maltivec -mdejagnu-cpu=G5 -O2 -Wno-deprecated" } */
+/* { dg-require-effective-target powerpc_altivec } */
+
#include <altivec.h>
@@ -1,6 +1,6 @@
/* { dg-do compile { target powerpc*-*-* } } */
-/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-options "-maltivec" } */
+/* { dg-require-effective-target powerpc_altivec } */
#include <altivec.h>
@@ -1,6 +1,6 @@
/* { dg-do compile { target { powerpc*-*-* && ilp32 } } } */
-/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-options "-O3 -maltivec" } */
+/* { dg-require-effective-target powerpc_altivec } */
/* { dg-final { scan-assembler-not "mfcr" } } */
#include <altivec.h>
@@ -3,8 +3,8 @@
initializer of automatic ones. */
/* { dg-do compile } */
-/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-options "-maltivec -mabi=altivec" } */
+/* { dg-require-effective-target powerpc_altivec } */
#include <altivec.h>
@@ -1,7 +1,7 @@
/* { dg-do run { target { powerpc*-*-* && vmx_hw } } } */
/* { dg-do compile { target { powerpc*-*-* && { ! vmx_hw } } } } */
-/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-options "-maltivec" } */
+/* { dg-require-effective-target powerpc_altivec } */
#include <altivec.h>
@@ -1,6 +1,6 @@
/* { dg-do compile { target powerpc*-*-* } } */
-/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-options "-maltivec -O2 -Wall" } */
+/* { dg-require-effective-target powerpc_altivec } */
#define vector __attribute__((__vector_size__(16) ))
@@ -1,6 +1,6 @@
/* { dg-do compile { target powerpc*-*-* } } */
-/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-options "-maltivec" } */
+/* { dg-require-effective-target powerpc_altivec } */
/* A compiler implementing context-sensitive keywords must define this
preprocessor macro so that altivec.h does not provide the vector,
@@ -1,6 +1,6 @@
/* { dg-do compile { target powerpc*-*-* } } */
-/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-options "-maltivec" } */
+/* { dg-require-effective-target powerpc_altivec } */
#define f0() void x0 (vector float x) { }
f0 ()
@@ -1,6 +1,6 @@
/* { dg-do compile { target powerpc*-*-* } } */
-/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-options "-maltivec" } */
+/* { dg-require-effective-target powerpc_altivec } */
#define B bool
#define P pixel
@@ -1,7 +1,7 @@
/* PR target/39558 */
/* { dg-do compile { target powerpc*-*-* } } */
-/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-options "-maltivec -save-temps" } */
+/* { dg-require-effective-target powerpc_altivec } */
#define ATTRIBUTE_UNUSED __attribute__((unused))
@@ -1,7 +1,7 @@
/* { dg-do run { target { powerpc*-*-* && vmx_hw } } } */
/* { dg-do compile { target { powerpc*-*-* && { ! vmx_hw } } } } */
-/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-options "-maltivec" } */
+/* { dg-require-effective-target powerpc_altivec } */
extern void exit (int);
extern void abort (void);
@@ -1,6 +1,6 @@
/* { dg-do compile { target powerpc*-*-* } } */
-/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-options "-maltivec" } */
+/* { dg-require-effective-target powerpc_altivec } */
#include <stdbool.h>
#include <altivec.h>
@@ -1,6 +1,6 @@
/* { dg-do compile { target powerpc*-*-* } } */
-/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-options "-maltivec" } */
+/* { dg-require-effective-target powerpc_altivec } */
#define f0(type) void x0##type (vector _Bool type x) { }
f0 (int)
@@ -1,7 +1,7 @@
/* { dg-do compile { target { powerpc*-*-* && lp64 } } } */
/* { dg-skip-if "" { powerpc*-*-darwin* } } */
-/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-options "-O2 -ftree-vectorize -mdejagnu-cpu=power6 -maltivec" } */
+/* { dg-require-effective-target powerpc_altivec } */
/* { dg-final { scan-assembler "vsel" } } */
/* { dg-final { scan-assembler "vrfim" } } */
/* { dg-final { scan-assembler "vrfip" } } */
@@ -1,6 +1,6 @@
/* { dg-do compile } */
-/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-options "-O2 -maltivec -mno-vsx" } */
+/* { dg-require-effective-target powerpc_altivec } */
/* We should only produce one vspltw as we already splatted the value. */
/* { dg-final { scan-assembler-times "vspltw" 1 } } */
@@ -1,7 +1,7 @@
/* PR target/49621 */
/* { dg-do compile } */
-/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-options "-O2 -maltivec -mno-vsx" } */
+/* { dg-require-effective-target powerpc_altivec } */
#include <altivec.h>
@@ -1,7 +1,7 @@
/* { dg-do compile } */
-/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-options "-maltivec -mno-vsx -O0" } */
+/* { dg-require-effective-target powerpc_altivec } */
#include <altivec.h>
@@ -1,7 +1,7 @@
/* PR target/70296 */
/* { dg-do compile } */
-/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-options "-maltivec -std=gnu11" } */
+/* { dg-require-effective-target powerpc_altivec } */
#define c(x) x
#define f(x)
@@ -1,6 +1,6 @@
/* { dg-do compile { target powerpc*-*-* } } */
-/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-options "-maltivec -O0 -Wall" } */
+/* { dg-require-effective-target powerpc_altivec } */
#define vector __attribute__((vector_size(16)))
@@ -1,6 +1,6 @@
/* { dg-do compile { target powerpc*-*-* } } */
-/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-options "-maltivec -O2" } */
+/* { dg-require-effective-target powerpc_altivec } */
#define vector __attribute__((vector_size(16)))
@@ -1,6 +1,6 @@
/* { dg-do compile { target powerpc*-*-* } } */
-/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-options "-maltivec -O0 -Wall -Wno-deprecated" } */
+/* { dg-require-effective-target powerpc_altivec } */
#include <altivec.h>
@@ -1,6 +1,6 @@
/* { dg-do compile { target powerpc*-*-* } } */
-/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-options "-maltivec" } */
+/* { dg-require-effective-target powerpc_altivec } */
/* Origin: Aldy Hernandez <aldyh@redhat.com> */
@@ -2,8 +2,8 @@
/* Test rs6000_legitimate_address. PRE_INC should be invalid. */
/* { dg-do compile { target powerpc*-*-* } } */
-/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-options "-maltivec" } */
+/* { dg-require-effective-target powerpc_altivec } */
#include <altivec.h>
@@ -1,6 +1,6 @@
/* { dg-do compile { target powerpc*-*-* } } */
-/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-options "-maltivec -mabi=altivec -g" } */
+/* { dg-require-effective-target powerpc_altivec } */
/* PR9564 */
@@ -1,6 +1,6 @@
/* { dg-do compile { target powerpc*-*-* } } */
-/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-options "-maltivec" } */
+/* { dg-require-effective-target powerpc_altivec } */
/* Basic test for the new VMX intrinsics. */
#include <altivec.h>
@@ -1,7 +1,7 @@
/* { dg-do run { target { powerpc*-*-* && vmx_hw } } } */
/* { dg-do compile { target { powerpc*-*-* && { ! vmx_hw } } } } */
-/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-options "-maltivec" } */
+/* { dg-require-effective-target powerpc_altivec } */
/* Test the vec_extract VMX intrinsics. */
#include <altivec.h>
@@ -1,7 +1,7 @@
/* { dg-do run { target { powerpc*-*-* && vmx_hw } } } */
/* { dg-do compile { target { powerpc*-*-* && { ! vmx_hw } } } } */
-/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-options "-maltivec" } */
+/* { dg-require-effective-target powerpc_altivec } */
/* Test the vec_splats and vec_promote VMX intrinsics. */
#include <altivec.h>
@@ -1,7 +1,7 @@
/* { dg-do run { target { powerpc*-*-* && vmx_hw } } } */
/* { dg-do compile { target { powerpc*-*-* && { ! vmx_hw } } } } */
-/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-options "-maltivec" } */
+/* { dg-require-effective-target powerpc_altivec } */
/* Test the vec_splats and vec_promote VMX intrinsics. */
#include <altivec.h>
@@ -1,6 +1,6 @@
/* { dg-do compile { target powerpc*-*-* } } */
-/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-options "-maltivec" } */
+/* { dg-require-effective-target powerpc_altivec } */
/* Basic test for the new VMX intrinsics and error messages. */
#include <altivec.h>
@@ -1,6 +1,6 @@
/* { dg-do compile } */
-/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-options "-O2 -maltivec -mabi=altivec -mdejagnu-cpu=cell" } */
+/* { dg-require-effective-target powerpc_altivec } */
#include <altivec.h>
/* This used to ICE with reloading of a constant address. */
@@ -1,6 +1,6 @@
/* { dg-do compile } */
-/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-options "-O2 -maltivec -mabi=altivec -mdejagnu-cpu=cell" } */
+/* { dg-require-effective-target powerpc_altivec } */
/* { dg-final { scan-assembler-times "vor" 2 } } */
#include <altivec.h>
@@ -1,7 +1,7 @@
/* { dg-do run { target vmx_hw } } */
/* { dg-do compile { target { ! vmx_hw } } } */
-/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-options "-maltivec -mabi=altivec -O2 -save-temps" } */
+/* { dg-require-effective-target powerpc_altivec } */
/* Check that "easy" AltiVec constants are correctly synthesized. */
@@ -1,8 +1,8 @@
/* Copyright (C) 2007 Free Software Foundation, Inc. */
/* { dg-do preprocess } */
-/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-options "-maltivec" } */
+/* { dg-require-effective-target powerpc_altivec } */
/* Conditional macros should not be expanded by pragmas. */
#pragma __vector
@@ -1,6 +1,6 @@
/* { dg-do compile } */
-/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-options "-O -maltivec -mno-vsx" } */
+/* { dg-require-effective-target powerpc_altivec } */
typedef unsigned char V __attribute__((vector_size(16)));
@@ -1,6 +1,6 @@
/* { dg-do compile } */
-/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-options "-O -maltivec -mno-vsx" } */
+/* { dg-require-effective-target powerpc_altivec } */
typedef unsigned short V __attribute__((vector_size(16)));
@@ -1,7 +1,7 @@
/* { dg-do compile } */
-/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-skip-if "" { powerpc*le-*-* } } */
/* { dg-options "-O -maltivec -mno-vsx" } */
+/* { dg-require-effective-target powerpc_altivec } */
typedef unsigned char V __attribute__((vector_size(16)));
@@ -1,6 +1,6 @@
/* { dg-do compile } */
-/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-options "-O -maltivec -mno-vsx" } */
+/* { dg-require-effective-target powerpc_altivec } */
typedef unsigned int V __attribute__((vector_size(16)));
@@ -1,6 +1,6 @@
/* { dg-do compile { target powerpc*-*-* } } */
-/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-options "-maltivec -fpreprocessed" } */
+/* { dg-require-effective-target powerpc_altivec } */
/* Program to test AltiVec with -fpreprocessed. */
int foo(__attribute__((altivec(vector__))) float x,
@@ -1,6 +1,6 @@
/* { dg-do compile { target powerpc*-*-* } } */
-/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-options "-maltivec -mabi=altivec -O2" } */
+/* { dg-require-effective-target powerpc_altivec } */
/* Testcase by Richard Guenther and Steven Bosscher.
Check that "easy" AltiVec constants are correctly synthesized
@@ -1,6 +1,6 @@
/* { dg-do compile { target powerpc*-*-linux* } } */
-/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-options "-maltivec -mno-vsx" } */
+/* { dg-require-effective-target powerpc_altivec } */
/* Valid AltiVec vector types should be accepted with no warnings. */
@@ -1,7 +1,7 @@
/* { dg-do compile { target powerpc*-*-linux* } } */
-/* { dg-require-effective-target ilp32 } */
-/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-options "-maltivec -mno-vsx" } */
+/* { dg-require-effective-target ilp32 } */
+/* { dg-require-effective-target powerpc_altivec } */
/* These should get warnings for 32-bit code. */
@@ -1,7 +1,7 @@
/* { dg-do compile { target powerpc*-*-linux* } } */
-/* { dg-require-effective-target lp64 } */
-/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-options "-maltivec -mno-vsx" } */
+/* { dg-require-effective-target lp64 } */
+/* { dg-require-effective-target powerpc_altivec } */
/* These should be rejected for 64-bit code. */
@@ -1,7 +1,7 @@
/* { dg-do compile { target powerpc*-*-linux* } } */
-/* { dg-require-effective-target ilp32 } */
-/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-options "-maltivec -mno-warn-altivec-long -mno-vsx" } */
+/* { dg-require-effective-target ilp32 } */
+/* { dg-require-effective-target powerpc_altivec } */
/* These should not get warnings for 32-bit code when the warning is
disabled. */
@@ -1,7 +1,7 @@
/* { dg-do run { target { powerpc*-*-* && vmx_hw } } } */
/* { dg-do compile { target { powerpc*-*-* && { ! vmx_hw } } } } */
-/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-options "-maltivec -mabi=altivec -fno-inline" } */
+/* { dg-require-effective-target powerpc_altivec } */
#include <stdarg.h>
@@ -1,7 +1,7 @@
/* { dg-do run { target { powerpc*-*-* && vmx_hw } } } */
/* { dg-do compile { target { powerpc*-*-* && { ! vmx_hw } } } } */
-/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-options "-maltivec -O2 -Wno-deprecated" } */
+/* { dg-require-effective-target powerpc_altivec } */
#include <altivec.h>
@@ -1,6 +1,6 @@
/* { dg-do compile { target powerpc*-*-* } } */
-/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-options "-maltivec" } */
+/* { dg-require-effective-target powerpc_altivec } */
/* Check that "volatile" type qualifier is propagated to vector type. */
@@ -1,5 +1,5 @@
-/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-options "-maltivec" } */
+/* { dg-require-effective-target powerpc_altivec } */
/* Test vec_ld and vec_st can support both scalar and vector
type address points, the list is:
@@ -1,7 +1,7 @@
/* { dg-do compile { target { powerpc*-*-* } } } */
/* { dg-skip-if "" { powerpc*-*-darwin* } } */
-/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-options "-O2 -mdejagnu-cpu=power6 -maltivec" } */
+/* { dg-require-effective-target powerpc_altivec } */
/* { dg-final { scan-assembler-not "\[ \t\]and " } } */
/* { dg-final { scan-assembler-not "\[ \t\]or " } } */
/* { dg-final { scan-assembler-not "\[ \t\]xor " } } */
@@ -1,7 +1,7 @@
/* { dg-do compile { target { powerpc*-*-* } } } */
/* { dg-skip-if "" { powerpc*-*-darwin* } } */
-/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-options "-O2 -mdejagnu-cpu=power5 -mabi=altivec -mno-altivec -mno-vsx" } */
+/* { dg-require-effective-target powerpc_altivec } */
/* { dg-final { scan-assembler "\[ \t\]and " } } */
/* { dg-final { scan-assembler "\[ \t\]or " } } */
/* { dg-final { scan-assembler "\[ \t\]xor " } } */
@@ -1,7 +1,7 @@
/* { dg-do compile { target { powerpc*-*-* && lp64 } } } */
/* { dg-skip-if "" { powerpc*-*-darwin* } } */
-/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-options "-O2 -mdejagnu-cpu=power6 -mabi=altivec -maltivec -mno-vsx" } */
+/* { dg-require-effective-target powerpc_altivec } */
/* { dg-final { scan-assembler "\[ \t\]and " } } */
/* { dg-final { scan-assembler "\[ \t\]or " } } */
/* { dg-final { scan-assembler "\[ \t\]xor " } } */
@@ -2,8 +2,8 @@
It produces just the instruction vsumsws in LE and BE modes. */
/* { dg-do compile } */
-/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-options "-maltivec -O2" } */
+/* { dg-require-effective-target powerpc_altivec } */
#include <altivec.h>
@@ -1,6 +1,6 @@
/* { dg-do compile } */
-/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-options "-maltivec" } */
+/* { dg-require-effective-target powerpc_altivec } */
#include <altivec.h>
@@ -1,7 +1,7 @@
/* { dg-do compile { target { powerpc*-*-* } } } */
/* { dg-skip-if "" { powerpc*-*-darwin* } } */
-/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-options "-O2 -maltivec -mdejagnu-cpu=cell" } */
+/* { dg-require-effective-target powerpc_altivec } */
/* { dg-final { scan-assembler-times "lvrx" 19 } } */
#include <altivec.h>
@@ -1,7 +1,7 @@
/* { dg-do compile { target { powerpc*-*-* } } } */
/* { dg-skip-if "" { powerpc*-*-darwin* } } */
-/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-options "-O2 -maltivec -mdejagnu-cpu=cell" } */
+/* { dg-require-effective-target powerpc_altivec } */
/* { dg-final { scan-assembler-times "stvlx" 19 } } */
#include <altivec.h>
@@ -1,7 +1,7 @@
/* { dg-do compile { target { powerpc*-*-* } } } */
/* { dg-skip-if "" { powerpc*-*-darwin* } } */
-/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-options "-O2 -maltivec -mdejagnu-cpu=cell" } */
+/* { dg-require-effective-target powerpc_altivec } */
/* { dg-final { scan-assembler-times "stvlxl" 19 } } */
#include <altivec.h>
@@ -1,7 +1,7 @@
/* { dg-do compile { target { powerpc*-*-* } } } */
/* { dg-skip-if "" { powerpc*-*-darwin* } } */
-/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-options "-O2 -maltivec -mdejagnu-cpu=cell" } */
+/* { dg-require-effective-target powerpc_altivec } */
/* { dg-final { scan-assembler-times "stvrx" 19 } } */
#include <altivec.h>
@@ -1,7 +1,7 @@
/* { dg-do compile { target { powerpc*-*-* } } } */
/* { dg-skip-if "" { powerpc*-*-darwin* } } */
-/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-options "-O2 -maltivec -mdejagnu-cpu=cell" } */
+/* { dg-require-effective-target powerpc_altivec } */
/* { dg-final { scan-assembler-times "stvrxl" 19 } } */
#include <altivec.h>
@@ -1,7 +1,7 @@
/* { dg-do run { target powerpc*-*-* } } */
-/* { dg-require-effective-target powerpc_altivec_ok } */
-/* { dg-skip-if "need to be able to execute AltiVec" { ! { powerpc_altivec_ok && vmx_hw } } } */
/* { dg-options "-maltivec" } */
+/* { dg-require-effective-target powerpc_altivec } */
+/* { dg-skip-if "need to be able to execute AltiVec" { ! { powerpc_altivec_ok && vmx_hw } } } */
/* With altivec turned on, Darwin wants to save the world but we did not mark lr as being saved any more
as saving the lr is not needed for saving altivec registers. */
@@ -2,8 +2,8 @@
inputs produce the right code. */
/* { dg-do compile } */
-/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-options "-maltivec -O2 -fwrapv" } */
+/* { dg-require-effective-target powerpc_altivec } */
#include <altivec.h>
@@ -2,8 +2,8 @@
inputs produce the right code. */
/* { dg-do compile } */
-/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-options "-maltivec -O2" } */
+/* { dg-require-effective-target powerpc_altivec } */
#include <altivec.h>
@@ -2,8 +2,8 @@
inputs produce the right results. */
/* { dg-do compile } */
-/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-options "-maltivec -O2 -fwrapv" } */
+/* { dg-require-effective-target powerpc_altivec } */
#include <altivec.h>
@@ -2,8 +2,8 @@
inputs produce the right results when -mcpu=power7 is specified. */
/* { dg-do compile } */
-/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-options "-maltivec -O2 -mdejagnu-cpu=power7 -fwrapv" } */
+/* { dg-require-effective-target powerpc_altivec } */
#include <altivec.h>
@@ -2,8 +2,8 @@
inputs produce the right results when -mcpu=power8 is specified. */
/* { dg-do compile } */
-/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-options "-maltivec -O2 -mdejagnu-cpu=power8 -fwrapv" } */
+/* { dg-require-effective-target powerpc_altivec } */
#include <altivec.h>
@@ -2,8 +2,8 @@
inputs produce the right results. */
/* { dg-do compile } */
-/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-options "-maltivec -O2" } */
+/* { dg-require-effective-target powerpc_altivec } */
#include <altivec.h>
@@ -2,8 +2,8 @@
inputs produce the right code when -mcpu=power7 is specified. */
/* { dg-do compile } */
-/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-options "-maltivec -O2 -mdejagnu-cpu=power7" } */
+/* { dg-require-effective-target powerpc_altivec } */
#include <altivec.h>
@@ -2,8 +2,8 @@
inputs produce the right code when -mcpu=power8 is specified. */
/* { dg-do compile } */
-/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-options "-maltivec -O2 -mdejagnu-cpu=power8" } */
+/* { dg-require-effective-target powerpc_altivec } */
#include <altivec.h>
@@ -2,8 +2,8 @@
inputs produce the right results. */
/* { dg-do compile } */
-/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-options "-maltivec -O2 -fwrapv" } */
+/* { dg-require-effective-target powerpc_altivec } */
#include <altivec.h>
@@ -2,8 +2,8 @@
inputs produce the right results. */
/* { dg-do compile } */
-/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-options "-maltivec -O2" } */
+/* { dg-require-effective-target powerpc_altivec } */
#include <altivec.h>
@@ -2,8 +2,8 @@
inputs produce the right results. */
/* { dg-do compile } */
-/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-options "-maltivec" } */
+/* { dg-require-effective-target powerpc_altivec } */
#include <altivec.h>
@@ -2,8 +2,8 @@
inputs produce the right results. */
/* { dg-do compile } */
-/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-options "-maltivec" } */
+/* { dg-require-effective-target powerpc_altivec } */
#include <altivec.h>
@@ -2,8 +2,8 @@
inputs produce the right results. */
/* { dg-do compile } */
-/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-options "-maltivec" } */
+/* { dg-require-effective-target powerpc_altivec } */
#include <altivec.h>
@@ -2,8 +2,8 @@
inputs produce the right results. */
/* { dg-do compile } */
-/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-options "-maltivec -mno-vsx" } */
+/* { dg-require-effective-target powerpc_altivec } */
#include <altivec.h>
@@ -2,9 +2,9 @@
double inputs produce the right code. */
/* { dg-do compile } */
-/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-options "-mdejagnu-cpu=power7 -O2" } */
/* { dg-additional-options "-mbig-endian" { target powerpc*-*-linux* } } */
+/* { dg-require-effective-target powerpc_altivec } */
// targeting P7 (BE), 2 tests.
// P7 constants: xxpermdi
@@ -2,8 +2,8 @@
inputs produce the right code. */
/* { dg-do compile } */
-/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-options "-maltivec -O2" } */
+/* { dg-require-effective-target powerpc_altivec } */
#include <altivec.h>
@@ -2,8 +2,8 @@
inputs produce the right code. */
/* { dg-do compile } */
-/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-options "-maltivec -O2" } */
+/* { dg-require-effective-target powerpc_altivec } */
#include <altivec.h>
@@ -2,8 +2,8 @@
inputs produce the right code. */
/* { dg-do compile } */
-/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-options "-maltivec -O2" } */
+/* { dg-require-effective-target powerpc_altivec } */
#include <altivec.h>
@@ -2,8 +2,8 @@
inputs produce the right code. */
/* { dg-do compile } */
-/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-options "-maltivec -O2" } */
+/* { dg-require-effective-target powerpc_altivec } */
#include <altivec.h>
@@ -2,8 +2,8 @@
inputs produce the right results. */
/* { dg-do compile } */
-/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-options "-maltivec -O2" } */
+/* { dg-require-effective-target powerpc_altivec } */
#include <altivec.h>
@@ -2,8 +2,8 @@
inputs produce the right code. */
/* { dg-do compile } */
-/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-options "-maltivec -O2" } */
+/* { dg-require-effective-target powerpc_altivec } */
#include <altivec.h>
@@ -2,8 +2,8 @@
inputs produce the right code. */
/* { dg-do compile } */
-/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-options "-maltivec -O2" } */
+/* { dg-require-effective-target powerpc_altivec } */
#include <altivec.h>
@@ -2,8 +2,8 @@
inputs produce the right code. */
/* { dg-do compile } */
-/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-options "-maltivec -O2 " } */
+/* { dg-require-effective-target powerpc_altivec } */
#include <altivec.h>
@@ -2,8 +2,8 @@
inputs produce the right code. */
/* { dg-do compile } */
-/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-options "-maltivec -O2" } */
+/* { dg-require-effective-target powerpc_altivec } */
#include <altivec.h>
@@ -2,8 +2,8 @@
inputs produce the right results. */
/* { dg-do compile } */
-/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-options "-maltivec" } */
+/* { dg-require-effective-target powerpc_altivec } */
#include <altivec.h>
@@ -2,8 +2,8 @@
inputs produce the right results. */
/* { dg-do compile } */
-/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-options "-maltivec -O2" } */
+/* { dg-require-effective-target powerpc_altivec } */
#include <altivec.h>
@@ -2,8 +2,8 @@
inputs produce the right results. */
/* { dg-do compile } */
-/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-options "-maltivec" } */
+/* { dg-require-effective-target powerpc_altivec } */
#include <altivec.h>
@@ -4,8 +4,8 @@
This was noticed during debug of PR81317. */
/* { dg-do compile } */
-/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-options "-maltivec" } */
+/* { dg-require-effective-target powerpc_altivec } */
#include <altivec.h>
@@ -2,8 +2,8 @@
produce the right results. */
/* { dg-do compile } */
-/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-options "-maltivec -O2" } */
+/* { dg-require-effective-target powerpc_altivec } */
#include <altivec.h>
@@ -2,8 +2,8 @@
inputs produce the right results. */
/* { dg-do compile } */
-/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-options "-maltivec -O2" } */
+/* { dg-require-effective-target powerpc_altivec } */
#include <altivec.h>
@@ -2,8 +2,8 @@
inputs produce the right results. */
/* { dg-do compile } */
-/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-options "-maltivec -O2" } */
+/* { dg-require-effective-target powerpc_altivec } */
#include <altivec.h>
@@ -2,8 +2,8 @@
inputs produce the right results. */
/* { dg-do compile } */
-/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-options "-maltivec -O2" } */
+/* { dg-require-effective-target powerpc_altivec } */
#include <altivec.h>
@@ -2,8 +2,8 @@
inputs produce the right results. */
/* { dg-do compile } */
-/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-options "-maltivec" } */
+/* { dg-require-effective-target powerpc_altivec } */
#include <altivec.h>
@@ -2,8 +2,8 @@
inputs produce the right results. */
/* { dg-do compile } */
-/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-options "-maltivec" } */
+/* { dg-require-effective-target powerpc_altivec } */
#include <altivec.h>
@@ -2,8 +2,8 @@
inputs produce the right results. */
/* { dg-do compile } */
-/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-options "-maltivec -O2" } */
+/* { dg-require-effective-target powerpc_altivec } */
#include <altivec.h>
@@ -2,8 +2,8 @@
inputs produce the right results. */
/* { dg-do compile } */
-/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-options "-maltivec -O2" } */
+/* { dg-require-effective-target powerpc_altivec } */
#include <altivec.h>
@@ -2,8 +2,8 @@
inputs produce the right code. */
/* { dg-do compile } */
-/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-options "-maltivec -O2" } */
+/* { dg-require-effective-target powerpc_altivec } */
#include <altivec.h>
@@ -2,8 +2,8 @@
inputs produce the right code. */
/* { dg-do compile } */
-/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-options "-maltivec -O2" } */
+/* { dg-require-effective-target powerpc_altivec } */
#include <altivec.h>
@@ -2,8 +2,8 @@
inputs produce the right code. */
/* { dg-do compile } */
-/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-options "-maltivec -O2" } */
+/* { dg-require-effective-target powerpc_altivec } */
#include <altivec.h>
@@ -2,8 +2,8 @@
inputs produce the right code. */
/* { dg-do compile } */
-/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-options "-maltivec -O2" } */
+/* { dg-require-effective-target powerpc_altivec } */
#include <altivec.h>
@@ -2,8 +2,8 @@
inputs produce the right code. */
/* { dg-do compile } */
-/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-options "-maltivec -O2" } */
+/* { dg-require-effective-target powerpc_altivec } */
#include <altivec.h>
@@ -2,8 +2,8 @@
inputs produce the right results. */
/* { dg-do compile } */
-/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-options "-maltivec -O2" } */
+/* { dg-require-effective-target powerpc_altivec } */
#include <altivec.h>
@@ -2,8 +2,8 @@
inputs produce the right results. */
/* { dg-do compile } */
-/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-options "-maltivec -O2" } */
+/* { dg-require-effective-target powerpc_altivec } */
#include <altivec.h>
@@ -2,8 +2,8 @@
/* This test covers the shift left tests with the -fwrapv option. */
/* { dg-do compile } */
-/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-options "-maltivec -O2 -fwrapv" } */
+/* { dg-require-effective-target powerpc_altivec } */
#include <altivec.h>
@@ -2,8 +2,8 @@
* This is a counterpart to the fold-vec-shift-left-frwapv test. */
/* { dg-do compile } */
-/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-options "-maltivec -O2" } */
+/* { dg-require-effective-target powerpc_altivec } */
#include <altivec.h>
@@ -2,8 +2,8 @@
inputs produce the right results. */
/* { dg-do compile } */
-/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-options "-maltivec -O2" } */
+/* { dg-require-effective-target powerpc_altivec } */
#include <altivec.h>
@@ -2,8 +2,8 @@
inputs produce the right code. */
/* { dg-do compile } */
-/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-options "-maltivec -O2" } */
+/* { dg-require-effective-target powerpc_altivec } */
#include <altivec.h>
@@ -2,8 +2,8 @@
inputs produce the right code. */
/* { dg-do compile } */
-/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-options "-maltivec -O2" } */
+/* { dg-require-effective-target powerpc_altivec } */
#include <altivec.h>
@@ -2,8 +2,8 @@
inputs produce the right code. */
/* { dg-do compile } */
-/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-options "-maltivec -O2" } */
+/* { dg-require-effective-target powerpc_altivec } */
#include <altivec.h>
@@ -2,8 +2,8 @@
inputs produce the right code. */
/* { dg-do compile } */
-/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-options "-maltivec -O2" } */
+/* { dg-require-effective-target powerpc_altivec } */
#include <altivec.h>
@@ -2,8 +2,8 @@
inputs produce the right results. */
/* { dg-do compile } */
-/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-options "-maltivec -O2" } */
+/* { dg-require-effective-target powerpc_altivec } */
#include <altivec.h>
@@ -2,8 +2,8 @@
inputs produce the right code. */
/* { dg-do compile } */
-/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-options "-maltivec -O2 " } */
+/* { dg-require-effective-target powerpc_altivec } */
#include <altivec.h>
@@ -2,8 +2,8 @@
inputs produce the right code. */
/* { dg-do compile { target lp64 } } */
-/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-options "-maltivec -O2 " } */
+/* { dg-require-effective-target powerpc_altivec } */
#include <altivec.h>
@@ -2,8 +2,8 @@
inputs produce the right code. */
/* { dg-do compile } */
-/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-options "-maltivec -O2" } */
+/* { dg-require-effective-target powerpc_altivec } */
#include <altivec.h>
@@ -2,8 +2,8 @@
inputs produce the right code. */
/* { dg-do compile } */
-/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-options "-maltivec -O2" } */
+/* { dg-require-effective-target powerpc_altivec } */
#include <altivec.h>
@@ -2,8 +2,8 @@
inputs produce the right code. */
/* { dg-do compile } */
-/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-options "-maltivec -O2" } */
+/* { dg-require-effective-target powerpc_altivec } */
#include <altivec.h>
@@ -2,8 +2,8 @@
inputs produce the right code. */
/* { dg-do compile } */
-/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-options "-maltivec -O2" } */
+/* { dg-require-effective-target powerpc_altivec } */
#include <altivec.h>
// void vec_st (vector signed int, int, vector signed int *);
@@ -2,8 +2,8 @@
inputs produce the right code. */
/* { dg-do compile } */
-/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-options "-maltivec -O2" } */
+/* { dg-require-effective-target powerpc_altivec } */
#include <altivec.h>
// vector signed short vec_ld (int, const vector signed short *);
@@ -2,8 +2,8 @@
inputs produce the right results. */
/* { dg-do compile } */
-/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-options "-maltivec" } */
+/* { dg-require-effective-target powerpc_altivec } */
#include <altivec.h>
@@ -2,8 +2,8 @@
inputs produce the right results. */
/* { dg-do compile } */
-/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-options "-maltivec -mno-vsx" } */
+/* { dg-require-effective-target powerpc_altivec } */
#include <altivec.h>
@@ -2,8 +2,8 @@
inputs produce the right results. */
/* { dg-do compile } */
-/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-options "-maltivec" } */
+/* { dg-require-effective-target powerpc_altivec } */
#include <altivec.h>
@@ -2,8 +2,8 @@
inputs produce the right results. */
/* { dg-do compile } */
-/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-options "-maltivec" } */
+/* { dg-require-effective-target powerpc_altivec } */
#include <altivec.h>
@@ -2,8 +2,8 @@
inputs produce the right code. */
/* { dg-do compile } */
-/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-options "-maltivec -O2" } */
+/* { dg-require-effective-target powerpc_altivec } */
#include <altivec.h>
@@ -2,8 +2,8 @@
inputs produce the right code. */
/* { dg-do compile } */
-/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-options "-maltivec -O2" } */
+/* { dg-require-effective-target powerpc_altivec } */
#include <altivec.h>
@@ -2,8 +2,8 @@
inputs produce the right code. */
/* { dg-do compile } */
-/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-options "-maltivec -O2" } */
+/* { dg-require-effective-target powerpc_altivec } */
#include <altivec.h>
@@ -2,8 +2,8 @@
inputs produce the right code. */
/* { dg-do compile } */
-/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-options "-maltivec -O2" } */
+/* { dg-require-effective-target powerpc_altivec } */
#include <altivec.h>
@@ -1,7 +1,7 @@
/* { dg-do run { target vmx_hw } } */
/* { dg-do compile { target { ! vmx_hw } } } */
-/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-options "-maltivec -mabi=altivec -O2 -save-temps" } */
+/* { dg-require-effective-target powerpc_altivec } */
/* Check that "easy" AltiVec constants are correctly synthesized. */
@@ -1,8 +1,8 @@
/* { dg-do compile { target { powerpc*-*-* } } } */
/* { dg-skip-if "" { powerpc*-*-darwin* } } */
-/* { dg-require-effective-target powerpc_altivec_ok } */
-/* { dg-require-effective-target powerpc_fprs } */
/* { dg-options "-O3 -ftree-vectorize -mdejagnu-cpu=power6 -maltivec -ffast-math -fno-unroll-loops" } */
+/* { dg-require-effective-target powerpc_altivec } */
+/* { dg-require-effective-target powerpc_fprs } */
/* { dg-final { scan-assembler-times "vmaddfp" 2 } } */
/* { dg-final { scan-assembler-times "fmadd " 2 } } */
/* { dg-final { scan-assembler-times "fmadds" 2 } } */
@@ -1,8 +1,8 @@
/* { dg-do compile { target { powerpc*-*-* } } } */
/* { dg-skip-if "" { powerpc*-*-darwin* } } */
-/* { dg-require-effective-target powerpc_altivec_ok } */
-/* { dg-require-effective-target powerpc_fprs } */
/* { dg-options "-O3 -ftree-vectorize -mdejagnu-cpu=power6 -maltivec -ffast-math -ffp-contract=off -fno-unroll-loops" } */
+/* { dg-require-effective-target powerpc_altivec } */
+/* { dg-require-effective-target powerpc_fprs } */
/* { dg-final { scan-assembler-times "vmaddfp" 1 } } */
/* { dg-final { scan-assembler-times "fmadd " 1 } } */
/* { dg-final { scan-assembler-times "fmadds" 1 } } */
@@ -1,8 +1,8 @@
/* { dg-do compile { target { powerpc*-*-* } } } */
/* { dg-skip-if "" { powerpc*-*-darwin* } } */
-/* { dg-require-effective-target powerpc_altivec_ok } */
-/* { dg-require-effective-target powerpc_fprs } */
/* { dg-options "-O3 -ftree-vectorize -mdejagnu-cpu=power6 -ffast-math" } */
+/* { dg-require-effective-target powerpc_altivec } */
+/* { dg-require-effective-target powerpc_fprs } */
/* { dg-final { scan-assembler-times "fmadd" 1 } } */
/* { dg-final { scan-assembler-times "fmsub " 1 } } */
/* { dg-final { scan-assembler-not "fmul" } } */
@@ -1,6 +1,6 @@
/* { dg-do compile { target powerpc*-*-* } } */
-/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-options "-O -maltivec -mno-vsx" } */
+/* { dg-require-effective-target powerpc_altivec } */
/* { dg-final { scan-assembler "lvx" } } */
#include <string.h>
@@ -1,6 +1,6 @@
/* { dg-do compile { target powerpc*-*-* } } */
-/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-options "-O -maltivec -mno-vsx" } */
+/* { dg-require-effective-target powerpc_altivec } */
/* { dg-final { scan-assembler "stvx" } } */
#include <string.h>
@@ -1,5 +1,5 @@
-/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-options "-mdejagnu-cpu=power6 -maltivec" } */
+/* { dg-require-effective-target powerpc_altivec } */
/* This used to ICE. */
@@ -1,7 +1,7 @@
/* PR target/101384 */
/* { dg-do compile { target le } } */
/* { dg-options "-O2 -maltivec" } */
-/* { dg-require-effective-target powerpc_altivec_ok } */
+/* { dg-require-effective-target powerpc_altivec } */
/* { dg-final { scan-assembler-times {\mvspltis[whb] [^\n\r]*,-1\M|\mxxspltib[^\n\r]*,255\M} 9 } } */
/* { dg-final { scan-assembler-times {\mvslw\M} 3 } } */
/* { dg-final { scan-assembler-times {\mvslh\M} 3 } } */
@@ -1,7 +1,7 @@
/* PR target/101384 */
/* { dg-do compile { target be } } */
/* { dg-options "-O2 -maltivec" } */
-/* { dg-require-effective-target powerpc_altivec_ok } */
+/* { dg-require-effective-target powerpc_altivec } */
/* { dg-final { scan-assembler-times {\mvspltis[whb] [^\n\r]*,-1\M|\mxxspltib [^\n\r]*,255\M} 9 } } */
/* { dg-final { scan-assembler-times {\mvslw\M} 3 } } */
/* { dg-final { scan-assembler-times {\mvslh\M} 3 } } */
@@ -1,8 +1,8 @@
-/* { dg-require-effective-target powerpc_altivec_ok } */
+/* { dg-options "-maltivec -mdejagnu-cpu=power6" } */
+/* { dg-require-effective-target powerpc_altivec } */
/* If the default cpu type is power10 or later, MMA is enabled by default.
To keep the test point available all the time, this case specifies
-mdejagnu-cpu=power6 to make it be tested without MMA. */
-/* { dg-options "-maltivec -mdejagnu-cpu=power6" } */
/* Verify there is no ICE and don't check the error messages on MMA
requirement since they could be fragile and are not test points
@@ -1,5 +1,3 @@
-/* We don't have one powerpc.*_ok for Power6, use altivec_ok conservatively. */
-/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-options "-mdejagnu-cpu=power6 -O2 -ftree-loop-vectorize -fno-tree-scev-cprop" } */
/* Verify there is no ICE. */
@@ -1,10 +1,10 @@
-/* { dg-require-effective-target powerpc_altivec_ok } */
+/* { dg-options "-mdejagnu-cpu=power9 -mabi=no-altivec" } */
+/* { dg-require-effective-target powerpc_altivec } */
/* If the default cpu type is power10 or later, type __vector_quad is
supported. To keep the test point available all the time, this case
specifies -mdejagnu-cpu=power9 here. This needs -mabi=no-altivec
to do the copying for pass-by-reference function argument on 32 bit
environment. */
-/* { dg-options "-mdejagnu-cpu=power9 -mabi=no-altivec" } */
/* Verify there is no ICE on 32 bit and don't check the error messages
on unsupported type since they could be fragile and are not test
@@ -1,10 +1,10 @@
-/* { dg-require-effective-target powerpc_altivec_ok } */
+/* { dg-options "-mdejagnu-cpu=power9 -mabi=no-altivec" } */
+/* { dg-require-effective-target powerpc_altivec } */
/* If the default cpu type is power10 or later, type __vector_pair is
supported. To keep the test point available all the time, this case
specifies -mdejagnu-cpu=power9 here. This needs -mabi=no-altivec
to do the copying for pass-by-reference function argument on 32 bit
environment. */
-/* { dg-options "-mdejagnu-cpu=power9 -mabi=no-altivec" } */
/* Verify there is no ICE on 32 bit and don't check the error messages
on unsupported type since they could be fragile and are not test
@@ -1,6 +1,6 @@
-/* { dg-require-effective-target int128 } */
-/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-options "-maltivec -mno-vsx" } */
+/* { dg-require-effective-target int128 } */
+/* { dg-require-effective-target powerpc_altivec } */
/* Verify there is no ICE but one expected error message instead. */
@@ -1,6 +1,6 @@
-/* { dg-require-effective-target int128 } */
-/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-options "-maltivec -mno-vsx" } */
+/* { dg-require-effective-target int128 } */
+/* { dg-require-effective-target powerpc_altivec } */
/* Verify there is no ICE but one expected error message instead. */
@@ -1,5 +1,5 @@
-/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-options "-O2 -mdejagnu-cpu=power6 -maltivec" } */
+/* { dg-require-effective-target powerpc_altivec } */
/* Verify there is no ICE. */
@@ -1,6 +1,6 @@
/* { dg-do compile { target powerpc*-*-* } } */
-/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-options "-maltivec -ansi" } */
+/* { dg-require-effective-target powerpc_altivec } */
/* PR 16155
* Compilation of a simple altivec test program fails if the -ansi flag is
@@ -1,6 +1,6 @@
/* { dg-do compile { target powerpc*-*-* } } */
-/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-options "-maltivec" } */
+/* { dg-require-effective-target powerpc_altivec } */
/* PR 16286
Compilation of a simple Altivec test program fails if vector, pixel
@@ -1,6 +1,6 @@
/* { dg-do compile { target powerpc*-*-* } } */
-/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-options "-O2 -maltivec" } */
+/* { dg-require-effective-target powerpc_altivec } */
#define REGLIST \
"77", "78", "79", "80", "81", "82", "83", "84", "85", "86",\
"87", "88", "89", "90", "91", "92", "93", "94", "95", "96",\
@@ -1,8 +1,8 @@
/* PR target/35907 */
/* { dg-do run { target { powerpc*-*-* && vmx_hw } } } */
/* { dg-do compile { target { powerpc*-*-* && { ! vmx_hw } } } } */
-/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-options "-O2 -maltivec" } */
+/* { dg-require-effective-target powerpc_altivec } */
#define vector __attribute__((vector_size (16)))
union
@@ -1,7 +1,7 @@
/* PR target/37168 */
/* { dg-do compile { target powerpc*-*-* } } */
-/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-options "-O2 -maltivec" } */
+/* { dg-require-effective-target powerpc_altivec } */
#define C 3.68249351546114573519399405666776E-44f
#define vector __attribute__ ((altivec (vector__)))
@@ -1,6 +1,6 @@
/* { dg-do compile } */
-/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-options "-maltivec" } */
+/* { dg-require-effective-target powerpc_altivec } */
/* Compile-only test to ensure that expressions can be passed to
Altivec builtins without error. */
@@ -1,6 +1,6 @@
/* { dg-do compile { target powerpc*-*-* } } */
-/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-options "-mdejagnu-cpu=power6 -maltivec" } */
+/* { dg-require-effective-target powerpc_altivec } */
vector unsigned char
foo_char (void)
@@ -1,6 +1,6 @@
/* { dg-do compile { target powerpc*-*-* } } */
-/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-options "-mdejagnu-cpu=power6 -maltivec" } */
+/* { dg-require-effective-target powerpc_altivec } */
vector unsigned char
foo_char (void)
@@ -1,6 +1,6 @@
/* { dg-do compile { target powerpc*-*-* } } */
-/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-options "-mdejagnu-cpu=power6 -maltivec" } */
+/* { dg-require-effective-target powerpc_altivec } */
vector unsigned char
@@ -1,7 +1,7 @@
/* { dg-do compile } */
/* { dg-options "-O2 -flto -maltivec -mno-vsx" } */
/* { dg-require-effective-target lto } */
-/* { dg-require-effective-target powerpc_altivec_ok } */
+/* { dg-require-effective-target powerpc_altivec } */
vector int c, a, b;
@@ -1,6 +1,6 @@
/* { dg-do compile } */
/* { dg-options "-O2 -maltivec -mno-vsx" } */
-/* { dg-require-effective-target powerpc_altivec_ok } */
+/* { dg-require-effective-target powerpc_altivec } */
vector int c, a, b;
@@ -1,6 +1,6 @@
/* PR target/71763 */
/* { dg-do compile } */
-/* { dg-require-effective-target powerpc_altivec_ok } */
+/* { dg-require-effective-target powerpc_altivec } */
int main ()
{
@@ -1,7 +1,7 @@
/* PR target/82112 */
/* { dg-do compile } */
-/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-options "-maltivec -std=gnu90" } */
+/* { dg-require-effective-target powerpc_altivec } */
#include <altivec.h>
@@ -2,8 +2,8 @@
/* Test to ensure we generate invalid parameter errors rather than an ICE
when calling builtin_vec_sld() with invalid parameters. */
/* { dg-do compile } */
-/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-options "-maltivec" } */
+/* { dg-require-effective-target powerpc_altivec } */
#include <altivec.h>
@@ -1,7 +1,7 @@
/* PR rtl-optimization/84878 */
/* { dg-do compile { target { powerpc*-*-* } } } */
-/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-options "-O2 -maltivec -mno-vsx -fmodulo-sched -ftree-vectorize -funroll-loops -fassociative-math -fno-signed-zeros -fno-trapping-math" } */
+/* { dg-require-effective-target powerpc_altivec } */
int ek;
float zu;
@@ -4,9 +4,9 @@
gimple folding of the vec_sl() intrinsic. */
/* { dg-do compile } */
-/* { dg-require-effective-target powerpc_altivec_ok } */
-/* { dg-require-effective-target lp64 } */
/* { dg-options "-maltivec -O3 -fwrapv " } */
+/* { dg-require-effective-target powerpc_altivec } */
+/* { dg-require-effective-target lp64 } */
#include <altivec.h>
/* original test as reported. */
@@ -2,9 +2,9 @@
left shift properly. */
/* { dg-do compile } */
-/* { dg-require-effective-target powerpc_altivec_ok } */
-/* { dg-require-effective-target lp64 } */
/* { dg-options "-maltivec -O3" } */
+/* { dg-require-effective-target powerpc_altivec } */
+/* { dg-require-effective-target lp64 } */
#include <altivec.h>
/* The original test as reported. */
@@ -2,8 +2,8 @@
vec_splat_{su}{8,16,32} invalid data properly. */
/* { dg-do compile } */
-/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-options "-maltivec" } */
+/* { dg-require-effective-target powerpc_altivec } */
#include <altivec.h>
@@ -1,6 +1,6 @@
/* { dg-do compile } */
-/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-options "-mdejagnu-cpu=power6 -maltivec -O2" } */
+/* { dg-require-effective-target powerpc_altivec } */
#include <altivec.h>
@@ -1,7 +1,7 @@
/* { dg-do compile } */
-/* { dg-require-effective-target powerpc_altivec_ok } */
-/* { dg-require-effective-target lp64 } */
/* { dg-options "-mdejagnu-cpu=power6 -maltivec -O2" } */
+/* { dg-require-effective-target powerpc_altivec } */
+/* { dg-require-effective-target lp64 } */
#include <altivec.h>
@@ -1,7 +1,7 @@
/* { dg-do compile } */
-/* { dg-require-effective-target powerpc_altivec_ok } */
-/* { dg-require-effective-target lp64 } */
/* { dg-options "-mdejagnu-cpu=power6 -maltivec -O2" } */
+/* { dg-require-effective-target powerpc_altivec } */
+/* { dg-require-effective-target lp64 } */
#include <altivec.h>
@@ -1,6 +1,6 @@
/* { dg-do compile } */
-/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-options "-O2 -mdejagnu-cpu=power8 -maltivec" } */
+/* { dg-require-effective-target powerpc_altivec } */
/* The expansion for vector character multiply introduces a vperm operation.
This tests that changing the vperm mask allows us to remove all swaps
@@ -1,6 +1,6 @@
/* { dg-do compile } */
-/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-options "-maltivec -O2 -ftree-vectorize -fno-vect-cost-model -fno-unroll-loops -fdump-tree-vect-details" } */
+/* { dg-require-effective-target powerpc_altivec } */
/* Test if unpack vectorization succeeds for type signed/unsigned
short and char. */
@@ -4,8 +4,8 @@
etc. */
/* { dg-do compile { target powerpc*-*-* } } */
-/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-options "-maltivec -O0" } */
+/* { dg-require-effective-target powerpc_altivec } */
#include <altivec.h>
@@ -1,6 +1,6 @@
/* { dg-do compile } */
-/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-options "-maltivec -O2" } */
+/* { dg-require-effective-target powerpc_altivec } */
/* Test that the vec_cmpne builtin generates the expected Altivec
instructions. */
@@ -1,8 +1,8 @@
/* Test that const and volatile qualifiers can mix on vec_mul operands. */
/* { dg-do compile } */
-/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-options "-maltivec -mvsx" } */
+/* { dg-require-effective-target powerpc_altivec } */
#include <altivec.h>
@@ -1,6 +1,6 @@
/* { dg-do run { target { powerpc*-*-* && vmx_hw } } } */
-/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-options "-maltivec" } */
+/* { dg-require-effective-target powerpc_altivec } */
#include <altivec.h>
@@ -1,6 +1,6 @@
/* { dg-do compile { target { powerpc*-*-* && vmx_hw } } } */
-/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-options "-maltivec" } */
+/* { dg-require-effective-target powerpc_altivec } */
#include <altivec.h>
@@ -1,5 +1,5 @@
/* { dg-options "-O3 -maltivec" } */
-/* { dg-require-effective-target powerpc_altivec_ok } */
+/* { dg-require-effective-target powerpc_altivec } */
/* Check vectorizer can exploit vector rotation instructions on Power, mainly
for the case rotation count is const number.
@@ -1,5 +1,5 @@
/* { dg-options "-O3 -maltivec" } */
-/* { dg-require-effective-target powerpc_altivec_ok } */
+/* { dg-require-effective-target powerpc_altivec } */
/* Check vectorizer can exploit vector rotation instructions on Power, mainly
for the case rotation count isn't const number.
@@ -1,7 +1,7 @@
/* { dg-do compile { target { powerpc*-*-* } } } */
-/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-skip-if "" { powerpc*-*-darwin* } } */
/* { dg-options "-mdejagnu-cpu=power7 -O2" } */
+/* { dg-require-effective-target powerpc_altivec } */
/* This used to ICE. During gimplification, "i" is widened to an unsigned
int. We used to fail at expand time as we tried to cram an SImode item