1 /* Test the vcaltd_f64 AArch64 SIMD intrinsic. */
4 /* { dg-options "-save-temps -O3" } */
10 extern void abort (void);
12 volatile float64_t in
[SIZE
] = { -10.4, -3.14, 0.0, 1.5, 5.3, 532.3 };
17 volatile uint64_t expected
;
22 for (i
= 0; i
< SIZE
; ++i
)
23 for (j
= 0; j
< SIZE
; ++j
)
25 expected
= __builtin_fabs (in
[i
]) < __builtin_fabs (in
[j
]) ? -1 : 0;
26 actual
= vcaltd_f64 (in
[i
], in
[j
]);
28 if (actual
!= expected
)
35 /* { dg-final { scan-assembler "facgt\[ \t\]+\[dD\]\[0-9\]+, ?\[dD\]\[0-9\]+, ?\[dD\]\[0-9\]+\n" } } */
36 /* { dg-final { cleanup-saved-temps } } */