```
extern(C)
void bdasm()
{
asm {
naked;
mov EAX, [RAX+RIP];
//mov EAX, [RIP+RAX];
}
}
```
The error message is also terrible when it the check works.
GNU AS rejects this correctly with the following:
```
simple.s: Assembler messages:
simple.s:15: Error: `[RIP+RAX]' is not a valid base/index expression
```
Comment #1 by robert.schadek — 2024-12-13T19:20:19Z