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
This commit is contained in:
James Y Knight 2019-01-24 21:31:43 +00:00
parent 525ef0159d
commit c20a5767f9
2 changed files with 8 additions and 0 deletions

View File

@ -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

View File

@ -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