Skip to content

Commit 970143f

Browse files
jgu222sys_zuul
authored andcommitted
For testing purpose, do not issue an error for the presence of
double type if ForceDPEmulation is set to true. Change-Id: If1aa14d188e85fa596cf0636b637cb82aa5577b5
1 parent 9fb7519 commit 970143f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

IGC/Compiler/Optimizer/OpenCLPasses/ErrorCheckPass.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,11 @@ void ErrorCheck::visitInstruction(llvm::Instruction& I)
6767
{
6868
auto ctx = getAnalysis<CodeGenContextWrapper>().getCodeGenContext();
6969

70-
if (!ctx->m_DriverInfo.NeedFP64() && !ctx->platform.supportFP64())
70+
if (!ctx->m_DriverInfo.NeedFP64() && !ctx->platform.supportFP64()
71+
&& IGC_IS_FLAG_DISABLED(ForceDPEmulation))
7172
{
7273
// check that input does not use double
74+
// For testing purpose, this check is skipped if ForceDPEmulation is on.
7375
if (I.getType()->isDoubleTy())
7476
{
7577
ctx->EmitError("double type is not supported on this platform");

0 commit comments

Comments
 (0)