From ec583967dcfb337b51f93673958a8814bb386ee4 Mon Sep 17 00:00:00 2001 From: Richard Stallman Date: Fri, 6 Nov 1992 08:28:06 +0000 Subject: [PATCH] (output_ior): Handle "ior" against zero. From-SVN: r2702 --- gcc/config/pa/pa.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gcc/config/pa/pa.c b/gcc/config/pa/pa.c index 8421c83612b..b1a8d8dd4b0 100644 --- a/gcc/config/pa/pa.c +++ b/gcc/config/pa/pa.c @@ -1254,6 +1254,9 @@ output_ior (operands) { unsigned mask = INTVAL (operands[2]); int bs0, bs1, bs2, p, len; + + if (INTVAL (operands[2]) == 0) + return "copy %1,%0"; for (bs0 = 0; bs0 < 32; bs0++) if ((mask & (1 << bs0)) != 0)