aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAldy Hernandez <aldyh@redhat.com>2002-01-08 01:13:36 +0000
committerAldy Hernandez <aldyh@gcc.gnu.org>2002-01-08 01:13:36 +0000
commitc62f2db5485b158c20dc731dd390152a2b6511e8 (patch)
tree00a87b8d94d7017877ead1447721471dac826e28
parentb5235ba76c616e0e12440894d23c7a387f316b2a (diff)
downloadgcc-c62f2db5485b158c20dc731dd390152a2b6511e8.zip
gcc-c62f2db5485b158c20dc731dd390152a2b6511e8.tar.gz
gcc-c62f2db5485b158c20dc731dd390152a2b6511e8.tar.bz2
rs6000.c (bdesc_2arg): Add altivec predicates.
2002-01-07 Aldy Hernandez <aldyh@redhat.com> * rs6000.c (bdesc_2arg): Add altivec predicates. * rs6000.c (print_operand): Remove extra space. (altivec_expand_unop_builtin): Fix thinko. (altivec_expand_binop_builtin): Same. (altivec_expand_ternop_builtin): Same. (altivec_expand_builtin): Same. From-SVN: r48620
-rw-r--r--gcc/ChangeLog8
-rw-r--r--gcc/config/rs6000/rs6000.c16
2 files changed, 16 insertions, 8 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 409bc75..5bd2337 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,11 @@
+2002-01-07 Aldy Hernandez <aldyh@redhat.com>
+
+ * config/rs6000/rs6000.c (print_operand): Remove extra space.
+ (altivec_expand_unop_builtin): Fix thinko.
+ (altivec_expand_binop_builtin): Same.
+ (altivec_expand_ternop_builtin): Same.
+ (altivec_expand_builtin): Same.
+
2002-01-07 Richard Henderson <rth@redhat.com>
* config/rs6000/xcoff.h (ASM_FILE_START): Reverted to profile_flag.
diff --git a/gcc/config/rs6000/rs6000.c b/gcc/config/rs6000/rs6000.c
index 4be53b7..98919c7d 100644
--- a/gcc/config/rs6000/rs6000.c
+++ b/gcc/config/rs6000/rs6000.c
@@ -3399,7 +3399,7 @@ altivec_expand_unop_builtin (icode, arglist, target)
if (arg0 == error_mark_node)
return target;
- if (target != 0
+ if (target == 0
|| GET_MODE (target) != tmode
|| ! (*insn_data[icode].operand[0].predicate) (target, tmode))
target = gen_reg_rtx (tmode);
@@ -3433,7 +3433,7 @@ altivec_expand_binop_builtin (icode, arglist, target)
if (arg0 == error_mark_node || arg1 == error_mark_node)
return target;
- if (target != 0
+ if (target == 0
|| GET_MODE (target) != tmode
|| ! (*insn_data[icode].operand[0].predicate) (target, tmode))
target = gen_reg_rtx (tmode);
@@ -3474,7 +3474,7 @@ altivec_expand_ternop_builtin (icode, arglist, target)
|| arg2 == error_mark_node)
return target;
- if (target != 0
+ if (target == 0
|| GET_MODE (target) != tmode
|| ! (*insn_data[icode].operand[0].predicate) (target, tmode))
target = gen_reg_rtx (tmode);
@@ -3517,7 +3517,7 @@ altivec_expand_builtin (exp, target)
tmode = insn_data[icode].operand[0].mode;
mode0 = insn_data[icode].operand[1].mode;
- if (target != 0
+ if (target == 0
|| GET_MODE (target) != tmode
|| ! (*insn_data[icode].operand[0].predicate) (target, tmode))
target = gen_reg_rtx (tmode);
@@ -3538,7 +3538,7 @@ altivec_expand_builtin (exp, target)
tmode = insn_data[icode].operand[0].mode;
mode0 = insn_data[icode].operand[1].mode;
- if (target != 0
+ if (target == 0
|| GET_MODE (target) != tmode
|| ! (*insn_data[icode].operand[0].predicate) (target, tmode))
target = gen_reg_rtx (tmode);
@@ -3559,7 +3559,7 @@ altivec_expand_builtin (exp, target)
tmode = insn_data[icode].operand[0].mode;
mode0 = insn_data[icode].operand[1].mode;
- if (target != 0
+ if (target == 0
|| GET_MODE (target) != tmode
|| ! (*insn_data[icode].operand[0].predicate) (target, tmode))
target = gen_reg_rtx (tmode);
@@ -3580,7 +3580,7 @@ altivec_expand_builtin (exp, target)
tmode = insn_data[icode].operand[0].mode;
mode0 = insn_data[icode].operand[1].mode;
- if (target != 0
+ if (target == 0
|| GET_MODE (target) != tmode
|| ! (*insn_data[icode].operand[0].predicate) (target, tmode))
target = gen_reg_rtx (tmode);
@@ -6179,7 +6179,7 @@ print_operand (file, x, code)
tmp = XEXP (x, 0);
if (GET_CODE (tmp) == REG)
- fprintf (file, "0, %s", reg_names[REGNO (tmp)]);
+ fprintf (file, "0,%s", reg_names[REGNO (tmp)]);
else if (GET_CODE (tmp) == PLUS && GET_CODE (XEXP (tmp, 1)) == REG)
{
if (REGNO (XEXP (tmp, 0)) == 0)