Add support for some variants of the ARC nps400 rflt instruction.
gas * testsuite/gas/arc/nps-400-1.s: Add rflt variants with operands of types a,b,u6, 0,b,u6, and 0,b,limm. * testsuite/gas/arc/nps-400-1.d: Likewise. opcodes * arc-nps400-tbl.h: Add operands a,b,u6, 0,b,u6, and 0,b,limm to the rflt instruction.
This commit is contained in:
parent
51403f74d9
commit
315f180f2f
|
@ -1,3 +1,9 @@
|
||||||
|
2016-06-01 Graham Markall <graham.markall@embecosm.com>
|
||||||
|
|
||||||
|
* testsuite/gas/arc/nps-400-1.s: Add rflt variants with
|
||||||
|
operands of types a,b,u6, 0,b,u6, and 0,b,limm.
|
||||||
|
* testsuite/gas/arc/nps-400-1.d: Likewise.
|
||||||
|
|
||||||
2016-05-29 H.J. Lu <hongjiu.lu@intel.com>
|
2016-05-29 H.J. Lu <hongjiu.lu@intel.com>
|
||||||
|
|
||||||
PR gas/20145
|
PR gas/20145
|
||||||
|
|
|
@ -34,53 +34,56 @@ Disassembly of section .text:
|
||||||
64: 4814 fc00 encode1\.f r0,r0,0,0x20
|
64: 4814 fc00 encode1\.f r0,r0,0,0x20
|
||||||
68: 3c2e 150a rflt r10,r12,r20
|
68: 3c2e 150a rflt r10,r12,r20
|
||||||
6c: 3e2e 7500 1234 5678 rflt r0,0x12345678,r20
|
6c: 3e2e 7500 1234 5678 rflt r0,0x12345678,r20
|
||||||
74: 3e2e 137e rflt 0,r14,r13
|
74: 3f2e 0f86 ffff ffff rflt r6,r7,0xffffffff
|
||||||
78: 3e2e 72be ffff ffff rflt 0,0xffffffff,r10
|
7c: 3e2e 7f88 ffff ffff rflt r8,0xffffffff,0xffffffff
|
||||||
80: 3d6e 0044 rflt r4,r5,0x1
|
84: 3e2e 137e rflt 0,r14,r13
|
||||||
84: 3e6e 7083 1234 5678 rflt r3,0x12345678,0x2
|
88: 3e2e 72be ffff ffff rflt 0,0xffffffff,r10
|
||||||
8c: 396e 013e rflt 0,r1,0x4
|
90: 3c2e 1fbe ffff ffff rflt 0,r12,0xffffffff
|
||||||
90: 3e6e 707e ffff ffff rflt 0,0xffffffff,0x1
|
98: 3d6e 0044 rflt r4,r5,0x1
|
||||||
98: 3a33 00c1 crc16 r1,r2,r3
|
9c: 3e6e 7083 1234 5678 rflt r3,0x12345678,0x2
|
||||||
9c: 3e33 7144 ffff ffff crc16 r4,0xffffffff,r5
|
a4: 396e 013e rflt 0,r1,0x4
|
||||||
a4: 3f33 0f86 ffff ffff crc16 r6,r7,0xffffffff
|
a8: 3e6e 707e ffff ffff rflt 0,0xffffffff,0x1
|
||||||
ac: 3e33 7f88 ffff ffff crc16 r8,0xffffffff,0xffffffff
|
b0: 3a33 00c1 crc16 r1,r2,r3
|
||||||
b4: 3933 12be crc16 0,r9,r10
|
b4: 3e33 7144 ffff ffff crc16 r4,0xffffffff,r5
|
||||||
b8: 3e33 72fe ffff ffff crc16 0,0xffffffff,r11
|
bc: 3f33 0f86 ffff ffff crc16 r6,r7,0xffffffff
|
||||||
c0: 3c33 1fbe ffff ffff crc16 0,r12,0xffffffff
|
c4: 3e33 7f88 ffff ffff crc16 r8,0xffffffff,0xffffffff
|
||||||
c8: 3e73 1fcd crc16 r13,r14,0x3f
|
cc: 3933 12be crc16 0,r9,r10
|
||||||
cc: 3e73 7fcf ffff ffff crc16 r15,0xffffffff,0x3f
|
d0: 3e33 72fe ffff ffff crc16 0,0xffffffff,r11
|
||||||
d4: 3873 2ffe crc16 0,r16,0x3f
|
d8: 3c33 1fbe ffff ffff crc16 0,r12,0xffffffff
|
||||||
d8: 3e73 7ffe ffff ffff crc16 0,0xffffffff,0x3f
|
e0: 3e73 1fcd crc16 r13,r14,0x3f
|
||||||
e0: 3a33 80c1 crc16\.r r1,r2,r3
|
e4: 3e73 7fcf ffff ffff crc16 r15,0xffffffff,0x3f
|
||||||
e4: 3e33 f144 ffff ffff crc16\.r r4,0xffffffff,r5
|
ec: 3873 2ffe crc16 0,r16,0x3f
|
||||||
ec: 3f33 8f86 ffff ffff crc16\.r r6,r7,0xffffffff
|
f0: 3e73 7ffe ffff ffff crc16 0,0xffffffff,0x3f
|
||||||
f4: 3e33 ff88 ffff ffff crc16\.r r8,0xffffffff,0xffffffff
|
f8: 3a33 80c1 crc16.r r1,r2,r3
|
||||||
fc: 3933 92be crc16\.r 0,r9,r10
|
fc: 3e33 f144 ffff ffff crc16.r r4,0xffffffff,r5
|
||||||
100: 3e33 f2fe ffff ffff crc16\.r 0,0xffffffff,r11
|
104: 3f33 8f86 ffff ffff crc16.r r6,r7,0xffffffff
|
||||||
108: 3c33 9fbe ffff ffff crc16\.r 0,r12,0xffffffff
|
10c: 3e33 ff88 ffff ffff crc16.r r8,0xffffffff,0xffffffff
|
||||||
110: 3e73 9fcd crc16\.r r13,r14,0x3f
|
114: 3933 92be crc16.r 0,r9,r10
|
||||||
114: 3e73 ffcf ffff ffff crc16\.r r15,0xffffffff,0x3f
|
118: 3e33 f2fe ffff ffff crc16.r 0,0xffffffff,r11
|
||||||
11c: 3873 affe crc16\.r 0,r16,0x3f
|
120: 3c33 9fbe ffff ffff crc16.r 0,r12,0xffffffff
|
||||||
120: 3e73 fffe ffff ffff crc16\.r 0,0xffffffff,0x3f
|
128: 3e73 9fcd crc16.r r13,r14,0x3f
|
||||||
128: 3a34 00c1 crc32 r1,r2,r3
|
12c: 3e73 ffcf ffff ffff crc16.r r15,0xffffffff,0x3f
|
||||||
12c: 3e34 7144 ffff ffff crc32 r4,0xffffffff,r5
|
134: 3873 affe crc16.r 0,r16,0x3f
|
||||||
134: 3f34 0f86 ffff ffff crc32 r6,r7,0xffffffff
|
138: 3e73 fffe ffff ffff crc16.r 0,0xffffffff,0x3f
|
||||||
13c: 3e34 7f88 ffff ffff crc32 r8,0xffffffff,0xffffffff
|
140: 3a34 00c1 crc32 r1,r2,r3
|
||||||
144: 3934 12be crc32 0,r9,r10
|
144: 3e34 7144 ffff ffff crc32 r4,0xffffffff,r5
|
||||||
148: 3e34 72fe ffff ffff crc32 0,0xffffffff,r11
|
14c: 3f34 0f86 ffff ffff crc32 r6,r7,0xffffffff
|
||||||
150: 3c34 1fbe ffff ffff crc32 0,r12,0xffffffff
|
154: 3e34 7f88 ffff ffff crc32 r8,0xffffffff,0xffffffff
|
||||||
158: 3e74 1fcd crc32 r13,r14,0x3f
|
15c: 3934 12be crc32 0,r9,r10
|
||||||
15c: 3e74 7fcf ffff ffff crc32 r15,0xffffffff,0x3f
|
160: 3e34 72fe ffff ffff crc32 0,0xffffffff,r11
|
||||||
164: 3874 2ffe crc32 0,r16,0x3f
|
168: 3c34 1fbe ffff ffff crc32 0,r12,0xffffffff
|
||||||
168: 3e74 7ffe ffff ffff crc32 0,0xffffffff,0x3f
|
170: 3e74 1fcd crc32 r13,r14,0x3f
|
||||||
170: 3a34 80c1 crc32\.r r1,r2,r3
|
174: 3e74 7fcf ffff ffff crc32 r15,0xffffffff,0x3f
|
||||||
174: 3e34 f144 ffff ffff crc32\.r r4,0xffffffff,r5
|
17c: 3874 2ffe crc32 0,r16,0x3f
|
||||||
17c: 3f34 8f86 ffff ffff crc32\.r r6,r7,0xffffffff
|
180: 3e74 7ffe ffff ffff crc32 0,0xffffffff,0x3f
|
||||||
184: 3e34 ff88 ffff ffff crc32\.r r8,0xffffffff,0xffffffff
|
188: 3a34 80c1 crc32.r r1,r2,r3
|
||||||
18c: 3934 92be crc32\.r 0,r9,r10
|
18c: 3e34 f144 ffff ffff crc32.r r4,0xffffffff,r5
|
||||||
190: 3e34 f2fe ffff ffff crc32\.r 0,0xffffffff,r11
|
194: 3f34 8f86 ffff ffff crc32.r r6,r7,0xffffffff
|
||||||
198: 3c34 9fbe ffff ffff crc32\.r 0,r12,0xffffffff
|
19c: 3e34 ff88 ffff ffff crc32.r r8,0xffffffff,0xffffffff
|
||||||
1a0: 3e74 9fcd crc32\.r r13,r14,0x3f
|
1a4: 3934 92be crc32.r 0,r9,r10
|
||||||
1a4: 3e74 ffcf ffff ffff crc32\.r r15,0xffffffff,0x3f
|
1a8: 3e34 f2fe ffff ffff crc32.r 0,0xffffffff,r11
|
||||||
1ac: 3874 affe crc32\.r 0,r16,0x3f
|
1b0: 3c34 9fbe ffff ffff crc32.r 0,r12,0xffffffff
|
||||||
1b0: 3e74 fffe ffff ffff crc32\.r 0,0xffffffff,0x3f
|
1b8: 3e74 9fcd crc32.r r13,r14,0x3f
|
||||||
|
1bc: 3e74 ffcf ffff ffff crc32.r r15,0xffffffff,0x3f
|
||||||
|
1c4: 3874 affe crc32.r 0,r16,0x3f
|
||||||
|
1c8: 3e74 fffe ffff ffff crc32.r 0,0xffffffff,0x3f
|
||||||
|
|
|
@ -42,8 +42,11 @@
|
||||||
/* rflt */
|
/* rflt */
|
||||||
rflt r10,r12,r20
|
rflt r10,r12,r20
|
||||||
rflt r0,0x12345678,r20
|
rflt r0,0x12345678,r20
|
||||||
|
rflt r6,r7,0xffffffff
|
||||||
|
rflt r8,0xffffffff,0xffffffff
|
||||||
rflt 0,r14,r13
|
rflt 0,r14,r13
|
||||||
rflt 0,0xffffffff,r10
|
rflt 0,0xffffffff,r10
|
||||||
|
rflt 0,r12,0xffffffff
|
||||||
rflt r4,r5,0x1
|
rflt r4,r5,0x1
|
||||||
rflt r3,0x12345678,0x2
|
rflt r3,0x12345678,0x2
|
||||||
rflt 0,r1,0x4
|
rflt 0,r1,0x4
|
||||||
|
|
|
@ -1,3 +1,8 @@
|
||||||
|
2016-06-01 Graham Markall <graham.markall@embecosm.com>
|
||||||
|
|
||||||
|
* arc-nps400-tbl.h: Add operands a,b,u6, 0,b,u6, and
|
||||||
|
0,b,limm to the rflt instruction.
|
||||||
|
|
||||||
2016-05-31 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
|
2016-05-31 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
|
||||||
|
|
||||||
* sh-opc.h (ARCH_SH_HAS_DSP): Make the shifted value an unsigned
|
* sh-opc.h (ARCH_SH_HAS_DSP): Make the shifted value an unsigned
|
||||||
|
|
|
@ -40,21 +40,30 @@
|
||||||
/* rflt a,limm,c 0011111000101110F111CCCCCCAAAAAA */
|
/* rflt a,limm,c 0011111000101110F111CCCCCCAAAAAA */
|
||||||
{ "rflt", 0x3e2e7000, 0xfffff000, ARC_OPCODE_NPS400, BITOP, NONE, { RA, LIMM, RC }, { 0 }},
|
{ "rflt", 0x3e2e7000, 0xfffff000, ARC_OPCODE_NPS400, BITOP, NONE, { RA, LIMM, RC }, { 0 }},
|
||||||
|
|
||||||
|
/* rflt a,b,u6 00111bbb01101110FBBBuuuuuuAAAAAA */
|
||||||
|
{ "rflt", 0x386e0000, 0xf8ff8000, ARC_OPCODE_NPS400, BITOP, NONE, { RA, RB, NPS_RFLT_UIMM6 }, { 0 }},
|
||||||
|
|
||||||
/* rflt 0,b,c 00111bbb00101110FBBBCCCCCC111110 */
|
/* rflt 0,b,c 00111bbb00101110FBBBCCCCCC111110 */
|
||||||
{ "rflt", 0x382e003e, 0xf8ff803f, ARC_OPCODE_NPS400, BITOP, NONE, { ZA, RB, RC }, { 0 }},
|
{ "rflt", 0x382e003e, 0xf8ff803f, ARC_OPCODE_NPS400, BITOP, NONE, { ZA, RB, RC }, { 0 }},
|
||||||
|
|
||||||
/* rflt 0,limm,c 0011111000101110F111CCCCCC111110 */
|
/* rflt 0,limm,c 0011111000101110F111CCCCCC111110 */
|
||||||
{ "rflt", 0x3e2e703e, 0xfffff03f, ARC_OPCODE_NPS400, BITOP, NONE, { ZA, LIMM, RC }, { 0 }},
|
{ "rflt", 0x3e2e703e, 0xfffff03f, ARC_OPCODE_NPS400, BITOP, NONE, { ZA, LIMM, RC }, { 0 }},
|
||||||
|
|
||||||
/* rflt a,b,u6 00111bbb01101110FBBBuuuuuuAAAAAA */
|
/* rflt 0,b,u6 00111bbb01101110FBBBuuuuuu111110 */
|
||||||
{ "rflt", 0x386e0000, 0xf8ff8000, ARC_OPCODE_NPS400, BITOP, NONE, { RA, RB, NPS_RFLT_UIMM6 }, { 0 }},
|
{ "rflt", 0x386e003e, 0xf8ff803f, ARC_OPCODE_NPS400, BITOP, NONE, { ZA, RB, NPS_RFLT_UIMM6 }, { 0 }},
|
||||||
|
|
||||||
|
/* rflt 0,b,limm 00111bbb00101110FBBB111110111110 */
|
||||||
|
{ "rflt", 0x382e0fbe, 0xf8ff8fff, ARC_OPCODE_NPS400, BITOP, NONE, { ZA, RB, LIMM }, { 0 }},
|
||||||
|
|
||||||
|
/* rflt a,b,limm 00111bbb00101110FBBB111110AAAAAA */
|
||||||
|
{ "rflt", 0x382e0f80, 0xf8ff8fc0, ARC_OPCODE_NPS400, BITOP, NONE, { RA, RB, LIMM }, { 0 }},
|
||||||
|
|
||||||
|
/* rflt a,limm,limm 0011111000101110F111111110AAAAAA */
|
||||||
|
{ "rflt", 0x3e2e7f80, 0xffffffc0, ARC_OPCODE_NPS400, BITOP, NONE, { RA, LIMM, LIMMdup }, { 0 }},
|
||||||
|
|
||||||
/* rflt a,limm,u6 0011111001101110F111uuuuuuAAAAAA */
|
/* rflt a,limm,u6 0011111001101110F111uuuuuuAAAAAA */
|
||||||
{ "rflt", 0x3e6e7000, 0xfffff000, ARC_OPCODE_NPS400, BITOP, NONE, { RA, LIMM, NPS_RFLT_UIMM6 }, { 0 }},
|
{ "rflt", 0x3e6e7000, 0xfffff000, ARC_OPCODE_NPS400, BITOP, NONE, { RA, LIMM, NPS_RFLT_UIMM6 }, { 0 }},
|
||||||
|
|
||||||
/* rflt 0,b,u6 00111bbb01101110FBBBuuuuuu111110 */
|
|
||||||
{ "rflt", 0x386e003e, 0xf8ff803f, ARC_OPCODE_NPS400, BITOP, NONE, { ZA, RB, NPS_RFLT_UIMM6 }, { 0 }},
|
|
||||||
|
|
||||||
/* rflt 0,limm,u6 0011111001101110F111uuuuuu111110 */
|
/* rflt 0,limm,u6 0011111001101110F111uuuuuu111110 */
|
||||||
{ "rflt", 0x3e6e703e, 0xfffff03f, ARC_OPCODE_NPS400, BITOP, NONE, { ZA, LIMM, NPS_RFLT_UIMM6 }, { 0 }},
|
{ "rflt", 0x3e6e703e, 0xfffff03f, ARC_OPCODE_NPS400, BITOP, NONE, { ZA, LIMM, NPS_RFLT_UIMM6 }, { 0 }},
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue