From 071863de487a3acb3c9ad3b7eb5f3e9bcffc9ad2 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 | 24 ++++++++++++------------ gas/testsuite/gas/all/sleb128.d | 12 ++++++------ 3 files changed, 25 insertions(+), 18 deletions(-) rewrite gas/testsuite/gas/all/quad.d (70%) diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog index e070cf33a..eaf1df9e5 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 dissimilarity index 70% index c3a758d1f..bab7d3430 100644 --- a/gas/testsuite/gas/all/quad.d +++ b/gas/testsuite/gas/all/quad.d @@ -1,12 +1,12 @@ -#objdump : -s -j .data -#name : .quad tests - -.*: .* - -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) .* -#pass +#objdump : -s -j .data +#name : .quad tests + +.*: .* + +Contents of section .data: + 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 eaff63d62..56e5cae9a 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 -- 2.11.4.GIT