1 /* { dg-do compile } */
2 /* { dg-options "-O2" } */
4 extern float fabsf (float);
5 extern float sqrtf (float);
6 extern double fabs (double);
7 extern double sqrt (double);
9 volatile float f1
, f2
, f3
;
10 volatile int cond1
, cond2
;
14 /* { dg-final { scan-assembler "fabs\ts\[0-9\]*" } } */
17 /* { dg-final { scan-assembler "fneg\ts\[0-9\]*" } } */
20 /* { dg-final { scan-assembler "fadd\ts\[0-9\]*" } } */
23 /* { dg-final { scan-assembler "fsub\ts\[0-9\]*" } } */
26 /* { dg-final { scan-assembler "fdiv\ts\[0-9\]*" } } */
29 /* { dg-final { scan-assembler "fmul\ts\[0-9\]*" } } */
32 /* { dg-final { scan-assembler "fsqrt\ts\[0-9\]*" } } */
35 /* { dg-final { scan-assembler "fcmp\ts\[0-9\]*" } } */
42 volatile double d1
, d2
, d3
;
46 /* { dg-final { scan-assembler "fabs\td\[0-9\]*" } } */
49 /* { dg-final { scan-assembler "fneg\td\[0-9\]*" } } */
52 /* { dg-final { scan-assembler "fadd\td\[0-9\]*" } } */
55 /* { dg-final { scan-assembler "fsub\td\[0-9\]*" } } */
58 /* { dg-final { scan-assembler "fdiv\td\[0-9\]*" } } */
61 /* { dg-final { scan-assembler "fmul\td\[0-9\]*" } } */
64 /* { dg-final { scan-assembler "fsqrt\td\[0-9\]*" } } */
67 /* { dg-final { scan-assembler "fcmp\td\[0-9\]*" } } */
75 volatile unsigned int u1
;
77 void test_convert () {
79 /* { dg-final { scan-assembler "fcvt\td\[0-9\]*" } } */
82 /* { dg-final { scan-assembler "fcvt\ts\[0-9\]*" } } */
85 /* { dg-final { scan-assembler "fcvtzs\tw\[0-9\], s\[0-9\]*" } } */
88 /* { dg-final { scan-assembler "fcvtzs\tw\[0-9\], d\[0-9\]*" } } */
91 /* { dg-final { scan-assembler "fcvtzu\tw\[0-9\], s\[0-9\]*" } } */
94 /* { dg-final { scan-assembler "fcvtzu\tw\[0-9\], d\[0-9\]*" } } */
97 /* { dg-final { scan-assembler "scvtf\ts\[0-9\]*" } } */
100 /* { dg-final { scan-assembler "scvtf\td\[0-9\]*" } } */
103 /* { dg-final { scan-assembler "ucvtf\ts\[0-9\]*" } } */
106 /* { dg-final { scan-assembler "ucvtf\td\[0-9\]*" } } */