search for: 2paha

Displaying 1 result from an estimated 1 matches for "2paha".

2019 Dec 09
4
IR inline assembly: the x86 Intel "offset" operator
...I'm having trouble figuring out what inline assembly I can emit into the LLVM IR that will work properly. So far, the closest I've gotten is call void asm sideeffect inteldialect "mov eax, offset $0 + $$1, "*m,~{eax},~{dirflag},~{fpsr},~{flags}"(i32** @"?ptr at Foo@@2PAHA") But that expands to mov eax, offset [?ptr at Foo@@2PAHA] + 1 which ends up incorrectly dereferencing the address first. I haven't found a working combination of code & constraints that will expand to mov eax, offset ?ptr at Foo@@2PAHA + 1 Is this possible? Thanks, - Eric --...