From 0d3881f680353e895681f6bebe65ea273140310c Mon Sep 17 00:00:00 2001 From: omicron Date: Wed, 2 Apr 2025 11:19:35 +0200 Subject: [PATCH] Update the test input file to contain all AST nodes --- tests/input/valid.asm | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/tests/input/valid.asm b/tests/input/valid.asm index de95bbe..274b656 100644 --- a/tests/input/valid.asm +++ b/tests/input/valid.asm @@ -1,5 +1,17 @@ +.section text + +; Small valid code snippet that should contain all different AST nodes + _start: - mov eax, 555 ; move 555 into eax + mov eax, ebx + lea eax, [eax + ebx * 4 + 8] + lea eax, [eax + 8] + lea eax, [eax + ebx * 8] + lea eax, [esp - 24] + lea eax, [eax + ebx * 4 - 8] + lea eax, [_start] + mov eax, _start + mov eax, 555 push 0o777 xor eax, 0xDEADBEEF and ecx, 0o770