~ubuntu-branches/ubuntu/wily/qemu-kvm-spice/wily

« back to all changes in this revision

Viewing changes to tests/cris/check_movecr.s

  • Committer: Bazaar Package Importer
  • Author(s): Serge Hallyn
  • Date: 2011-10-19 10:44:56 UTC
  • Revision ID: james.westby@ubuntu.com-20111019104456-xgvskumk3sxi97f4
Tags: upstream-0.15.0+noroms
ImportĀ upstreamĀ versionĀ 0.15.0+noroms

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# mach: crisv3 crisv8 crisv10 crisv32
 
2
# output: ffffff42\n94\nffff4321\n9234\n76543210\n76540000\n
 
3
 
 
4
; Move constant byte, word, dword to register.  Check that no extension is
 
5
; performed, that only part of the register is set.
 
6
 
 
7
 .include "testutils.inc"
 
8
 startnostack
 
9
 moveq -1,r3
 
10
 move.b 0x42,r3
 
11
 test_move_cc 0 0 0 0
 
12
 checkr3 ffffff42
 
13
 
 
14
 moveq 0,r3
 
15
 move.b 0x94,r3
 
16
 test_move_cc 1 0 0 0
 
17
 checkr3 94
 
18
 
 
19
 moveq -1,r3
 
20
 move.w 0x4321,r3
 
21
 test_move_cc 0 0 0 0
 
22
 checkr3 ffff4321
 
23
 
 
24
 moveq 0,r3
 
25
 move.w 0x9234,r3
 
26
 test_move_cc 1 0 0 0
 
27
 checkr3 9234
 
28
 
 
29
 move.d 0x76543210,r3
 
30
 test_move_cc 0 0 0 0
 
31
 checkr3 76543210
 
32
 
 
33
 move.w 0,r3
 
34
 test_move_cc 0 1 0 0
 
35
 checkr3 76540000
 
36
 
 
37
 quit