summaryrefslogtreecommitdiff
path: root/gas/expr.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2005-10-10 15:32:44 +0000
committerNick Clifton <nickc@redhat.com>2005-10-10 15:32:44 +0000
commit937a9208fe841dc96d10b278770f593de345e5df (patch)
tree774ba4e54bd8480287e4e22024e1028728355a7a /gas/expr.c
parent3bb0a8212826fc399d04ec1e8d2882890bd980ee (diff)
downloadbinutils-redhat-937a9208fe841dc96d10b278770f593de345e5df.tar.gz
* expr.c (operator): Allow "!=" as a synonym for "<>".
* doc/as.texinfo (Infix Op): Mention "!=".
Diffstat (limited to 'gas/expr.c')
-rw-r--r--gas/expr.c14
1 files changed, 10 insertions, 4 deletions
diff --git a/gas/expr.c b/gas/expr.c
index 7e37010949..fff0fde707 100644
--- a/gas/expr.c
+++ b/gas/expr.c
@@ -1587,15 +1587,21 @@ operator (int *num_chars)
return ret;
case '!':
- /* We accept !! as equivalent to ^ for MRI compatibility. */
- if (input_line_pointer[1] != '!')
+ switch (input_line_pointer[1])
{
+ case '!':
+ /* We accept !! as equivalent to ^ for MRI compatibility. */
+ *num_chars = 2;
+ return O_bit_exclusive_or;
+ case '=':
+ /* We accept != as equivalent to <>. */
+ *num_chars = 2;
+ return O_ne;
+ default:
if (flag_m68k_mri)
return O_bit_inclusive_or;
return op_encoding[c];
}
- *num_chars = 2;
- return O_bit_exclusive_or;
case '|':
if (input_line_pointer[1] != '|')