From c00f9d8e54bdbfccdc86f7cb0546f92db764f48a Mon Sep 17 00:00:00 2001 From: JF Bastien Date: Wed, 6 Jan 2016 08:37:30 -0800 Subject: 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 --- src/wasm.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src') 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); -- cgit v1.2.3