xref: /llvm-project/llvm/test/CodeGen/DirectX/atan2_error.ll (revision b55c52c047a167f42abbde9a33356cfb96b82c7f)
1; RUN: not opt -S -dxil-intrinsic-expansion -dxil-op-lower -mtriple=dxil-pc-shadermodel6.3-library %s 2>&1 | FileCheck %s
2
3; DXIL operation atan does not support double overload type
4; CHECK: in function atan2_double
5; CHECK-SAME: Cannot create ATan operation: Invalid overload type
6
7define noundef double @atan2_double(double noundef %a, double noundef %b) #0 {
8entry:
9  %1 = call double @llvm.atan2.f64(double %a, double %b)
10  ret double %1
11}
12