This is the mail archive of the gcc-bugs@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]

[Bug tree-optimization/65968] Failure to remove casts, cause poor code generation


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65968

Leslie Zhai <lesliezhai at llvm dot org.cn> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |lesliezhai at llvm dot org.cn

--- Comment #2 from Leslie Zhai <lesliezhai at llvm dot org.cn> ---
not generated poor code for Mips target:


        .file   1 "t.c"
        .section .mdebug.abi64
        .previous
        .nan    legacy
        .module fp=64
        .module oddspreg
        .abicalls
        .text
        .align  2
        .align  3
        .globl  f
        .set    nomips16
        .set    nomicromips
        .ent    f
        .type   f, @function
f:
        .frame  $sp,0,$31               # vars= 0, regs= 0/0, args= 0, gp= 0
        .mask   0x00000000,0
        .fmask  0x00000000,0
        .set    noreorder
        .set    nomacro
        li      $3,8388608                      # 0x800000
        daddu   $3,$4,$3
        .align  3
.L2:
        lh      $2,0($4)
        daddiu  $4,$4,2
        mul     $2,$2,$2
        bne     $3,$4,.L2
        sh      $2,-2($4)

        j       $31
        nop

        .set    macro
        .set    reorder
        .end    f
        .size   f, .-f
        .ident  "GCC: (GNU) 5.5.0 20171010 (LLVM China GCC 5.5-2018.01)"

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