public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/44141]  New: Redundant loads and stores generated for AMD bdver1 target
@ 2010-05-14 15:24 harsha dot jagasia at amd dot com
  2010-05-14 15:32 ` [Bug target/44141] " hjl dot tools at gmail dot com
  2010-05-14 16:36 ` rguenth at gcc dot gnu dot org
  0 siblings, 2 replies; 22+ messages in thread
From: harsha dot jagasia at amd dot com @ 2010-05-14 15:24 UTC (permalink / raw)
  To: gcc-bugs

Redundant loads and stores created with the new -mtune=bdver1 target. BDVER1 is
optimized to generate packed single moves instead packed double/integer moves
to save 1 byte of space.

Here is the excerpt from the asm dump for ac.f90 benchmark in the Polyhedron
testsuite. Complete asm dump generated with -dP also attached.

vmovaps %xmm15, 304(%rsp)       # 4985  *avx_movv4sf_internal/3 [length = 9]
#(insn 4987 4985 2838 ac.f90:503 (set (reg:V2DF 52 xmm15)
#        (mem/c:V2DF (plus:DI (reg/f:DI 7 sp)
#                (const_int 304 [0x130])) [16 %sfp+-37872 S16 A128])) 1031
{*avx_movv2df_internal} (nil))
        vmovaps 304(%rsp), %xmm15       # 4987  *avx_movv2df_internal/2 [length
= 9]
#(insn 2838 4987 4986 ac.f90:503 (set (reg:V2DF 52 xmm15)
#        (div:V2DF (reg:V2DF 52 xmm15)
#            (mem:V2DF (plus:DI (reg/f:DI 7 sp)
#                    (const_int 32432 [0x7eb0])) [2 *vect_pdclroo.541_5123+0
S16 A128]))) 1100 {avx_divv2df3} (nil))

Comments from Uros:
You are changing V4SFmode to V2DF mode. Since this combination is not
allowed by MODES_TIEABLE_P (and/or CANNOT_CHANGE_MODE_CLASS), value
gets reloaded through the memory. You can perhaps experiment with
these two macros a bit.


-- 
           Summary: Redundant loads and stores generated for AMD bdver1
                    target
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: harsha dot jagasia at amd dot com
 GCC build triplet: x86_64-unknown-linux-gnu
  GCC host triplet: x86_64-unknown-linux-gnu
GCC target triplet: x86_64-unknown-linux-gnu


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


^ permalink raw reply	[flat|nested] 22+ messages in thread

end of thread, other threads:[~2012-05-09 19:42 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-44141-4@http.gcc.gnu.org/bugzilla/>
2012-02-22 13:21 ` [Bug target/44141] Redundant loads and stores generated for AMD bdver1 target xiaoyuanbo at yeah dot net
2012-03-22 13:24 ` venkataramanan.kumar at amd dot com
2012-03-22 13:26 ` venkataramanan.kumar at amd dot com
2012-03-22 13:29 ` venkataramanan.kumar at amd dot com
2012-03-22 13:56 ` ubizjak at gmail dot com
2012-03-27 10:52 ` venkataramanan.kumar at amd dot com
2012-03-27 11:27 ` venkataramanan.kumar at amd dot com
2012-03-27 17:05 ` [Bug rtl-optimization/44141] " ubizjak at gmail dot com
2012-03-28  3:23 ` venkataramanan.kumar at amd dot com
2012-03-28  7:08 ` ubizjak at gmail dot com
2012-03-28  8:01 ` jakub at gcc dot gnu.org
2012-03-28 10:42 ` venkataramanan.kumar at amd dot com
2012-03-28 10:53 ` jakub at gcc dot gnu.org
2012-04-01  7:55 ` venkataramanan.kumar at amd dot com
2012-05-07 17:28 ` uweigand at gcc dot gnu.org
2012-05-08 10:28 ` [Bug target/44141] " rguenth at gcc dot gnu.org
2012-05-08 10:36 ` ubizjak at gmail dot com
2012-05-09 17:04 ` ubizjak at gmail dot com
2012-05-09 18:37 ` uros at gcc dot gnu.org
2012-05-09 20:42 ` ubizjak at gmail dot com
2010-05-14 15:24 [Bug target/44141] New: " harsha dot jagasia at amd dot com
2010-05-14 15:32 ` [Bug target/44141] " hjl dot tools at gmail dot com
2010-05-14 16:36 ` rguenth at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).