public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/110762] New: inappropriate use of SSE (or AVX) insns for v2sf mode operations
@ 2023-07-21  8:43 jbeulich at suse dot com
  2023-07-21  9:13 ` [Bug target/110762] " rguenth at gcc dot gnu.org
                   ` (24 more replies)
  0 siblings, 25 replies; 26+ messages in thread
From: jbeulich at suse dot com @ 2023-07-21  8:43 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 110762
           Summary: inappropriate use of SSE (or AVX) insns for v2sf mode
                    operations
           Product: gcc
           Version: 13.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: jbeulich at suse dot com
  Target Milestone: ---

Perhaps related to work done for bug 95046, this code

typedef float __attribute__((vector_size(8))) v2sf_t;
typedef float __attribute__((vector_size(16))) v4sf_t;

v2sf_t test(v4sf_t x, v4sf_t y) {
        v2sf_t x2, y2;

        __builtin_ia32_storelps(&x2, x);
        __builtin_ia32_storelps(&y2, y);

        return x2 + y2;
}

compiled for a 64-bit target with -O2 translates to a single addps (besides the
ret instruction of course), coming from *mmx_addv2sf3. This cannot be right:
The contents of the upper halves of both registers aren't known at this point,
so the extra care mentioned in 95046 does not look to be applied here.

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

end of thread, other threads:[~2023-08-25  9:04 UTC | newest]

Thread overview: 26+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-07-21  8:43 [Bug target/110762] New: inappropriate use of SSE (or AVX) insns for v2sf mode operations jbeulich at suse dot com
2023-07-21  9:13 ` [Bug target/110762] " rguenth at gcc dot gnu.org
2023-07-21  9:19 ` rguenth at gcc dot gnu.org
2023-07-21  9:36 ` ubizjak at gmail dot com
2023-07-21  9:40 ` amonakov at gcc dot gnu.org
2023-07-21 10:22 ` segher at gcc dot gnu.org
2023-07-21 10:46 ` rguenth at gcc dot gnu.org
2023-07-21 10:47 ` rguenth at gcc dot gnu.org
2023-07-21 10:49 ` rguenth at gcc dot gnu.org
2023-07-21 10:53 ` jbeulich at suse dot com
2023-07-21 11:09 ` ubizjak at gmail dot com
2023-07-21 11:16 ` rguenth at gcc dot gnu.org
2023-07-21 11:25 ` rguenth at gcc dot gnu.org
2023-07-21 12:42 ` ubizjak at gmail dot com
2023-07-21 12:47 ` amonakov at gcc dot gnu.org
2023-07-21 13:18 ` jbeulich at suse dot com
2023-07-26  7:30 ` ubizjak at gmail dot com
2023-07-26  7:53 ` rguenth at gcc dot gnu.org
2023-07-26  9:34 ` ubizjak at gmail dot com
2023-07-26 10:18 ` cvs-commit at gcc dot gnu.org
2023-07-28  6:28 ` [Bug target/110762] [11/12/13 Regression] " rguenth at gcc dot gnu.org
2023-07-28  8:15 ` ubizjak at gmail dot com
2023-07-31  8:04 ` ubizjak at gmail dot com
2023-07-31  8:10 ` crazylht at gmail dot com
2023-08-07 11:52 ` cvs-commit at gcc dot gnu.org
2023-08-25  9:04 ` ubizjak at gmail dot com

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).