diff options
author | Michael J. Spencer <bigcheesegs@gmail.com> | 2010-10-16 08:25:41 +0000 |
---|---|---|
committer | Michael J. Spencer <bigcheesegs@gmail.com> | 2010-10-16 08:25:41 +0000 |
commit | 84ac4d5a2a8fd0e6f95ec46088c0ca7bb63423ac (patch) | |
tree | 21a10b4aece3d37416044ea441f759f25ea709cb /test/CodeGen/X86/fltused.ll | |
parent | e70c526d59e92048c89281d1b7011af0b1d9ee95 (diff) | |
download | llvm-84ac4d5a2a8fd0e6f95ec46088c0ca7bb63423ac.tar.gz llvm-84ac4d5a2a8fd0e6f95ec46088c0ca7bb63423ac.tar.bz2 llvm-84ac4d5a2a8fd0e6f95ec46088c0ca7bb63423ac.tar.xz |
X86-Windows: Emit an undefined global __fltused symbol when targeting Windows
if any floating point arguments are passed to an external function.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116665 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/X86/fltused.ll')
-rw-r--r-- | test/CodeGen/X86/fltused.ll | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/test/CodeGen/X86/fltused.ll b/test/CodeGen/X86/fltused.ll new file mode 100644 index 0000000000..a896021290 --- /dev/null +++ b/test/CodeGen/X86/fltused.ll @@ -0,0 +1,17 @@ +; The purpose of this test to to verify that the fltused symbol is emitted when +; any function is called with floating point arguments on Windows. And that it +; is not emitted otherwise. + +; RUN: llc < %s -mtriple i686-pc-win32 | FileCheck %s + +@.str = private constant [4 x i8] c"%f\0A\00" + +define i32 @main() nounwind { +entry: + %call = tail call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([4 x i8]* @.str, i32 0, i32 0), double 1.000000e+000) nounwind + ret i32 0 +} + +declare i32 @printf(i8* nocapture, ...) nounwind + +; CHECK: .globl __fltused |