From a3251895a6c76c3f3a1e8535ea776b9029263253 Mon Sep 17 00:00:00 2001 From: Yufeng Zhang Date: Tue, 8 Jan 2013 18:17:10 +0000 Subject: gas/ 2013-01-08 Yufeng Zhang * config/tc-aarch64.c (parse_operands): Change to compare the result of function call 'parse_sys_reg' with 'PARSE_FAIL' instead of 'FALSE'. gas/testsuite/ 2013-01-08 Yufeng Zhang * gas/aarch64/diagnostic.s: Add test. * gas/aarch64/diagnostic.l: Update. --- gas/config/tc-aarch64.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'gas/config') diff --git a/gas/config/tc-aarch64.c b/gas/config/tc-aarch64.c index 61b802c..3220d2b 100644 --- a/gas/config/tc-aarch64.c +++ b/gas/config/tc-aarch64.c @@ -1,6 +1,7 @@ /* tc-aarch64.c -- Assemble for the AArch64 ISA - Copyright 2009, 2010, 2011, 2012 Free Software Foundation, Inc. + Copyright 2009, 2010, 2011, 2012, 2013 + Free Software Foundation, Inc. Contributed by ARM Ltd. This file is part of GAS. @@ -5050,7 +5051,8 @@ parse_operands (char *str, const aarch64_opcode *opcode) break; case AARCH64_OPND_SYSREG: - if ((val = parse_sys_reg (&str, aarch64_sys_regs_hsh, 1)) == FALSE) + if ((val = parse_sys_reg (&str, aarch64_sys_regs_hsh, 1)) + == PARSE_FAIL) { set_syntax_error (_("unknown or missing system register name")); goto failure; @@ -5059,7 +5061,8 @@ parse_operands (char *str, const aarch64_opcode *opcode) break; case AARCH64_OPND_PSTATEFIELD: - if ((val = parse_sys_reg (&str, aarch64_pstatefield_hsh, 0)) == FALSE) + if ((val = parse_sys_reg (&str, aarch64_pstatefield_hsh, 0)) + == PARSE_FAIL) { set_syntax_error (_("unknown or missing PSTATE field name")); goto failure; -- cgit v1.1