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 6ac5498acb..a3191831e6 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 d95878596b..d2bfd02a91 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 92e7ee3c39..3a72fc27be 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 4d083a1828..59bc058973 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 8a2a28a620..4439077191 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.34.1