altivec.md warnings on 3.3 20021104 on darwin

rbrown64@csc.com.au rbrown64@csc.com.au
Wed Nov 6 00:33:00 GMT 2002


I assume the warnings from genrecog may have caused the insn-emit.c warnings
but don't understand the machine description enough to fix them.

./genrecog ../../gcc-20021104/gcc/config/rs6000/rs6000.md > tmp-recog.c
../../gcc-20021104/gcc/config/rs6000/altivec.md:1601: warning: operand 3 missing mode?
../../gcc-20021104/gcc/config/rs6000/altivec.md:1611: warning: operand 3 missing mode?
../../gcc-20021104/gcc/config/rs6000/altivec.md:1621: warning: operand 3 missing mode?
../../gcc-20021104/gcc/config/rs6000/altivec.md:1631: warning: operand 3 missing mode?
/bin/sh ../../gcc-20021104/gcc/move-if-change tmp-recog.c insn-recog.c

./genemit ../../gcc-20021104/gcc/config/rs6000/rs6000.md > tmp-emit.c
/bin/sh ../../gcc-20021104/gcc/move-if-change tmp-emit.c insn-emit.c
echo timestamp > s-emit
stage1/xgcc -Bstage1/ -B/usr/local/powerpc-apple-darwin6.0/bin/   -g -O2 -DIN_GCC   -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes
-Wtraditional -pedantic -Wno-long-long -fno-common  -DHAVE_CONFIG_H    -I. -I. -I../../gcc-20021104/gcc -I../../gcc-20021104/gcc/.
-I../../gcc-20021104/gcc/config -I../../gcc-20021104/gcc/../include -c insn-emit.c \
  -o insn-emit.o
insn-emit.c: In function `gen_altivec_predicate_v4si':
insn-emit.c:4246: warning: unused parameter `operand0'
insn-emit.c: In function `gen_altivec_predicate_v4sf':
insn-emit.c:4268: warning: unused parameter `operand0'
insn-emit.c: In function `gen_altivec_predicate_v8hi':
insn-emit.c:4290: warning: unused parameter `operand0'
insn-emit.c: In function `gen_altivec_predicate_v16qi':
insn-emit.c:4312: warning: unused parameter `operand0'


   1598 ;; We can get away with generating the opcode on the fly (%3 below)
   1599 ;; because all the predicates have the same scheduling parameters.
   1600
***1601 (define_insn "altivec_predicate_v4si"
   1602   [(set (reg:CC 74)
   1603         (unspec:CC [(match_operand:V4SI 1 "register_operand" "v")
   1604                     (match_operand:V4SI 2 "register_operand" "v")
   1605                     (match_operand 3 "any_operand" "")] 173))
   1606    (clobber (match_scratch:V4SI 0 "=v"))]
   1607   "TARGET_ALTIVEC"
   1608   "%3 %0,%1,%2"
   1609 [(set_attr "type" "veccmp")])
   1610
***1611 (define_insn "altivec_predicate_v4sf"
   1612   [(set (reg:CC 74)
   1613         (unspec:CC [(match_operand:V4SF 1 "register_operand" "v")
   1614                     (match_operand:V4SF 2 "register_operand" "v")
   1615                     (match_operand 3 "any_operand" "")] 174))
   1616    (clobber (match_scratch:V4SF 0 "=v"))]
   1617   "TARGET_ALTIVEC"
   1618   "%3 %0,%1,%2"
   1619 [(set_attr "type" "veccmp")])
   1620
***1621 (define_insn "altivec_predicate_v8hi"
   1622   [(set (reg:CC 74)
   1623         (unspec:CC [(match_operand:V8HI 1 "register_operand" "v")
   1624                     (match_operand:V8HI 2 "register_operand" "v")
   1625                     (match_operand 3 "any_operand" "")] 175))
   1626    (clobber (match_scratch:V8HI 0 "=v"))]
   1627   "TARGET_ALTIVEC"
   1628   "%3 %0,%1,%2"
   1629 [(set_attr "type" "veccmp")])
   1630
***1631 (define_insn "altivec_predicate_v16qi"
   1632   [(set (reg:CC 74)
   1633         (unspec:CC [(match_operand:V16QI 1 "register_operand" "v")
   1634                     (match_operand:V16QI 2 "register_operand" "v")
   1635                     (match_operand 3 "any_operand" "")] 175))
   1636    (clobber (match_scratch:V16QI 0 "=v"))]
   1637   "TARGET_ALTIVEC"
   1638   "%3 %0,%1,%2"
   1639 [(set_attr "type" "veccmp")])

   4242
   4243 /* ../../gcc-20021104/gcc/config/rs6000/altivec.md:1601 */
   4244 rtx
   4245 gen_altivec_predicate_v4si (operand0, operand1, operand2, operand3)
***4246      rtx operand0;
   4247      rtx operand1;
   4248      rtx operand2;
   4249      rtx operand3;
   4250 {
   4251   return gen_rtx_PARALLEL (VOIDmode, gen_rtvec (2,
   4252                 gen_rtx_SET (VOIDmode,
   4253         gen_rtx_REG (CCmode,
   4254         74),
   4255         gen_rtx_UNSPEC (CCmode,
   4256         gen_rtvec (3,
   4257                 operand1,
   4258                 operand2,
   4259                 operand3),
   4260         173)),
   4261                 gen_rtx_CLOBBER (VOIDmode,
   4262         gen_rtx_SCRATCH (V4SImode))));
   4263 }
   4264
   4265 /* ../../gcc-20021104/gcc/config/rs6000/altivec.md:1611 */
   4266 rtx
   4267 gen_altivec_predicate_v4sf (operand0, operand1, operand2, operand3)
***4268      rtx operand0;
   4269      rtx operand1;
   4270      rtx operand2;
   4271      rtx operand3;
   4272 {
...
   4285 }
   4286
   4287 /* ../../gcc-20021104/gcc/config/rs6000/altivec.md:1621 */
   4288 rtx
   4289 gen_altivec_predicate_v8hi (operand0, operand1, operand2, operand3)
***4290      rtx operand0;
   4291      rtx operand1;
   4292      rtx operand2;
   4293      rtx operand3;
   4294 {
...
   4307 }
   4308
   4309 /* ../../gcc-20021104/gcc/config/rs6000/altivec.md:1631 */
   4310 rtx
   4311 gen_altivec_predicate_v16qi (operand0, operand1, operand2, operand3)
***4312      rtx operand0;
   4313      rtx operand1;
   4314      rtx operand2;
   4315      rtx operand3;
   4316 {
   4317   return gen_rtx_PARALLEL (VOIDmode, gen_rtvec



More information about the Gcc-bugs mailing list