linux-user: initialize mmap_mutex properly
[qemu.git] / tests / cris / check_ftag.c
blob40d1507a8761b6dfb081fb1d0e7447ed1ecb1511
1 #include <stdio.h>
2 #include <stdlib.h>
3 #include <stdint.h>
4 #include "sys.h"
5 #include "crisutils.h"
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) );
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) );
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) );
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) );
25 int main(void)
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;