aboutsummaryrefslogtreecommitdiff
path: root/gas/config
diff options
context:
space:
mode:
Diffstat (limited to 'gas/config')
-rw-r--r--gas/config/tc-i860.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/gas/config/tc-i860.c b/gas/config/tc-i860.c
index 37aff49..d170b70 100644
--- a/gas/config/tc-i860.c
+++ b/gas/config/tc-i860.c
@@ -933,7 +933,13 @@ i860_process_insn (char *str)
{
if ((opcode & 0xfc000000) == 0x48000000 || opcode == 0xb0000000)
{
- opcode |= (1 << 9);
+ /* The instruction is a flop or a fnop, so set its dual bit
+ (but check that it is 8-byte aligned). */
+ if (((frag_now->fr_address + frag_now_fix_octets ()) & 7) == 0)
+ opcode |= (1 << 9);
+ else
+ as_bad (_("'d.%s' must be 8-byte aligned"), insn->name);
+
if (dual_mode == DUAL_DDOT)
dual_mode = DUAL_OFF;
else if (dual_mode == DUAL_ONDDOT)