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