summaryrefslogtreecommitdiff
path: root/gas/config/tc-tic4x.c
diff options
context:
space:
mode:
Diffstat (limited to 'gas/config/tc-tic4x.c')
-rw-r--r--gas/config/tc-tic4x.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gas/config/tc-tic4x.c b/gas/config/tc-tic4x.c
index c456dffbbad..c00121c30ba 100644
--- a/gas/config/tc-tic4x.c
+++ b/gas/config/tc-tic4x.c
@@ -384,8 +384,10 @@ tic4x_gen_to_words (FLONUM_TYPE flonum, LITTLENUM_TYPE *words, int precision)
/* 0.0e0 or NaN seen. */
if (flonum.low > flonum.leader /* = 0.0e0 */
|| flonum.sign == 0) /* = NaN */
+ || flonum.sign == 'Q' || flonum.sign == 'q' /* = QNaN */
+ || flonum.sign == 'S' || flonum.sign == 's' /* = SNaN */
{
- if(flonum.sign == 0)
+ if (flonum.sign != '+' && flonum.sign != '-')
as_bad (_("Nan, using zero."));
words[0] = 0x8000;
return return_value;