aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDJ Delorie <dj@redhat.com>2009-09-14 19:41:22 -0400
committerDJ Delorie <dj@gcc.gnu.org>2009-09-14 19:41:22 -0400
commitd839f1eb6092fa45eb288d1c19fb453925911364 (patch)
tree1b0992d915ddfe1cc1240f61983de7b4635ccfc7
parent1c384bf142c81baaad7f04c5d3fdaebcbafc5b0c (diff)
downloadgcc-d839f1eb6092fa45eb288d1c19fb453925911364.zip
gcc-d839f1eb6092fa45eb288d1c19fb453925911364.tar.gz
gcc-d839f1eb6092fa45eb288d1c19fb453925911364.tar.bz2
mep.h (JUMP_TABLES_IN_TEXT_SECTION): Define.
* config/mep/mep.h (JUMP_TABLES_IN_TEXT_SECTION): Define. * config/mep/mep.c (mep_emit_cbranch): Don't use BEQZ/BNEI in VLIW mode. From-SVN: r151704
-rw-r--r--gcc/ChangeLog7
-rw-r--r--gcc/config/mep/mep.c2
-rw-r--r--gcc/config/mep/mep.h2
3 files changed, 10 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 304f207..253f2d9 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,10 @@
+2009-09-14 DJ Delorie <dj@redhat.com>
+
+ * config/mep/mep.h (JUMP_TABLES_IN_TEXT_SECTION): Define.
+
+ * config/mep/mep.c (mep_emit_cbranch): Don't use BEQZ/BNEI in VLIW
+ mode.
+
2009-09-14 Richard Henderson <rth@redhat.com>
Jakub Jelinek <jakub@redhat.com>
diff --git a/gcc/config/mep/mep.c b/gcc/config/mep/mep.c
index 6ff6405..4c37d38 100644
--- a/gcc/config/mep/mep.c
+++ b/gcc/config/mep/mep.c
@@ -1996,7 +1996,7 @@ mep_emit_cbranch (rtx *operands, int ne)
{
if (GET_CODE (operands[1]) == REG)
return ne ? "bne\t%0, %1, %l2" : "beq\t%0, %1, %l2";
- else if (INTVAL (operands[1]) == 0)
+ else if (INTVAL (operands[1]) == 0 && !mep_vliw_function_p(cfun->decl))
return ne ? "bnez\t%0, %l2" : "beqz\t%0, %l2";
else
return ne ? "bnei\t%0, %1, %l2" : "beqi\t%0, %1, %l2";
diff --git a/gcc/config/mep/mep.h b/gcc/config/mep/mep.h
index 39837df..fff7962 100644
--- a/gcc/config/mep/mep.h
+++ b/gcc/config/mep/mep.h
@@ -621,6 +621,8 @@ typedef struct
#define USE_SELECT_SECTION_FOR_FUNCTIONS 1
+#define JUMP_TABLES_IN_TEXT_SECTION 1
+
#define TARGET_ASM_FILE_END mep_file_cleanups
#define ASM_APP_ON "#APP\n"