1 ; RUN: opt -S -dxil-op-lower < %s | FileCheck %s
3 ; Make sure dxil operation function calls for atan are generated for float and half.
5 define noundef float @tan_float(float noundef %a) {
7 ; CHECK:call float @dx.op.unary.f32(i32 17, float %{{.*}})
8 %elt.atan = call float @llvm.atan.f32(float %a)
12 define noundef half @tan_half(half noundef %a) {
14 ; CHECK:call half @dx.op.unary.f16(i32 17, half %{{.*}})
15 %elt.atan = call half @llvm.atan.f16(half %a)
19 declare half @llvm.atan.f16(half)
20 declare float @llvm.atan.f32(float)