Debian Codegraph @

gcc/testsuite/gcc.target/aarch64/sve/pred-not-gen-4.c

raw
1 /* { dg-do compile } */
2 /* { dg-options "-O3" } */
3
4 void f13(double * restrict z, double * restrict w, double * restrict x, double * restrict y, int n)
5 {
6 for (int i = 0; i < n; i++) {
7 z[i] = (__builtin_isunordered(w[i], 0)) ? x[i] + w[i] : y[i] - w[i];
8 }
9 }
10
11 /* { dg-final { scan-assembler-not {\tbic\t} } } */
12 /* { dg-final { scan-assembler-times {\tnot\tp[0-9]+\.b, p[0-9]+/z, p[0-9]+\.b\n} 1 } } */
13 /* { dg-final { scan-assembler-times {\tfcmuo\tp[0-9]+\.d, p[0-9]+/z, z[0-9]+\.d, z[0-9]+\.d} 1 } } */