/* NDS32-specific support for 32-bit ELF.
- Copyright (C) 2012-2015 Free Software Foundation, Inc.
+ Copyright (C) 2012-2016 Free Software Foundation, Inc.
Contributed by Andes Technology Corporation.
This file is part of BFD, the Binary File Descriptor library.
{
/* Sign-ext the value. */
if (((value >> 32) == 0) && (value & 0x80000000))
- value |= (int64_t) -1 << 31;
+ value |= (int64_t) -1U << 31;
/* Shift the value to positive domain. */
pinsn->opcode = opc;
if (opc == NULL)
{
- pdesc->result = NASM_ERR_SYNTAX;
+ if (pdesc->result == NASM_OK)
+ pdesc->result = NASM_ERR_SYNTAX;
goto out;
}