-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patha.s
52 lines (51 loc) · 1.18 KB
/
a.s
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
.text
.file "program.ke"
.globl main # -- Begin function main
.p2align 4, 0x90
.type main,@function
main: # @main
.Lfunc_begin0:
.cfi_sections .debug_frame
.cfi_startproc
# %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
# kill: killed $rsi
# kill: killed $edi
movl $1, %eax
incl %eax
seto %cl
testb $1, %cl
jne .LBB0_1
jmp .LBB0_2
.LBB0_1:
movabsq $.L__unnamed_1, %rdi
callq printf@PLT
# implicit-def: $eax
jmp .LBB0_3
.LBB0_2:
jmp .LBB0_3
.LBB0_3:
movq %rsp, %rcx
addq $-16, %rcx
movq %rcx, %rsp
movl %eax, (%rcx)
xorl %eax, %eax
movq %rbp, %rsp
popq %rbp
.cfi_def_cfa %rsp, 8
retq
.Lfunc_end0:
.size main, .Lfunc_end0-main
.cfi_endproc
# -- End function
.type .L__unnamed_1,@object # @0
.section .rodata,"a",@progbits
.p2align 4
.L__unnamed_1:
.asciz "Error: std::i32 addition overflow!\n program.ke:8:14\n"
.size .L__unnamed_1, 56
.section ".note.GNU-stack","",@progbits