From 95ec7284f7d12c999dcbb27c7f3d2f1bcc9090ae Mon Sep 17 00:00:00 2001 From: Dejan Mircevski Date: Mon, 31 Aug 2015 16:19:07 -0400 Subject: [PATCH] Warn about ! opcode in assignment format. --- readme.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/readme.md b/readme.md index 86e6cb2..7121a76 100644 --- a/readme.md +++ b/readme.md @@ -105,6 +105,7 @@ OpReturn OpFunctionEnd ``` + In order to improve the text's readability, the `` generated by an instruction can be moved to the beginning of that instruction and followed by an `=` sign. This allows us to distinguish between variable defs and uses and @@ -240,6 +241,11 @@ Note that this has some interesting consequences, including: that named ID being output. This may be valid SPIR-V, contrary to the presumed intention of the writer. +* If the next instruction after a `!` has the assignment format + (described [above](#assignment-format)), then its OpCode cannot also be a + `!`. The alternate parsing mode cannot handle the assignment format + and will complain that `=` is not a valid operand. + ### Disassembler The standalone disassembler is the binary called `spirv-dis` and is located in -- 2.7.4