diff options
author | JF Bastien <jfb@chromium.org> | 2016-01-06 08:37:30 -0800 |
---|---|---|
committer | JF Bastien <jfb@chromium.org> | 2016-01-06 08:37:30 -0800 |
commit | c00f9d8e54bdbfccdc86f7cb0546f92db764f48a (patch) | |
tree | a618750cac36b49befb159d81df27d57e4742561 /src/wasm.h | |
parent | 4d772e54ad5711dd5ee690daeb3813c06fb98c30 (diff) | |
download | binaryen-c00f9d8e54bdbfccdc86f7cb0546f92db764f48a.tar.gz binaryen-c00f9d8e54bdbfccdc86f7cb0546f92db764f48a.tar.bz2 binaryen-c00f9d8e54bdbfccdc86f7cb0546f92db764f48a.zip |
s2wasm: load/store swap offset/align params
These should probably be commutable so humans don't have to remember which order to read/write things in, but there's pushback and this really doesn't matter so fix it here, bikeshed on github.
This will require an associated fix in sexpr-wasm's GCC torture test failure list.
Ref: https://github.com/WebAssembly/sexpr-wasm-prototype/issues/17
Ref: https://github.com/WebAssembly/spec/pull/205
Diffstat (limited to 'src/wasm.h')
-rw-r--r-- | src/wasm.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/wasm.h b/src/wasm.h index 37e79dddb..cb137747f 100644 --- a/src/wasm.h +++ b/src/wasm.h @@ -635,12 +635,12 @@ public: o << (signed_ ? "_s" : "_u"); } restoreNormalColor(o); - if (align) { - o << " align=" << align; - } if (offset) { o << " offset=" << offset; } + if (align) { + o << " align=" << align; + } incIndent(o, indent); printFullLine(o, indent, ptr); return decIndent(o, indent); @@ -669,12 +669,12 @@ public: } } restoreNormalColor(o); - if (align) { - o << " align=" << align; - } if (offset) { o << " offset=" << offset; } + if (align) { + o << " align=" << align; + } incIndent(o, indent); printFullLine(o, indent, ptr); printFullLine(o, indent, value); |