symbian-qemu-0.9.1-12/qemu-symbian-svp/tests/cris/check_addxc.s
changeset 1 2fb8b9db1c86
equal deleted inserted replaced
0:ffa851df0825 1:2fb8b9db1c86
       
     1 # mach: crisv0 crisv3 crisv8 crisv10 crisv32
       
     2 # output: 1\n1\n101\n10001\n100fe\n1fffe\nfffe\nfffe\nfffffffe\nfe\nfffffffe\n781344db\n781343db\n78143bdb\n78133bdb\n800000ed\n0\n
       
     3 
       
     4  .include "testutils.inc"
       
     5  start
       
     6  moveq 2,r3
       
     7  adds.b 0xff,r3
       
     8  test_cc 0 0 0 1
       
     9  checkr3 1
       
    10 
       
    11  moveq 2,r3
       
    12  adds.w 0xffff,r3
       
    13  test_cc 0 0 0 1
       
    14  checkr3 1
       
    15 
       
    16  moveq 2,r3
       
    17  addu.b 0xff,r3
       
    18  checkr3 101
       
    19 
       
    20  moveq 2,r3
       
    21  move.d 0xffffffff,r4
       
    22  addu.w -1,r3
       
    23  test_cc 0 0 0 0
       
    24  checkr3 10001
       
    25 
       
    26  move.d 0xffff,r3
       
    27  addu.b -1,r3
       
    28  test_cc 0 0 0 0
       
    29  checkr3 100fe
       
    30 
       
    31  move.d 0xffff,r3
       
    32  addu.w -1,r3
       
    33  test_cc 0 0 0 0
       
    34  checkr3 1fffe
       
    35 
       
    36  move.d 0xffff,r3
       
    37  adds.b 0xff,r3
       
    38  test_cc 0 0 0 1
       
    39  checkr3 fffe
       
    40 
       
    41  move.d 0xffff,r3
       
    42  adds.w 0xffff,r3
       
    43  test_cc 0 0 0 1
       
    44  checkr3 fffe
       
    45 
       
    46  moveq -1,r3
       
    47  adds.b 0xff,r3
       
    48  test_cc 1 0 0 1
       
    49  checkr3 fffffffe
       
    50 
       
    51  moveq -1,r3
       
    52  adds.w 0xff,r3
       
    53  test_cc 0 0 0 1
       
    54  checkr3 fe
       
    55 
       
    56  moveq -1,r3
       
    57  adds.w 0xffff,r3
       
    58  test_cc 1 0 0 1
       
    59  checkr3 fffffffe
       
    60 
       
    61  move.d 0x78134452,r3
       
    62  addu.b 0x89,r3
       
    63  test_cc 0 0 0 0
       
    64  checkr3 781344db
       
    65 
       
    66  move.d 0x78134452,r3
       
    67  adds.b 0x89,r3
       
    68  test_cc 0 0 0 1
       
    69  checkr3 781343db
       
    70 
       
    71  move.d 0x78134452,r3
       
    72  addu.w 0xf789,r3
       
    73  test_cc 0 0 0 0
       
    74  checkr3 78143bdb
       
    75 
       
    76  move.d 0x78134452,r3
       
    77  adds.w 0xf789,r3
       
    78  test_cc 0 0 0 1
       
    79  checkr3 78133bdb
       
    80 
       
    81  move.d 0x7fffffee,r3
       
    82  addu.b 0xff,r3
       
    83  test_cc 1 0 1 0
       
    84  checkr3 800000ed
       
    85 
       
    86  move.d 0x1,r3
       
    87  adds.w 0xffff,r3
       
    88  test_cc 0 1 0 1
       
    89  checkr3 0
       
    90 
       
    91  quit