public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/101900] New: -mtune-ctrl=use_vector_fp_converts,use_vector_converts doesn't work with AVX
@ 2021-08-13 13:08 hjl.tools at gmail dot com
  2021-08-13 13:32 ` [Bug target/101900] " hjl.tools at gmail dot com
  2021-09-17  8:19 ` cvs-commit at gcc dot gnu.org
  0 siblings, 2 replies; 3+ messages in thread
From: hjl.tools at gmail dot com @ 2021-08-13 13:08 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 101900
           Summary: -mtune-ctrl=use_vector_fp_converts,use_vector_converts
                    doesn't work with AVX
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: hjl.tools at gmail dot com
                CC: crazylht at gmail dot com
  Target Milestone: ---
            Target: i386,x86-64

[hjl@gnu-tgl-2 pr87007]$ cat x.c
extern float f;
extern double d;
extern int i;

void
foo (void)
{
  d = f;
  f = i;
}
[hjl@gnu-tgl-2 pr87007]$ make CC=gcc
gcc -O2 -march=skylake -mtune-ctrl=use_vector_fp_converts,use_vector_converts
-S x.c
[hjl@gnu-tgl-2 pr87007]$ cat x.s
        .file   "x.c"
        .text
        .p2align 4
        .globl  foo
        .type   foo, @function
foo:
.LFB0:
        .cfi_startproc
        vxorps  %xmm0, %xmm0, %xmm0
        vcvtss2sd       f(%rip), %xmm0, %xmm1
        vcvtsi2ssl      i(%rip), %xmm0, %xmm0
        vmovsd  %xmm1, d(%rip)
        vmovss  %xmm0, f(%rip)
        ret
        .cfi_endproc
.LFE0:
        .size   foo, .-foo
        .ident  "GCC: (GNU) 11.2.1 20210728 (Red Hat 11.2.1-1)"
        .section        .note.GNU-stack,"",@progbits
[hjl@gnu-tgl-2 pr87007]$

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

end of thread, other threads:[~2021-09-17  8:19 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-13 13:08 [Bug target/101900] New: -mtune-ctrl=use_vector_fp_converts,use_vector_converts doesn't work with AVX hjl.tools at gmail dot com
2021-08-13 13:32 ` [Bug target/101900] " hjl.tools at gmail dot com
2021-09-17  8:19 ` cvs-commit at gcc dot gnu.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).