1/* 2Copyright (c) 1990 The Regents of the University of California. 3All rights reserved. 4 5Redistribution and use in source and binary forms are permitted 6provided that the above copyright notice and this paragraph are 7duplicated in all such forms and that any documentation, 8and/or other materials related to such 9distribution and use acknowledge that the software was developed 10by the University of California, Berkeley. The name of the 11University may not be used to endorse or promote products derived 12from this software without specific prior written permission. 13THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR 14IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED 15WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. 16 */ 17 .file "strcmp.S" 18 19 .section .text 20 .global _strcmp 21 .type _strcmp,@function 22_strcmp: 23 movm [d2,d3,a2,a3],(sp) 24.Lend_of_prologue: 25 mov d0,a0 26 mov d1,a1 27#ifndef __OPTIMIZE_SIZE__ 28 or d1,d0 29 btst 3,d0 30 bne .L11 31 mov (a0),d1 32 mov (a1),d0 33 cmp d0,d1 34 bne .L11 35 mov -16843009,d3 36 setlb 37 mov (a0),d0 38 mov d3,d1 39 add d0,d1 40 not d0 41 and d0,d1 42 and -2139062144,d1 43 beq .L6 44 clr d0 45 jmp .Lepilogue 46.L6: 47 inc4 a0 48 inc4 a1 49 mov (a0),d1 50 mov (a1),d0 51 cmp d0,d1 52 leq 53.L11: 54#endif 55 setlb 56 movbu (a1),d2 57 movbu (a0),d0 58 cmp 0,d0 59 beq .L9 60 cmp d2,d0 61 bne .L9 62 inc a0 63 inc a1 64 lra 65.L9: 66 sub d2,d0 67.Lepilogue: 68 ret [d2,d3,a2,a3],16 69.Lend_of_strcmp: 70 .size _strcmp, .Lend_of_strcmp - _strcmp 71 72 .section .debug_frame,"",@progbits 73.Lstart_of_debug_frame: 74 # Common Information Entry (CIE) 75 .4byte .Lend_of_CIE - .Lstart_of_CIE # CIE Length 76.Lstart_of_CIE: 77 .4byte 0xffffffff # CIE Identifier Tag 78 .byte 0x1 # CIE Version 79 .ascii "\0" # CIE Augmentation 80 .uleb128 0x1 # CIE Code Alignment Factor 81 .sleb128 -4 # CIE Data Alignment Factor 82 .byte 0x32 # CIE RA Column 83 .byte 0xc # DW_CFA_def_cfa 84 .uleb128 0x9 85 .uleb128 0x0 86 .byte 0xb2 # DW_CFA_offset, column 0x32 87 .uleb128 0x0 88 .align 2 89.Lend_of_CIE: 90 91 # Frame Description Entry (FDE) 92 .4byte .Lend_of_FDE - .Lstart_of_FDE # FDE Length 93.Lstart_of_FDE: 94 .4byte .Lstart_of_debug_frame # FDE CIE offset 95 .4byte _strcmp # FDE initial location 96 .4byte .Lend_of_strcmp - _strcmp # FDE address range 97 .byte 0x4 # DW_CFA_advance_loc4 98 .4byte .Lend_of_prologue - _strcmp 99 .byte 0xe # DW_CFA_def_cfa_offset 100 .uleb128 0x4 101 .byte 0x87 # DW_CFA_offset, column 0x7 102 .uleb128 0x1 103 .align 2 104.Lend_of_FDE: 105