This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/31334] Bad codegen for vector initializer with constants prop'd into a vector initializer
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 25 Mar 2007 21:36:22 -0000
- Subject: [Bug target/31334] Bad codegen for vector initializer with constants prop'd into a vector initializer
- References: <bug-31334-8585@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #7 from pinskia at gcc dot gnu dot org 2007-03-25 23:36 -------
Something like:
(define_insn_and_split "altivec_dup<mode>"
[(set (match_operand:V 0 "register_operand" "v")
(vec_duplicate: (match_operand: 0 "r")))
(clobber (match_operand:V 3 "memory_operand" "=Z"))]
"TARGET_ALTIVEC"
"#"
"&& reload_completed"
....
Which then will be generated from rs6000_expand_vector_init. I can write this
if you want, it is just I cannot test this until Monday.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31334