| 1 |
; RUN: llc %s --filetype=obj -o - | dxil-dis -o - | FileCheck %s |
| 2 |
|
| 3 |
; CHECK: target triple = "dxil-ms-dx" |
| 4 |
target triple = "dxil-unknown-shadermodel6.7-library" |
| 5 |
|
| 6 |
; CHECK: Function Attrs: nounwind readnone |
| 7 |
define float @fma(float %0, float %1, float %2) #0 { |
| 8 |
%4 = fmul float %0, %1 |
| 9 |
%5 = fadd float %4, %2 |
| 10 |
ret float %5 |
| 11 |
} |
| 12 |
|
| 13 |
; CHECK: Function Attrs: readnone |
| 14 |
define float @fma2(float %0, float %1, float %2) #1 { |
| 15 |
%4 = fmul float %0, %1 |
| 16 |
%5 = fadd float %4, %2 |
| 17 |
ret float %5 |
| 18 |
} |
| 19 |
|
| 20 |
; CHECK: attributes #0 = { nounwind readnone "fp32-denorm-mode"="any" "waveops-include-helper-lanes" } |
| 21 |
attributes #0 = { norecurse nounwind readnone willreturn "disable-tail-calls"="false" "waveops-include-helper-lanes" "fp32-denorm-mode"="any" "hlsl.export" } |
| 22 |
|
| 23 |
; CHECK: attributes #1 = { readnone "fp32-denorm-mode"="ftz" "waveops-include-helper-lanes" } |
| 24 |
attributes #1 = { norecurse memory(none) willreturn "disable-tail-calls"="false" "waveops-include-helper-lanes" "fp32-denorm-mode"="ftz" "hlsl.export" } |