Files
Justin Bogner 4ac26f45fa [DirectX] Update checks for more precise error messages (#200491)
We've improved these error messages in #199217, update the tests for the
DirectX backend.
2026-05-29 20:40:31 +00:00

11 lines
429 B
LLVM

; RUN: not opt -S -dxil-op-lower -mtriple=dxil-pc-shadermodel6.3-library %s 2>&1 | FileCheck %s
; DXIL operation firstbitshigh does not support double overload type
; CHECK: error: intrinsic argument 0 type (overload type 0) expected any integer or integer vector, but got double
define noundef double @firstbitshigh_double(double noundef %a) {
entry:
%1 = call double @llvm.dx.firstbitshigh.f64(double %a)
ret double %1
}