
Closes https://github.com/llvm/llvm-project/issues/99116 Implements `firstbitlow` by extracting common functionality from `firstbithigh` into a shared function while also fixing a bug for an edge case where `u64x3` and larger vectors will attempt to create vectors larger than the SPRIV max of 4. --------- Co-authored-by: Steven Perron <stevenperron@google.com>
11 lines
347 B
LLVM
11 lines
347 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 @firstbitlow_double(double noundef %a) {
|
|
entry:
|
|
%1 = call double @llvm.dx.firstbitlow.f64(double %a)
|
|
ret double %1
|
|
}
|