xref: /llvm-project/llvm/test/CodeGen/DirectX/firstbitlow_error.ll (revision 4f48abff0fb90ea0a05470755b799cdb1ff79d89)
1*4f48abffSAshley Coleman; RUN: not opt -S -dxil-op-lower -mtriple=dxil-pc-shadermodel6.3-library %s 2>&1 | FileCheck %s
2*4f48abffSAshley Coleman
3*4f48abffSAshley Coleman; DXIL operation firstbitshigh does not support double overload type
4*4f48abffSAshley Coleman; CHECK: invalid intrinsic signature
5*4f48abffSAshley Coleman
6*4f48abffSAshley Colemandefine noundef double @firstbitlow_double(double noundef %a) {
7*4f48abffSAshley Colemanentry:
8*4f48abffSAshley Coleman  %1 = call double @llvm.dx.firstbitlow.f64(double %a)
9*4f48abffSAshley Coleman  ret double %1
10*4f48abffSAshley Coleman}
11