gas/
authorMaciej W. Rozycki <macro@linux-mips.org>
Thu, 9 Dec 2010 23:33:24 +0000 (23:33 +0000)
committerMaciej W. Rozycki <macro@linux-mips.org>
Thu, 9 Dec 2010 23:33:24 +0000 (23:33 +0000)
* config/tc-mips.c (macro) <ld_st>: Don't load a zero into an
auxiliary register when using a signed 16-bit constant offset.

gas/testsuite/
* gas/mips/ldstla-32.d: Update according to a 16-bit constant
offset optimization.
* gas/mips/ldstla-32-mips3.d: Likewise.
* gas/mips/ldstla-32-shared.d: Likewise.
* gas/mips/ldstla-32-mips3-shared.d: Likewise.

gas/ChangeLog
gas/config/tc-mips.c
gas/testsuite/ChangeLog
gas/testsuite/gas/mips/ldstla-32-mips3-shared.d
gas/testsuite/gas/mips/ldstla-32-mips3.d
gas/testsuite/gas/mips/ldstla-32-shared.d
gas/testsuite/gas/mips/ldstla-32.d

index d6d973e8eee2dab3e49b7b5dd6f33606ea4b77fa..f87b622c6504109b3f7a17726fbf04429fffcaec 100644 (file)
@@ -1,3 +1,8 @@
+2010-12-09  Maciej W. Rozycki  <macro@codesourcery.com>
+
+       * config/tc-mips.c (macro) <ld_st>: Don't load a zero into an
+       auxiliary register when using a signed 16-bit constant offset.
+
 2010-12-09  Maciej W. Rozycki  <macro@codesourcery.com>
 
        * config/tc-mips.c (mips_ip): Remove lastregno's
index b66458508b4665ca66c6acd159c233b0c6d14111..eb1ba2e7ecf65e05fe20e26bf9e2b098a17fc928 100644 (file)
@@ -6565,14 +6565,19 @@ macro (struct mips_cl_insn *ip)
         is in non PIC code.  */
       if (offset_expr.X_op == O_constant)
        {
-         expr1.X_add_number = ((offset_expr.X_add_number + 0x8000)
-                               & ~(bfd_vma) 0xffff);
+         expr1.X_add_number = offset_expr.X_add_number;
          normalize_address_expr (&expr1);
-         load_register (tempreg, &expr1, HAVE_64BIT_ADDRESSES);
-         if (breg != 0)
-           macro_build (NULL, ADDRESS_ADD_INSN, "d,v,t",
-                        tempreg, tempreg, breg);
-         macro_build (&offset_expr, s, fmt, treg, BFD_RELOC_LO16, tempreg);
+         if (!IS_SEXT_16BIT_NUM (expr1.X_add_number))
+           {
+             expr1.X_add_number = ((expr1.X_add_number + 0x8000)
+                                   & ~(bfd_vma) 0xffff);
+             load_register (tempreg, &expr1, HAVE_64BIT_ADDRESSES);
+             if (breg != 0)
+               macro_build (NULL, ADDRESS_ADD_INSN, "d,v,t",
+                            tempreg, tempreg, breg);
+             breg = tempreg;
+           }
+         macro_build (&offset_expr, s, fmt, treg, BFD_RELOC_LO16, breg);
        }
       else if (mips_pic == NO_PIC)
        {
index bf89eb977e435ea35a31094831d133bd67cbf0e2..9371627f78a1c43a6190c65488e736492b2e487c 100644 (file)
@@ -1,3 +1,11 @@
+2010-12-09  Maciej W. Rozycki  <macro@codesourcery.com>
+
+       * gas/mips/ldstla-32.d: Update according to a 16-bit constant
+       offset optimization.
+       * gas/mips/ldstla-32-mips3.d: Likewise.
+       * gas/mips/ldstla-32-shared.d: Likewise.
+       * gas/mips/ldstla-32-mips3-shared.d: Likewise.
+
 2010-12-09  Maciej W. Rozycki  <macro@codesourcery.com>
 
        * gas/mips/at-2.l: Adjust according to message capitalization
index 69a468af4e2e0e7c1f3e28f5c0c50cbcdd626f02..305781fa7a0872e98834a803492ddfedc29b262d 100644 (file)
@@ -21,12 +21,8 @@ Disassembly of section \.text:
 [ 0-9a-f]+:    3c020123        lui     v0,0x123
 [ 0-9a-f]+:    00441021        addu    v0,v0,a0
 [ 0-9a-f]+:    dc424567        ld      v0,17767\(v0\)
-[ 0-9a-f]+:    24020000        li      v0,0
-[ 0-9a-f]+:    00441021        addu    v0,v0,a0
-[ 0-9a-f]+:    dc420000        ld      v0,0\(v0\)
-[ 0-9a-f]+:    24020000        li      v0,0
-[ 0-9a-f]+:    00441021        addu    v0,v0,a0
-[ 0-9a-f]+:    dc42ffff        ld      v0,-1\(v0\)
+[ 0-9a-f]+:    dc820000        ld      v0,0\(a0\)
+[ 0-9a-f]+:    dc82ffff        ld      v0,-1\(a0\)
 [ 0-9a-f]+:    3c02abce        lui     v0,0xabce
 [ 0-9a-f]+:    00441021        addu    v0,v0,a0
 [ 0-9a-f]+:    dc42ef01        ld      v0,-4351\(v0\)
@@ -49,10 +45,8 @@ Disassembly of section \.text:
 [ 0-9a-f]+:    dc42ffff        ld      v0,-1\(v0\)
 [ 0-9a-f]+:    3c020123        lui     v0,0x123
 [ 0-9a-f]+:    dc424567        ld      v0,17767\(v0\)
-[ 0-9a-f]+:    24020000        li      v0,0
-[ 0-9a-f]+:    dc420000        ld      v0,0\(v0\)
-[ 0-9a-f]+:    24020000        li      v0,0
-[ 0-9a-f]+:    dc42ffff        ld      v0,-1\(v0\)
+[ 0-9a-f]+:    dc020000        ld      v0,0\(zero\)
+[ 0-9a-f]+:    dc02ffff        ld      v0,-1\(zero\)
 [ 0-9a-f]+:    3c02abce        lui     v0,0xabce
 [ 0-9a-f]+:    dc42ef01        ld      v0,-4351\(v0\)
 [ 0-9a-f]+:    3c028000        lui     v0,0x8000
@@ -75,12 +69,8 @@ Disassembly of section \.text:
 [ 0-9a-f]+:    3c010123        lui     at,0x123
 [ 0-9a-f]+:    00240821        addu    at,at,a0
 [ 0-9a-f]+:    fc224567        sd      v0,17767\(at\)
-[ 0-9a-f]+:    24010000        li      at,0
-[ 0-9a-f]+:    00240821        addu    at,at,a0
-[ 0-9a-f]+:    fc220000        sd      v0,0\(at\)
-[ 0-9a-f]+:    24010000        li      at,0
-[ 0-9a-f]+:    00240821        addu    at,at,a0
-[ 0-9a-f]+:    fc22ffff        sd      v0,-1\(at\)
+[ 0-9a-f]+:    fc820000        sd      v0,0\(a0\)
+[ 0-9a-f]+:    fc82ffff        sd      v0,-1\(a0\)
 [ 0-9a-f]+:    3c01abce        lui     at,0xabce
 [ 0-9a-f]+:    00240821        addu    at,at,a0
 [ 0-9a-f]+:    fc22ef01        sd      v0,-4351\(at\)
@@ -103,10 +93,8 @@ Disassembly of section \.text:
 [ 0-9a-f]+:    fc22ffff        sd      v0,-1\(at\)
 [ 0-9a-f]+:    3c010123        lui     at,0x123
 [ 0-9a-f]+:    fc224567        sd      v0,17767\(at\)
-[ 0-9a-f]+:    24010000        li      at,0
-[ 0-9a-f]+:    fc220000        sd      v0,0\(at\)
-[ 0-9a-f]+:    24010000        li      at,0
-[ 0-9a-f]+:    fc22ffff        sd      v0,-1\(at\)
+[ 0-9a-f]+:    fc020000        sd      v0,0\(zero\)
+[ 0-9a-f]+:    fc02ffff        sd      v0,-1\(zero\)
 [ 0-9a-f]+:    3c01abce        lui     at,0xabce
 [ 0-9a-f]+:    fc22ef01        sd      v0,-4351\(at\)
 [ 0-9a-f]+:    3c018000        lui     at,0x8000
@@ -129,12 +117,8 @@ Disassembly of section \.text:
 [ 0-9a-f]+:    3c020123        lui     v0,0x123
 [ 0-9a-f]+:    00441021        addu    v0,v0,a0
 [ 0-9a-f]+:    8c424567        lw      v0,17767\(v0\)
-[ 0-9a-f]+:    24020000        li      v0,0
-[ 0-9a-f]+:    00441021        addu    v0,v0,a0
-[ 0-9a-f]+:    8c420000        lw      v0,0\(v0\)
-[ 0-9a-f]+:    24020000        li      v0,0
-[ 0-9a-f]+:    00441021        addu    v0,v0,a0
-[ 0-9a-f]+:    8c42ffff        lw      v0,-1\(v0\)
+[ 0-9a-f]+:    8c820000        lw      v0,0\(a0\)
+[ 0-9a-f]+:    8c82ffff        lw      v0,-1\(a0\)
 [ 0-9a-f]+:    3c02abce        lui     v0,0xabce
 [ 0-9a-f]+:    00441021        addu    v0,v0,a0
 [ 0-9a-f]+:    8c42ef01        lw      v0,-4351\(v0\)
@@ -157,10 +141,8 @@ Disassembly of section \.text:
 [ 0-9a-f]+:    8c42ffff        lw      v0,-1\(v0\)
 [ 0-9a-f]+:    3c020123        lui     v0,0x123
 [ 0-9a-f]+:    8c424567        lw      v0,17767\(v0\)
-[ 0-9a-f]+:    24020000        li      v0,0
-[ 0-9a-f]+:    8c420000        lw      v0,0\(v0\)
-[ 0-9a-f]+:    24020000        li      v0,0
-[ 0-9a-f]+:    8c42ffff        lw      v0,-1\(v0\)
+[ 0-9a-f]+:    8c020000        lw      v0,0\(zero\)
+[ 0-9a-f]+:    8c02ffff        lw      v0,-1\(zero\)
 [ 0-9a-f]+:    3c02abce        lui     v0,0xabce
 [ 0-9a-f]+:    8c42ef01        lw      v0,-4351\(v0\)
 [ 0-9a-f]+:    3c028000        lui     v0,0x8000
@@ -183,12 +165,8 @@ Disassembly of section \.text:
 [ 0-9a-f]+:    3c010123        lui     at,0x123
 [ 0-9a-f]+:    00240821        addu    at,at,a0
 [ 0-9a-f]+:    ac224567        sw      v0,17767\(at\)
-[ 0-9a-f]+:    24010000        li      at,0
-[ 0-9a-f]+:    00240821        addu    at,at,a0
-[ 0-9a-f]+:    ac220000        sw      v0,0\(at\)
-[ 0-9a-f]+:    24010000        li      at,0
-[ 0-9a-f]+:    00240821        addu    at,at,a0
-[ 0-9a-f]+:    ac22ffff        sw      v0,-1\(at\)
+[ 0-9a-f]+:    ac820000        sw      v0,0\(a0\)
+[ 0-9a-f]+:    ac82ffff        sw      v0,-1\(a0\)
 [ 0-9a-f]+:    3c01abce        lui     at,0xabce
 [ 0-9a-f]+:    00240821        addu    at,at,a0
 [ 0-9a-f]+:    ac22ef01        sw      v0,-4351\(at\)
@@ -211,10 +189,8 @@ Disassembly of section \.text:
 [ 0-9a-f]+:    ac22ffff        sw      v0,-1\(at\)
 [ 0-9a-f]+:    3c010123        lui     at,0x123
 [ 0-9a-f]+:    ac224567        sw      v0,17767\(at\)
-[ 0-9a-f]+:    24010000        li      at,0
-[ 0-9a-f]+:    ac220000        sw      v0,0\(at\)
-[ 0-9a-f]+:    24010000        li      at,0
-[ 0-9a-f]+:    ac22ffff        sw      v0,-1\(at\)
+[ 0-9a-f]+:    ac020000        sw      v0,0\(zero\)
+[ 0-9a-f]+:    ac02ffff        sw      v0,-1\(zero\)
 [ 0-9a-f]+:    3c01abce        lui     at,0xabce
 [ 0-9a-f]+:    ac22ef01        sw      v0,-4351\(at\)
 [ 0-9a-f]+:    3c018000        lui     at,0x8000
index b2dc9d1e50477af1946396969a21b3e084a83309..2d9b00baa6dec580fbfc19e31357e47a36f5ec85 100644 (file)
@@ -21,12 +21,8 @@ Disassembly of section \.text:
 [ 0-9a-f]+:    3c020123        lui     v0,0x123
 [ 0-9a-f]+:    00441021        addu    v0,v0,a0
 [ 0-9a-f]+:    dc424567        ld      v0,17767\(v0\)
-[ 0-9a-f]+:    24020000        li      v0,0
-[ 0-9a-f]+:    00441021        addu    v0,v0,a0
-[ 0-9a-f]+:    dc420000        ld      v0,0\(v0\)
-[ 0-9a-f]+:    24020000        li      v0,0
-[ 0-9a-f]+:    00441021        addu    v0,v0,a0
-[ 0-9a-f]+:    dc42ffff        ld      v0,-1\(v0\)
+[ 0-9a-f]+:    dc820000        ld      v0,0\(a0\)
+[ 0-9a-f]+:    dc82ffff        ld      v0,-1\(a0\)
 [ 0-9a-f]+:    3c02abce        lui     v0,0xabce
 [ 0-9a-f]+:    00441021        addu    v0,v0,a0
 [ 0-9a-f]+:    dc42ef01        ld      v0,-4351\(v0\)
@@ -49,10 +45,8 @@ Disassembly of section \.text:
 [ 0-9a-f]+:    dc42ffff        ld      v0,-1\(v0\)
 [ 0-9a-f]+:    3c020123        lui     v0,0x123
 [ 0-9a-f]+:    dc424567        ld      v0,17767\(v0\)
-[ 0-9a-f]+:    24020000        li      v0,0
-[ 0-9a-f]+:    dc420000        ld      v0,0\(v0\)
-[ 0-9a-f]+:    24020000        li      v0,0
-[ 0-9a-f]+:    dc42ffff        ld      v0,-1\(v0\)
+[ 0-9a-f]+:    dc020000        ld      v0,0\(zero\)
+[ 0-9a-f]+:    dc02ffff        ld      v0,-1\(zero\)
 [ 0-9a-f]+:    3c02abce        lui     v0,0xabce
 [ 0-9a-f]+:    dc42ef01        ld      v0,-4351\(v0\)
 [ 0-9a-f]+:    3c028000        lui     v0,0x8000
@@ -75,12 +69,8 @@ Disassembly of section \.text:
 [ 0-9a-f]+:    3c010123        lui     at,0x123
 [ 0-9a-f]+:    00240821        addu    at,at,a0
 [ 0-9a-f]+:    fc224567        sd      v0,17767\(at\)
-[ 0-9a-f]+:    24010000        li      at,0
-[ 0-9a-f]+:    00240821        addu    at,at,a0
-[ 0-9a-f]+:    fc220000        sd      v0,0\(at\)
-[ 0-9a-f]+:    24010000        li      at,0
-[ 0-9a-f]+:    00240821        addu    at,at,a0
-[ 0-9a-f]+:    fc22ffff        sd      v0,-1\(at\)
+[ 0-9a-f]+:    fc820000        sd      v0,0\(a0\)
+[ 0-9a-f]+:    fc82ffff        sd      v0,-1\(a0\)
 [ 0-9a-f]+:    3c01abce        lui     at,0xabce
 [ 0-9a-f]+:    00240821        addu    at,at,a0
 [ 0-9a-f]+:    fc22ef01        sd      v0,-4351\(at\)
@@ -103,10 +93,8 @@ Disassembly of section \.text:
 [ 0-9a-f]+:    fc22ffff        sd      v0,-1\(at\)
 [ 0-9a-f]+:    3c010123        lui     at,0x123
 [ 0-9a-f]+:    fc224567        sd      v0,17767\(at\)
-[ 0-9a-f]+:    24010000        li      at,0
-[ 0-9a-f]+:    fc220000        sd      v0,0\(at\)
-[ 0-9a-f]+:    24010000        li      at,0
-[ 0-9a-f]+:    fc22ffff        sd      v0,-1\(at\)
+[ 0-9a-f]+:    fc020000        sd      v0,0\(zero\)
+[ 0-9a-f]+:    fc02ffff        sd      v0,-1\(zero\)
 [ 0-9a-f]+:    3c01abce        lui     at,0xabce
 [ 0-9a-f]+:    fc22ef01        sd      v0,-4351\(at\)
 [ 0-9a-f]+:    3c018000        lui     at,0x8000
@@ -129,12 +117,8 @@ Disassembly of section \.text:
 [ 0-9a-f]+:    3c020123        lui     v0,0x123
 [ 0-9a-f]+:    00441021        addu    v0,v0,a0
 [ 0-9a-f]+:    8c424567        lw      v0,17767\(v0\)
-[ 0-9a-f]+:    24020000        li      v0,0
-[ 0-9a-f]+:    00441021        addu    v0,v0,a0
-[ 0-9a-f]+:    8c420000        lw      v0,0\(v0\)
-[ 0-9a-f]+:    24020000        li      v0,0
-[ 0-9a-f]+:    00441021        addu    v0,v0,a0
-[ 0-9a-f]+:    8c42ffff        lw      v0,-1\(v0\)
+[ 0-9a-f]+:    8c820000        lw      v0,0\(a0\)
+[ 0-9a-f]+:    8c82ffff        lw      v0,-1\(a0\)
 [ 0-9a-f]+:    3c02abce        lui     v0,0xabce
 [ 0-9a-f]+:    00441021        addu    v0,v0,a0
 [ 0-9a-f]+:    8c42ef01        lw      v0,-4351\(v0\)
@@ -157,10 +141,8 @@ Disassembly of section \.text:
 [ 0-9a-f]+:    8c42ffff        lw      v0,-1\(v0\)
 [ 0-9a-f]+:    3c020123        lui     v0,0x123
 [ 0-9a-f]+:    8c424567        lw      v0,17767\(v0\)
-[ 0-9a-f]+:    24020000        li      v0,0
-[ 0-9a-f]+:    8c420000        lw      v0,0\(v0\)
-[ 0-9a-f]+:    24020000        li      v0,0
-[ 0-9a-f]+:    8c42ffff        lw      v0,-1\(v0\)
+[ 0-9a-f]+:    8c020000        lw      v0,0\(zero\)
+[ 0-9a-f]+:    8c02ffff        lw      v0,-1\(zero\)
 [ 0-9a-f]+:    3c02abce        lui     v0,0xabce
 [ 0-9a-f]+:    8c42ef01        lw      v0,-4351\(v0\)
 [ 0-9a-f]+:    3c028000        lui     v0,0x8000
@@ -183,12 +165,8 @@ Disassembly of section \.text:
 [ 0-9a-f]+:    3c010123        lui     at,0x123
 [ 0-9a-f]+:    00240821        addu    at,at,a0
 [ 0-9a-f]+:    ac224567        sw      v0,17767\(at\)
-[ 0-9a-f]+:    24010000        li      at,0
-[ 0-9a-f]+:    00240821        addu    at,at,a0
-[ 0-9a-f]+:    ac220000        sw      v0,0\(at\)
-[ 0-9a-f]+:    24010000        li      at,0
-[ 0-9a-f]+:    00240821        addu    at,at,a0
-[ 0-9a-f]+:    ac22ffff        sw      v0,-1\(at\)
+[ 0-9a-f]+:    ac820000        sw      v0,0\(a0\)
+[ 0-9a-f]+:    ac82ffff        sw      v0,-1\(a0\)
 [ 0-9a-f]+:    3c01abce        lui     at,0xabce
 [ 0-9a-f]+:    00240821        addu    at,at,a0
 [ 0-9a-f]+:    ac22ef01        sw      v0,-4351\(at\)
@@ -211,10 +189,8 @@ Disassembly of section \.text:
 [ 0-9a-f]+:    ac22ffff        sw      v0,-1\(at\)
 [ 0-9a-f]+:    3c010123        lui     at,0x123
 [ 0-9a-f]+:    ac224567        sw      v0,17767\(at\)
-[ 0-9a-f]+:    24010000        li      at,0
-[ 0-9a-f]+:    ac220000        sw      v0,0\(at\)
-[ 0-9a-f]+:    24010000        li      at,0
-[ 0-9a-f]+:    ac22ffff        sw      v0,-1\(at\)
+[ 0-9a-f]+:    ac020000        sw      v0,0\(zero\)
+[ 0-9a-f]+:    ac02ffff        sw      v0,-1\(zero\)
 [ 0-9a-f]+:    3c01abce        lui     at,0xabce
 [ 0-9a-f]+:    ac22ef01        sw      v0,-4351\(at\)
 [ 0-9a-f]+:    3c018000        lui     at,0x8000
index 9adadd3363c88751a25b011d1eb1b32c02b05e68..d4787f9525d29556bfe57524d4351ba8fe8a1996 100644 (file)
@@ -177,12 +177,8 @@ Disassembly of section \.text:
 [ 0-9a-f]+:    3c020123        lui     v0,0x123
 [ 0-9a-f]+:    00441021        addu    v0,v0,a0
 [ 0-9a-f]+:    8c424567        lw      v0,17767\(v0\)
-[ 0-9a-f]+:    24020000        li      v0,0
-[ 0-9a-f]+:    00441021        addu    v0,v0,a0
-[ 0-9a-f]+:    8c420000        lw      v0,0\(v0\)
-[ 0-9a-f]+:    24020000        li      v0,0
-[ 0-9a-f]+:    00441021        addu    v0,v0,a0
-[ 0-9a-f]+:    8c42ffff        lw      v0,-1\(v0\)
+[ 0-9a-f]+:    8c820000        lw      v0,0\(a0\)
+[ 0-9a-f]+:    8c82ffff        lw      v0,-1\(a0\)
 [ 0-9a-f]+:    3c02abce        lui     v0,0xabce
 [ 0-9a-f]+:    00441021        addu    v0,v0,a0
 [ 0-9a-f]+:    8c42ef01        lw      v0,-4351\(v0\)
@@ -205,10 +201,8 @@ Disassembly of section \.text:
 [ 0-9a-f]+:    8c42ffff        lw      v0,-1\(v0\)
 [ 0-9a-f]+:    3c020123        lui     v0,0x123
 [ 0-9a-f]+:    8c424567        lw      v0,17767\(v0\)
-[ 0-9a-f]+:    24020000        li      v0,0
-[ 0-9a-f]+:    8c420000        lw      v0,0\(v0\)
-[ 0-9a-f]+:    24020000        li      v0,0
-[ 0-9a-f]+:    8c42ffff        lw      v0,-1\(v0\)
+[ 0-9a-f]+:    8c020000        lw      v0,0\(zero\)
+[ 0-9a-f]+:    8c02ffff        lw      v0,-1\(zero\)
 [ 0-9a-f]+:    3c02abce        lui     v0,0xabce
 [ 0-9a-f]+:    8c42ef01        lw      v0,-4351\(v0\)
 [ 0-9a-f]+:    3c028000        lui     v0,0x8000
@@ -232,12 +226,8 @@ Disassembly of section \.text:
 [ 0-9a-f]+:    3c010123        lui     at,0x123
 [ 0-9a-f]+:    00240821        addu    at,at,a0
 [ 0-9a-f]+:    ac224567        sw      v0,17767\(at\)
-[ 0-9a-f]+:    24010000        li      at,0
-[ 0-9a-f]+:    00240821        addu    at,at,a0
-[ 0-9a-f]+:    ac220000        sw      v0,0\(at\)
-[ 0-9a-f]+:    24010000        li      at,0
-[ 0-9a-f]+:    00240821        addu    at,at,a0
-[ 0-9a-f]+:    ac22ffff        sw      v0,-1\(at\)
+[ 0-9a-f]+:    ac820000        sw      v0,0\(a0\)
+[ 0-9a-f]+:    ac82ffff        sw      v0,-1\(a0\)
 [ 0-9a-f]+:    3c01abce        lui     at,0xabce
 [ 0-9a-f]+:    00240821        addu    at,at,a0
 [ 0-9a-f]+:    ac22ef01        sw      v0,-4351\(at\)
@@ -260,10 +250,8 @@ Disassembly of section \.text:
 [ 0-9a-f]+:    ac22ffff        sw      v0,-1\(at\)
 [ 0-9a-f]+:    3c010123        lui     at,0x123
 [ 0-9a-f]+:    ac224567        sw      v0,17767\(at\)
-[ 0-9a-f]+:    24010000        li      at,0
-[ 0-9a-f]+:    ac220000        sw      v0,0\(at\)
-[ 0-9a-f]+:    24010000        li      at,0
-[ 0-9a-f]+:    ac22ffff        sw      v0,-1\(at\)
+[ 0-9a-f]+:    ac020000        sw      v0,0\(zero\)
+[ 0-9a-f]+:    ac02ffff        sw      v0,-1\(zero\)
 [ 0-9a-f]+:    3c01abce        lui     at,0xabce
 [ 0-9a-f]+:    ac22ef01        sw      v0,-4351\(at\)
 [ 0-9a-f]+:    3c018000        lui     at,0x8000
index 9ce14188c97c85030a146c16672218a89d3d5261..985246cc0ff02c276cb2c131c9102d1f32650107 100644 (file)
@@ -177,12 +177,8 @@ Disassembly of section \.text:
 [ 0-9a-f]+:    3c020123        lui     v0,0x123
 [ 0-9a-f]+:    00441021        addu    v0,v0,a0
 [ 0-9a-f]+:    8c424567        lw      v0,17767\(v0\)
-[ 0-9a-f]+:    24020000        li      v0,0
-[ 0-9a-f]+:    00441021        addu    v0,v0,a0
-[ 0-9a-f]+:    8c420000        lw      v0,0\(v0\)
-[ 0-9a-f]+:    24020000        li      v0,0
-[ 0-9a-f]+:    00441021        addu    v0,v0,a0
-[ 0-9a-f]+:    8c42ffff        lw      v0,-1\(v0\)
+[ 0-9a-f]+:    8c820000        lw      v0,0\(a0\)
+[ 0-9a-f]+:    8c82ffff        lw      v0,-1\(a0\)
 [ 0-9a-f]+:    3c02abce        lui     v0,0xabce
 [ 0-9a-f]+:    00441021        addu    v0,v0,a0
 [ 0-9a-f]+:    8c42ef01        lw      v0,-4351\(v0\)
@@ -205,10 +201,8 @@ Disassembly of section \.text:
 [ 0-9a-f]+:    8c42ffff        lw      v0,-1\(v0\)
 [ 0-9a-f]+:    3c020123        lui     v0,0x123
 [ 0-9a-f]+:    8c424567        lw      v0,17767\(v0\)
-[ 0-9a-f]+:    24020000        li      v0,0
-[ 0-9a-f]+:    8c420000        lw      v0,0\(v0\)
-[ 0-9a-f]+:    24020000        li      v0,0
-[ 0-9a-f]+:    8c42ffff        lw      v0,-1\(v0\)
+[ 0-9a-f]+:    8c020000        lw      v0,0\(zero\)
+[ 0-9a-f]+:    8c02ffff        lw      v0,-1\(zero\)
 [ 0-9a-f]+:    3c02abce        lui     v0,0xabce
 [ 0-9a-f]+:    8c42ef01        lw      v0,-4351\(v0\)
 [ 0-9a-f]+:    3c028000        lui     v0,0x8000
@@ -232,12 +226,8 @@ Disassembly of section \.text:
 [ 0-9a-f]+:    3c010123        lui     at,0x123
 [ 0-9a-f]+:    00240821        addu    at,at,a0
 [ 0-9a-f]+:    ac224567        sw      v0,17767\(at\)
-[ 0-9a-f]+:    24010000        li      at,0
-[ 0-9a-f]+:    00240821        addu    at,at,a0
-[ 0-9a-f]+:    ac220000        sw      v0,0\(at\)
-[ 0-9a-f]+:    24010000        li      at,0
-[ 0-9a-f]+:    00240821        addu    at,at,a0
-[ 0-9a-f]+:    ac22ffff        sw      v0,-1\(at\)
+[ 0-9a-f]+:    ac820000        sw      v0,0\(a0\)
+[ 0-9a-f]+:    ac82ffff        sw      v0,-1\(a0\)
 [ 0-9a-f]+:    3c01abce        lui     at,0xabce
 [ 0-9a-f]+:    00240821        addu    at,at,a0
 [ 0-9a-f]+:    ac22ef01        sw      v0,-4351\(at\)
@@ -260,10 +250,8 @@ Disassembly of section \.text:
 [ 0-9a-f]+:    ac22ffff        sw      v0,-1\(at\)
 [ 0-9a-f]+:    3c010123        lui     at,0x123
 [ 0-9a-f]+:    ac224567        sw      v0,17767\(at\)
-[ 0-9a-f]+:    24010000        li      at,0
-[ 0-9a-f]+:    ac220000        sw      v0,0\(at\)
-[ 0-9a-f]+:    24010000        li      at,0
-[ 0-9a-f]+:    ac22ffff        sw      v0,-1\(at\)
+[ 0-9a-f]+:    ac020000        sw      v0,0\(zero\)
+[ 0-9a-f]+:    ac02ffff        sw      v0,-1\(zero\)
 [ 0-9a-f]+:    3c01abce        lui     at,0xabce
 [ 0-9a-f]+:    ac22ef01        sw      v0,-4351\(at\)
 [ 0-9a-f]+:    3c018000        lui     at,0x8000