llvm-project/llvm/test/Transforms/InstCombine/tan-nofastmath.ll

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

18 lines
432 B
LLVM
Raw Normal View History

; RUN: opt < %s -instcombine -S | FileCheck %s
define float @mytan(float %x) {
entry:
%call = call float @atanf(float %x)
%call1 = call float @tanf(float %call)
ret float %call1
}
; CHECK-LABEL: define float @mytan(
; CHECK: %call = call float @atanf(float %x)
; CHECK-NEXT: %call1 = call float @tanf(float %call)
; CHECK-NEXT: ret float %call1
; CHECK-NEXT: }
declare float @tanf(float)
declare float @atanf(float)