xref: /llvm-project/llvm/test/CodeGen/Generic/denormal-fp-math-cl-opt.ll (revision bc37be1855773c1dcf8c6bf577a096a81fd58652)
1; RUN: llc -denormal-fp-math=dynamic --denormal-fp-math-f32=preserve-sign -stop-after=finalize-isel < %s | FileCheck %s
2
3; Check that the command line flag annotates the IR with the
4; appropriate attributes.
5
6; CHECK: attributes #0 = { "denormal-fp-math"="dynamic,dynamic" "denormal-fp-math-f32"="preserve-sign,preserve-sign" }
7define float @foo(float %var) {
8  ret float %var
9}
10