1 ; LoongArch does not support mcjit.
2 ; UNSUPPORTED: target=loongarch{{.*}}
4 ; LLI.exe used to crash on Windows\X86 when certain single precession
5 ; floating point intrinsics (defined as macros) are used.
6 ; This unit test guards against the failure.
8 ; RUN: %lli -jit-kind=mcjit %s | FileCheck %s
9 ; RUN: %lli %s | FileCheck %s
11 @flt = internal global float 12.0e+0
12 @str = internal constant [18 x i8] c"Double value: %f\0A\00"
14 declare i32 @printf(ptr nocapture, ...) nounwind
15 declare i32 @fflush(ptr) nounwind
18 %flt = load float, ptr @flt
19 %float2 = frem float %flt, 5.0
20 %double1 = fpext float %float2 to double
21 call i32 (ptr, ...) @printf(ptr @str, double %double1)
22 call i32 @fflush(ptr null)
26 ; CHECK: Double value: 2.0