diff options
Diffstat (limited to 'clang/test/CIR/CodeGen/builtins-floating-point.c')
| -rw-r--r-- | clang/test/CIR/CodeGen/builtins-floating-point.c | 11 | 
1 files changed, 9 insertions, 2 deletions
diff --git a/clang/test/CIR/CodeGen/builtins-floating-point.c b/clang/test/CIR/CodeGen/builtins-floating-point.c index 193cc172..8bdc43c 100644 --- a/clang/test/CIR/CodeGen/builtins-floating-point.c +++ b/clang/test/CIR/CodeGen/builtins-floating-point.c @@ -7,14 +7,21 @@  float cosf(float f) {    return __builtin_cosf(f); -  // CHECK: %{{.*}} = cir.cos {{.*}} : !cir.float +  // CIR: %{{.*}} = cir.cos %{{.*}} : !cir.float    // LLVM: %{{.*}} = call float @llvm.cos.f32(float %{{.*}})    // OGCG: %{{.*}} = call float @llvm.cos.f32(float %{{.*}})  }  double cos(double f) {    return __builtin_cos(f); -  // CIR: {{.+}} = cir.cos {{.+}} : !cir.double +  // CIR: %{{.*}} = cir.cos %{{.*}} : !cir.double    // LLVM: %{{.*}} = call double @llvm.cos.f64(double %{{.*}})    // OGCG: %{{.*}} = call double @llvm.cos.f64(double %{{.*}})  } + +float ceil(float f) { +  return __builtin_ceilf(f); +  // CIR: %{{.*}} = cir.ceil %{{.*}} : !cir.float +  // LLVM: %{{.*}} = call float @llvm.ceil.f32(float %{{.*}}) +  // OGCG: %{{.*}} = call float @llvm.ceil.f32(float %{{.*}}) +}  | 
