[PATCH] D22860: [ARM] Check that the thumb COFF segment flag gets set with a thumb windows triplet

Martin Storsjö via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 27 06:58:26 PDT 2016


mstorsjo updated this revision to Diff 65732.
mstorsjo added a comment.

Updated the test according to the suggestions


https://reviews.llvm.org/D22860

Files:
  test/MC/ARM/Windows/thumb-attributes.s

Index: test/MC/ARM/Windows/thumb-attributes.s
===================================================================
--- /dev/null
+++ 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


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D22860.65732.patch
Type: text/x-patch
Size: 503 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160727/69e495ba/attachment.bin>


More information about the llvm-commits mailing list