blob: 437669798ff6c84bb681aea032c5f8eeec394067 [file]
; 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: error: {{.*}}: this instruction is only supported in shaders.
define noundef float @ddx(float noundef %a) {
entry:
%spv.ddx = call float @llvm.spv.ddx.f32(float %a)
ret float %spv.ddx
}
declare float @llvm.spv.ddx.f32(float)