xref: /llvm-project/llvm/test/ExecutionEngine/MCJIT/fma3-jit.ll (revision 62c16d82194f4c209fe9431deddf302827d37fb4)
1; RUN: %lli -jit-kind=mcjit %s | FileCheck %s
2; RUN: %lli %s | FileCheck %s
3; REQUIRES: fma3
4; CHECK: 12.000000
5
6@msg_double = internal global [4 x i8] c"%f\0A\00"
7
8declare i32 @printf(ptr, ...)
9
10define i32 @main() {
11  %fma = tail call double @llvm.fma.f64(double 3.0, double 3.0, double 3.0) nounwind readnone
12
13  call i32 (ptr,...) @printf(ptr @msg_double, double %fma)
14
15  ret i32 0
16}
17
18declare double @llvm.fma.f64(double, double, double) nounwind readnone
19