From 89e759089cb3338dc45ac7e2d564b186fbc7529e Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Mon, 23 Mar 1998 19:35:49 +0000 Subject: [PATCH] Fix SATH bit pattern --- gas/testsuite/ChangeLog | 6 + gas/testsuite/gas/m32r/m32rx.d | 359 +++++++++++++++++---------------- 2 files changed, 187 insertions(+), 178 deletions(-) diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog index 982c6d323f7..47eae1650e4 100644 --- a/gas/testsuite/ChangeLog +++ b/gas/testsuite/ChangeLog @@ -1,3 +1,9 @@ +start-sanitize-m32rx +Mon Mar 23 11:34:00 1998 Nick Clifton + + * gas/m32r/m32rx.d: Fix sath bit pattern (PR15418). + +end-sanitize-m32rx Mon Mar 23 10:47:33 1998 Frank Ch. Eigler * gas/all/align.s: Back out ".section text" change below; diff --git a/gas/testsuite/gas/m32r/m32rx.d b/gas/testsuite/gas/m32r/m32rx.d index 4fbd5e95dbf..88d5b19dffa 100644 --- a/gas/testsuite/gas/m32r/m32rx.d +++ b/gas/testsuite/gas/m32r/m32rx.d @@ -1,4 +1,4 @@ -#as: -m32rx +#as: -m32rx --no-warn-explicit-parallel-conflicts #objdump: -dr #name: m32rx @@ -18,8 +18,8 @@ Disassembly of section .text: 0000000c : c: 0d 6d f0 00 cmpeq fp,fp || nop -00000010 : - 10: 5d cd f0 00 machl1 fp,fp || nop +00000010 : + 10: 5d cd f0 00 maclh1 fp,fp || nop 00000014 : 14: 5d dd f0 00 msblo fp,fp || nop @@ -37,285 +37,288 @@ Disassembly of section .text: 24: 8d 0d 01 00 satb fp,fp 00000028 : - 28: 3d 8d f0 00 || nop + 28: 3d 8d f0 00 mulhi fp, fp, a1 || nop 0000002c : 2c: 3d 1d f0 00 mullo fp,fp || nop -00000030 : - 30: 3d ad f0 00 || nop +00000030 : + 30: 9d 0d f0 00 divh fp, fp || nop -00000034 : - 34: 3d 3d f0 00 mulwlo fp,fp || nop +00000034 : + 34: 3d cd f0 00 machi fp, fp, a1 || nop -00000038 : - 38: 3d cd f0 00 || nop +00000038 : + 38: 3d 5d f0 00 maclo fp, fp || nop -0000003c : - 3c: 3d 5d f0 00 maclo fp,fp || nop +0000003c : + 3c: 5d f4 f0 00 mvfachi fp,a1 || nop -00000040 : - 40: 3d ed f0 00 || nop +00000040 : + 40: 5d f6 f0 00 mvfacmi fp || nop -00000044 : - 44: 3d 7d f0 00 macwlo fp,fp || nop +00000044 : + 44: 5d f5 f0 00 mvfaclo fp || nop -00000048 : +00000048 : 48: 5d f0 f0 00 mvfachi fp || nop -0000004c : - 4c: 5d f2 f0 00 mvfacmi fp || nop +0000004c : + 4c: 5d 71 f0 00 mvtaclo fp || nop -00000050 : - 50: 5d f1 f0 00 mvfaclo fp || nop +00000050 : + 50: 54 90 f0 00 rac a1 || nop -00000054 : - 54: 5d f0 f0 00 mvfachi fp || nop +00000054 : + 54: 54 90 f0 00 rac a1, a0 || nop -00000058 : - 58: 5d 71 f0 00 mvtaclo fp || nop +00000058 : + 58: 50 94 f0 00 rac a0, a1, #1 || nop -0000005c : - 5c: 50 90 f0 00 rac || nop +0000005c : + 5c: 54 80 f0 00 rach a1 || nop -00000060 : - 60: 50 80 f0 00 rach || nop +00000060 : + 60: 50 84 f0 00 rach a0, a1 || nop -00000064 : - 64: 7c e7 8d ad bc 0 || add fp,fp - 68: 7c e6 0d ad bc 0 -> add fp,fp +00000064 : + 64: 54 81 f0 00 rach a1, a0, #2 || nop -0000006c : - 6c: 78 e5 cd 4d bcl 0 || addi fp,#77 +00000068 : + 68: 7c e6 8d ad bc 0 || add fp,fp + 6c: 7c e5 0d ad bc 0 -> add fp,fp + +00000070 : 70: 78 e4 cd 4d bcl 0 || addi fp,#77 + 74: 78 e3 cd 4d bcl 0 || addi fp,#77 -00000074 : - 74: 7e e3 8d 8d bl 0 || addv fp,fp +00000078 : 78: 7e e2 8d 8d bl 0 || addv fp,fp + 7c: 7e e1 8d 8d bl 0 || addv fp,fp -0000007c : - 7c: 7d e1 8d 9d bnc 0 || addx fp,fp - 80: 7d e0 0d 9d bnc 0 -> addx fp,fp +00000080 : + 80: 7d e0 8d 9d bnc 0 || addx fp,fp + 84: 7d df 0d 9d bnc 0 -> addx fp,fp -00000084 : - 84: 79 df 8d cd bncl 0 || and fp,fp - 88: 79 de 0d cd bncl 0 -> and fp,fp +00000088 : + 88: 79 de 8d cd bncl 0 || and fp,fp + 8c: 79 dd 0d cd bncl 0 -> and fp,fp -0000008c : - 8c: 7f dd 8d 4d bra 0 || cmp fp,fp +00000090 : 90: 7f dc 8d 4d bra 0 || cmp fp,fp + 94: 7f db 8d 4d bra 0 || cmp fp,fp -00000094 : - 94: 1e cd 8d 6d jl fp || cmpeq fp,fp +00000098 : 98: 1e cd 8d 6d jl fp || cmpeq fp,fp + 9c: 1e cd 8d 6d jl fp || cmpeq fp,fp -0000009c : - 9c: 1f cd 8d 5d jmp fp || cmpu fp,fp +000000a0 : a0: 1f cd 8d 5d jmp fp || cmpu fp,fp + a4: 1f cd 8d 5d jmp fp || cmpu fp,fp -000000a4 : - a4: 2d cd 80 71 ld fp,@fp || cmpz r1 +000000a8 : a8: 2d cd 80 71 ld fp,@fp || cmpz r1 + ac: 2d cd 80 71 ld fp,@fp || cmpz r1 -000000ac : - ac: 2d e1 e2 4d ld fp,@r1\+ || ldi r2,#77 +000000b0 : b0: 2d e1 e2 4d ld fp,@r1\+ || ldi r2,#77 + b4: 2d e1 e2 4d ld fp,@r1\+ || ldi r2,#77 -000000b4 : - b4: 2d 8d 92 8d ldb fp,@fp || mv r2,fp - b8: 2d 8d 12 8d ldb fp,@fp -> mv r2,fp +000000b8 : + b8: 2d 8d 92 8d ldb fp,@fp || mv r2,fp + bc: 2d 8d 12 8d ldb fp,@fp -> mv r2,fp -000000bc : - bc: 2d ad 82 3d ldh fp,@fp || neg r2,fp - c0: 2d ad 02 3d ldh fp,@fp -> neg r2,fp +000000c0 : + c0: 2d ad 82 3d ldh fp,@fp || neg r2,fp + c4: 2d ad 02 3d ldh fp,@fp -> neg r2,fp -000000c4 : - c4: 2d 9d f0 00 ldub fp,@fp || nop +000000c8 : c8: 2d 9d f0 00 ldub fp,@fp || nop + cc: 2d 9d f0 00 ldub fp,@fp || nop -000000cc : - cc: 2d bd 82 bd lduh fp,@fp || not r2,fp - d0: 2d bd 02 bd lduh fp,@fp -> not r2,fp +000000d0 : + d0: 2d bd 82 bd lduh fp,@fp || not r2,fp + d4: 2d bd 02 bd lduh fp,@fp -> not r2,fp -000000d4 : - d4: 2d dd 82 ed lock fp,@fp || or r2,fp - d8: 2d dd 02 ed lock fp,@fp -> or r2,fp +000000d8 : + d8: 2d dd 82 ed lock fp,@fp || or r2,fp + dc: 2d dd 82 ed lock fp,@fp || or r2,fp -000000dc : - dc: 1d 91 82 2d mvfc fp,cbr || sub r2,fp - e0: 1d 91 02 2d mvfc fp,cbr -> sub r2,fp +000000e0 : + e0: 1d 91 82 2d mvfc fp,cbr || sub r2,fp + e4: 1d 91 02 2d mvfc fp,cbr -> sub r2,fp -000000e4 : - e4: 10 ad 82 0d mvtc fp,psw || subv r2,fp - e8: 10 ad 82 0d mvtc fp,psw || subv r2,fp +000000e8 : + e8: 10 ad 82 0d mvtc fp,cr2 || subv r2,fp + ec: 10 ad 82 0d mvtc fp,cr2 || subv r2,fp -000000ec : - ec: 10 d6 82 1d rte || subx r2,fp - f0: 10 d6 02 1d rte -> subx r2,fp +000000f0 : + f0: 10 d6 82 2d rte || sub r2,fp + f4: 10 d6 02 1d rte -> subx r2,fp -000000f4 : - f4: 1d 41 82 dd sll fp,r1 || xor r2,fp - f8: 1d 41 02 dd sll fp,r1 -> xor r2,fp +000000f8 : + f8: 1d 41 82 dd sll fp,r1 || xor r2,fp + fc: 1d 41 02 dd sll fp,r1 -> xor r2,fp -000000fc : - fc: 5d 56 b2 4d slli fp,#0x16 || machi r2,fp - 100: 5d 56 32 4d slli fp,#0x16 -> machi r2,fp +00000100 : + 100: 5d 56 b2 4d slli fp,#0x16 || machi r2,fp + 104: 5d 56 32 4d slli fp,#0x16 -> machi r2,fp -00000104 : - 104: 1d 2d d2 cd sra fp,fp || machl1 r2,fp - 108: 1d 2d 52 cd sra fp,fp -> machl1 r2,fp +00000108 : + 108: 1d 2d d2 cd sra fp,fp || maclh1 r2,fp + 10c: 1d 2d 52 cd sra fp,fp -> maclh1 r2,fp -0000010c : - 10c: 5d 36 b2 5d srai fp,#0x16 || maclo r2,fp - 110: 5d 36 32 5d srai fp,#0x16 -> maclo r2,fp +00000110 : + 110: 5d 36 b2 5d srai fp,#0x16 || maclo r2,fp + 114: 5d 36 32 5d srai fp,#0x16 -> maclo r2,fp -00000114 : - 114: 1d 0d b2 6d srl fp,fp || macwhi r2,fp - 118: 1d 0d 32 6d srl fp,fp -> macwhi r2,fp +00000118 : + 118: 1d 0d b2 6d srl fp,fp || macwhi r2,fp + 11c: 1d 0d 32 6d srl fp,fp -> macwhi r2,fp -0000011c : - 11c: 5d 16 b2 7d srli fp,#0x16 || macwlo r2,fp - 120: 5d 16 32 7d srli fp,#0x16 -> macwlo r2,fp +00000120 : + 120: 5d 16 b2 7d srli fp,#0x16 || macwlo r2,fp + 124: 5d 16 32 7d srli fp,#0x16 -> macwlo r2,fp -00000124 : - 124: 2d 4d d2 bd st fp,@fp || macwu1 r2,fp +00000128 : 128: 2d 4d d2 bd st fp,@fp || macwu1 r2,fp + 12c: 2d 4d d2 bd st fp,@fp || macwu1 r2,fp -0000012c : - 12c: 2d 6d d2 dd st fp,@+fp || msblo r2,fp +00000130 : 130: 2d 6d d2 dd st fp,@+fp || msblo r2,fp + 134: 2d 6d d2 dd st fp,@+fp || msblo r2,fp -00000134 : - 134: 2d 7d 92 6d st fp,@-fp || mul r2,fp +00000138 : 138: 2d 7d 92 6d st fp,@-fp || mul r2,fp + 13c: 2d 7d 92 6d st fp,@-fp || mul r2,fp -0000013c : - 13c: 2d 0d b2 0d stb fp,@fp || mulhi r2,fp +00000140 : 140: 2d 0d b2 0d stb fp,@fp || mulhi r2,fp + 144: 2d 0d b2 0d stb fp,@fp || mulhi r2,fp -00000144 : - 144: 2d 2d b2 1d sth fp,@fp || mullo r2,fp +00000148 : 148: 2d 2d b2 1d sth fp,@fp || mullo r2,fp + 14c: 2d 2d b2 1d sth fp,@fp || mullo r2,fp -0000014c : - 14c: 10 f2 b2 2d trap #0x2 || mulwhi r2,fp - 150: 10 f2 f0 00 trap #0x2 || nop - 154: 32 2d f0 00 mulwhi r2,fp || nop +00000150 : + 150: 10 f2 b2 2d trap #0x2 || mulwhi r2,fp + 154: 10 f2 f0 00 trap #0x2 || nop + 158: 32 2d f0 00 mulwhi r2,fp || nop -00000158 : - 158: 2d 5d b2 3d unlock fp,@fp || mulwlo r2,fp +0000015c : 15c: 2d 5d b2 3d unlock fp,@fp || mulwlo r2,fp + 160: 2d 5d b2 3d unlock fp,@fp || mulwlo r2,fp -00000160 : - 160: 0d ad d2 ad add fp,fp || mulwu1 r2,fp - 164: 0d ad 52 ad add fp,fp -> mulwu1 r2,fp +00000164 : + 164: 0d ad d2 ad add fp,fp || mulwu1 r2,fp + 168: 0d ad 52 ad add fp,fp -> mulwu1 r2,fp -00000168 : - 168: 4d 4d d2 f0 addi fp,#77 || mvfachi r2 +0000016c : 16c: 4d 4d d2 f0 addi fp,#77 || mvfachi r2 + 170: 4d 4d d2 f0 addi fp,#77 || mvfachi r2 -00000170 : - 170: 0d 8d d2 f5 addv fp,fp || mvfaclo r2,a1 +00000174 : 174: 0d 8d d2 f5 addv fp,fp || mvfaclo r2,a1 + 178: 0d 8d d2 f5 addv fp,fp || mvfaclo r2,a1 -00000178 : - 178: 0d 9d d2 f2 addx fp,fp || mvfacmi r2 +0000017c : 17c: 0d 9d d2 f2 addx fp,fp || mvfacmi r2 + 180: 0d 9d d2 f2 addx fp,fp || mvfacmi r2 -00000180 : - 180: 0d cd d2 70 and fp,fp || mvtachi r2 +00000184 : 184: 0d cd d2 70 and fp,fp || mvtachi r2 + 188: 0d cd d2 70 and fp,fp || mvtachi r2 -00000188 : - 188: 0d 4d d2 71 cmp fp,fp || mvtaclo r2 +0000018c : 18c: 0d 4d d2 71 cmp fp,fp || mvtaclo r2 + 190: 0d 4d d2 71 cmp fp,fp || mvtaclo r2 -00000190 : - 190: 0d 6d d0 94 cmpeq fp,fp || rac a1 +00000194 : 194: 0d 6d d0 94 cmpeq fp,fp || rac a1 + 198: 0d 6d d0 94 cmpeq fp,fp || rac a1 -00000198 : - 198: 0d 5d d0 80 cmpu fp,fp || rach - 19c: 0d 5d d0 80 cmpu fp,fp || rach +0000019c : + 19c: 0d 5d d0 84 cmpu fp,fp || rach a0, a1 + 1a0: 0d 5d d4 86 cmpu fp,fp || rach a1, a1, #2 -000001a0 : - 1a0: 00 7d d0 e4 cmpz fp || sadd +000001a4 : 1a4: 00 7d d0 e4 cmpz fp || sadd + 1a8: 00 7d d0 e4 cmpz fp || sadd -000001a8 : - 1a8: 74 01 d0 e4 sc || sadd +000001ac : + 1ac: 74 01 d0 e4 sc || sadd -000001ac : - 1ac: 75 01 d0 e4 snc || sadd +000001b0 : + 1b0: 75 01 d0 e4 snc || sadd -000001b0 : - 1b0: 1c cd f0 00 jc fp || nop +000001b4 : + 1b4: 1c cd f0 00 jc fp || nop -000001b4 : - 1b4: 1d cd f0 00 *unknown* || nop +000001b8 : + 1b8: 1d cd f0 00 jnc fp || nop -000001b8 : - 1b8: 03 7d f0 00 pcmpbz fp || nop +000001bc : + 1bc: 03 7d f0 00 pcmpbz fp || nop -000001bc : - 1bc: 8d 0d 00 00 sat fp,fp +000001c0 : + 1c0: 8d 0d 00 00 sat fp,fp -000001c0 : - 1c0: 8d 0d 02 00 sath fp,fp +000001c4 : + 1c4: 8d 6d 02 00 sath fp,fp -000001c4 : - 1c4: 1c cd 83 7d jc fp || pcmpbz fp - 1c8: 1c cd 03 7d jc fp -> pcmpbz fp +000001c8 : + 1c8: 1c cd 83 7d jc fp || pcmpbz fp + 1cc: 1c cd 03 7d jc fp -> pcmpbz fp -000001cc : - 1cc: 1d cd ed 4d \*unknown\* || ldi fp,#77 - 1d0: 1d cd 6d 4d \*unknown\* -> ldi fp,#77 +000001d0 : + 1d0: 1d cd ed 4d jnc fp || ldi fp,#77 + 1d4: 1d cd 6d 4d jnc fp -> ldi fp,#77 -000001d4 : - 1d4: 74 01 9d 82 sc || mv fp,r2 +000001d8 : 1d8: 74 01 9d 82 sc || mv fp,r2 + 1dc: 74 01 9d 82 sc || mv fp,r2 -000001dc : - 1dc: 75 01 8d 32 snc || neg fp,r2 +000001e0 : 1e0: 75 01 8d 32 snc || neg fp,r2 + 1e4: 75 01 8d 32 snc || neg fp,r2 -000001e4 : - 1e4: 70 00 d0 e4 nop || sadd - -000001e8 : +000001e8 : 1e8: 70 00 d0 e4 nop || sadd -000001ec : +000001ec : 1ec: 70 00 d0 e4 nop || sadd -000001f0 : - 1f0: 00 a1 83 b5 add r0,r1 || not r3,r5 +000001f0 : + 1f0: 70 00 d0 e4 nop || sadd + +000001f4 : + 1f4: 00 a1 83 b5 add r0,r1 || not r3,r5 -000001f4 : - 1f4: 03 a4 03 b5 add r3,r4 -> not r3,r5 +000001f8 : + 1f8: 03 a4 03 b5 add r3,r4 -> not r3,r5 -000001f8 : - 1f8: 03 a4 05 b3 add r3,r4 -> not r5,r3 +000001fc : + 1fc: 03 a4 05 b3 add r3,r4 -> not r5,r3 -000001fc : - 1fc: 03 a4 84 b5 add r3,r4 || not r4,r5 +00000200 : + 200: 03 a4 84 b5 add r3,r4 || not r4,r5 -00000200 : - 200: 13 24 91 62 sra r3,r4 || mul r1,r2 +00000204 : + 204: 13 24 91 62 sra r3,r4 || mul r1,r2 -00000204 : - 204: 13 24 91 63 sra r3,r4 || mul r1,r3 +00000208 : + 208: 13 24 91 63 sra r3,r4 || mul r1,r3 -00000208 : - 208: 7c f7 01 a2 bc 1e4 -> add r1,r2 +0000020c : + 20c: 7c 04 01 a2 bc 21c