2 /* { dg-options "-O3" } */
4 /* This test does not work when the truth type does not match vector type. */
5 /* { dg-additional-options "-mno-avx512f" { target { i?86-*-* x86_64-*-* } } } */
6 /* { dg-additional-options "-march=armv8-a" { target aarch64_sve } } */
7 /* { dg-xfail-run-if "truth type does not match vector type" { amdgcn-*-* } } */
26 #define BASE ((TYPE) -1 < 0 ? -126 : 4)
28 __attribute__ ((noinline
, noipa
))
29 void fun1(TYPE
*x
, int n
)
31 for (int i
= 0; i
< n
; i
++)
35 __attribute__ ((noinline
, noipa
, optimize("O1")))
36 void fun2(TYPE
*x
, int n
)
38 for (int i
= 0; i
< n
; i
++)
50 for (int i
= 1; i
< N
; ++i
)
55 printf ("%d: 0x%x\n", i
, a
[i
]);
61 for (int i
= 0; i
< N
; ++i
)
64 printf ("%d = 0x%x == 0x%x\n", i
, a
[i
], b
[i
]);