https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79723
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |ASSIGNED
Last reconfirmed| |2017-02-27
Assignee|unassigned at gcc dot gnu.org |rguenth at gcc dot
gnu.org
Ever confirmed|0 |1
--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
;; MEM[(unsigned char * <address-space-2> *)vectp_s.11_53] = { 0, 0 };
(insn 34 33 35 (set (reg:V2DI 125)
(const_vector:V2DI [
(const_int 0 [0])
(const_int 0 [0])
])) "t.c":3 -1
(nil))
(insn 35 34 0 (set (mem:V2DI (reg/f:DI 108 [ vectp_s.12 ]) [1 MEM[(unsigned
char * <address-space-2> *)vectp_s.11_53]+0 S16 A128])
(reg:V2DI 125)) "t.c":3 -1
(nil))
the MEM_EXPR again has wrong type, only the pointer arg has the address-space
qualifier.
The issue is we pun pointers to scalars in get_vectype_for_scalar_type_and_size
and that loses address-space info.