configure.ac (gcc_gxx_include_dir_add_sysroot): Set it to 1 only when --with-gxx...
[platform/upstream/gcc.git] / gcc / testsuite / gcc.dg / vmx / extract-vsx-be-order.c
1 /* { dg-skip-if "" { powerpc*-*-darwin* } } */
2 /* { dg-require-effective-target powerpc_vsx_ok } */
3 /* Disable warnings to squelch deprecation message about -maltivec=be.  */
4 /* { dg-options "-maltivec=be -mabi=altivec -std=gnu99 -mvsx -w" } */
5
6 #include "harness.h"
7
8 static void test()
9 {
10   vector long long vl = {0, 1};
11   vector double vd = {0.0, 1.0};
12
13 #if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__
14   check (vec_extract (vl, 0) == 1, "vl, 0");
15   check (vec_extract (vd, 1) == 0.0, "vd, 1");
16 #else
17   check (vec_extract (vl, 0) == 0, "vl, 0");
18   check (vec_extract (vd, 1) == 1.0, "vd, 1");
19 #endif
20 }