symbian-qemu-0.9.1-12/qemu-symbian-svp/tests/cris/check_addi.s
author Shane McErlean <shane.mcerlean@accenture.com>
Fri, 27 Aug 2010 15:33:49 +0100
changeset 101 1e82a8be084a
parent 1 2fb8b9db1c86
permissions -rw-r--r--
NTT DOCOMO, INC - Fix for bug 1290 "E32test t_atomic.EXE failed with unhandled exception handling"

# mach:  crisv0 crisv3 crisv8 crisv10 crisv32
# output: 0\n1\n2\n4\nbe02460f\n69d035a6\nc16c14d4\n

 .include "testutils.inc"
 start
 moveq 0,r3
 moveq 0,r4
 clearf zcvn
 addi r4.b,r3
 test_cc 0 0 0 0
 checkr3 0

 moveq 0,r3
 moveq 1,r4
 setf zcvn
 addi r4.b,r3
 test_cc 1 1 1 1
 checkr3 1

 moveq 0,r3
 moveq 1,r4
 setf cv
 clearf zn
 addi r4.w,r3
 test_cc 0 0 1 1
 checkr3 2

 moveq 0,r3
 moveq 1,r4
 clearf cv
 setf zn
 addi r4.d,r3
 test_cc 1 1 0 0
 checkr3 4

 move.d 0x12345678,r3
 move.d 0xabcdef97,r4
 clearf cn
 setf zv
 addi r4.b,r3
 test_cc 0 1 1 0
 checkr3 be02460f

 move.d 0x12345678,r3
 move.d 0xabcdef97,r4
 setf cn
 clearf zv
 addi r4.w,r3
 test_cc 1 0 0 1
 checkr3 69d035a6

 move.d 0x12345678,r3
 move.d 0xabcdef97,r4
 addi r4.d,r3
 checkr3 c16c14d4

 quit