.file "test.c"
.text
.globl main
.align 16, 0x90
.type main,@function
main: # @main
.cfi_startproc
# BB#0:
pushq %rbp
.Ltmp2:
.cfi_def_cfa_offset 16
.Ltmp3:
.cfi_offset %rbp, -16
movq %rsp, %rbp
.Ltmp4:
.cfi_def_cfa_register %rbp
subq $16, %rsp
movl $0, -4(%rbp)
movl $.L.str, %eax
movl %eax, %ecx
movq %rcx, %rdi
movq %rcx, %rsi
callq strcmp
cmpl $0, %eax
je .LBB0_2
# BB#1:
leaq .L.str1, %rdi
movb $0, %al
callq printf
movl %eax, -8(%rbp) # 4-byte Spill
jmp .LBB0_3
.LBB0_2:
leaq .L.str2, %rdi
movb $0, %al
callq printf
movl %eax, -12(%rbp) # 4-byte Spill
.LBB0_3:
movl $0, %eax
addq $16, %rsp
popq %rbp
ret
.Ltmp5:
.size main, .Ltmp5-main
.cfi_endproc
.type .L.str,@object # @.str
.section .rodata.str1.1,"aMS",@progbits,1
.L.str:
.asciz "test"
.size .L.str, 5
.type .L.str1,@object # @.str1
.L.str1:
.asciz "Test1\n"
.size .L.str1, 7
.type .L.str2,@object # @.str2
.L.str2:
.asciz "Test2\n"
.size .L.str2, 7
.ident "clang version 3.4 (tags/RELEASE_34/final)"
.section ".note.GNU-stack","",@progbits
Partager