Closed RalfJung closed 5 months ago
Turns out this is a rustc issue: https://github.com/rust-lang/rust/issues/121592
By default, the playground outputs AT&T syntax, but you can switch to Intel syntax in the config menu:
... which yields the expected output:
movntps xmmword ptr [rdi], xmm0
Oh fancy, it must have been years since I last checked the config menu. :) Thanks!
it must have been years since I last checked the config menu
About 6.5 years... 40d88e560d8384e2db3b94ab279241319870c340
Rust inline assembly expects to be written like this:
However, when dumping the output assembly on the playground, it looks like this:
Operand order is swapped, and it's using
(%name)
instead of[name]
. I guess one is AT&T syntax and one is Intel syntax.Would be good if playground could be consistent with Rust's own inline asm syntax. :)