1 /* { dg-do compile } */ 2 /* { dg-require-effective-target lp64 } */ 3 /* { dg-options "-O3" } */ 4 5 #include "lrint-matherr.h" 6 7 TEST (dld, double, long, ) 8 TEST (flf, float , long, ) 9 10 TEST (did, double, int, ) 11 TEST (fif, float , int, ) 12 13 TEST (dlld, double, long long, l) 14 TEST (fllf, float , long long, l) 15 16 /* { dg-final { scan-assembler-times "frintx\t\[d,s\]\[0-9\]+, \[d,s\]\[0-9\]+" 6 } } */ 17 /* { dg-final { scan-assembler-times "bl\tlrint" 4 } } */ 18 /* { dg-final { scan-assembler-times "bl\tllrint" 2 } } */ 19 /* { dg-final { scan-assembler-not "fcvtzs" } } */ 20