* mips32-dsp.s: Add some tests for shra_r.ph, shrav_r.ph, shra_r.w,
authorChao-ying Fu <fu@mips.com>
Mon, 15 May 2006 20:34:56 +0000 (20:34 +0000)
committerChao-ying Fu <fu@mips.com>
Mon, 15 May 2006 20:34:56 +0000 (20:34 +0000)
shrav_r.w.

sim/testsuite/sim/mips/ChangeLog
sim/testsuite/sim/mips/mips32-dsp.s

index eb3515248201754fa37bea45b7321f803a0fa612..9c7b78903d953d2ccb9a92b9996ccb7b99c0ef8d 100644 (file)
@@ -1,3 +1,8 @@
+2006-05-15  Chao-ying Fu  <fu@mips.com>
+
+       * mips32-dsp.s: Add some tests for shra_r.ph, shrav_r.ph, shra_r.w,
+       shrav_r.w.
+
 2005-12-14  Chao-ying Fu  <fu@mips.com>
 
        * basic.exp: Run the dsp test.
index 6e7a7c8f0fd3870dd830cc789934671394120249..f3497b3ea37531686fbc2e0b5e476cb327637eec 100644 (file)
@@ -332,12 +332,17 @@ DIAG:
        dspck_dtsaio shra_r.ph, 0x10001, 0x20001, 1, 0x0, 0x0
        dspck_dtsaio shra_r.ph, 0x10001, 0x10001, 1, 0x0, 0x0
        dspck_dtsaio shra_r.ph, 0x0, 0x10001, 2, 0x0, 0x0
+       dspck_dtsaio shra_r.ph, 0x7fff8000, 0x7fff8000, 0, 0x0, 0x0
+       dspck_dtsaio shra_r.ph, 0x4000c000, 0x7fff8000, 1, 0x0, 0x0
+       dspck_dtsaio shra_r.ph, 0x2000e000, 0x7ffe8000, 2, 0x0, 0x0
 
        writemsg "[44] Test shrav_r.ph"
        dspck_dstio shrav_r.ph, 0x20001, 0x30002, 0x1, 0x0, 0x0
        dspck_dstio shrav_r.ph, 0x10001, 0x20001, 0x1, 0x0, 0x0
        dspck_dstio shrav_r.ph, 0x10001, 0x10001, 0x1, 0x0, 0x0
        dspck_dstio shrav_r.ph, 0x0, 0x10001, 0x2, 0x0, 0x0
+       dspck_dstio shrav_r.ph, 0x7fff8000, 0x7fff8000, 0, 0x0, 0x0
+       dspck_dstio shrav_r.ph, 0x2000e000, 0x7fff8000, 2, 0x0, 0x0
 
        writemsg "[45] Test shra_r.w"
        dspck_dtsaio shra_r.w, 0x1, 0x2, 1, 0x0, 0x0
@@ -345,6 +350,9 @@ DIAG:
        dspck_dtsaio shra_r.w, 0x8001, 0x10001, 1, 0x0, 0x0
        dspck_dtsaio shra_r.w, 0x1, 0x10001, 17, 0x0, 0x0
        dspck_dtsaio shra_r.w, 0xffffc001, 0x80010001, 17, 0x0, 0x0
+       dspck_dtsaio shra_r.w, 0x7fffffff, 0x7fffffff, 0, 0x0, 0x0
+       dspck_dtsaio shra_r.w, 0x40000000, 0x7fffffff, 1, 0x0, 0x0
+       dspck_dtsaio shra_r.w, 0x20000000, 0x7ffffffe, 2, 0x0, 0x0
 
        writemsg "[46] Test shrav_r.w"
        dspck_dstio shrav_r.w, 0x1, 0x2, 0x1, 0x0, 0x0
@@ -352,6 +360,9 @@ DIAG:
        dspck_dstio shrav_r.w, 0x8001, 0x10001, 0x1, 0x0, 0x0
        dspck_dstio shrav_r.w, 0x8001, 0x10001, 0x21, 0x0, 0x0
        dspck_dstio shrav_r.w, 0x4000, 0x10001, 0x2, 0x0, 0x0
+       dspck_dstio shrav_r.w, 0x7fffffff, 0x7fffffff, 0x0, 0x0, 0x0
+       dspck_dstio shrav_r.w, 0x10000000, 0x7ffffffc, 0x3, 0x0, 0x0
+       dspck_dstio shrav_r.w, 0x08000000, 0x7ffffff8, 0x4, 0x0, 0x0
 
        writemsg "[47] Test muleu_s.ph.qbl"
        dspck_dstio muleu_s.ph.qbl, 0x0, 0x0, 0x0, 0x0, 0x0