public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/104974] New: [avx512fp16]  Error: operand type mismatch for `vmovw'
@ 2022-03-18  2:56 crazylht at gmail dot com
  2022-03-18  2:57 ` [Bug target/104974] " crazylht at gmail dot com
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: crazylht at gmail dot com @ 2022-03-18  2:56 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 104974
           Summary: [avx512fp16]  Error: operand type mismatch for `vmovw'
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: crazylht at gmail dot com
  Target Milestone: ---

cat test.c

short
foo (short a)
{
  register short b __asm ("%xmm1") = a;
  asm volatile ("": "+v" (b));
  register short c __asm ("%xmm2") = b;
  asm volatile ("": "+v" (c));
  return a;
}

foo(short):
        mov     eax, edi
        vmovw   xmm1, edi
        vmovw   xmm2, xmm1 
        ret

To move HImode from sse reg to sse reg under avx512fp16, vmovsh should be used
instead of vmovw.

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

end of thread, other threads:[~2022-03-18 12:02 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-18  2:56 [Bug target/104974] New: [avx512fp16] Error: operand type mismatch for `vmovw' crazylht at gmail dot com
2022-03-18  2:57 ` [Bug target/104974] " crazylht at gmail dot com
2022-03-18 12:01 ` cvs-commit at gcc dot gnu.org
2022-03-18 12:02 ` crazylht 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).