1 ; RUN: opt -passes=instcombine -S < %s | FileCheck %s
3 define double @test1() {
4 %sin = call double @__sinpi(double 1.0)
8 ; CHECK-LABEL: define double @test1(
9 ; CHECK: %[[sin:.*]] = call double @__sinpi(double 1.000000e+00)
10 ; CHECK-NEXT: ret double %[[sin]]
12 define double @test2() {
13 %cos = call double @__cospi(double 1.0)
17 ; CHECK-LABEL: define double @test2(
18 ; CHECK: %[[cos:.*]] = call double @__cospi(double 1.000000e+00)
19 ; CHECK-NEXT: ret double %[[cos]]
21 declare double @__sinpi(double %x) #0
22 declare double @__cospi(double %x) #0
24 attributes #0 = { readnone nounwind }