.file "string-opt-2.c" .section .rodata.str1.1,"aMS",@progbits,1 .LC0: .string "llo world" .LC1: .string "hello world" .text .align 2 .globl fn .type fn, @function fn: link.w %a6,#0 move.l %a2,-(%sp) move.l %d2,-(%sp) move.l 8(%a6),%d2 pea 10.w pea .LC0 pea .LC1+2 jbsr memcmp lea (12,%sp),%sp tst.l %d0 jbne .L11 lea strchr,%a2 pea 104.w move.l 12(%a6),%a0 move.l -4(%a0),-(%sp) jbsr (%a2) addq.l #8,%sp cmp.l %a0,%d2 jbne .L11 pea 104.w move.l %d2,-(%sp) jbsr (%a2) addq.l #8,%sp cmp.l %a0,%d2 jbne .L11 pea 119.w move.l %d2,-(%sp) jbsr (%a2) addq.l #8,%sp move.l %d2,%d0 addq.l #6,%d0 cmp.l %a0,%d0 jbne .L11 pea 111.w move.l %a0,-(%sp) jbsr (%a2) addq.l #8,%sp move.l %d2,%d0 addq.l #7,%d0 cmp.l %a0,%d0 jbeq .L9 .L11: jbsr abort .align 2 .L9: move.l -8(%a6),%d2 move.l -4(%a6),%a2 unlk %a6 rts .size fn, .-fn .section .rodata.str1.1 .LC2: .string "bye bye world" .section .rodata .align 2 .LC3: .long .LC1 .long .LC2 .text .align 2 .globl main .type main, @function main: link.w %a6,#-8 move.l .LC3,-8(%a6) move.l .LC3+4,-4(%a6) pea -4(%a6) pea .LC1 jbsr fn clr.l %d0 unlk %a6 rts .size main, .-main .align 2 .type strpbrk, @function strpbrk: link.w %a6,#0 jbsr abort nop .size strpbrk, .-strpbrk .ident "GCC: (GNU) 3.3.2"