[llvm-commits] [llvm] r66735 - in /llvm/trunk: lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp lib/Target/X86/X86Instr64bit.td lib/Target/X86/X86InstrInfo.td test/CodeGen/X86/call-imm.ll

Evan Cheng echeng at apple.com
Thu Mar 12 10:06:35 PDT 2009


On Mar 12, 2009, at 9:19 AM, Chris Lattner wrote:

> On Mar 12, 2009, at 9:12 AM, Dan Gohman wrote:
>>>> assembly text output uses an indirect call ("call *") instead of a
>>>> direct call.
>>>
>>> That should be fine.  "call 0x1234" is not legal assembly,
>>
>> It is legal.
>>
>>> "call
>>> *0x1234" really would branch to address 0x1234 as far as I can tell.
>>
>> call *0x1234 loads the destination from 0x1234.
>
> Supporting this in the asm printer is just a matter of making the
> "call" asm printer modifier do the right thing, no?

Yes, I did it. But just did the wrong thing (replaced & with * when it  
should have just omitted the &). :-)

Evan

>
> -Chris
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits




More information about the llvm-commits mailing list