From 3da4500a063f69a31dea70ff00d12264883cda61 Mon Sep 17 00:00:00 2001 From: Tomer Levi Date: Wed, 27 Oct 2004 10:32:51 +0000 Subject: [PATCH] * gas/crx/cop_insn.s: Test new Co-Processor instruction 'cpi'. --- gas/testsuite/gas/crx/cop_insn.d | 91 +++++++++++++++++--------------- gas/testsuite/gas/crx/cop_insn.s | 5 ++ 2 files changed, 53 insertions(+), 43 deletions(-) diff --git a/gas/testsuite/gas/crx/cop_insn.d b/gas/testsuite/gas/crx/cop_insn.d index bdef7008e92..9c736296ae1 100644 --- a/gas/testsuite/gas/crx/cop_insn.d +++ b/gas/testsuite/gas/crx/cop_insn.d @@ -6,62 +6,67 @@ Disassembly of section .text: -00000000 : - 0: 1f 30 1e 30 mtcr \$0xf, r1, c14 +00000000 : + 0: 12 30 34 12 cpi \$0x2, \$0x1234 + 4: 13 31 65 87 cpi \$0x3, \$0x4321, \$0x8765 + 8: 21 43 -00000004 : - 4: 13 30 72 31 mfcr \$0x3, c7, r2 +0000000a : + a: 1f 30 10 30 mtcr \$0xf, r1, c0 -00000008 : - 8: 12 30 51 32 mtcsr \$0x2, r5, cs1 +0000000e : + e: 13 30 02 31 mfcr \$0x3, c0, r2 -0000000c : - c: 11 30 ce 33 mfcsr \$0x1, cs12, r14 +00000012 : + 12: 12 30 50 32 mtcsr \$0x2, r5, cs0 -00000010 : - 10: 11 30 38 34 ldcr \$0x1, r3, c8 +00000016 : + 16: 11 30 0e 33 mfcsr \$0x1, cs0, r14 -00000014 : - 14: 12 30 b4 35 stcr \$0x2, c11, r4 +0000001a : + 1a: 11 30 30 34 ldcr \$0x1, r3, c0 -00000018 : - 18: 14 30 6c 36 ldcsr \$0x4, r6, cs12 +0000001e : + 1e: 12 30 04 35 stcr \$0x2, c0, r4 -0000001c : - 1c: 17 30 ad 37 stcsr \$0x7, cs10, r13 +00000022 : + 22: 14 30 60 36 ldcsr \$0x4, r6, cs0 -00000020 : - 20: 13 31 01 30 loadmcr \$0x3, r1, {c2,c3,c5} - 24: 2c 00 +00000026 : + 26: 17 30 0d 37 stcsr \$0x7, cs0, r13 -00000026 : - 26: 1f 31 1e 30 stormcr \$0xf, r14, {c4,c7,c9,c10} - 2a: 90 06 +0000002a : + 2a: 13 31 01 30 loadmcr \$0x3, r1, {c0,c12,c13} + 2e: 2c 00 -0000002c : - 2c: 1c 31 28 30 loadmcsr \$0xc, r8, {cs7,cs8,cs9,cs10,cs11} - 30: 80 0f +00000030 : + 30: 1f 31 1e 30 stormcr \$0xf, r14, {c1,c2,c3,c4,c12,c13} + 34: 90 06 -00000032 : - 32: 19 31 39 30 stormcsr \$0x9, r9, {cs4,cs7,cs10} - 36: 90 04 +00000036 : + 36: 1c 31 28 30 loadmcsr \$0xc, r8, {cs3,cs5,cs12,cs13} + 3a: 80 0f -00000038 : - 38: 13 30 48 77 bcop \$0x7, \$0x3, \*\+0x90 - 3c: 1c 31 fa 76 bcop \$0x6, \$0xc, \*\-0xbcdfe - 40: 01 19 +0000003c : + 3c: 19 31 39 30 stormcsr \$0x9, r9, {cs0,cs3,cs4,cs5,cs12,cs13} + 40: 90 04 -00000042 : - 42: 13 30 45 b2 cpdop \$0x3, \$0x2, r4, r5 - 46: 17 31 12 ba cpdop \$0x7, \$0xa, r1, r2, \$0x1234 - 4a: 34 12 +00000042 : + 42: 13 30 48 77 bcop \$0x7, \$0x3, \*\+0x90 + 46: 1c 31 fa 76 bcop \$0x6, \$0xc, \*\-0xbcdfe + 4a: 01 19 -0000004c : - 4c: 09 30 10 00 mtpr r0, hi +0000004c : + 4c: 13 30 45 b2 cpdop \$0x3, \$0x2, r4, r5 + 50: 17 31 12 ba cpdop \$0x7, \$0xa, r1, r2, \$0xba12 + 54: 34 12 -00000050 : - 50: 0a 30 05 11 mfpr lo, r5 - 54: 0a 30 0a 90 mfpr uhi, r10 +00000056 : + 56: 09 30 10 00 mtpr r0, hi -00000058 : - 58: 10 30 0f 00 cinv \[b,d,i,u\] +0000005a : + 5a: 0a 30 05 11 mfpr lo, r5 + 5e: 0a 30 0a 90 mfpr uhi, r10 + +00000062 : + 62: 10 30 0f 00 cinv \[b,d,i,u\] diff --git a/gas/testsuite/gas/crx/cop_insn.s b/gas/testsuite/gas/crx/cop_insn.s index 70aec5691f6..d91260bc13d 100644 --- a/gas/testsuite/gas/crx/cop_insn.s +++ b/gas/testsuite/gas/crx/cop_insn.s @@ -4,6 +4,11 @@ foodata: .word 42 .text footext: + .global cpi +cpi: +cpi $0x2, $0x1234 +cpi $3, $0x8765, $0x4321 + .global mtcr mtcr: mtcr $0xf, r1, c14 -- 2.30.2