[lld] r225105 - test: correct PE/COFF tests to build under MSVC mode

Saleem Abdulrasool compnerd at compnerd.org
Fri Jan 2 16:57:14 PST 2015


Author: compnerd
Date: Fri Jan  2 18:57:14 2015
New Revision: 225105

URL: http://llvm.org/viewvc/llvm-project?rev=225105&view=rev
Log:
test: correct PE/COFF tests to build under MSVC mode

This adjusts the inputs to be compatible with armv7-windows-msvc as well as
armv7-windows-itanium.  NFC.

Modified:
    lld/trunk/test/pecoff/Inputs/armnt-blx23t.s
    lld/trunk/test/pecoff/Inputs/armnt-branch24t.s
    lld/trunk/test/pecoff/Inputs/armnt-mov32t.s

Modified: lld/trunk/test/pecoff/Inputs/armnt-blx23t.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/pecoff/Inputs/armnt-blx23t.s?rev=225105&r1=225104&r2=225105&view=diff
==============================================================================
--- lld/trunk/test/pecoff/Inputs/armnt-blx23t.s (original)
+++ lld/trunk/test/pecoff/Inputs/armnt-blx23t.s Fri Jan  2 18:57:14 2015
@@ -1,6 +1,6 @@
 
-@ __declspec(noinline) int identity(int i) { return i; }
-@ int function() { return identity(32) + 1; }
+# __declspec(noinline) int identity(int i) { return i; }
+# int function() { return identity(32) + 1; }
 
 	.syntax unified
 	.thumb
@@ -12,7 +12,6 @@
 	.endef
 	.global identity
 	.align 2
-	.code16
 	.thumb_func
 identity:
 	bx lr
@@ -23,13 +22,12 @@ identity:
 	.endef
 	.global function
 	.align 2
-	.code16
 	.thumb_func
 function:
 	push.w {r11, lr}
 	mov r11, sp
-	movs r0, #32
+	movs r0, 32
 	bl identity
-	adds r0, #1
+	adds r0, 1
 	pop.w {r11, pc}
 

Modified: lld/trunk/test/pecoff/Inputs/armnt-branch24t.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/pecoff/Inputs/armnt-branch24t.s?rev=225105&r1=225104&r2=225105&view=diff
==============================================================================
--- lld/trunk/test/pecoff/Inputs/armnt-branch24t.s (original)
+++ lld/trunk/test/pecoff/Inputs/armnt-branch24t.s Fri Jan  2 18:57:14 2015
@@ -1,6 +1,6 @@
 
-@ int ___declspec(noinline) identity(int i) { return i; }
-@ int function(void) { return identity(32); }
+# int ___declspec(noinline) identity(int i) { return i; }
+# int function(void) { return identity(32); }
 
 	.syntax unified
 	.thumb
@@ -12,7 +12,6 @@
 	.endef
 	.global identity
 	.align 2
-	.code16
 	.thumb_func
 identity:
 	bx lr
@@ -22,6 +21,6 @@ identity:
 		.type 32
 	.endef
 function:
-	movs r0, #32
+	movs r0, 32
 	b identity
 

Modified: lld/trunk/test/pecoff/Inputs/armnt-mov32t.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/pecoff/Inputs/armnt-mov32t.s?rev=225105&r1=225104&r2=225105&view=diff
==============================================================================
--- lld/trunk/test/pecoff/Inputs/armnt-mov32t.s (original)
+++ lld/trunk/test/pecoff/Inputs/armnt-mov32t.s Fri Jan  2 18:57:14 2015
@@ -1,6 +1,6 @@
 
-@ static const char buffer[] = "buffer";
-@ const char *get_buffer() { return buffer; }
+# static const char buffer[] = "buffer";
+# const char *get_buffer() { return buffer; }
 
 	.syntax unified
 	.thumb
@@ -12,7 +12,6 @@
 	.endef
 	.global get_buffer
 	.align 2
-	.code16			# @get_buffer
 	.thumb_func
 get_buffer:
 	movw r0, :lower16:buffer





More information about the llvm-commits mailing list