From c20a5767f935e55ba2040d48c6d262dcde17c631 Mon Sep 17 00:00:00 2001 From: James Y Knight Date: Thu, 24 Jan 2019 21:31:43 +0000 Subject: [PATCH] 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 --- lld/test/COFF/lto-lazy-reference.ll | 4 ++++ lld/test/COFF/lto-new-symbol.ll | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/lld/test/COFF/lto-lazy-reference.ll b/lld/test/COFF/lto-lazy-reference.ll index 1e92873776c1..428a7b845d14 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 5223f73f07fa..dadd49537cf9 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