From 9bff1e9a1a85f2bd4be14d32412b696e41bf2ea3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ciro=20Santilli=20=E5=85=AD=E5=9B=9B=E4=BA=8B=E4=BB=B6=20?= =?UTF-8?q?=E6=B3=95=E8=BD=AE=E5=8A=9F?= Date: Fri, 5 Jun 2020 01:00:00 +0000 Subject: [PATCH] disassembly_test: a bit more stuff --- userland/arch/aarch64/freestanding/linux/disassembly_test.S | 3 +++ 1 file changed, 3 insertions(+) diff --git a/userland/arch/aarch64/freestanding/linux/disassembly_test.S b/userland/arch/aarch64/freestanding/linux/disassembly_test.S index af27b84..9b9ef29 100644 --- a/userland/arch/aarch64/freestanding/linux/disassembly_test.S +++ b/userland/arch/aarch64/freestanding/linux/disassembly_test.S @@ -8,6 +8,7 @@ _start: mov x2, 2 /* Also Movz class just like 'x' version.. */ mov w2, 2 + mov x2, 0x13 /* Explicit MOVZ with shift. */ movz x2, 3, lsl 16 @@ -31,6 +32,8 @@ _start: /* class AddImm : public DataImmOp TODO confirm AddImm vs AddImmCc */ add x1, x2, 0 add x1, x2, 1 + /* Assembler converts it to sub 2. */ + add x1, x2, -2 add x1, x2, 1, lsl 12 /* gem5 LDRWL64_LIT class. */