summaryrefslogtreecommitdiffstats
path: root/llvm/test
diff options
context:
space:
mode:
authorRenato Golin <renato.golin@linaro.org>2016-07-27 14:37:18 +0000
committerRenato Golin <renato.golin@linaro.org>2016-07-27 14:37:18 +0000
commit5267d53779b45002837c779e513811aa8e9ad755 (patch)
tree4e222577649e321057b3fa2621b98b9e5c05500d /llvm/test
parent246e0283d40e4045e3d4adc42e2f0303be19c7f9 (diff)
downloadbcm5719-llvm-5267d53779b45002837c779e513811aa8e9ad755.tar.gz
bcm5719-llvm-5267d53779b45002837c779e513811aa8e9ad755.zip
[ARM] Check that the thumb COFF segment flag gets set on thumb windows
Patch by Martin Storsjö. llvm-svn: 276877
Diffstat (limited to 'llvm/test')
-rw-r--r--llvm/test/MC/ARM/Windows/thumb-attributes.s16
1 files changed, 16 insertions, 0 deletions
diff --git a/llvm/test/MC/ARM/Windows/thumb-attributes.s b/llvm/test/MC/ARM/Windows/thumb-attributes.s
new file mode 100644
index 00000000000..6396862f00a
--- /dev/null
+++ b/llvm/test/MC/ARM/Windows/thumb-attributes.s
@@ -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
OpenPOWER on IntegriCloud