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

--- Comment #10 from H.J. Lu <hjl.tools at gmail dot com> ---
(In reply to H.J. Lu from comment #9)
> [hjl@gnu-cfl-3 pr109982]$ cat x.c 
> struct S0 {
>    long long int f0;
> } __attribute__((aligned(128)));
> 
> int padding = 1;
> static struct S0 g_2415 __attribute__((aligned(4))) = {-1L};
> static struct S0 *g_2500 __attribute__((visibility("internal"), used)) =
> &g_2415;
> 

RTL expand has

(insn 7 6 8 (set (reg/f:DI 83) 
        (mem/f/c:DI (plus:DI (reg/f:DI 77 virtual-stack-vars)
                (const_int -8 [0xfffffffffffffff8])) [4 .result_ptr+0 S8 A64]))
"x.c":11:10 -1
     (nil))

(insn 8 7 9 (set (reg:OI 84) 
        (mem:OI (reg/f:DI 82 [ g_2500.0_1 ]) [2 *g_2500.0_1+0 S32 A1024]))
"x.c":11:10 -1
     (nil))

Alignment is wrong.

Reply via email to