public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "pinskia at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug target/101529] [11/12 Regression] wrong code with __builtin_convertvector() and __builtin_shufflevector() at -Og Date: Sat, 06 Nov 2021 06:19:27 +0000 [thread overview] Message-ID: <bug-101529-4-h5qNfoepxw@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-101529-4@http.gcc.gnu.org/bugzilla/> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101529 --- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Patch which I am testing: diff --git a/gcc/config/aarch64/aarch64.c b/gcc/config/aarch64/aarch64.c index 2c00583e12c..d5b0cb7ae2f 100644 --- a/gcc/config/aarch64/aarch64.c +++ b/gcc/config/aarch64/aarch64.c @@ -23084,11 +23084,15 @@ aarch64_evpc_ins (struct expand_vec_perm_d *d) } gcc_assert (extractindex < nelt); - emit_move_insn (d->target, insv); + /* Use a new reg instead of target as one of the + operands might be target. */ + rtx original = gen_reg_rtx (GET_MODE (insv)); + + emit_move_insn (original, insv); insn_code icode = code_for_aarch64_simd_vec_copy_lane (mode); expand_operand ops[5]; create_output_operand (&ops[0], d->target, mode); - create_input_operand (&ops[1], d->target, mode); + create_input_operand (&ops[1], original, mode); create_integer_operand (&ops[2], 1 << idx); create_input_operand (&ops[3], extractv, mode); create_integer_operand (&ops[4], extractindex);
next prev parent reply other threads:[~2021-11-06 6:19 UTC|newest] Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top 2021-07-20 15:30 [Bug target/101529] New: " zsojka at seznam dot cz 2021-07-20 21:56 ` [Bug target/101529] " pinskia at gcc dot gnu.org 2021-08-11 19:27 ` pinskia at gcc dot gnu.org 2021-11-06 6:18 ` [Bug target/101529] [11/12 Regression] " pinskia at gcc dot gnu.org 2021-11-06 6:18 ` pinskia at gcc dot gnu.org 2021-11-06 6:19 ` pinskia at gcc dot gnu.org [this message] 2021-11-06 6:23 ` [Bug target/101529] [11/12 Regression] wrong code with __builtin_convertvector() and __builtin_shufflevector() at -Og caused by r11-2192 pinskia at gcc dot gnu.org 2021-11-06 6:49 ` pinskia at gcc dot gnu.org 2021-11-06 19:31 ` pinskia at gcc dot gnu.org 2021-11-10 4:07 ` cvs-commit at gcc dot gnu.org 2021-11-10 4:09 ` [Bug target/101529] [11 " pinskia at gcc dot gnu.org 2022-01-26 17:51 ` cvs-commit at gcc dot gnu.org 2022-01-26 17:52 ` pinskia 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-101529-4-h5qNfoepxw@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).