| 1 |
119734787 65536 458752 27 0 |
| 2 |
2 Capability Addresses |
| 3 |
2 Capability Shader |
| 4 |
3 MemoryModel 2 2 |
| 5 |
4 EntryPoint 6 2 "foo" |
| 6 |
3 Name 3 "res" |
| 7 |
2 TypeVoid 12 |
| 8 |
3 TypeFloat 13 32 |
| 9 |
4 TypePointer 14 5 13 |
| 10 |
4 TypeFunction 15 12 13 |
| 11 |
|
| 12 |
5 Function 12 2 0 15 |
| 13 |
3 FunctionParameter 13 3 |
| 14 |
|
| 15 |
2 Label 6 |
| 16 |
4 DPdx 13 16 3 |
| 17 |
1 Return |
| 18 |
|
| 19 |
1 FunctionEnd |
| 20 |
|
| 21 |
; Test that we gracefully reject an unimplemented opcode such as OpDPdx. |
| 22 |
|
| 23 |
; RUN: not llvm-spirv %s -to-binary -o %t.spv 2>&1 | FileCheck %s |
| 24 |
|
| 25 |
; CHECK: UnimplementedOpCode: Unimplemented opcode 207 |