Chad Rosier | 3f3335d | 2012-02-29 20:14:59 +0000 | [diff] [blame^] | 1 | // RUN: %clang_cc1 -S -O3 -fno-builtin -o - %s | FileCheck %s |
| 2 | |
| 3 | double ceil(double x); |
| 4 | double copysign(double,double); |
| 5 | double cos(double x); |
| 6 | double fabs(double x); |
| 7 | double floor(double x); |
| 8 | |
| 9 | double t1(double x) { return ceil(x); } |
| 10 | // CHECK: t1 |
| 11 | // CHECK: ceil |
| 12 | |
| 13 | double t2(double x, double y) { return copysign(x,y); } |
| 14 | // CHECK: t2 |
| 15 | // CHECK: copysign |
| 16 | |
| 17 | double t3(double x) { return cos(x); } |
| 18 | // CHECK: t3 |
| 19 | // CHECK: cos |
| 20 | |
| 21 | double t4(double x) { return fabs(x); } |
| 22 | // CHECK: t4 |
| 23 | // CHECK: fabs |
| 24 | |
| 25 | double t5(double x) { return floor(x); } |
| 26 | // CHECK: t5 |
| 27 | // CHECK: floor |