brintos

brintos / llvm-project-archived public Read only

0
0
Text · 538 B · 2802593 Raw
13 lines · plain
1; RUN: llc < %s -mtriple=x86_64-unknown-unknown --fp-contract=fast 2>&1 | grep "X86 backend ignores --fp-contract"2 3; RUN: llc < %s -mtriple=x86_64-unknown-unknown --fp-contract=off 2>&1 | grep "X86 backend ignores --fp-contract"4 5; on, as a default setting that's passed to backend when no --fp-contract option is specified, is not diagnosed.6; RUN: llc < %s -mtriple=x86_64-unknown-unknown --fp-contract=on 2>&1 | grep -v "X86 backend ignores --fp-contract"7 8define float @foo(float %f) {9  %res = fadd float %f, %f10  ret float %res11}12 13