Files
clang-p2996/llvm/test/CodeGen/DirectX/sqrt_error.ll
Farzon Lotfi 4cea2d049f [HLSL][DXIL] implement sqrt intrinsic (#86560)
completes #86187
- fix hlsl_intrinsic to cover the correct cases
- move to using `__builtin_elementwise_sqrt`
- add lowering of `Intrinsic::sqrt` to dxilop 24.
2024-03-25 18:02:30 -04:00

11 lines
301 B
LLVM

; RUN: not opt -S -dxil-op-lower %s 2>&1 | FileCheck %s
; DXIL operation sqrt does not support double overload type
; CHECK: LLVM ERROR: Invalid Overload Type
define noundef double @sqrt_double(double noundef %a) {
entry:
%elt.sqrt = call double @llvm.sqrt.f64(double %a)
ret double %elt.sqrt
}