[lld] r352110 - Define the _fltused symbol in a couple tests post-r352076.
James Y Knight via llvm-commits
llvm-commits at lists.llvm.org
Thu Jan 24 13:31:43 PST 2019
Author: jyknight
Date: Thu Jan 24 13:31:43 2019
New Revision: 352110
URL: http://llvm.org/viewvc/llvm-project?rev=352110&view=rev
Log:
Define the _fltused symbol in a couple tests post-r352076.
Normally it's defined by MSCRT, but these tests are standalone, so
they need to define it themselves.
Modified:
lld/trunk/test/COFF/lto-lazy-reference.ll
lld/trunk/test/COFF/lto-new-symbol.ll
Modified: lld/trunk/test/COFF/lto-lazy-reference.ll
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/COFF/lto-lazy-reference.ll?rev=352110&r1=352109&r2=352110&view=diff
==============================================================================
--- lld/trunk/test/COFF/lto-lazy-reference.ll (original)
+++ lld/trunk/test/COFF/lto-lazy-reference.ll Thu Jan 24 13:31:43 2019
@@ -9,6 +9,10 @@
target datalayout = "e-m:x-p:32:32-i64:64-f80:32-n8:16:32-a:0:32-S32"
target triple = "i686-pc-windows-msvc18.0.0"
+; Define fltused, since we don't link against the MS C runtime but are
+; using floats.
+ at _fltused = dllexport global i32 0, align 4
+
define double @main(double %x) {
entry:
; When compiled, this defines the __real at 40800000 symbol, which already has a
Modified: lld/trunk/test/COFF/lto-new-symbol.ll
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/COFF/lto-new-symbol.ll?rev=352110&r1=352109&r2=352110&view=diff
==============================================================================
--- lld/trunk/test/COFF/lto-new-symbol.ll (original)
+++ lld/trunk/test/COFF/lto-new-symbol.ll Thu Jan 24 13:31:43 2019
@@ -5,6 +5,10 @@
target datalayout = "e-m:w-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-windows-msvc"
+; Define fltused, since we don't link against the MS C runtime but are
+; using floats.
+ at _fltused = dllexport global i32 0, align 4
+
define void @foo(<4 x i32>* %p, <4 x float>* %q, i1 %t) nounwind {
entry:
br label %loop
More information about the llvm-commits
mailing list