A tricky problem
Xi Ruoyao
ryxi@stu.xidian.edu.cn
Thu May 3 00:53:00 GMT 2018
On 2018-05-02 19:36 +0800, yiliang chen wrote:
> Since "fdiv" can be used in Intel dialect and att dialect, Why not use "fdiv" instead of "fdivs"ï¼
I don't know. The "fdivs" is just written by Uros. CC him here.
I didn't find the rules about inline assembly in GCC coding convention.
On 2018-05-02 19:26 +0800, Xi Ruoyao wrote:
> On 2018-05-02 18:47 +0800, yiliang chen wrote:
> > hi, When I compile Gcc with MSYS2 on Windows.I have encountered a thorny
> > issue.
> >
> > In order to output the Intel assembly file by default, I modified the
> > gcc/config/i386/i386.opt file as follows
> >
> > masm=
> > Target RejectNegative Joined Enum(asm_dialect) Var(ix86_asm_dialect)
> > Init(ASM_INTEL)
> > Use given assembler dialect.
> >
> > however, An error occurred when compiling to
> > libgcc/config/i386/sfp-exceptions.c
> > fileï¼ it tell me :
> >
> > C:\MSYS\MSYS32\tmp\cctIKXUx.s: Assembler messages:
> > C:\MSYS\MSYS32\tmp\cctIKXUx.s:69: Error: no such instruction: `fdivs DWORD
> > PTR [esp]'
> > C:\MSYS\MSYS32\tmp\cctIKXUx.s:135: Error: no such instruction: `fdivs DWORD
> > PTR [esp]'
> >
> > I checked Intel's developer's manualï¼I can't find a description of this
> > directive. So I want to know what's going on.
>
> "fdivs" should be "fdiv" in intel dialect.
>
> This instruction is in an inline assembly statement
> (libgcc/config/i386/sfp-exceptions.c:103). GCC don't know how to convert it
> to Intel dialect.
--
Xi Ruoyao <ryxi@stu.xidian.edu.cn>
School of Aerospace Science and Technology, Xidian University
More information about the Gcc-help
mailing list