~jderose/ubuntu/raring/qemu/vde-again

« back to all changes in this revision

Viewing changes to tests/cris/check_ftag.c

  • Committer: Bazaar Package Importer
  • Author(s): Aurelien Jarno, Aurelien Jarno
  • Date: 2009-03-22 10:13:17 UTC
  • mfrom: (1.2.1 upstream) (6.1.1 sid)
  • Revision ID: james.westby@ubuntu.com-20090322101317-iigjtnu5qil35dtb
Tags: 0.10.1-1
[ Aurelien Jarno ]
* New upstream stable release:
  - patches/80_stable-branch.patch: remove.
* debian/control: 
  - Remove depends on proll.
  - Move depends on device-tree-compiler to build-depends.
  - Bump Standards-Version to 3.8.1 (no changes).
* patches/82_qemu-img_decimal.patch: new patch from upstream to make
  qemu-img accept sizes with decimal values (closes: bug#501400).

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#include <stdio.h>
 
2
#include <stdlib.h>
 
3
#include <stdint.h>
 
4
#include "sys.h"
 
5
#include "crisutils.h"
 
6
 
 
7
extern inline void cris_ftag_i(unsigned int x) {
 
8
        register unsigned int v asm("$r10") = x;
 
9
        asm ("ftagi\t[%0]\n" : : "r" (v) );
 
10
}
 
11
extern inline void cris_ftag_d(unsigned int x) {
 
12
        register unsigned int v asm("$r10") = x;
 
13
        asm ("ftagd\t[%0]\n" : : "r" (v) );
 
14
}
 
15
extern inline void cris_fidx_i(unsigned int x) {
 
16
        register unsigned int v asm("$r10") = x;
 
17
        asm ("fidxi\t[%0]\n" : : "r" (v) );
 
18
}
 
19
extern inline void cris_fidx_d(unsigned int x) {
 
20
        register unsigned int v asm("$r10") = x;
 
21
        asm ("fidxd\t[%0]\n" : : "r" (v) );
 
22
}
 
23
 
 
24
 
 
25
int main(void)
 
26
{
 
27
        cris_ftag_i(0);
 
28
        cris_ftag_d(0);
 
29
        cris_fidx_i(0);
 
30
        cris_fidx_d(0);
 
31
        pass();
 
32
        return 0;
 
33
}