<div dir="ltr">Hello,<div><br></div><div>I'm dealing with the following code (from ZenGL library), targeting OSX</div><div>---------------</div><div>{$mode delphi}</div><div><br></div><div>procedure m_SinCos( Angle : Single; out s, c : Single ); assembler; </div><div>asm</div><div>  FLD Angle</div><div>  FSINCOS</div><div>  FSTP [EDX]</div><div>  FSTP [EAX]</div><div>end;</div><div><br></div><div>var</div><div>  s,c: single;</div><div>begin</div><div>  m_SinCos(0,s,c);</div><div>end.</div><div>---------------</div><div><br></div><div>The latest Xcode 7.0 tools does recognize the generated assembler (fpc trunk):</div><div>---------</div><div># [5] FLD Angle</div><div><span class="" style="white-space:pre">       </span>flds<span class="" style="white-space:pre">      </span>8(%ebp)</div><div># [6] FSINCOS</div><div><span class="" style="white-space:pre">        </span>fsincos</div><div># [7] FSTP [EDX]</div><div><span class="" style="white-space:pre">     </span>fstp<span class="" style="white-space:pre">      </span>(%edx)</div><div># [8] FSTP [EAX]</div><div><span class="" style="white-space:pre">      </span>fstp<span class="" style="white-space:pre">      </span>(%eax) </div><div>---------</div><div><br></div><div>as a problem:</div><div><div><br></div><div>Assembling program</div><div>test.s:21:2: error: ambiguous instructions require an explicit suffix (could be 'fstps', 'fstpl', or 'fstpt')</div><div>        fstp    (%edx)</div><div>        ^</div><div>test.s:23:2: error: ambiguous instructions require an explicit suffix (could be 'fstps', 'fstpl', or 'fstpt')</div><div>        fstp    (%eax)</div></div><div><br></div><div>One interested could search the internet for the problem encountered with other platforms, and find out that the newer clang is somewhat backward incompatible.<br></div><div><br></div><div>My first attempt was to replace to put the suggested FSTPS instruction in place:</div><div>FSTPS [EDX]<br></div><div>However, the compiler stopped me, complaining about "FSTPS" is not a recognized instruction.</div><div><br></div><div>The next approach was to rewrite the function into at&t syntax. (The actual implementation could be found at sincos() of RTL math unit).<br></div><div><br></div><div>Is it a yet to be developed feature for FPC to satisfy demands of external tools relies on?</div><div><br></div><div>I presume since the compiler parses intel asm and translates it into at&t asm, it should take into consideration requirements of the latest osx building tools. </div><div>Or is it already supported and I'm just missing a compiler switch?</div><div><br></div><div>thanks,<br></div><div>Dmitry</div><div><br></div></div>