s390-ccw.img: replace while loop with a disabled wait on s390 bios
[qemu/agraf.git] / tests / tcg / mips / mips64-dsp / shilo.c
blob5f454f69e0ac38ee42ede5f17603b50d979c335d
1 #include "io.h"
3 int main(void)
5 long long ach, acl;
6 long long resulth, resultl;
8 ach = 0xBBAACCFF;
9 acl = 0x1C3B001D;
11 resulth = 0x17755;
12 resultl = 0xFFFFFFFF99fe3876;
14 __asm
15 ("mthi %0, $ac1\n\t"
16 "mtlo %1, $ac1\n\t"
17 "shilo $ac1, 0x0F\n\t"
18 "mfhi %0, $ac1\n\t"
19 "mflo %1, $ac1\n\t"
20 : "+r"(ach), "+r"(acl)
22 if ((ach != resulth) || (acl != resultl)) {
23 printf("shilo wrong\n");
25 return -1;
28 return 0;