File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed
llvm/test/CodeGen/SPIRV/opencl Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change 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: %5:vfid(<2 x s64>) = nnan ninf nsz arcp afn reassoc G_INTRINSIC intrinsic(@llvm.spv.unpackhalf2x16), %0:iid(s64) is only supported with the GLSL extended instruction set.
5+
6+ define hidden spir_func noundef nofpclass(nan inf) float @_Z9test_funcj (i32 noundef %0 ) local_unnamed_addr #0 {
7+ %2 = tail call reassoc nnan ninf nsz arcp afn <2 x float > @llvm.spv.unpackhalf2x16.v2f32 (i32 %0 )
8+ %3 = extractelement <2 x float > %2 , i64 0
9+ ret float %3
10+ }
11+
You can’t perform that action at this time.
0 commit comments