This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
possible Altivec inconsistency
- From: Mike Stump <mrs at apple dot com>
- To: GCC Development <gcc at gcc dot gnu dot org>
- Date: Tue, 31 Jan 2006 16:25:30 -0800
- Subject: possible Altivec inconsistency
I was looking through the altivec.md file and found the below. Seems
like either they should all be "", or "i"; my guess, they should all
be "i".
(define_insn "altivec_vspltb"
[(set (match_operand:V16QI 0 "register_operand" "=v")
(vec_duplicate:V16QI
(vec_select:QI (match_operand:V16QI 1 "register_operand" "v")
(parallel
[(match_operand:QI 2 "u5bit_cint_operand"
"")]))))]
"TARGET_ALTIVEC"
"vspltb %0,%1,%2"
[(set_attr "type" "vecperm")])
(define_insn "altivec_vsplth"
[(set (match_operand:V8HI 0 "register_operand" "=v")
(vec_duplicate:V8HI
(vec_select:HI (match_operand:V8HI 1 "register_operand" "v")
(parallel
[(match_operand:QI 2 "u5bit_cint_operand"
"")]))))]
"TARGET_ALTIVEC"
"vsplth %0,%1,%2"
[(set_attr "type" "vecperm")])
(define_insn "altivec_vspltw"
[(set (match_operand:V4SI 0 "register_operand" "=v")
(vec_duplicate:V4SI
(vec_select:SI (match_operand:V4SI 1 "register_operand" "v")
(parallel
[(match_operand:QI 2 "u5bit_cint_operand"
"i")]))))]