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

            Bug ID: 70157
           Summary: Mismatched __float128 load/store
           Product: gcc
           Version: 6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: hjl.tools at gmail dot com
                CC: ubizjak at gmail dot com
  Target Milestone: ---
            Target: x86-64

[hjl@gnu-6 pr70155]$ cat y.i
extern __float128 a, b;

struct foo
{
  __float128 i;
}__attribute__ ((packed));

extern struct foo x, y;

void
foo (void)
{
  a = b;
  x = y;
}
[hjl@gnu-6 pr70155]$ gcc -S y.i -O2
[hjl@gnu-6 pr70155]$ cat y.s
        .file   "y.i"
        .section        .text.unlikely,"ax",@progbits
.LCOLDB0:
        .text
.LHOTB0:
        .p2align 4,,15
        .globl  foo
        .type   foo, @function
foo:
.LFB0:
        .cfi_startproc
        movdqa  b(%rip), %xmm0
        movaps  %xmm0, a(%rip)
        movdqu  y(%rip), %xmm0
        movups  %xmm0, x(%rip)
        ret
        .cfi_endproc
.LFE0:
        .size   foo, .-foo
        .section        .text.unlikely
.LCOLDE0:
        .text
.LHOTE0:
        .ident  "GCC: (GNU) 5.3.1 20160212 (Red Hat 5.3.1-4)"
        .section        .note.GNU-stack,"",@progbits
[hjl@gnu-6 pr70155]$ 

Shouldn't only one of movdqa/movaps (movdqu/movups) used for __float128
load and store?

Reply via email to