]> git.proxmox.com Git - mirror_qemu.git/blobdiff - tests/tcg/mips/mips32-dsp/shilo.c
Merge remote-tracking branch 'aneesh/for-upstream' into staging
[mirror_qemu.git] / tests / tcg / mips / mips32-dsp / shilo.c
index b686616d80104fc56a55534e1424e64b3a2a0837..ce8ebc69c2ac1dc6357bdce24379c09a4f18976a 100644 (file)
@@ -23,5 +23,23 @@ int main()
     assert(ach == resulth);
     assert(acl == resultl);
 
+
+    ach = 0x1;
+    acl = 0x80000000;
+
+    resulth = 0x3;
+    resultl = 0x0;
+
+    __asm
+        ("mthi %0, $ac1\n\t"
+         "mtlo %1, $ac1\n\t"
+         "shilo $ac1, -1\n\t"
+         "mfhi %0, $ac1\n\t"
+         "mflo %1, $ac1\n\t"
+         : "+r"(ach), "+r"(acl)
+        );
+    assert(ach == resulth);
+    assert(acl == resultl);
+
     return 0;
 }