Re: arm: add unwinder encoding support for PACBTI
authorAlan Modra <amodra@gmail.com>
Fri, 29 Oct 2021 09:14:40 +0000 (19:44 +1030)
committerAlan Modra <amodra@gmail.com>
Fri, 29 Oct 2021 09:16:18 +0000 (19:46 +1030)
Move the gas testsuite files to where they belong.

gas/testsuite/gas/arm/unwind-pacbti-m-readelf.d [new file with mode: 0644]
gas/testsuite/gas/arm/unwind-pacbti-m.d [new file with mode: 0644]
gas/testsuite/gas/arm/unwind-pacbti-m.s [new file with mode: 0644]
unwind-pacbti-m-readelf.d [deleted file]
unwind-pacbti-m.d [deleted file]
unwind-pacbti-m.s [deleted file]

diff --git a/gas/testsuite/gas/arm/unwind-pacbti-m-readelf.d b/gas/testsuite/gas/arm/unwind-pacbti-m-readelf.d
new file mode 100644 (file)
index 0000000..ba1d76d
--- /dev/null
@@ -0,0 +1,16 @@
+#readelf: -u
+#source: unwind-pacbti-m.s
+#name: Unwind table information for Armv8.1-M.Mainline PACBTI extension
+# This test is only valid on ELF based ports.
+#notarget: *-*-pe *-*-wince
+# VxWorks needs a special variant of this file.
+#skip: *-*-vxworks*
+
+Unwind section '.ARM.exidx' at offset 0x40 contains 1 entry:
+
+0x0 <foo>: 0x80b4a8b0
+  Compact model index: 0
+  0xb4      pop {ra_auth_code}
+  0xa8      pop {r4, r14}
+  0xb0      finish
+
diff --git a/gas/testsuite/gas/arm/unwind-pacbti-m.d b/gas/testsuite/gas/arm/unwind-pacbti-m.d
new file mode 100644 (file)
index 0000000..584b120
--- /dev/null
@@ -0,0 +1,23 @@
+#objdump: -sr
+#name: Unwind information for Armv8.1-M.Mainline PACBTI extension
+# This test is only valid on ELF based ports.
+#notarget: *-*-pe *-*-wince
+# VxWorks needs a special variant of this file.
+#skip: *-*-vxworks*
+
+.*:     file format.*
+
+RELOCATION RECORDS FOR \[.ARM.exidx\]:
+OFFSET   TYPE              VALUE 
+00000000 R_ARM_PREL31      .text
+00000000 R_ARM_NONE        __aeabi_unwind_cpp_pr0
+
+
+Contents of section .text:
+ 0000 10b54df8 04cd5df8 04cb10bd  .*
+Contents of section .ARM.exidx:
+ 0000 00000000 b0a8b480  .*
+Contents of section .ARM.attributes:
+ 0000 41290000 00616561 62690001 1f000000  .*
+ 0010 05382e31 2d4d2e4d 41494e00 0615074d  .*
+ 0020 09033202 34024a01 4c01               .*
diff --git a/gas/testsuite/gas/arm/unwind-pacbti-m.s b/gas/testsuite/gas/arm/unwind-pacbti-m.s
new file mode 100644 (file)
index 0000000..5a6ea2e
--- /dev/null
@@ -0,0 +1,20 @@
+
+       .arch armv8.1-m.main
+       .arch_extension pacbti
+       .eabi_attribute 50, 2
+       .eabi_attribute 52, 2
+       .eabi_attribute 74, 1
+       .eabi_attribute 76, 1
+       .text
+       .syntax unified
+       .thumb
+       .thumb_func
+foo:
+       .fnstart
+       push    {r4, lr}
+       .save {r4, lr}
+       push    {r12}
+       .save {ra_auth_code}
+       pop     {r12}
+       pop     {r4, pc}
+       .fnend
diff --git a/unwind-pacbti-m-readelf.d b/unwind-pacbti-m-readelf.d
deleted file mode 100644 (file)
index ba1d76d..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-#readelf: -u
-#source: unwind-pacbti-m.s
-#name: Unwind table information for Armv8.1-M.Mainline PACBTI extension
-# This test is only valid on ELF based ports.
-#notarget: *-*-pe *-*-wince
-# VxWorks needs a special variant of this file.
-#skip: *-*-vxworks*
-
-Unwind section '.ARM.exidx' at offset 0x40 contains 1 entry:
-
-0x0 <foo>: 0x80b4a8b0
-  Compact model index: 0
-  0xb4      pop {ra_auth_code}
-  0xa8      pop {r4, r14}
-  0xb0      finish
-
diff --git a/unwind-pacbti-m.d b/unwind-pacbti-m.d
deleted file mode 100644 (file)
index 584b120..0000000
+++ /dev/null
@@ -1,23 +0,0 @@
-#objdump: -sr
-#name: Unwind information for Armv8.1-M.Mainline PACBTI extension
-# This test is only valid on ELF based ports.
-#notarget: *-*-pe *-*-wince
-# VxWorks needs a special variant of this file.
-#skip: *-*-vxworks*
-
-.*:     file format.*
-
-RELOCATION RECORDS FOR \[.ARM.exidx\]:
-OFFSET   TYPE              VALUE 
-00000000 R_ARM_PREL31      .text
-00000000 R_ARM_NONE        __aeabi_unwind_cpp_pr0
-
-
-Contents of section .text:
- 0000 10b54df8 04cd5df8 04cb10bd  .*
-Contents of section .ARM.exidx:
- 0000 00000000 b0a8b480  .*
-Contents of section .ARM.attributes:
- 0000 41290000 00616561 62690001 1f000000  .*
- 0010 05382e31 2d4d2e4d 41494e00 0615074d  .*
- 0020 09033202 34024a01 4c01               .*
diff --git a/unwind-pacbti-m.s b/unwind-pacbti-m.s
deleted file mode 100644 (file)
index 5a6ea2e..0000000
+++ /dev/null
@@ -1,20 +0,0 @@
-
-       .arch armv8.1-m.main
-       .arch_extension pacbti
-       .eabi_attribute 50, 2
-       .eabi_attribute 52, 2
-       .eabi_attribute 74, 1
-       .eabi_attribute 76, 1
-       .text
-       .syntax unified
-       .thumb
-       .thumb_func
-foo:
-       .fnstart
-       push    {r4, lr}
-       .save {r4, lr}
-       push    {r12}
-       .save {ra_auth_code}
-       pop     {r12}
-       pop     {r4, pc}
-       .fnend