You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Auto merge of #78684 - devsnek:inline-asm-wasm, r=Amanieu
Add wasm32 support to inline asm
There is some contention around inline asm and wasm, and I really only made this to figure out the process of hacking on rustc, but I figured as long as the code existed, it was worth uploading.
cc `@Amanieu`
> **Note**: On x86 we treat `reg_byte` differently from `reg` because the compiler can allocate `al` and `ah` separately whereas `reg` reserves the whole register.
526
528
>
@@ -529,6 +531,8 @@ Here is the list of currently supported register classes:
529
531
> Note #3: NVPTX doesn't have a fixed register set, so named registers are not supported.
530
532
>
531
533
> Note #4: On ARM the frame pointer is either `r7` or `r11` depending on the platform.
534
+
>
535
+
> Note #5: WebAssembly doesn't have registers, so named registers are not supported.
532
536
533
537
Additional register classes may be added in the future based on demand (e.g. MMX, x87, etc).
534
538
@@ -562,6 +566,7 @@ Each register class has constraints on which value types they can be used with.
> **Note**: For the purposes of the above table pointers, function pointers and `isize`/`usize` are treated as the equivalent integer type (`i16`/`i32`/`i64` depending on the target).
0 commit comments