
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
11 lines
351 B
LLVM
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 firstbitshigh does not support double overload type
|
|
; CHECK: invalid intrinsic signature
|
|
|
|
define noundef double @firstbitshigh_double(double noundef %a) {
|
|
entry:
|
|
%1 = call double @llvm.dx.firstbitshigh.f64(double %a)
|
|
ret double %1
|
|
}
|