This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH][PR target/15184] Fix for direct byte access on x86


On 01/30/15 03:24, Jakub Jelinek wrote:
On Fri, Jan 30, 2015 at 11:23:38AM +0100, Uros Bizjak wrote:
On Fri, Jan 30, 2015 at 11:13 AM, Jakub Jelinek <jakub@redhat.com> wrote:

  /* Each function should compile down to a byte move from
     the input register into x, possibly at an offset within x.  */
-/* { dg-final { scan-assembler-times "\tmovb\t%al, x" 4 } } */
+/* { dg-final { scan-assembler-times "movb\[ \\t\]+%al" 4 } } */

Shouldn't that better be movb\[^\n\r\]+%al, so that it doesn't
fail with -masm=intel ?

Unfortunately, -masm=intel emits "mov ..., al". And since there is
already plenty of scan-asms for mov[lq], I just took the easy shortcut
;)

Ok, let's consider --target_board=unix/-masm=intel as unsupportable then.
Yes, definitely.

jeff


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]