virtio-serial: Turn props any virtio-serial-bus device must have into bus props
[qemu.git] / tests / cris / check_ftag.c
blob908773a38a8349c4d1cdfe615b9ff4c36256265a
1 #include <stdio.h>
2 #include <stdlib.h>
3 #include <stdint.h>
4 #include "sys.h"
5 #include "crisutils.h"
7 static inline void cris_ftag_i(unsigned int x)
9 register unsigned int v asm("$r10") = x;
10 asm ("ftagi\t[%0]\n" : : "r" (v) );
12 static inline void cris_ftag_d(unsigned int x)
14 register unsigned int v asm("$r10") = x;
15 asm ("ftagd\t[%0]\n" : : "r" (v) );
17 static inline void cris_fidx_i(unsigned int x)
19 register unsigned int v asm("$r10") = x;
20 asm ("fidxi\t[%0]\n" : : "r" (v) );
22 static inline void cris_fidx_d(unsigned int x)
24 register unsigned int v asm("$r10") = x;
25 asm ("fidxd\t[%0]\n" : : "r" (v) );
29 int main(void)
31 cris_ftag_i(0);
32 cris_ftag_d(0);
33 cris_fidx_i(0);
34 cris_fidx_d(0);
35 pass();
36 return 0;