xref: /llvm-project/llvm/test/CodeGen/DirectX/strip-fn-attrs.ll (revision ab7518050183162f09724ef8682a580cc68709bc)
1; RUN: llc %s --filetype=asm -o - | FileCheck %s
2target triple = "dxil-unknown-shadermodel6.7-library"
3
4; CHECK: Function Attrs: nounwind memory(none)
5; Function Attrs: norecurse nounwind readnone willreturn
6define dso_local float @fma(float %0, float %1, float %2) local_unnamed_addr #0 {
7  %4 = fmul float %0, %1
8  %5 = fadd float %4, %2
9  ret float %5
10}
11
12; CHECK: attributes #0 = { nounwind memory(none) }
13; CHECK-NOT: attributes #
14
15attributes #0 = { norecurse nounwind readnone willreturn "hlsl.export"}
16