summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames Y Knight <jyknight@google.com>2019-01-24 21:31:43 +0000
committerJames Y Knight <jyknight@google.com>2019-01-24 21:31:43 +0000
commitc20a5767f935e55ba2040d48c6d262dcde17c631 (patch)
treeb812d750af3709264978577cf3db6eea0e2af968
parent525ef0159d663f62755552258dfef2ee38d19005 (diff)
downloadbcm5719-llvm-c20a5767f935e55ba2040d48c6d262dcde17c631.tar.gz
bcm5719-llvm-c20a5767f935e55ba2040d48c6d262dcde17c631.zip
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. llvm-svn: 352110
-rw-r--r--lld/test/COFF/lto-lazy-reference.ll4
-rw-r--r--lld/test/COFF/lto-new-symbol.ll4
2 files changed, 8 insertions, 0 deletions
diff --git a/lld/test/COFF/lto-lazy-reference.ll b/lld/test/COFF/lto-lazy-reference.ll
index 1e92873776c..428a7b845d1 100644
--- a/lld/test/COFF/lto-lazy-reference.ll
+++ b/lld/test/COFF/lto-lazy-reference.ll
@@ -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.
+@_fltused = dllexport global i32 0, align 4
+
define double @main(double %x) {
entry:
; When compiled, this defines the __real@40800000 symbol, which already has a
diff --git a/lld/test/COFF/lto-new-symbol.ll b/lld/test/COFF/lto-new-symbol.ll
index 5223f73f07f..dadd49537cf 100644
--- a/lld/test/COFF/lto-new-symbol.ll
+++ b/lld/test/COFF/lto-new-symbol.ll
@@ -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.
+@_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
OpenPOWER on IntegriCloud