brintos

brintos / llvm-project-archived public Read only

0
0
Text · 458 B · 9bd44dd Raw
19 lines · plain
1; RUN: %lli -jit-kind=mcjit %s | FileCheck %s2; RUN: %lli %s | FileCheck %s3; REQUIRES: fma34; CHECK: 12.0000005 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 readnone12 13  call i32 (ptr,...) @printf(ptr @msg_double, double %fma)14 15  ret i32 016}17 18declare double @llvm.fma.f64(double, double, double) nounwind readnone19