Skip to content

Commit

Permalink
Define the _fltused symbol in a couple tests post-r352076.
Browse files Browse the repository at this point in the history
Normally it's defined by MSCRT, but these tests are standalone, so
they need to define it themselves.

llvm-svn: 352110
  • Loading branch information
jyknight committed Jan 24, 2019
1 parent 525ef01 commit c20a576
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lld/test/COFF/lto-lazy-reference.ll
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions lld/test/COFF/lto-new-symbol.ll
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c20a576

Please sign in to comment.