| 1 |
; RUN: not llc -verify-machineinstrs -O0 -mtriple=spirv64-unknown-unknown %s -o /dev/null 2>&1 | FileCheck %s |
| 2 |
; RUN: not llc -verify-machineinstrs -O0 -mtriple=spirv32-unknown-unknown %s -o /dev/null 2>&1 | FileCheck %s |
| 3 |
|
| 4 |
; CHECK: LLVM ERROR: %{{.*}} = G_INTRINSIC intrinsic(@llvm.spv.reflect), %{{.*}}, %{{.*}} is only supported with the GLSL extended instruction set. |
| 5 |
|
| 6 |
define noundef <4 x float> @reflect_float4(<4 x float> noundef %a, <4 x float> noundef %b) { |
| 7 |
entry: |
| 8 |
%spv.reflect = call <4 x float> @llvm.spv.reflect.f32(<4 x float> %a, <4 x float> %b) |
| 9 |
ret <4 x float> %spv.reflect |
| 10 |
} |
| 11 |
|
| 12 |
declare <4 x float> @llvm.spv.reflect.f32(<4 x float>, <4 x float>) |
| 13 |
|