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