summaryrefslogtreecommitdiff
path: root/test/pecoff/Inputs/armnt-mov32t.s
diff options
context:
space:
mode:
Diffstat (limited to 'test/pecoff/Inputs/armnt-mov32t.s')
-rw-r--r--test/pecoff/Inputs/armnt-mov32t.s24
1 files changed, 24 insertions, 0 deletions
diff --git a/test/pecoff/Inputs/armnt-mov32t.s b/test/pecoff/Inputs/armnt-mov32t.s
new file mode 100644
index 0000000000000..289f917597d69
--- /dev/null
+++ b/test/pecoff/Inputs/armnt-mov32t.s
@@ -0,0 +1,24 @@
+
+# static const char buffer[] = "buffer";
+# const char *get_buffer() { return buffer; }
+
+ .syntax unified
+ .thumb
+ .text
+
+ .def get_buffer
+ .scl 2
+ .type 32
+ .endef
+ .global get_buffer
+ .align 2
+ .thumb_func
+get_buffer:
+ movw r0, :lower16:buffer
+ movt r0, :upper16:buffer
+ bx lr
+
+ .section .rdata,"rd"
+buffer:
+ .asciz "buffer"
+