~fboudra/qemu-linaro/new-upstream-release-1.2.0-2012.09-0ubuntu1

« back to all changes in this revision

Viewing changes to tests/tcg/openrisc/test_movhi.c

  • Committer: Fathi Boudra
  • Author(s): Fathi Boudra
  • Date: 2012-08-21 06:47:11 UTC
  • mfrom: (0.1.16)
  • Revision ID: fathi.boudra@linaro.org-20120821064711-7yxmubp2v8a44xce
Tags: 1.1.50-2012.08-0ubuntu1
* New upstream release.
  - support emulated systems with more than 2G of memory. (LP: #1030588)
* Drop powerpc-missing-include.patch - merged upstream.
* Update debian/control: 
  - drop perl build dependency.
  - add libfdt-dev build dependency.
* Update debian/qemu-keymaps.install file.
* Update debian/rules:
  - update QEMU_CPU for ARM architecture: armv4l -> armv7l.
  - update conf_audio_drv: default to PulseAudio since PA is the default on
    Ubuntu.
  - enable KVM on ARM architecture.
  - enable flat device tree support (--enable-fdt). (LP: #1030594)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#include <stdio.h>
 
2
 
 
3
int main(void)
 
4
{
 
5
    int a;
 
6
    int result;
 
7
 
 
8
    result = 0x1222;
 
9
    __asm
 
10
    ("l.movhi r3, 0x1222\n\t"
 
11
     "l.srli   %0, r3, 16\n\t"
 
12
     : "=r"(a)
 
13
    );
 
14
    if (a != result) {
 
15
        printf("movhi error\n");
 
16
        return -1;
 
17
    }
 
18
 
 
19
    result = 0x1111;
 
20
    __asm
 
21
    ("l.movhi r8, 0x1111\n\t"
 
22
     "l.srli   %0, r8, 16\n\t"
 
23
     : "=r"(a)
 
24
    );
 
25
    if (a != result) {
 
26
        printf("movhi error\n");
 
27
        return -1;
 
28
    }
 
29
 
 
30
    return 0;
 
31
}