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

« back to all changes in this revision

Viewing changes to tests/cris/check_movscr.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: 42\nffffff85\n7685\nffff8765\n0\n
 
3
 
 
4
; Move constant byte, word, dword to register.  Check that sign-extension
 
5
; is performed.
 
6
 
 
7
 .include "testutils.inc"
 
8
 start
 
9
 moveq -1,r3
 
10
 movs.b 0x42,r3
 
11
 checkr3 42
 
12
 
 
13
 movs.b 0x85,r3
 
14
 test_move_cc 1 0 0 0
 
15
 checkr3 ffffff85
 
16
 
 
17
 movs.w 0x7685,r3
 
18
 test_move_cc 0 0 0 0
 
19
 checkr3 7685
 
20
 
 
21
 movs.w 0x8765,r3
 
22
 test_move_cc 1 0 0 0
 
23
 checkr3 ffff8765
 
24
 
 
25
 movs.w 0,r3
 
26
 test_move_cc 0 1 0 0
 
27
 checkr3 0
 
28
 
 
29
 quit