2005-03-01 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
authorRamana Radhakrishnan <ramana.r@gmail.com>
Tue, 1 Mar 2005 15:05:27 +0000 (15:05 +0000)
committerRamana Radhakrishnan <ramana.r@gmail.com>
Tue, 1 Mar 2005 15:05:27 +0000 (15:05 +0000)
PR gas/708
* config/tc-arc.c(md_assemble):Initialize suffix for extension
suffixes also.
* testsuite/gas/arc/extensions.s:New file
* testsuite/gas/arc/extensions.d:New file

gas/ChangeLog
gas/config/tc-arc.c
gas/testsuite/gas/arc/extensions.d [new file with mode: 0644]
gas/testsuite/gas/arc/extensions.s [new file with mode: 0644]

index b0b18bedb645343541f05853a75abf7c3f712ff6..12e037417ae80c3de714e1ee53920a1066895a66 100644 (file)
@@ -1,3 +1,12 @@
+2005-03-01  Ramana Radhakrishnan  <ramana@gnumenor>
+
+       PR gas/708
+       * config/tc-arc.c(md_assemble):Initialize suffix for extension
+       suffixes also.
+       * testsuite/gas/arc/extensions.s:New file 
+       * testsuite/gas/arc/extensions.d:New file
+
+
 2005-03-01  Alan Modra  <amodra@bigpond.net.au>
 
        * config/obj-coff.c (fixup_segment): Delete sy_mri_common assertion.
index f5583a3d537afde71b9098d60a53afd5ae5cbd49..12dfd9dffbd3bb386973763f48cdb35656cc758f 100644 (file)
@@ -568,7 +568,7 @@ md_assemble (str)
                                               NULL);
                  else
                    insn |= suf->value << operand->shift;
-
+                 suffix = suf;
                  str = t;
                  found = 1;
                }
diff --git a/gas/testsuite/gas/arc/extensions.d b/gas/testsuite/gas/arc/extensions.d
new file mode 100644 (file)
index 0000000..07bd183
--- /dev/null
@@ -0,0 +1,9 @@
+#as: -EL -marc8
+#objdump: -dr -EL
+
+.*: +file format elf32-.*arc
+
+Disassembly of section .text:
+
+00000000 <condcodeTest>:
+   0:  12 02 00 40     40000212     add.isbusy r0,r0,r1
diff --git a/gas/testsuite/gas/arc/extensions.s b/gas/testsuite/gas/arc/extensions.s
new file mode 100644 (file)
index 0000000..558dcb5
--- /dev/null
@@ -0,0 +1,4 @@
+.extCondCode   isbusy, 0x12
+       .section .text
+condcodeTest:
+       add.isbusy r0,r0,r1