Add testcase for PR 1063
authorNick Clifton <nickc@redhat.com>
Thu, 14 Jul 2005 07:30:55 +0000 (07:30 +0000)
committerNick Clifton <nickc@redhat.com>
Thu, 14 Jul 2005 07:30:55 +0000 (07:30 +0000)
gas/testsuite/ChangeLog
gas/testsuite/gas/crx/gas-segfault.d [new file with mode: 0644]
gas/testsuite/gas/crx/gas-segfault.s [new file with mode: 0644]

index c7b51c197c3d2625df1087e664f0d2a6714d3e48..1cb58c900a5f4e115762309f0253ec13907c68d4 100644 (file)
@@ -1,3 +1,9 @@
+2005-07-14  Nick Clifton  <nickc@redhat.com>
+
+       PR 1063
+       * gas/crx/gas-segfault.d: New file.
+       * gas/crx/gas-segfault.s: New file.
+
 2005-07-12  Hans-Peter Nilsson  <hp@bitrange.com>
 
        * gas/mmix/relax1-n.d, gas/mmix/relax1-rn.d: Avoid "# FIXME: "
diff --git a/gas/testsuite/gas/crx/gas-segfault.d b/gas/testsuite/gas/crx/gas-segfault.d
new file mode 100644 (file)
index 0000000..9cf7726
--- /dev/null
@@ -0,0 +1,17 @@
+#as:
+#objdump: -dr
+#name: GAS segmentation fault
+
+.*: +file format .*
+
+Disassembly of section .text:
+
+00000000 <__Z1flllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllc>:
+   0:  ee ba           jump    r14
+       ...
+
+00000004 <_main>:
+   4:  6f 34 00 40     push    r15, {r14}
+   8:  7e 30 00 00     bal     r14, 0x8 <_main\+0x4>
+                       8: R_CRX_REL16  __Z1flllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllc
+   c:  6f 32 00 40     popret  r15, {r14}
diff --git a/gas/testsuite/gas/crx/gas-segfault.s b/gas/testsuite/gas/crx/gas-segfault.s
new file mode 100644 (file)
index 0000000..7156665
--- /dev/null
@@ -0,0 +1,20 @@
+       # PR 1063
+       # This source file used to make GAS crash with a seg fault
+        .section        .text
+        .align  4
+        .globl __Z1flllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllc
+        .type  __Z1flllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllc,@function
+__Z1flllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllc:
+        jump    ra
+
+        .size  __Z1flllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllc,.-__Z1flllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllc
+        .align  4
+        .globl  _main
+        .type   _main, @function
+_main:
+        push    sp, { ra }
+        bal     ra, __Z1flllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllc
+        popret  sp, { ra }
+        .size   _main, .-_main
+
+