public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "acoplan at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug target/97252] [10/11 Regression] arm: ICE compiling pure-code/pr94538-2.c with MVE since r10-7293-g3eff57aa Date: Tue, 16 Mar 2021 10:45:34 +0000 [thread overview] Message-ID: <bug-97252-4-s0ii953F0t@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-97252-4@http.gcc.gnu.org/bugzilla/> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97252 --- Comment #3 from Alex Coplan <acoplan at gcc dot gnu.org> --- FWIW, for the related testcase (which we also ICE on): typedef int __attribute((vector_size(16))) V; V v; void f() { v = (V){4095}; } clang pushes the constant out to the constant pool: $ clang -target arm ice.c -c -S -o - -O2 -march=armv8.1-m.main+mve -mpure-code -mfloat-abi=hard [...] f: .fnstart @ %bb.0: movw r0, :lower16:.LCP0_0 movw r1, :lower16:v movt r0, :upper16:.LCP0_0 movt r1, :upper16:v vldrw.u32 q0, [r0] vstrw.32 q0, [r1] bx lr .Lfunc_end0: .size f, .Lfunc_end0-f .cantunwind .fnend @ -- End function .type v,%object @ @v .comm v,16,8 .type .LCP0_0,%object @ @.LCP0_0 .section .rodata,"a",%progbits .p2align 4 .LCP0_0: .long 4095 @ 0xfff .long 0 @ 0x0 .long 0 @ 0x0 .long 0 @ 0x0 .size .LCP0_0, 16 I think we should do the same.
next prev parent reply other threads:[~2021-03-16 10:45 UTC|newest] Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top 2020-09-30 8:42 [Bug target/97252] New: " acoplan at gcc dot gnu.org 2020-09-30 14:48 ` [Bug target/97252] " acoplan at gcc dot gnu.org 2021-01-14 9:22 ` rguenth at gcc dot gnu.org 2021-03-15 11:50 ` acoplan at gcc dot gnu.org 2021-03-16 9:36 ` acoplan at gcc dot gnu.org 2021-03-16 10:45 ` acoplan at gcc dot gnu.org [this message] 2021-03-17 12:31 ` acoplan at gcc dot gnu.org 2021-03-22 14:44 ` cvs-commit at gcc dot gnu.org 2021-03-22 14:47 ` [Bug target/97252] [10 " acoplan at gcc dot gnu.org 2021-03-29 17:17 ` cvs-commit at gcc dot gnu.org 2021-03-29 17:19 ` [Bug target/97252] " acoplan at gcc dot gnu.org
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-97252-4-s0ii953F0t@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).