KhronosGroup / KhronosGroup/SPIRV-Tools
spirv-val Validate OpSpecConstantOp
- Dominant language
- C++
- Stars
- 1.4k
- Forks
- 709
- Avg merge
- 1d 22h
- Merged PRs (30d)
- 28
Description
https://godbolt.org/z/dxh6WvG9Y
```
%data_grid = OpSpecConstantComposite %arr_v3uint_2 %inner_v0 %inner_v1
%extract_6 = OpSpecConstantOp %uint CompositeExtract %data_grid 3 2
```
@alan-baker I hit this today, it and spent to long figuring out what was wrong
I remember I tried to add https://github.com/KhronosGroup/SPIRV-Tools/pull/4907 before and we never got that, is there a way you propose to go about doing that PR, I forgot the details, but I think you didn't want a re-call of the pass
-------
Opcodes that need support
- [x] OpSConvert
- [x] OpUConvert
- [x] OpFConvert
- [x] OpSNegate
- [x] OpNot
- [x] OpIAdd
- [x] OpISub
- [x] OpIMul
- [x] OpUDiv
- [x] OpSDiv
- [x] OpUMod
- [x] OpSRem
- [x] OpSMod
- [x] OpShiftRightLogical
- [x] OpShiftRightArithmetic
- [x] OpShiftLeftLogical
- [x] OpBitwiseOr
- [x] OpBitwiseXor
- [x] OpBitwiseAnd
- [x] OpVectorShuffle
- [x] OpCompositeExtract
- [x] OpCompositeInsert
- [x] OpLogicalOr
- [x] OpLogicalAnd
- [x] OpLogicalNot
- [x] OpLogicalEqual
- [x] OpLogicalNotEqual
- [x] OpSelect
- [x] OpIEqual
- [x] OpINotEqual
- [x] OpULessThan
- [x] OpSLessThan
- [x] OpUGreaterThan
- [x] OpSGreaterThan
- [x] OpULessThanEqual
- [x] OpSLessThanEqual
- [x] OpUGreaterThanEqual
- [x] OpSGreaterThanEqual
- [x] OpQuantizeToF16
- [x] OpCooperativeMatrixLengthKHR
- [x] OpConvertFToS
- [x] OpConvertSToF
- [x] OpConvertFToU
- [x] OpConvertUToF
- [x] OpUConvert
- [x] OpConvertPtrToU
- [x] OpConvertUToPtr
- [x] OpGenericCastToPtr
- [x] OpPtrCastToGeneric
- [x] OpBitcast
- [x] OpFNegate
- [x] OpFAdd
- [x] OpFSub
- [x] OpFMul
- [x] OpFDiv
- [x] OpFRem
- [x] OpFMod
- [ ] OpAccessChain
- [ ] OpInBoundsAccessChain
- [ ] OpPtrAccessChain
- [ ] OpInBoundsPtrAccessChain
- [ ] OpUntypedAccessChainKHR
- [ ] OpUntypedInBoundsAccessChainKHR
- [ ] OpUntypedPtrAccessChainKHR
- [ ] OpUntypedInBoundsPtrAccessChainKHR
Contributor guide
Assessment
This issue has not been assessed yet.