http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59601

Uroš Bizjak <ubizjak at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2013-12-26
     Ever confirmed|0                           |1

--- Comment #3 from Uroš Bizjak <ubizjak at gmail dot com> ---
4.8 generates:

_Z3foov.resolver:
    subq    $8, %rsp
    call    __cpu_indicator_init
    cmpl    $3, __cpu_model+4(%rip)
    movl    $_Z3foov.arch_corei7, %eax
    movl    $_Z3foov, %edx
    cmovne    %rdx, %rax
    addq    $8, %rsp
    ret

4.9:

_Z3foov.resolver:
    subq    $8, %rsp
    call    __cpu_indicator_init
    cmpl    $1, __cpu_model+8(%rip)
    movl    $_Z3foov.arch_corei7, %edx
    movl    $_Z3foov, %eax
    cmove    %rdx, %rax
    addq    $8, %rsp
    ret

4.9 looks at subtype (__cpu_model+8), which is wrong. corei7 is processor type,
located at (__cpu_model+4).

Reply via email to