Mercurial > hg > CbC > CbC_llvm
view test/Transforms/InstCombine/pr26993.ll @ 120:1172e4bd9c6f
update 4.0.0
author | mir3636 |
---|---|
date | Fri, 25 Nov 2016 19:14:25 +0900 |
parents | |
children |
line wrap: on
line source
; RUN: opt -instcombine -S < %s | FileCheck %s define double @test1() { %sin = call double @__sinpi(double 1.0) ret double %sin } ; CHECK-LABEL: define double @test1( ; CHECK: %[[sin:.*]] = call double @__sinpi(double 1.000000e+00) ; CHECK-NEXT: ret double %[[sin]] define double @test2() { %cos = call double @__cospi(double 1.0) ret double %cos } ; CHECK-LABEL: define double @test2( ; CHECK: %[[cos:.*]] = call double @__cospi(double 1.000000e+00) ; CHECK-NEXT: ret double %[[cos]] declare double @__sinpi(double %x) #0 declare double @__cospi(double %x) #0 attributes #0 = { readnone nounwind }