Commit 2b95385
committed
Revert "Add validation of vloada_half instruction (#1138)"
This reverts commit 1a7f142.
The vloada_halfn functions return float vectors:
floatn vloada_halfn(size_t offset, const __global half *p)
floatn vloada_halfn(size_t offset, const __local half *p)
floatn vloada_halfn(size_t offset, const __constant half *p)
floatn vloada_halfn(size_t offset, const __private half *p)
For the generic address space:
floatn vloada_halfn(size_t offset, const half *p)
These functions exist specifically for implementations that lack the
cl_khr_fp16 extension, and so do not include the halfn vector types,
but do include a scalar half type for use as a pointer argument *only*.
Likewise, in the SPIR-V OpenCL Extended Instruction Set, the result type
for vloada_halfn is defined as follows:
Result Type must be vector(2,3,4,8,16) of float values.
The assertion added to isBuiltinTransToExtInst(...) is therefore
incorrect.
The vloada_halfn SPIR-V OpenCL Extended Instruction Set instructions
that are emitted for calls to these builtins are accepted by the
SPIR-V Validator.1 parent a10c012 commit 2b95385
File tree
4 files changed
+0
-86
lines changed- lib/SPIRV
- test/negative
4 files changed
+0
-86
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
982 | 982 | | |
983 | 983 | | |
984 | 984 | | |
985 | | - | |
986 | | - | |
987 | 985 | | |
988 | 986 | | |
989 | 987 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
208 | 208 | | |
209 | 209 | | |
210 | 210 | | |
211 | | - | |
212 | | - | |
213 | | - | |
214 | | - | |
215 | | - | |
216 | | - | |
217 | | - | |
218 | | - | |
219 | | - | |
220 | | - | |
221 | 211 | | |
222 | 212 | | |
223 | 213 | | |
| |||
This file was deleted.
This file was deleted.
0 commit comments