xref: /llvm-project/llvm/test/CodeGen/X86/fltused.ll (revision 2f448bf509432c1a19ec46ab8cbc7353c03c6280)
1; The purpose of this test to verify that the fltused symbol is
2; emitted when a floating point call is made on Windows.
3
4; RUN: llc < %s -mtriple i686-pc-win32 | FileCheck %s --check-prefix WIN32
5; RUN: llc < %s -mtriple x86_64-pc-win32 | FileCheck %s --check-prefix WIN64
6; RUN: llc < %s -O0 -mtriple i686-pc-win32 | FileCheck %s --check-prefix WIN32
7; RUN: llc < %s -O0 -mtriple x86_64-pc-win32 | FileCheck %s --check-prefix WIN64
8
9@.str = private constant [4 x i8] c"%f\0A\00"
10
11define i32 @main() nounwind {
12entry:
13  %call = tail call i32 (ptr, ...) @printf(ptr @.str, double 1.000000e+000) nounwind
14  ret i32 0
15}
16
17declare i32 @printf(ptr nocapture, ...) nounwind
18
19; WIN32: .globl __fltused
20; WIN64: .globl _fltused
21