From 7fe1cadb0579e90acfe352ceb4f2e7fef5a786c1 Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Mon, 24 Jan 2005 15:32:19 +0000 Subject: [PATCH] sleb128.d: Do not assume an 8-bit byte. quad.d: Likewise. Also allow for ports which order bytes within words in other than simple big-endian or little-endian fashions. --- gas/testsuite/ChangeLog | 7 +++++++ gas/testsuite/gas/all/quad.d | 10 +++++----- gas/testsuite/gas/all/sleb128.d | 12 ++++++------ 3 files changed, 18 insertions(+), 11 deletions(-) diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog index e070cf33a3..eaf1df9e51 100644 --- a/gas/testsuite/ChangeLog +++ b/gas/testsuite/ChangeLog @@ -1,3 +1,10 @@ +2005-01-24 Nick Clifton + + * gas/all/sleb128.d: Do not assume an 8-bit byte. + * gas/all/quad.d: Likewise. Also allow for ports which order + bytes within words in other than simple big-endian or + little-endian fashions. + 2005-01-19 Richard Sandiford * gas/all/sleb128.[sd]: New test. diff --git a/gas/testsuite/gas/all/quad.d b/gas/testsuite/gas/all/quad.d index c3a758d1f0..bab7d34307 100644 --- a/gas/testsuite/gas/all/quad.d +++ b/gas/testsuite/gas/all/quad.d @@ -4,9 +4,9 @@ .*: .* Contents of section .data: - 0000 (00000000 76543210 00000000 80000000|10325476 00000000 00000080 00000000) .* - 0010 (00000000 87654321 00000000 ffffffff|21436587 00000000 ffffffff 00000000) .* - 0020 (ffffffff 89abcdf0 ffffffff 80000000|f0cdab89 ffffffff 00000080 ffffffff) .* - 0030 (ffffffff 789abcdf ffffffff 00000001|dfbc9a78 ffffffff 01000000 ffffffff) .* - 0040 (01234567 89abcdef fedcba98 76543211|efcdab89 67452301 11325476 98badcfe) .* + 0000 (00000000 76543210 00000000 80000000|10325476 00000000 00000080 00000000|00000000 54761032 00000000 00800000|32107654 00000000 00008000 00000000) .* + 00.. (00000000 87654321 00000000 ffffffff|21436587 00000000 ffffffff 00000000|00000000 65872143 00000000 ffffffff|43218765 00000000 ffffffff 00000000) .* + 00.. (ffffffff 89abcdf0 ffffffff 80000000|f0cdab89 ffffffff 00000080 ffffffff|ffffffff ab89f0cd ffffffff 00800000|cdf089ab ffffffff 00008000 ffffffff) .* + 00.. (ffffffff 789abcdf ffffffff 00000001|dfbc9a78 ffffffff 01000000 ffffffff|ffffffff 9a78dfbc ffffffff 00000100|bcdf789a ffffffff 00010000 ffffffff) .* + 00.. (01234567 89abcdef fedcba98 76543211|efcdab89 67452301 11325476 98badcfe|23016745 ab89efcd dcfe98ba 54761132|cdef89ab 45670123 32117654 ba98fedc) .* #pass diff --git a/gas/testsuite/gas/all/sleb128.d b/gas/testsuite/gas/all/sleb128.d index eaff63d622..56e5cae9a5 100644 --- a/gas/testsuite/gas/all/sleb128.d +++ b/gas/testsuite/gas/all/sleb128.d @@ -17,14 +17,14 @@ Contents of section .data: # -0x80000000 : 111_1000 0000_000 0_0000_00 00_0000_0 000_0000 # -0x87654321 : ........................... 11_1100_1 101_1111 # - 0010 ffffff0f f09bafcd 78808080 8078dff9 .* + 00.. ffffff0f f09bafcd 78808080 8078dff9 .* # # -0x87654321 : 111_0111 1000_100 1_1010_10 .................. # -0xffffffff : 111_0000 0000_000 0_0000_00 00_0000_0 000_0001 # 789abcdef : 111_1000 1001_101 0_1011_11 00_1101_1 110_1111 # 0x123456 : ........ 0010_001 1_0100_01 01_0110_0 # - 0020 eac47781 80808070 ef9bafcd f8acd191 .* + 00.. eac47781 80808070 ef9bafcd f8acd191 .* # # 0x123456 : 000_0001 ............................ # 789abcdef : 000_0111 0110_010 1_0100_00 11_0010_0 001_0001 @@ -32,7 +32,7 @@ Contents of section .data: # fffffffff : 000_0000 0000_000 0_0000_00 00_0000_0 000_0001 # -0x7ff : ......... 00_0000_0 # - 0030 0191e4d0 b287d3ae ee7e8180 80808080 .* + 00.. 0191e4d0 b287d3ae ee7e8180 80808080 .* # # -0x7ff : 1_1000_00 ......... # 000000000 : 000_0000 0000_000 0_0000_00 00_0000_0 000_0000 @@ -40,18 +40,18 @@ Contents of section .data: # fffffffff : 000_0000 0000_000 0_0000_00 00_0000_0 000_0001 # -0x7ffffff : .................. 0000_000 0_0000_00 00_0000_0 # - 0040 60808080 80808060 81808080 80808080 .* + 00.. 60808080 80808060 81808080 80808080 .* # # -0x7ffffff : 11_1111_1 000_0000 ............................ # 000000000 : 000_0000 0000_000 0_0000_00 00_0000_0 000_0000 # -0x8000000 : 11_1111_1 000_0000 0000_000 0_0000_00 00_0000_0 # -0x100000000 : ........ 0000_000 0_0000_00 00_0000_0 000_0000 # - 0050 807f8080 80808080 8080807f 80808080 .* + 00.. 807f8080 80808080 8080807f 80808080 .* # # -0x100000000 : 111_0000 ..................................... # 000000000 : 000_0000 0000_000 0_0000_00 00_0000_0 000_0000 # -0x1000 : 1_0000_00 00_0000_0 # - 0060 70808080 80808040 00000000 00000000 .* + 00.. 70808080 80808040 00000000 00000000 .* #pass