Update ChangeLog and version files for release
[official-gcc.git] / gcc / testsuite / gcc.target / aarch64 / fabd.c
blob7206d5e95c73520875f8ace2fee5ed2a3b5c7fd0
1 /* { dg-do run } */
2 /* { dg-options "-O1 -fno-inline --save-temps" } */
4 extern double fabs (double);
5 extern float fabsf (float);
6 extern void abort ();
7 extern void exit (int);
9 void
10 fabd_d (double x, double y, double d)
12 if ((fabs (x - y) - d) > 0.00001)
13 abort ();
16 /* { dg-final { scan-assembler "fabd\td\[0-9\]+" } } */
18 void
19 fabd_f (float x, float y, float d)
21 if ((fabsf (x - y) - d) > 0.00001)
22 abort ();
25 /* { dg-final { scan-assembler "fabd\ts\[0-9\]+" } } */
27 int
28 main ()
30 fabd_d (10.0, 5.0, 5.0);
31 fabd_d (5.0, 10.0, 5.0);
32 fabd_f (10.0, 5.0, 5.0);
33 fabd_f (5.0, 10.0, 5.0);
35 return 0;
38 /* { dg-final { cleanup-saved-temps } } */