llvm-project/llvm/test/CodeGen/DirectX/firstbituhigh_error.ll
Sarah Spall fb90733e19
[HLSL] implement elementwise firstbithigh hlsl builtin (#111082)
Implements elementwise firstbithigh hlsl builtin.
Implements firstbituhigh intrinsic for spirv and directx, which handles
unsigned integers
Implements firstbitshigh intrinsic for spirv and directx, which handles
signed integers.
Fixes #113486
Closes #99115
2024-11-06 07:31:39 -08:00

11 lines
351 B
LLVM

; RUN: not opt -S -dxil-op-lower -mtriple=dxil-pc-shadermodel6.3-library %s 2>&1 | FileCheck %s
; DXIL operation firstbituhigh does not support double overload type
; CHECK: invalid intrinsic signature
define noundef double @firstbituhigh_double(double noundef %a) {
entry:
%1 = call double @llvm.dx.firstbituhigh.f64(double %a)
ret double %1
}