<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On Jun 21, 2010, at 10:51 AM, Dale Johannesen wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div><br>On Jun 21, 2010, at 10:45 AMPDT, Evan Cheng wrote:<br><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">On Darwin ARM, this will generate b.w. That's wrong. The .w suffix is for Thumb mode.<br></blockquote></blockquote></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">Anton was claiming that too, but I don't believe it.  A8.2 says .w "has no effect" when targeting ARM, and the Darwin assembler duly ignores it, correctly IMO.<br></blockquote></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">Even if the Darwin assembler ignores it, it's still weird. The ".w" suffix only makes sense in Thumb mode, can you fix it?<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">I am not saying this is OK because the Darwin assembler ignores it, I  am saying it is conformant with the spec.  Did you look at A8.2?<br></blockquote></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">I am saying regardless of what the spec allows, it's still inconsistent. llvm only uses .w and .n suffices for Thumb instructions. Consistency is good, no?<br></blockquote><br>Allowing source that can be assembled in both ARM and Thumb modes is also good.</div></blockquote><div><br></div><div>Huh? The generated assembly function is either in ARM or Thumb mode.</div><br><blockquote type="cite"><div>  So is having less bloat in the compiler.<font class="Apple-style-span" color="#000000"><font class="Apple-style-span" color="#144FAE"><br></font></font></div></blockquote><br></div><div>It's one instruction. Clearly using .w suffix is already generating confusion among engineers. It's the only ARM instruction that uses any size suffix (which makes absolutely no sense since all ARM instructions are 32-bit). Please change it.</div><div><br></div><div>Evan</div><div><br></div></body></html>