[v2,2/5] RISC-V: Refine testcase.

Message ID 20190702095801.32062-2-kito.cheng@sifive.com
State New
Headers show
Series
  • [v2,1/5] RISC-V: Fix doc for .insn
Related show

Commit Message

Kito Cheng July 2, 2019, 9:57 a.m.
- This patch make following patches more simpler.

gas/ChangeLog

	* testsuite/gas/riscv/insn.d: Using regular expression to match
	address.
---
 gas/testsuite/gas/riscv/insn.d | 86 +++++++++++++++++-----------------
 1 file changed, 43 insertions(+), 43 deletions(-)

-- 
2.17.1

Comments

Jim Wilson July 5, 2019, 4:29 a.m. | #1
On Tue, Jul 2, 2019 at 5:58 PM Kito Cheng <kito.cheng@sifive.com> wrote:
> gas/ChangeLog

>         * testsuite/gas/riscv/insn.d: Using regular expression to match

>         address.


This is OK.

Jim

Patch

diff --git a/gas/testsuite/gas/riscv/insn.d b/gas/testsuite/gas/riscv/insn.d
index a1474c91e1..1e9ba3ac3c 100644
--- a/gas/testsuite/gas/riscv/insn.d
+++ b/gas/testsuite/gas/riscv/insn.d
@@ -7,46 +7,46 @@ 
 Disassembly of section .text:
 
 0+000 <target>:
-[ 	]+0:[ 	]+00c58533[ 	]+add[ 	]+a0,a1,a2
-[ 	]+4:[ 	]+00d58513[ 	]+addi[ 	]+a0,a1,13
-[ 	]+8:[ 	]+00a58567[ 	]+jalr[ 	]+a0,10\(a1\)
-[ 	]+c:[ 	]+00458503[ 	]+lb[ 	]+a0,4\(a1\)
-[ 	]+10:[ 	]+feb508e3[ 	]+beq[ 	]+a0,a1,0 \<target\>
-[	]+10: R_RISCV_BRANCH[	]+target
-[ 	]+14:[ 	]+00a58223[ 	]+sb[ 	]+a0,4\(a1\)
-[ 	]+18:[ 	]+00fff537[ 	]+lui[ 	]+a0,0xfff
-[ 	]+1c:[ 	]+fe5ff56f[ 	]+jal[ 	]+a0,0 \<target\>
-[	]+1c: R_RISCV_JAL[	]+target
-[ 	]+20:[ 	]+0511[ 	]+addi[ 	]+a0,a0,4
-[ 	]+22:[ 	]+852e[ 	]+mv[ 	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