-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlt-condition.s
57 lines (57 loc) · 919 Bytes
/
lt-condition.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
53
54
55
56
57
.file "lt-condition.c"
.text
.section .rodata.str1.1,"aMS",@progbits,1
.LC0:
.string "x is LT Y"
.LC1:
.string "x is GTE Y"
.text
.globl lt
.type lt, @function
lt:
.LFB23:
.cfi_startproc
subq $8, %rsp
.cfi_def_cfa_offset 16
cmpl %esi, %edi
jl .L5
leaq .LC1(%rip), %rsi
movl $1, %edi
movl $0, %eax
call __printf_chk@PLT
movl $0, %eax
.L1:
addq $8, %rsp
.cfi_remember_state
.cfi_def_cfa_offset 8
ret
.L5:
.cfi_restore_state
leaq .LC0(%rip), %rsi
movl $1, %edi
movl $0, %eax
call __printf_chk@PLT
movl $1, %eax
jmp .L1
.cfi_endproc
.LFE23:
.size lt, .-lt
.globl main
.type main, @function
main:
.LFB24:
.cfi_startproc
subq $8, %rsp
.cfi_def_cfa_offset 16
movl $73, %esi
movl $42, %edi
call lt
movl $0, %eax
addq $8, %rsp
.cfi_def_cfa_offset 8
ret
.cfi_endproc
.LFE24:
.size main, .-main
.ident "GCC: (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0"
.section .note.GNU-stack,"",@progbits