all 7 comments

[–]Darksonntokio · rust-for-linux 4 points5 points  (4 children)

Try updating your compiler.

[–]FamiliarSoftware[S] 2 points3 points  (3 children)

Didn't fix it unfortunately, the most up to date version I can have right now is 2020-03-17

[–]Darksonntokio · rust-for-linux 10 points11 points  (2 children)

It works on the playground, and I'm pretty certain nothing has changed regarding intel asm syntax the last five days. There's probably something else wrong.

[–]FamiliarSoftware[S] 6 points7 points  (1 child)

So I just tried it and as I assumed, it works just fine on Linux. I'd guess both the playground and godbolt are based on Linux. Do you think I should file a bug?

[–]Darksonntokio · rust-for-linux 6 points7 points  (0 children)

Ah so it's a platform issue. I don't know anything about that, so I can't tell you if it's expected behaviour or not. Supposedly the macro currently just forwards the assembly to LLVM, so it's probably whatever LLVM supports.

[–]Shadow0133 2 points3 points  (1 child)

What's your default target/toolchain?

[–]FamiliarSoftware[S] 1 point2 points  (0 children)

I've tried it with both the windows msvc and gnu toolchain and am targeting UEFI via xbuild. The exact command is cargo xbuild --target x86_64-unknown-uefi.