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