2006-01-31 Paul Brook <paul@codesourcery.com>
authorPaul Brook <paul@codesourcery.com>
Tue, 31 Jan 2006 16:19:41 +0000 (16:19 +0000)
committerPaul Brook <paul@codesourcery.com>
Tue, 31 Jan 2006 16:19:41 +0000 (16:19 +0000)
gas/
* config/tc-arm.c (arm_reg_parse): Check if reg is non-NULL.
gas/testsuite/
* gas/testsuite/gas/arm/iwmmxt-bad.s: Add check for bad register name.
* gas/testsuite/gas/arm/iwmmxt-bad.l: Ditto.

gas/ChangeLog
gas/config/tc-arm.c
gas/testsuite/ChangeLog
gas/testsuite/gas/arm/iwmmxt-bad.l
gas/testsuite/gas/arm/iwmmxt-bad.s

index 73da5bf16ab8f82ec1423de948001448c5b3099f..4da50736f538d7bac0e576ada80dbbf1ac5532a6 100644 (file)
@@ -1,3 +1,7 @@
+2006-01-31  Paul Brook  <paul@codesourcery.com>
+
+       * config/tc-arm.c (arm_reg_parse): Check if reg is non-NULL.
+
 2006-01-31  Paul Brook  <paul@codesourcery.com>
        Richard Earnshaw <rearnsha@arm.com>
 
index b010a0a8da4d46527e3311e5c71a943d2a0562b1..dc315c058ee6c3fbd85fd0b1178af65650e4fd0e 100644 (file)
@@ -928,7 +928,7 @@ arm_reg_parse (char **ccp, enum arm_reg_type type)
     case REG_TYPE_MVFX:
     case REG_TYPE_MVDX:
       /* Generic coprocessor register names are allowed for these.  */
-      if (reg->type == REG_TYPE_CN)
+      if (reg && reg->type == REG_TYPE_CN)
        return reg->number;
       break;
 
@@ -943,7 +943,7 @@ arm_reg_parse (char **ccp, enum arm_reg_type type)
     case REG_TYPE_MMXWC:
       /* WC includes WCG.  ??? I'm not sure this is true for all
         instructions that take WC registers.  */
-      if (reg->type == REG_TYPE_MMXWCG)
+      if (reg && reg->type == REG_TYPE_MMXWCG)
        return reg->number;
       break;
 
index 7d10bfa5eae768c5901288a42c5be43b87042c07..f2e907f26c5366cc237fa42ba8002e07f69665d2 100644 (file)
@@ -1,3 +1,8 @@
+2006-01-31  Paul Brook  <paul@codesourcery.com>
+
+       * gas/testsuite/gas/arm/iwmmxt-bad.s: Add check for bad register name.
+       * gas/testsuite/gas/arm/iwmmxt-bad.l: Ditto.
+
 2006-01-18  Arnold Metselaar  <arnoldm@sourceware.org>
 
        * gas/z80/z80.exp: Add offset.
index 962bc46218462baa303b02e75351f987b89ff4e3..65889380cf1b1993436c02e1a72dda526cb2a41a 100644 (file)
@@ -7,3 +7,4 @@
 [^:]*:6: Error: iWMMXt data register expected -- `wstrb wcgr0,\[r1\]'
 [^:]*:7: Error: iWMMXt data register expected -- `wstrh wcgr0,\[r1\]'
 [^:]*:8: Error: iWMMXt data register expected -- `wstrd wcgr0,\[r1\]'
+[^:]*:9: Error: iWMMXt control register expected -- `tmcr wibble,r1'
index 0c30af10f53c9c477c356d5373777fc45603d5ef..47d8d71f8656f70bc63d4379d6d9220be9ed127e 100644 (file)
@@ -6,3 +6,4 @@
        wstrb   wcgr0,[r1]
        wstrh   wcgr0,[r1]
        wstrd   wcgr0,[r1]
+       tmcr    wibble,r1