We need to use oclc_daz_opt_on.amdgcn.bc bitcode when option fcuda-flush-denormal-to-zero is enabled for HIP.
I think we should have a lit test for linked bitcode files.
you can use StringRef here. Please use a more meaningful name, e.g. FlushDenormalControlBC.
I've changed the string to a more meaningful name, and also added a lit test to check that oclc_daz_opt_on.amdgcn.bc is used.
Fix diff file
we only need test with one arch
better put the dummy bc files under test/Driver/Inputs/hip_dev_lib
we also need to test the case without this option
we need to fix the order. should be ocml, then ockl, then irif. but should do it in another patch
I've updated. Moved the bitcode files into hip_dev_lib and added test for both on and off flush denorms to zero option.
better merge these two tests and rename it as hip-device-libs.hip. We can also add other device lib tests to it later.
Merged checks for flush denorm on and off into single test hip-device-libs.hip