From cdde2f5cee59b41b97c660b584cf0f9d0be21224 Mon Sep 17 00:00:00 2001 From: Jeff Law Date: Wed, 6 Nov 1996 20:48:36 +0000 Subject: [PATCH] * config/tc-mn10300.c (mn10300_insert_operand): Handle MN10300_OPERAND_SPLIT. For handling of 32bit operands. --- gas/ChangeLog | 5 +++++ gas/config/tc-mn10300.c | 7 ++++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/gas/ChangeLog b/gas/ChangeLog index 3ccf2455509..14e4a534615 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,8 @@ +Wed Nov 6 13:46:07 1996 Jeffrey A Law (law@cygnus.com) + + * config/tc-mn10300.c (mn10300_insert_operand): Handle + MN10300_OPERAND_SPLIT. + Tue Nov 5 13:30:40 1996 Jeffrey A Law (law@cygnus.com) * config/tc-mn10300.c (md_assemble): Insert operands into diff --git a/gas/config/tc-mn10300.c b/gas/config/tc-mn10300.c index b120fa5ab5a..215809ac427 100644 --- a/gas/config/tc-mn10300.c +++ b/gas/config/tc-mn10300.c @@ -891,7 +891,12 @@ mn10300_insert_operand (insnp, extensionp, operand, val, file, line, shift) } } - if ((operand->flags & MN10300_OPERAND_EXTENDED) == 0) + if ((operand->flags & MN10300_OPERAND_SPLIT) != 0) + { + *insnp |= (val >> 16) & 0xffff; + *extensionp |= val & 0xffff; + } + else if ((operand->flags & MN10300_OPERAND_EXTENDED) == 0) { *insnp |= (((long) val & ((1 << operand->bits) - 1)) << (operand->shift + shift)); -- 2.30.2