Move copy_u.w to MSA64 ASE, remove copy_u.d.
authorRobert Suchanek <robert.suchanek@imgtec.com>
Mon, 9 Nov 2015 08:43:09 +0000 (08:43 +0000)
committerRobert Suchanek <robert.suchanek@imgtec.com>
Mon, 9 Nov 2015 08:49:10 +0000 (08:49 +0000)
opcodes/ChangeLog:

* mips-opc.c (mips_builtin_opcodes): Change "copy_u.w" to MSA64 ASE,
remove "copy_u.d".

gas/testsuite/ChangeLog:

* gas/mips/micromips@msa.d: Remove "copy_u.w".
* gas/mips/msa.d: Likewise.
* gas/mips/msa.s: Likweise.
* gas/mips/mipsr6@msa.d: Likewise.  Replace addresses with regex.
* gas/mips/msa64.d: Add "copy_u.w".  Remove "copy_u.d".
* gas/mips/msa64.s: Likewise.
* gas/mips/micromips@msa64.d: Likewise.

gas/testsuite/gas/mips/micromips@msa.d
gas/testsuite/gas/mips/micromips@msa64.d
gas/testsuite/gas/mips/mipsr6@msa.d
gas/testsuite/gas/mips/msa.d
gas/testsuite/gas/mips/msa.s
gas/testsuite/gas/mips/msa64.d
gas/testsuite/gas/mips/msa64.s
opcodes/mips-opc.c

index 0ea25af12d69c737fb360b06f701c4533a410efc..8d7f0bb2391851b8238f6de2340dc33d4d97e0f2 100644 (file)
@@ -540,8 +540,6 @@ Disassembly of section \.text:
 [0-9a-f]+ <[^>]*> 58cf f756    copy_u\.b       sp,\$w30\[15\]
 [0-9a-f]+ <[^>]*> 58e0 07d6    copy_u\.h       ra,\$w0\[0\]
 [0-9a-f]+ <[^>]*> 58e7 1056    copy_u\.h       at,\$w2\[7\]
-[0-9a-f]+ <[^>]*> 58f0 20d6    copy_u\.w       v1,\$w4\[0\]
-[0-9a-f]+ <[^>]*> 58f3 3156    copy_u\.w       a1,\$w6\[3\]
 [0-9a-f]+ <[^>]*> 5900 62d6    insert\.b       \$w11\[0\],t4
 [0-9a-f]+ <[^>]*> 590f 7356    insert\.b       \$w13\[15\],t6
 [0-9a-f]+ <[^>]*> 5920 83d6    insert\.h       \$w15\[0\],s0
index d8369a8ea42acde1951359efc302a1a8d8547865..314ad2d5d7395dd45961bb7489701b4842cca919 100644 (file)
@@ -9,8 +9,8 @@ Disassembly of section \.text:
 [0-9a-f]+ <[^>]*> 5b03 946e    fill\.d \$w17,s2
 [0-9a-f]+ <[^>]*> 58b8 c5d6    copy_s\.d       s7,\$w24\[0\]
 [0-9a-f]+ <[^>]*> 58b9 d656    copy_s\.d       t9,\$w26\[1\]
-[0-9a-f]+ <[^>]*> 58f8 41d6    copy_u\.d       a3,\$w8\[0\]
-[0-9a-f]+ <[^>]*> 58f9 5256    copy_u\.d       a5,\$w10\[1\]
+[0-9a-f]+ <[^>]*> 58f0 20d6    copy_u\.w       v1,\$w4\[0\]
+[0-9a-f]+ <[^>]*> 58f3 3156    copy_u\.w       a1,\$w6\[3\]
 [0-9a-f]+ <[^>]*> 5938 c5d6    insert\.d       \$w23\[0\],t8
 [0-9a-f]+ <[^>]*> 5939 d656    insert\.d       \$w25\[1\],k0
 [0-9a-f]+ <[^>]*> 5b7a c820    dlsa    t9,k0,k1,0x1
index 4471c956b6a4c64aef6114f4cd9be3b2b2d88192..80cecb428fed61205672d96aef8893089157675f 100644 (file)
@@ -492,25 +492,25 @@ Disassembly of section \.text:
 [0-9a-f]+ <[^>]*> 7a0007c2     shf\.w  \$w31,\$w0,0x0
 [0-9a-f]+ <[^>]*> 7aff1042     shf\.w  \$w1,\$w2,0xff
 [0-9a-f]+ <[^>]*> 45e38000     bnz\.v  \$w3,[0-9a-f]+ <[^>]*>
-[      ]*794: .*R_MIPS_PC16    L0.
+[      ]*[0-9a-f]+: .*R_MIPS_PC16      L0.
 [0-9a-f]+ <[^>]*> 00000000     nop
 [0-9a-f]+ <[^>]*> 45e47fff     bnz\.v  \$w4,[0-9a-f]+ <[^>]*>
-[      ]*79c: .*R_MIPS_PC16    L0.
+[      ]*[0-9a-f]+: .*R_MIPS_PC16      L0.
 [0-9a-f]+ <[^>]*> 00000000     nop
 [0-9a-f]+ <[^>]*> 45e5ffff     bnz\.v  \$w5,[0-9a-f]+ <[^>]*>
-[      ]*7a4: .*R_MIPS_PC16    .L1.1
+[      ]*[0-9a-f]+: .*R_MIPS_PC16      .L1.1
 [0-9a-f]+ <[^>]*> 00000000     nop
 [0-9a-f]+ <[^>]*> 45e6ffff     bnz\.v  \$w6,[0-9a-f]+ <[^>]*>
 [      ]*[0-9a-f]+: R_MIPS_PC16        external_label
 [0-9a-f]+ <[^>]*> 00000000     nop
 [0-9a-f]+ <[^>]*> 45678000     bz\.v   \$w7,[0-9a-f]+ <[^>]*>
-[      ]*7b4: .*R_MIPS_PC16    L0.
+[      ]*[0-9a-f]+: .*R_MIPS_PC16      L0.
 [0-9a-f]+ <[^>]*> 00000000     nop
 [0-9a-f]+ <[^>]*> 45687fff     bz\.v   \$w8,[0-9a-f]+ <[^>]*>
-[      ]*7bc: .*R_MIPS_PC16    L0.
+[      ]*[0-9a-f]+: .*R_MIPS_PC16      L0.
 [0-9a-f]+ <[^>]*> 00000000     nop
 [0-9a-f]+ <[^>]*> 4569ffff     bz\.v   \$w9,[0-9a-f]+ <[^>]*>
-[      ]*7c4: .*R_MIPS_PC16    .L1.2
+[      ]*[0-9a-f]+: .*R_MIPS_PC16      .L1.2
 [0-9a-f]+ <[^>]*> 00000000     nop
 [0-9a-f]+ <[^>]*> 456affff     bz\.v   \$w10,[0-9a-f]+ <[^>]*>
 [      ]*[0-9a-f]+: R_MIPS_PC16        external_label
@@ -540,8 +540,6 @@ Disassembly of section \.text:
 [0-9a-f]+ <[^>]*> 78cff759     copy_u\.b       sp,\$w30\[15\]
 [0-9a-f]+ <[^>]*> 78e007d9     copy_u\.h       ra,\$w0\[0\]
 [0-9a-f]+ <[^>]*> 78e71059     copy_u\.h       at,\$w2\[7\]
-[0-9a-f]+ <[^>]*> 78f020d9     copy_u\.w       v1,\$w4\[0\]
-[0-9a-f]+ <[^>]*> 78f33159     copy_u\.w       a1,\$w6\[3\]
 [0-9a-f]+ <[^>]*> 790062d9     insert\.b       \$w11\[0\],t4
 [0-9a-f]+ <[^>]*> 790f7359     insert\.b       \$w13\[15\],t6
 [0-9a-f]+ <[^>]*> 792083d9     insert\.h       \$w15\[0\],s0
@@ -557,97 +555,97 @@ Disassembly of section \.text:
 [0-9a-f]+ <[^>]*> 797841d9     insve\.d        \$w7\[0\],\$w8\[0\]
 [0-9a-f]+ <[^>]*> 79795259     insve\.d        \$w9\[1\],\$w10\[0\]
 [0-9a-f]+ <[^>]*> 478b8000     bnz\.b  \$w11,[0-9a-f]+ <[^>]*>
-[      ]*878: .*R_MIPS_PC16    L0.
+[      ]*[0-9a-f]+: .*R_MIPS_PC16      L0.
 [0-9a-f]+ <[^>]*> 00000000     nop
 [0-9a-f]+ <[^>]*> 478c7fff     bnz\.b  \$w12,[0-9a-f]+ <[^>]*>
-[      ]*880: .*R_MIPS_PC16    L0.
+[      ]*[0-9a-f]+: .*R_MIPS_PC16      L0.
 [0-9a-f]+ <[^>]*> 00000000     nop
 [0-9a-f]+ <[^>]*> 478dffff     bnz\.b  \$w13,[0-9a-f]+ <[^>]*>
-[      ]*888: .*R_MIPS_PC16    .L1.3
+[      ]*[0-9a-f]+: .*R_MIPS_PC16      .L1.3
 [0-9a-f]+ <[^>]*> 00000000     nop
 [0-9a-f]+ <[^>]*> 478effff     bnz\.b  \$w14,[0-9a-f]+ <[^>]*>
 [      ]*[0-9a-f]+: R_MIPS_PC16        external_label
 [0-9a-f]+ <[^>]*> 00000000     nop
 [0-9a-f]+ <[^>]*> 47af8000     bnz\.h  \$w15,[0-9a-f]+ <[^>]*>
-[      ]*898: .*R_MIPS_PC16    L0.
+[      ]*[0-9a-f]+: .*R_MIPS_PC16      L0.
 [0-9a-f]+ <[^>]*> 00000000     nop
 [0-9a-f]+ <[^>]*> 47b07fff     bnz\.h  \$w16,[0-9a-f]+ <[^>]*>
-[      ]*8a0: .*R_MIPS_PC16    L0.
+[      ]*[0-9a-f]+: .*R_MIPS_PC16      L0.
 [0-9a-f]+ <[^>]*> 00000000     nop
 [0-9a-f]+ <[^>]*> 47b1ffff     bnz\.h  \$w17,[0-9a-f]+ <[^>]*>
-[      ]*8a8: .*R_MIPS_PC16    .L1.4
+[      ]*[0-9a-f]+: .*R_MIPS_PC16      .L1.4
 [0-9a-f]+ <[^>]*> 00000000     nop
 [0-9a-f]+ <[^>]*> 47b2ffff     bnz\.h  \$w18,[0-9a-f]+ <[^>]*>
 [      ]*[0-9a-f]+: R_MIPS_PC16        external_label
 [0-9a-f]+ <[^>]*> 00000000     nop
 [0-9a-f]+ <[^>]*> 47d38000     bnz\.w  \$w19,[0-9a-f]+ <[^>]*>
-[      ]*8b8: .*R_MIPS_PC16    L0.
+[      ]*[0-9a-f]+: .*R_MIPS_PC16      L0.
 [0-9a-f]+ <[^>]*> 00000000     nop
 [0-9a-f]+ <[^>]*> 47d47fff     bnz\.w  \$w20,[0-9a-f]+ <[^>]*>
-[      ]*8c0: .*R_MIPS_PC16    L0.
+[      ]*[0-9a-f]+: .*R_MIPS_PC16      L0.
 [0-9a-f]+ <[^>]*> 00000000     nop
 [0-9a-f]+ <[^>]*> 47d5ffff     bnz\.w  \$w21,[0-9a-f]+ <[^>]*>
-[      ]*8c8: .*R_MIPS_PC16    .L1.5
+[      ]*[0-9a-f]+: .*R_MIPS_PC16      .L1.5
 [0-9a-f]+ <[^>]*> 00000000     nop
 [0-9a-f]+ <[^>]*> 47d6ffff     bnz\.w  \$w22,[0-9a-f]+ <[^>]*>
 [      ]*[0-9a-f]+: R_MIPS_PC16        external_label
 [0-9a-f]+ <[^>]*> 00000000     nop
 [0-9a-f]+ <[^>]*> 47f78000     bnz\.d  \$w23,[0-9a-f]+ <[^>]*>
-[      ]*8d8: .*R_MIPS_PC16    L0.
+[      ]*[0-9a-f]+: .*R_MIPS_PC16      L0.
 [0-9a-f]+ <[^>]*> 00000000     nop
 [0-9a-f]+ <[^>]*> 47f87fff     bnz\.d  \$w24,[0-9a-f]+ <[^>]*>
-[      ]*8e0: .*R_MIPS_PC16    L0.
+[      ]*[0-9a-f]+: .*R_MIPS_PC16      L0.
 [0-9a-f]+ <[^>]*> 00000000     nop
 [0-9a-f]+ <[^>]*> 47f9ffff     bnz\.d  \$w25,[0-9a-f]+ <[^>]*>
-[      ]*8e8: .*R_MIPS_PC16    .L1.6
+[      ]*[0-9a-f]+: .*R_MIPS_PC16      .L1.6
 [0-9a-f]+ <[^>]*> 00000000     nop
 [0-9a-f]+ <[^>]*> 47faffff     bnz\.d  \$w26,[0-9a-f]+ <[^>]*>
 [      ]*[0-9a-f]+: R_MIPS_PC16        external_label
 [0-9a-f]+ <[^>]*> 00000000     nop
 [0-9a-f]+ <[^>]*> 471b8000     bz\.b   \$w27,[0-9a-f]+ <[^>]*>
-[      ]*8f8: .*R_MIPS_PC16    L0.
+[      ]*[0-9a-f]+: .*R_MIPS_PC16      L0.
 [0-9a-f]+ <[^>]*> 00000000     nop
 [0-9a-f]+ <[^>]*> 471c7fff     bz\.b   \$w28,[0-9a-f]+ <[^>]*>
-[      ]*900: .*R_MIPS_PC16    L0.
+[      ]*[0-9a-f]+: .*R_MIPS_PC16      L0.
 [0-9a-f]+ <[^>]*> 00000000     nop
 [0-9a-f]+ <[^>]*> 471dffff     bz\.b   \$w29,[0-9a-f]+ <[^>]*>
-[      ]*908: .*R_MIPS_PC16    .L1.7
+[      ]*[0-9a-f]+: .*R_MIPS_PC16      .L1.7
 [0-9a-f]+ <[^>]*> 00000000     nop
 [0-9a-f]+ <[^>]*> 471effff     bz\.b   \$w30,[0-9a-f]+ <[^>]*>
 [      ]*[0-9a-f]+: R_MIPS_PC16        external_label
 [0-9a-f]+ <[^>]*> 00000000     nop
 [0-9a-f]+ <[^>]*> 473f8000     bz\.h   \$w31,[0-9a-f]+ <[^>]*>
-[      ]*918: .*R_MIPS_PC16    L0.
+[      ]*[0-9a-f]+: .*R_MIPS_PC16      L0.
 [0-9a-f]+ <[^>]*> 00000000     nop
 [0-9a-f]+ <[^>]*> 47207fff     bz\.h   \$w0,[0-9a-f]+ <[^>]*>
-[      ]*920: .*R_MIPS_PC16    L0.
+[      ]*[0-9a-f]+: .*R_MIPS_PC16      L0.
 [0-9a-f]+ <[^>]*> 00000000     nop
 [0-9a-f]+ <[^>]*> 4721ffff     bz\.h   \$w1,[0-9a-f]+ <[^>]*>
-[      ]*928: .*R_MIPS_PC16    .L1.8
+[      ]*[0-9a-f]+: .*R_MIPS_PC16      .L1.8
 [0-9a-f]+ <[^>]*> 00000000     nop
 [0-9a-f]+ <[^>]*> 4722ffff     bz\.h   \$w2,[0-9a-f]+ <[^>]*>
 [      ]*[0-9a-f]+: R_MIPS_PC16        external_label
 [0-9a-f]+ <[^>]*> 00000000     nop
 [0-9a-f]+ <[^>]*> 47438000     bz\.w   \$w3,[0-9a-f]+ <[^>]*>
-[      ]*938: .*R_MIPS_PC16    L0.
+[      ]*[0-9a-f]+: .*R_MIPS_PC16      L0.
 [0-9a-f]+ <[^>]*> 00000000     nop
 [0-9a-f]+ <[^>]*> 47447fff     bz\.w   \$w4,[0-9a-f]+ <[^>]*>
-[      ]*940: .*R_MIPS_PC16    L0.
+[      ]*[0-9a-f]+: .*R_MIPS_PC16      L0.
 [0-9a-f]+ <[^>]*> 00000000     nop
 [0-9a-f]+ <[^>]*> 4745ffff     bz\.w   \$w5,[0-9a-f]+ <[^>]*>
-[      ]*948: .*R_MIPS_PC16    .L1.9
+[      ]*[0-9a-f]+: .*R_MIPS_PC16      .L1.9
 [0-9a-f]+ <[^>]*> 00000000     nop
 [0-9a-f]+ <[^>]*> 4746ffff     bz\.w   \$w6,[0-9a-f]+ <[^>]*>
 [      ]*[0-9a-f]+: R_MIPS_PC16        external_label
 [0-9a-f]+ <[^>]*> 00000000     nop
 [0-9a-f]+ <[^>]*> 47678000     bz\.d   \$w7,[0-9a-f]+ <[^>]*>
-[      ]*958: .*R_MIPS_PC16    L0.
+[      ]*[0-9a-f]+: .*R_MIPS_PC16      L0.
 [0-9a-f]+ <[^>]*> 00000000     nop
 [0-9a-f]+ <[^>]*> 47687fff     bz\.d   \$w8,[0-9a-f]+ <[^>]*>
-[      ]*960: .*R_MIPS_PC16    L0.
+[      ]*[0-9a-f]+: .*R_MIPS_PC16      L0.
 [0-9a-f]+ <[^>]*> 00000000     nop
 [0-9a-f]+ <[^>]*> 4769ffff     bz\.d   \$w9,[0-9a-f]+ <[^>]*>
-[      ]*968: .*R_MIPS_PC16    .L1.10
+[      ]*[0-9a-f]+: .*R_MIPS_PC16      .L1.10
 [0-9a-f]+ <[^>]*> 00000000     nop
 [0-9a-f]+ <[^>]*> 476affff     bz\.d   \$w10,[0-9a-f]+ <[^>]*>
 [      ]*[0-9a-f]+: R_MIPS_PC16        external_label
index 488fb5d7a87302717406f789ec4da0b7f8ce602b..21c4dffa5725d48fb6205043102d9eecbfccba0b 100644 (file)
@@ -533,8 +533,6 @@ Disassembly of section \.text:
 [0-9a-f]+ <[^>]*> 78cff759     copy_u\.b       sp,\$w30\[15\]
 [0-9a-f]+ <[^>]*> 78e007d9     copy_u\.h       ra,\$w0\[0\]
 [0-9a-f]+ <[^>]*> 78e71059     copy_u\.h       at,\$w2\[7\]
-[0-9a-f]+ <[^>]*> 78f020d9     copy_u\.w       v1,\$w4\[0\]
-[0-9a-f]+ <[^>]*> 78f33159     copy_u\.w       a1,\$w6\[3\]
 [0-9a-f]+ <[^>]*> 790062d9     insert\.b       \$w11\[0\],t4
 [0-9a-f]+ <[^>]*> 790f7359     insert\.b       \$w13\[15\],t6
 [0-9a-f]+ <[^>]*> 792083d9     insert\.h       \$w15\[0\],s0
index e16b6af348f9f3c4e70a20d4bce30217b6d428b8..f25aa942722b1d7f313d364efe02ea65b0850bf2 100644 (file)
@@ -531,8 +531,6 @@ test_msa:
        copy_u.b        $29,$w30[15]
        copy_u.h        $31,$w0[0]
        copy_u.h        $1,$w2[7]
-       copy_u.w        $3,$w4[0]
-       copy_u.w        $5,$w6[3]
        insert.b        $w11[0],$12
        insert.b        $w13[15],$14
        insert.h        $w15[0],$16
index 2ade93fa181aa65f5bcafd95c3bf037f3f6e9226..c80e54f70baa87786f3c0be4b07ffc22310c7f6c 100644 (file)
@@ -8,8 +8,8 @@ Disassembly of section \.text:
 [0-9a-f]+ <[^>]*> 7b03945e     fill\.d \$w17,s2
 [0-9a-f]+ <[^>]*> 78b8c5d9     copy_s\.d       s7,\$w24\[0\]
 [0-9a-f]+ <[^>]*> 78b9d659     copy_s\.d       t9,\$w26\[1\]
-[0-9a-f]+ <[^>]*> 78f841d9     copy_u\.d       a3,\$w8\[0\]
-[0-9a-f]+ <[^>]*> 78f95259     copy_u\.d       a5,\$w10\[1\]
+[0-9a-f]+ <[^>]*> 78f020d9     copy_u\.w       v1,\$w4\[0\]
+[0-9a-f]+ <[^>]*> 78f33159     copy_u\.w       a1,\$w6\[3\]
 [0-9a-f]+ <[^>]*> 7938c5d9     insert\.d       \$w23\[0\],t8
 [0-9a-f]+ <[^>]*> 7939d659     insert\.d       \$w25\[1\],k0
 [0-9a-f]+ <[^>]*> 035bc815     dlsa    t9,k0,k1,0x1
index 665220b509bc24f290dde90189d6f3ac715d035a..1a681397df9bf7a3047c9aa21e41bb641fb6b5aa 100644 (file)
@@ -3,8 +3,8 @@ test_msa64:
        fill.d  $w17,$18
        copy_s.d        $23,$w24[0]
        copy_s.d        $25,$w26[1]
-       copy_u.d        $7,$w8[0]
-       copy_u.d        $9,$w10[1]
+       copy_u.w        $3,$w4[0]
+       copy_u.w        $5,$w6[3]
        insert.d        $w23[0],$24
        insert.d        $w25[1],$26
        dlsa    $25,$26,$27,1
index b29a8ed4d0518947a5b88ef5406c6255d6d4f34a..402f887274e4d4ba2f3cb7a16bceacdb76ca0505 100644 (file)
@@ -3010,8 +3010,7 @@ const struct mips_opcode mips_builtin_opcodes[] =
 {"copy_s.d",           "+k,+e+w",      0x78b80019, 0xfffe003f, WR_1|RD_2,              0,              0,              MSA64,  0 },
 {"copy_u.b",           "+k,+e+o",      0x78c00019, 0xfff0003f, WR_1|RD_2,              0,              0,              MSA,    0 },
 {"copy_u.h",           "+k,+e+u",      0x78e00019, 0xfff8003f, WR_1|RD_2,              0,              0,              MSA,    0 },
-{"copy_u.w",           "+k,+e+v",      0x78f00019, 0xfffc003f, WR_1|RD_2,              0,              0,              MSA,    0 },
-{"copy_u.d",           "+k,+e+w",      0x78f80019, 0xfffe003f, WR_1|RD_2,              0,              0,              MSA64,  0 },
+{"copy_u.w",           "+k,+e+v",      0x78f00019, 0xfffc003f, WR_1|RD_2,              0,              0,              MSA64,  0 },
 {"insert.b",           "+d+o,d",       0x79000019, 0xfff0003f, MOD_1|RD_3,             0,              0,              MSA,    0 },
 {"insert.h",           "+d+u,d",       0x79200019, 0xfff8003f, MOD_1|RD_3,             0,              0,              MSA,    0 },
 {"insert.w",           "+d+v,d",       0x79300019, 0xfffc003f, MOD_1|RD_3,             0,              0,              MSA,    0 },