[ARM] Check that the thumb COFF segment flag gets set on thumb windows
authorRenato Golin <renato.golin@linaro.org>
Wed, 27 Jul 2016 14:37:18 +0000 (14:37 +0000)
committerRenato Golin <renato.golin@linaro.org>
Wed, 27 Jul 2016 14:37:18 +0000 (14:37 +0000)
Patch by Martin Storsjö.

llvm-svn: 276877

llvm/test/MC/ARM/Windows/thumb-attributes.s [new file with mode: 0644]

diff --git a/llvm/test/MC/ARM/Windows/thumb-attributes.s b/llvm/test/MC/ARM/Windows/thumb-attributes.s
new file mode 100644 (file)
index 0000000..6396862
--- /dev/null
@@ -0,0 +1,16 @@
+@ RUN: llvm-mc -triple thumbv7-windows-itanium -filetype obj -o - %s \
+@ RUN:   | llvm-readobj -s - | FileCheck %s
+
+    .syntax unified
+    .thumb
+
+    .text
+
+    .global function
+    .thumb_func
+function:
+    bx lr
+
+@ CHECK: Section
+@ CHECK-DAG: IMAGE_SCN_CNT_CODE
+@ CHECK-DAG: IMAGE_SCN_MEM_16BIT