[llvm] r276877 - [ARM] Check that the thumb COFF segment flag gets set on thumb windows
Renato Golin via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 27 07:37:18 PDT 2016
Author: rengolin
Date: Wed Jul 27 09:37:18 2016
New Revision: 276877
URL: http://llvm.org/viewvc/llvm-project?rev=276877&view=rev
Log:
[ARM] Check that the thumb COFF segment flag gets set on thumb windows
Patch by Martin Storsjö.
Added:
llvm/trunk/test/MC/ARM/Windows/thumb-attributes.s
Added: llvm/trunk/test/MC/ARM/Windows/thumb-attributes.s
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/MC/ARM/Windows/thumb-attributes.s?rev=276877&view=auto
==============================================================================
--- llvm/trunk/test/MC/ARM/Windows/thumb-attributes.s (added)
+++ llvm/trunk/test/MC/ARM/Windows/thumb-attributes.s Wed Jul 27 09:37:18 2016
@@ -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
More information about the llvm-commits
mailing list