Index: lib/Basic/Targets/AMDGPU.cpp =================================================================== --- lib/Basic/Targets/AMDGPU.cpp +++ lib/Basic/Targets/AMDGPU.cpp @@ -205,7 +205,7 @@ if (I == "+fp64-fp16-denormals" || I == "-fp64-fp16-denormals") hasFP64Denormals = true; } - if (!hasFP32Denormals) + if (!hasFP32Denormals && isAMDGCN(getTriple())) TargetOpts.Features.push_back( (Twine(CGOptsGPU.HasFastFMAF && !CGOpts.FlushDenorm ? '+'