From 2d034539b1365c8d25be0be70c16c84c9288a088 Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Tue, 17 May 2005 11:56:13 +0000 Subject: * config/tc-v850,h (TC_FIX_TYPE): Define. (TC_INIT_FIX_TYPE): Define. * config/tc-v850.c (md_assemble): When creating a fix record the operand in the tc_fix_data field. (md_apply_fix3): When applying a resolved fix use the operand's insertion procedure to store the value, if the operand has been recorded. * gas/v850/split-lo16.s: Add test for a lo() pseudo reloc corrupting an ld.w instruction. * gas/v850/split-lo16.d: Add expected, correct (ie not corrupt) output. --- gas/testsuite/ChangeLog | 7 +++++++ gas/testsuite/gas/v850/split-lo16.d | 2 ++ gas/testsuite/gas/v850/split-lo16.s | 3 +++ 3 files changed, 12 insertions(+) (limited to 'gas/testsuite') diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog index d221045..4322c26 100644 --- a/gas/testsuite/ChangeLog +++ b/gas/testsuite/ChangeLog @@ -1,3 +1,10 @@ +2005-05-17 Nick Clifton + + * gas/v850/split-lo16.s: Add test for a lo() pseudo reloc + corrupting an ld.w instruction. + * gas/v850/split-lo16.d: Add expected, correct (ie not corrupt) + output. + 2005-05-10 Michael Matz * gas/hppa/parse/block1.s: Use official limit (0x3fffffff) for diff --git a/gas/testsuite/gas/v850/split-lo16.d b/gas/testsuite/gas/v850/split-lo16.d index 9503ac9..5ed195c 100644 --- a/gas/testsuite/gas/v850/split-lo16.d +++ b/gas/testsuite/gas/v850/split-lo16.d @@ -13,4 +13,6 @@ c: R_V850_LO16_SPLIT_OFFSET foo 10: a1 17 45 23 ld\.bu 9029\[r1\],r2 14: 81 17 57 34 ld\.bu 13398\[r1\],r2 + 18: 20 57 01 00 ld.w 0\[r0\],r10 + 1c: 20 57 79 56 ld.w 22136\[r0\],r10 #pass diff --git a/gas/testsuite/gas/v850/split-lo16.s b/gas/testsuite/gas/v850/split-lo16.s index fc3afd1..bb6fb66 100644 --- a/gas/testsuite/gas/v850/split-lo16.s +++ b/gas/testsuite/gas/v850/split-lo16.s @@ -5,3 +5,6 @@ ld.bu lo(0x12345),r1,r2 ld.bu lo(0x123456),r1,r2 + + ld.w lo(0)[r0], r10 + ld.w lo(0x12345678)[r0], r10 -- cgit v1.1