OpBitFieldSExtract is an example instruction, that according to the spec
"opname" : "OpBitFieldSExtract",
"class" : "Bit",
"opcode" : 202,
"operands" : [
{ "kind" : "IdResultType" },
{ "kind" : "IdResult" },
{ "kind" : "IdRef", "name" : "Base" },
{ "kind" : "IdRef", "name" : "Offset" },
{ "kind" : "IdRef", "name" : "Count" }
],
"capabilities" : [ "Shader", "BitInstructions" ],
"version": "1.0"
Requires the BitInstructions capability. This is not present when compiling using glslangValidator, also spirv-val does not raise an issue either
Is this a problem with the spec or is this capability really required in the generated spirv?