brintos

brintos / llvm-project-archived public Read only

0
0
Text · 568 B · 85d452f Raw
16 lines · plain
1; RUN: not opt -S -dxil-op-lower -mtriple=dxil-pc-shadermodel6.3-library %s 2>&1 | FileCheck %s2 3; DXIL operation rsqrt does not support double overload type4; CHECK: in function rsqrt_double5; CHECK-SAME: Cannot create RSqrt operation: Invalid overload type6 7; Function Attrs: noinline nounwind optnone8define noundef double @rsqrt_double(double noundef %a) #0 {9entry:10  %a.addr = alloca double, align 811  store double %a, ptr %a.addr, align 812  %0 = load double, ptr %a.addr, align 813  %dx.rsqrt = call double @llvm.dx.rsqrt.f64(double %0)14  ret double %dx.rsqrt15}16