aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-avr
diff options
context:
space:
mode:
Diffstat (limited to 'ld/testsuite/ld-avr')
-rw-r--r--ld/testsuite/ld-avr/avr-prop-1.d10
-rw-r--r--ld/testsuite/ld-avr/avr-prop-1.s7
-rw-r--r--ld/testsuite/ld-avr/avr-prop-2.d12
-rw-r--r--ld/testsuite/ld-avr/avr-prop-2.s13
-rw-r--r--ld/testsuite/ld-avr/avr-prop-3.d10
-rw-r--r--ld/testsuite/ld-avr/avr-prop-3.s8
-rw-r--r--ld/testsuite/ld-avr/avr-prop-4.d10
-rw-r--r--ld/testsuite/ld-avr/avr-prop-4.s8
8 files changed, 78 insertions, 0 deletions
diff --git a/ld/testsuite/ld-avr/avr-prop-1.d b/ld/testsuite/ld-avr/avr-prop-1.d
new file mode 100644
index 0000000..0c4ddc4
--- /dev/null
+++ b/ld/testsuite/ld-avr/avr-prop-1.d
@@ -0,0 +1,10 @@
+#name: AVR .avr.prop, single .org test.
+#as: -mmcu=avrxmega2 -mlink-relax
+#ld: -mavrxmega2 --relax
+#source: avr-prop-1.s
+#nm: -n
+#target: avr-*-*
+
+#...
+00000020 T dest
+#...
diff --git a/ld/testsuite/ld-avr/avr-prop-1.s b/ld/testsuite/ld-avr/avr-prop-1.s
new file mode 100644
index 0000000..a287d3e
--- /dev/null
+++ b/ld/testsuite/ld-avr/avr-prop-1.s
@@ -0,0 +1,7 @@
+ .text
+ .global _start, dest
+_start:
+ CALL dest
+ .org 0x20
+dest:
+ nop
diff --git a/ld/testsuite/ld-avr/avr-prop-2.d b/ld/testsuite/ld-avr/avr-prop-2.d
new file mode 100644
index 0000000..a45443e
--- /dev/null
+++ b/ld/testsuite/ld-avr/avr-prop-2.d
@@ -0,0 +1,12 @@
+#name: AVR .avr.prop, multiple .org test.
+#as: -mmcu=avrxmega2 -mlink-relax
+#ld: -mavrxmega2 --relax
+#source: avr-prop-2.s
+#nm: -n
+#target: avr-*-*
+
+#...
+00000010 T label1
+00000020 T label2
+00000030 T dest
+#...
diff --git a/ld/testsuite/ld-avr/avr-prop-2.s b/ld/testsuite/ld-avr/avr-prop-2.s
new file mode 100644
index 0000000..a36eb18
--- /dev/null
+++ b/ld/testsuite/ld-avr/avr-prop-2.s
@@ -0,0 +1,13 @@
+ .text
+ .global _start, label1, label2, dest
+_start:
+ CALL dest
+ .org 0x10
+label1:
+ CALL dest
+ .org 0x20
+label2:
+ CALL dest
+ .org 0x30
+dest:
+ nop
diff --git a/ld/testsuite/ld-avr/avr-prop-3.d b/ld/testsuite/ld-avr/avr-prop-3.d
new file mode 100644
index 0000000..0e1e271
--- /dev/null
+++ b/ld/testsuite/ld-avr/avr-prop-3.d
@@ -0,0 +1,10 @@
+#name: AVR .avr.prop, single .align test.
+#as: -mmcu=avrxmega2 -mlink-relax
+#ld: -mavrxmega2 --relax
+#source: avr-prop-3.s
+#nm: -n
+#target: avr-*-*
+
+#...
+00000008 T dest
+#...
diff --git a/ld/testsuite/ld-avr/avr-prop-3.s b/ld/testsuite/ld-avr/avr-prop-3.s
new file mode 100644
index 0000000..bf66a45
--- /dev/null
+++ b/ld/testsuite/ld-avr/avr-prop-3.s
@@ -0,0 +1,8 @@
+ .text
+ .global _start, dest
+_start:
+ CALL dest
+ CALL dest
+ .align 3
+dest:
+ NOP
diff --git a/ld/testsuite/ld-avr/avr-prop-4.d b/ld/testsuite/ld-avr/avr-prop-4.d
new file mode 100644
index 0000000..42a42c1
--- /dev/null
+++ b/ld/testsuite/ld-avr/avr-prop-4.d
@@ -0,0 +1,10 @@
+#name: AVR .avr.prop, realign .align test.
+#as: -mmcu=avrxmega2 -mlink-relax
+#ld: -mavrxmega2 --relax
+#source: avr-prop-4.s
+#nm: -n
+#target: avr-*-*
+
+#...
+00000004 T dest
+#...
diff --git a/ld/testsuite/ld-avr/avr-prop-4.s b/ld/testsuite/ld-avr/avr-prop-4.s
new file mode 100644
index 0000000..b1d532f
--- /dev/null
+++ b/ld/testsuite/ld-avr/avr-prop-4.s
@@ -0,0 +1,8 @@
+ .text
+ .global _start, dest
+_start:
+ CALL dest
+ CALL dest
+ .align 2
+dest:
+ NOP