diff options
Diffstat (limited to 'llvm/test/Transforms/InstCombine/sincospi.ll')
-rw-r--r-- | llvm/test/Transforms/InstCombine/sincospi.ll | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/llvm/test/Transforms/InstCombine/sincospi.ll b/llvm/test/Transforms/InstCombine/sincospi.ll index f49fb35cb76..10342c50096 100644 --- a/llvm/test/Transforms/InstCombine/sincospi.ll +++ b/llvm/test/Transforms/InstCombine/sincospi.ll @@ -90,3 +90,12 @@ define double @test_constant_f64() { ; CHECK-NO-SINCOS: call double @__sinpi ; CHECK-NO-SINCOS: call double @__cospi } + +define double @test_fptr(double (double)* %fptr, double %p1) { + %sin = call double @__sinpi(double %p1) #0 + %cos = call double %fptr(double %p1) + %res = fadd double %sin, %cos + ret double %res +; CHECK-LABEL: @test_fptr +; CHECK: __sinpi +} |