From e333d2c4011881ec0a6b72d6a8093c9dbeb6a448 Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Fri, 9 Nov 2001 10:21:22 +0000 Subject: [PATCH] Fix badly placed #if 0... --- opcodes/ChangeLog | 7 +++++++ opcodes/cgen-ibld.in | 4 ++-- opcodes/fr30-ibld.c | 4 ++-- opcodes/m32r-ibld.c | 4 ++-- opcodes/openrisc-ibld.c | 4 ++-- 5 files changed, 15 insertions(+), 8 deletions(-) diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog index 6ac5498..a319183 100644 --- a/opcodes/ChangeLog +++ b/opcodes/ChangeLog @@ -1,3 +1,10 @@ +2001-11-09 Nick Clifton + + * cgen-ibld.in (extract_1): Fix badly placed #if 0. + * fr30-ibld.c: Regenerate. + * m32r-ibld.c: Regenerate. + * openrisc-ibld.c: Regenerate. + 2001-11-04 Chris Demetriou * mips-dis.c (print_insn_mips): Remove spaces at end of line. diff --git a/opcodes/cgen-ibld.in b/opcodes/cgen-ibld.in index d958785..d2bfd02 100644 --- a/opcodes/cgen-ibld.in +++ b/opcodes/cgen-ibld.in @@ -375,9 +375,9 @@ extract_1 (cd, ex_info, start, length, word_length, bufp, pc) int shift; #if 0 int big_p = CGEN_CPU_INSN_ENDIAN (cd) == CGEN_ENDIAN_BIG; - - x = cgen_get_insn_value (cd, bufp, word_length); #endif + x = cgen_get_insn_value (cd, bufp, word_length); + if (CGEN_INSN_LSB0_P) shift = (start + 1) - length; else diff --git a/opcodes/fr30-ibld.c b/opcodes/fr30-ibld.c index 92e7ee3..3a72fc2 100644 --- a/opcodes/fr30-ibld.c +++ b/opcodes/fr30-ibld.c @@ -375,9 +375,9 @@ extract_1 (cd, ex_info, start, length, word_length, bufp, pc) int shift; #if 0 int big_p = CGEN_CPU_INSN_ENDIAN (cd) == CGEN_ENDIAN_BIG; - - x = cgen_get_insn_value (cd, bufp, word_length); #endif + x = cgen_get_insn_value (cd, bufp, word_length); + if (CGEN_INSN_LSB0_P) shift = (start + 1) - length; else diff --git a/opcodes/m32r-ibld.c b/opcodes/m32r-ibld.c index 4d083a1..59bc058 100644 --- a/opcodes/m32r-ibld.c +++ b/opcodes/m32r-ibld.c @@ -375,9 +375,9 @@ extract_1 (cd, ex_info, start, length, word_length, bufp, pc) int shift; #if 0 int big_p = CGEN_CPU_INSN_ENDIAN (cd) == CGEN_ENDIAN_BIG; - - x = cgen_get_insn_value (cd, bufp, word_length); #endif + x = cgen_get_insn_value (cd, bufp, word_length); + if (CGEN_INSN_LSB0_P) shift = (start + 1) - length; else diff --git a/opcodes/openrisc-ibld.c b/opcodes/openrisc-ibld.c index 8a2a28a..4439077 100644 --- a/opcodes/openrisc-ibld.c +++ b/opcodes/openrisc-ibld.c @@ -375,9 +375,9 @@ extract_1 (cd, ex_info, start, length, word_length, bufp, pc) int shift; #if 0 int big_p = CGEN_CPU_INSN_ENDIAN (cd) == CGEN_ENDIAN_BIG; - - x = cgen_get_insn_value (cd, bufp, word_length); #endif + x = cgen_get_insn_value (cd, bufp, word_length); + if (CGEN_INSN_LSB0_P) shift = (start + 1) - length; else -- 2.7.4