brintos

brintos / llvm-project-archived public Read only

0
0
Text · 657 B · 6f0348e Raw
19 lines · plain
1; The purpose of this test to verify that the fltused symbol is2; emitted when floating point operations are used on Windows.3 4; RUN: llc < %s -mtriple i686-pc-win32 | FileCheck %s --check-prefix WIN325; RUN: llc < %s -mtriple x86_64-pc-win32 | FileCheck %s --check-prefix WIN646; RUN: llc < %s -O0 -mtriple i686-pc-win32 | FileCheck %s --check-prefix WIN327; RUN: llc < %s -O0 -mtriple x86_64-pc-win32 | FileCheck %s --check-prefix WIN648 9define i32 @foo(i32 %a) nounwind {10entry:11  %da = sitofp i32 %a to double12  %div = fdiv double %da, 3.100000e+0013  %res = fptosi double %div to i3214  ret i32 %res15}16 17; WIN32: .globl __fltused18; WIN64: .globl _fltused19