[LLVMdev] x86 Intel Syntax and MASM 9.x
Gaster, Benedict
Benedict.Gaster at amd.com
Tue Jun 16 11:28:48 PDT 2009
Hi Anton,
Indeed your work around of rounding up to supported alignment is what I
have implemented but it was not clear to me that this should be
submitted back. As you point out as there are many other FIXMEs with the
X86IntelAsmPrinter maybe this is the "fix" for now.
Regards,
Ben
-----Original Message-----
From: llvmdev-bounces at cs.uiuc.edu [mailto:llvmdev-bounces at cs.uiuc.edu]
On Behalf Of Anton Korobeynikov
Sent: Tuesday, June 16, 2009 11:15 AM
To: LLVM Developers Mailing List
Subject: Re: [LLVMdev] x86 Intel Syntax and MASM 9.x
Hello, Benedict
> There is still one problem that I am looking into around changing
> alignments within SEGMENTS. The problem is that MASM allows 2,4,16,256
> alignments, default being 16, but LLVM is sometimes generating 32
> alignment, for example, consider the following code:
That's correct. MASM is too weak to represent even slightly non-trivial
program. In your particular case - LLVM IR can set up any alignment it
want. Also note the FIXME's in the X86IntelAsmPrinter.cpp wrt the
alignment.
You might try to round up the alignment to the highest allowed value,
but this might be an overkill...
--
With best regards, Anton Korobeynikov.
Faculty of Mathematics & Mechanics, Saint Petersburg State University.
_______________________________________________
LLVM Developers mailing list
LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
More information about the llvm-dev
mailing list