aboutsummaryrefslogtreecommitdiff
path: root/contrib/binutils/gas
diff options
context:
space:
mode:
authorAndrew Turner <andrew@FreeBSD.org>2013-03-18 15:14:36 +0000
committerAndrew Turner <andrew@FreeBSD.org>2013-03-18 15:14:36 +0000
commitda6b2089d515ec4096b49945538535e9a4e7f7ee (patch)
tree76098487d4b3f91e24f8738997cbe7dc2aec558c /contrib/binutils/gas
parentc5c0dc914636181d3bc8479784f0bbeaa18d7489 (diff)
downloadsrc-da6b2089d515ec4096b49945538535e9a4e7f7ee.tar.gz
src-da6b2089d515ec4096b49945538535e9a4e7f7ee.zip
do_vfp_vmrs and do_vfp_vmsr should not return anything.
Notes
Notes: svn path=/head/; revision=248466
Diffstat (limited to 'contrib/binutils/gas')
-rw-r--r--contrib/binutils/gas/config/tc-arm.c18
1 files changed, 7 insertions, 11 deletions
diff --git a/contrib/binutils/gas/config/tc-arm.c b/contrib/binutils/gas/config/tc-arm.c
index c8f3149b0afc..b41ce60d065f 100644
--- a/contrib/binutils/gas/config/tc-arm.c
+++ b/contrib/binutils/gas/config/tc-arm.c
@@ -7097,7 +7097,7 @@ do_vfp_nsyn_msr (void)
return SUCCESS;
}
-static int
+static void
do_vfp_vmrs (void)
{
int rt;
@@ -7106,21 +7106,21 @@ do_vfp_vmrs (void)
if (inst.operands[0].reg > 14)
{
inst.error = BAD_PC;
- return FAIL;
+ return;
}
/* If the destination is r13 and not in ARM mode then unprefictable */
if (thumb_mode && inst.operands[0].reg == REG_SP)
{
inst.error = BAD_SP;
- return FAIL;
+ return;
}
/* If the destination is APSR_nzcv */
if (inst.operands[0].isvec && inst.operands[1].reg != 1)
{
inst.error = BAD_VMRS;
- return FAIL;
+ return;
}
if (inst.operands[0].isvec)
@@ -7131,32 +7131,28 @@ do_vfp_vmrs (void)
/* Or in the registers to use */
inst.instruction |= rt << 12;
inst.instruction |= inst.operands[1].reg << 16;
-
- return SUCCESS;
}
-static int
+static void
do_vfp_vmsr (void)
{
/* The destination register can be r0-r14 or APSR_nzcv */
if (inst.operands[1].reg > 14)
{
inst.error = BAD_PC;
- return FAIL;
+ return;
}
/* If the destination is r13 and not in ARM mode then unprefictable */
if (thumb_mode && inst.operands[0].reg == REG_SP)
{
inst.error = BAD_SP;
- return FAIL;
+ return;
}
/* Or in the registers to use */
inst.instruction |= inst.operands[1].reg << 12;
inst.instruction |= inst.operands[0].reg << 16;
-
- return SUCCESS;
}
static void