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: Remove SLOW_BYTE_ACCESS from get_best_mode


> Here is the updated patch. I ran a micro benchmark with code difference
> similar to twolf:
>
> -       movl    (%rdi), %eax
> -       xorb    %ah, %ah
> -       subl    $1, %eax
> +       movq    (%rdi), %rax
> +       andl    $4294902015, %eax
> +       subq    $1, %rax
>         jne     .L8
>
> There is no speed difference on Nocona. I checked my SPEC results.
> twolf isn't very stable on my Nocona.

The former is significantly smaller though (7 bytes vs. 12 bytes).

Paul


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