]> git.proxmox.com Git - qemu.git/blobdiff - tests/tcg/mips/mips32-dsp/insv.c
target-mips: fix incorrect behaviour for INSV
[qemu.git] / tests / tcg / mips / mips32-dsp / insv.c
index 243b00733d4f6886674c92c78ba87102c0643859..9d674697ccaa9f5001b39ed511ef1f1c5cad1c5b 100644 (file)
@@ -19,5 +19,18 @@ int main()
         );
     assert(rt == result);
 
+    dsp    = 0x1000;
+    rt     = 0xF0F0F0F0;
+    rs     = 0xA5A5A5A5;
+    result = 0xA5A5A5A5;
+
+    __asm
+        ("wrdsp %2\n\t"
+         "insv  %0, %1\n\t"
+         : "+r"(rt)
+         : "r"(rs), "r"(dsp)
+        );
+    assert(rt == result);
+
     return 0;
 }