We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9fb7519 commit 970143fCopy full SHA for 970143f
IGC/Compiler/Optimizer/OpenCLPasses/ErrorCheckPass.cpp
@@ -67,9 +67,11 @@ void ErrorCheck::visitInstruction(llvm::Instruction& I)
67
{
68
auto ctx = getAnalysis<CodeGenContextWrapper>().getCodeGenContext();
69
70
- if (!ctx->m_DriverInfo.NeedFP64() && !ctx->platform.supportFP64())
+ if (!ctx->m_DriverInfo.NeedFP64() && !ctx->platform.supportFP64()
71
+ && IGC_IS_FLAG_DISABLED(ForceDPEmulation))
72
73
// check that input does not use double
74
+ // For testing purpose, this check is skipped if ForceDPEmulation is on.
75
if (I.getType()->isDoubleTy())
76
77
ctx->EmitError("double type is not supported on this platform");
0 commit comments