some of it
This commit is contained in:
17
A5/test_runs/test1.hex
Normal file
17
A5/test_runs/test1.hex
Normal file
@ -0,0 +1,17 @@
|
||||
00000000 : # test:
|
||||
00000000 : A45030000000 # leaq data, %rsi
|
||||
00000006 : 640000000000 # movq $0, %rax
|
||||
0000000c : 644000000000 # movq $0, %rbp
|
||||
00000012 : 93B503 # leaq (%rsi, %rax, 8), %r11
|
||||
00000015 : 313B # movq (%r11), %rdx
|
||||
00000017 : 500001000000 # addq $1, %rax
|
||||
0000001d : 1043 # addq %rdx, %rbp
|
||||
0000001f : 93B503 # leaq (%rsi, %rax, 8), %r11
|
||||
00000022 : 313B # movq (%r11), %rdx
|
||||
00000024 : 500001000000 # addq $1, %rax
|
||||
0000002a : 1043 # addq %rdx, %rbp
|
||||
0000002c : 0000 # stop
|
||||
00000030 : # .align 8
|
||||
00000030 : # data:
|
||||
00000030 : 2a00000000000000 # .quad 42
|
||||
00000038 : 1500000000000000 # .quad 21
|
25
A5/test_runs/test1.out
Normal file
25
A5/test_runs/test1.out
Normal file
@ -0,0 +1,25 @@
|
||||
1 0
|
||||
0
|
||||
2 6
|
||||
0
|
||||
3 c
|
||||
0
|
||||
4 12
|
||||
0
|
||||
5 15
|
||||
0
|
||||
6 17
|
||||
0
|
||||
7 1d
|
||||
0
|
||||
8 1f
|
||||
0
|
||||
9 22
|
||||
0
|
||||
10 24
|
||||
0
|
||||
11 2a
|
||||
0
|
||||
12 2c
|
||||
0
|
||||
Done
|
2
A5/test_runs/test1.sym
Normal file
2
A5/test_runs/test1.sym
Normal file
@ -0,0 +1,2 @@
|
||||
data : 00000030
|
||||
test : 00000000
|
24
A5/test_runs/test1.trc
Normal file
24
A5/test_runs/test1.trc
Normal file
@ -0,0 +1,24 @@
|
||||
P 0 0
|
||||
R 5 30
|
||||
P 0 6
|
||||
R 0 0
|
||||
P 0 c
|
||||
R 4 0
|
||||
P 0 12
|
||||
R b 30
|
||||
P 0 15
|
||||
R 3 2a
|
||||
P 0 17
|
||||
R 0 1
|
||||
P 0 1d
|
||||
R 4 2a
|
||||
P 0 1f
|
||||
R b 38
|
||||
P 0 22
|
||||
R 3 15
|
||||
P 0 24
|
||||
R 0 2
|
||||
P 0 2a
|
||||
R 4 3f
|
||||
P 0 2c
|
||||
P 0 2e
|
22
A5/test_runs/test2.hex
Normal file
22
A5/test_runs/test2.hex
Normal file
@ -0,0 +1,22 @@
|
||||
00000000 : # test:
|
||||
00000000 : 517008000000 # subq $8, %rsp
|
||||
00000006 : 39B7 # movq %r11, (%rsp)
|
||||
00000008 : 938623 # leaq (%rdi, %rcx, 8), %r8
|
||||
0000000b : 4F0025000000 # jmp .L6
|
||||
00000011 : # .L7:
|
||||
00000011 : 3906 # movq %rax, (%rdi)
|
||||
00000013 : # .L8:
|
||||
00000013 : 506008000000 # addq $8, %rdi
|
||||
00000019 : 505008000000 # addq $8, %rsi
|
||||
0000001f : 503008000000 # addq $8, %rdx
|
||||
00000025 : # .L6:
|
||||
00000025 : 4B683d000000 # cbbe %r8, %rdi, .L10
|
||||
0000002b : 3125 # movq (%rsi), %rcx
|
||||
0000002d : 3103 # movq (%rdx), %rax
|
||||
0000002f : 472011000000 # cbge %rax, %rcx, .L7
|
||||
00000035 : 3926 # movq %rcx, (%rdi)
|
||||
00000037 : 4F0013000000 # jmp .L8
|
||||
0000003d : # .L10:
|
||||
0000003d : 31B7 # movq (%rsp), %r11
|
||||
0000003f : 507008000000 # addq $8, %rsp
|
||||
00000045 : 010B # ret %r11
|
18
A5/test_runs/test2.out
Normal file
18
A5/test_runs/test2.out
Normal file
@ -0,0 +1,18 @@
|
||||
1 0
|
||||
0
|
||||
2 6
|
||||
1
|
||||
3 8
|
||||
0
|
||||
4 b
|
||||
0
|
||||
5 25
|
||||
0
|
||||
6 3d
|
||||
0
|
||||
7 3f
|
||||
0
|
||||
8 45
|
||||
0
|
||||
-- value mismatch, access 'P' 0
|
||||
-- with value 47, but tracefile expected 0
|
5
A5/test_runs/test2.sym
Normal file
5
A5/test_runs/test2.sym
Normal file
@ -0,0 +1,5 @@
|
||||
.L10 : 0000003d
|
||||
.L6 : 00000025
|
||||
.L8 : 00000013
|
||||
.L7 : 00000011
|
||||
test : 00000000
|
14
A5/test_runs/test2.trc
Normal file
14
A5/test_runs/test2.trc
Normal file
@ -0,0 +1,14 @@
|
||||
P 0 0
|
||||
R 7 fffffffffffffff8
|
||||
P 0 6
|
||||
M fffffffffffffff8 0
|
||||
P 0 8
|
||||
R 8 0
|
||||
P 0 b
|
||||
P 0 25
|
||||
P 0 3d
|
||||
R b 0
|
||||
P 0 3f
|
||||
R 7 0
|
||||
P 0 45
|
||||
P 0 0
|
Reference in New Issue
Block a user