Any register allowed in X86_64 inline asm address. #2463

This commit is contained in:
Christoffer Lerno
2025-09-07 00:03:49 +02:00
parent 9f55a74d2e
commit 7b5277d52c
10 changed files with 152 additions and 117 deletions

View File

@@ -0,0 +1,10 @@
// #target: macos-x64
import std;
fn int main()
{
asm
{
movl $eax, [$ax+$ecx]; // #error: Index register size (16) does not match base register size (32)
}
return 0;
}