aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
Diffstat (limited to 'gas')
-rw-r--r--gas/testsuite/ChangeLog5
-rw-r--r--gas/testsuite/gas/avr/avr-prop-1.d26
-rw-r--r--gas/testsuite/gas/avr/avr-prop-1.s29
3 files changed, 60 insertions, 0 deletions
diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog
index 1cf803e..96697eb 100644
--- a/gas/testsuite/ChangeLog
+++ b/gas/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2015-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
+
+ * gas/avr/avr-prop-1.d: New file.
+ * gas/avr/avr-prop-1.s: New file.
+
2015-02-25 Kaz Kojima <kkojima@rr.iij4u.or.jp>
Oleg Endo <olegendo@gcc.gnu.org>
diff --git a/gas/testsuite/gas/avr/avr-prop-1.d b/gas/testsuite/gas/avr/avr-prop-1.d
new file mode 100644
index 0000000..b140ae6
--- /dev/null
+++ b/gas/testsuite/gas/avr/avr-prop-1.d
@@ -0,0 +1,26 @@
+#name: AVR '.avr.prop' test 1
+#as: -mmcu=avrxmega2 -mlink-relax
+#objdump: -P avr-prop
+#source: avr-prop-1.s
+#target: avr-*-*
+
+.*: file format elf32-avr
+
+Contents of `\.avr\.prop' section:
+
+ Version: 1
+ Flags: 0
+
+ 0 ORG @ \.text\.1 \+ 0x000020 \(0x000020\)
+ 1 ORG @ \.text\.1 \+ 0x000044 \(0x000044\)
+ 2 ORG @ \.text\.2 \+ 0x000020 \(0x000020\)
+ 3 ALIGN @ \.text\.2 \+ 0x000020 \(0x000020\)
+ Align: 0x000004
+ 4 ALIGN @ \.text\.2 \+ 0x000030 \(0x000030\)
+ Align: 0x000004
+ 5 ORG @ \.text\.2 \+ 0x000200 \(0x000200\)
+ 6 ALIGN @ \.text\.2 \+ 0x000200 \(0x000200\)
+ Align: 0x000004
+ 7 ALIGN @ \.text\.3 \+ 0x000100 \(0x000100\)
+ Align: 0x000008
+
diff --git a/gas/testsuite/gas/avr/avr-prop-1.s b/gas/testsuite/gas/avr/avr-prop-1.s
new file mode 100644
index 0000000..6e50cf1
--- /dev/null
+++ b/gas/testsuite/gas/avr/avr-prop-1.s
@@ -0,0 +1,29 @@
+ .section ".text.1", "ax"
+ .global _start
+_start:
+ .org 0x20
+ nop
+ .org 0x44
+ nop
+
+
+ .section ".text.2", "ax"
+ .global test2
+text2:
+ .org 0x20
+ nop
+ .align 4
+ nop
+ .align 4
+ nop
+ .org 0x200
+ nop
+
+ .section ".text.3", "ax"
+ .global test3
+text3:
+ .org 0x0
+ nop
+ nop
+ .align 8
+ nop