gcc/
* config/nds32/nds32.c (nds32_print_operand): Set op_value ealier.
From-SVN: r259643
+2018-04-25 Chung-Ju Wu <jasonwucj@gmail.com>
+
+ * config/nds32/nds32.c (nds32_print_operand): Set op_value ealier.
+
2018-04-25 Chung-Ju Wu <jasonwucj@gmail.com>
* config/nds32/nds32.h (ASM_APP_ON): Add missing newline character.
static void
nds32_print_operand (FILE *stream, rtx x, int code)
{
+ HOST_WIDE_INT op_value = 0;
HOST_WIDE_INT one_position;
HOST_WIDE_INT zero_position;
bool pick_lsb_p = false;
bool pick_msb_p = false;
int regno;
- int op_value;
+ if (CONST_INT_P (x))
+ op_value = INTVAL (x);
switch (code)
{
case 'V':
/* 'x' is supposed to be CONST_INT, get the value. */
gcc_assert (CONST_INT_P (x));
- op_value = INTVAL (x);
/* According to the Andes architecture,
the system/user register index range is 0 ~ 1023.