brintos

brintos / llvm-project-archived public Read only

0
0
Text · 515 B · feb994b Raw
13 lines · plain
1; RUN: not llc -verify-machineinstrs -O0 -mtriple=spirv64-unknown-unknown %s -o /dev/null 2>&1 | FileCheck %s2; RUN: not llc -verify-machineinstrs -O0 -mtriple=spirv32-unknown-unknown %s -o /dev/null 2>&1 | FileCheck %s3 4; CHECK: LLVM ERROR: %{{.*}} = G_INTRINSIC intrinsic(@llvm.spv.fwidth), %{{.*}} is only supported in shaders.5 6define noundef float @fwidth(float noundef %a) {7entry:8  %spv.fwidth = call float @llvm.spv.fwidth.f32(float %a)9  ret float %spv.fwidth10}11 12declare float @llvm.spv.fwidth.f32(float)13