1/*
2 *  arch/s390/lib/strcmp.S
3 *    S390 strcmp routine
4 *
5 *  S390 version
6 *    Copyright (C) 1999 IBM Deutschland Entwicklung GmbH, IBM Corporation
7 *    Author(s): Martin Schwidefsky (schwidefsky@de.ibm.com),
8 */
9
10/*
11 * R2 = address of compare string
12 * R3 = address of test string
13 */
14        .globl   strcmp
15strcmp:
16        SGR     0,0
17        SGR     1,1
18        CLST    2,3
19        JO      .-4
20        JE      strcmp_equal
21        IC      0,0(3)
22        IC      1,0(2)
23        SGR     1,0
24strcmp_equal:
25        LGR     2,1
26        BR      14
27
28