Add missing Interpreter intrinsic lowering for sin, cos and ceil
[oota-llvm.git] / test / ExecutionEngine / Interpreter / intrinsics.ll
1 ; RUN: lli -O0 -force-interpreter < %s
2
3 ; libffi does not support fp128 so we don’t test it
4 declare float  @llvm.sin.f32(float)
5 declare double @llvm.sin.f64(double)
6 declare float  @llvm.cos.f32(float)
7 declare double @llvm.cos.f64(double)
8 declare float  @llvm.ceil.f32(float)
9 declare double @llvm.ceil.f64(double)
10
11 define i32 @main() {
12   %sin32 = call float @llvm.sin.f32(float 0.000000e+00)
13   %sin64 = call double @llvm.sin.f64(double 0.000000e+00)
14   %cos32 = call float @llvm.cos.f32(float 0.000000e+00)
15   %cos64 = call double @llvm.cos.f64(double 0.000000e+00)
16   %ceil32 = call float @llvm.ceil.f32(float 0.000000e+00)
17   %ceil64 = call double @llvm.ceil.f64(double 0.000000e+00)
18   ret i32 0
19 }