brintos

brintos / llvm-project-archived public Read only

0
0
Text · 932 B · 7f4ba5b Raw
24 lines · plain
1; RUN: llc %s --filetype=obj -o - | dxil-dis -o - | FileCheck %s2target triple = "dxil-unknown-shadermodel6.7-library"3 4define float @fma(float %0, float %1, float %2) #0 {5  ; verify reassoc and contract are converted to fast6  ; CHECK: %4 = fmul fast float %0, %17  %4 = fmul reassoc float %0, %18  ; CHECK-NEXT: %5 = fadd fast float %4, %29  %5 = fadd contract float %4, %210  ; verify these are converted to a single fast flag11  ; CHECK-NEXT: %6 = fmul fast float %0, %112  %6 = fmul reassoc contract float %0, %113  ; verify these flags are maintained14  ; CHECK-NEXT: %7 = fadd nnan ninf nsz arcp float %0, %115  %7 = fadd nnan ninf nsz arcp float %0, %116  ; verify that afn is removed17  ; CHECK-NEXT: %8 = fmul float %0, %118  %8 = fmul afn float %0, %119  ret float %520}21 22attributes #0 = { norecurse nounwind readnone willreturn "disable-tail-calls"="false" "waveops-include-helper-lanes" "fp32-denorm-mode"="any" "hlsl.export" }23 24