Skip to content

PPC64: Assertion failure in toir.cpp #1652

@redstar

Description

@redstar

On PPC64 there is an assertion failure while compiling std.math:

ldc2: /opt/llvm/include/llvm/IR/Instructions.h:1113: void llvm::ICmpInst::AssertOK(): Assertion `(getOperand(0)->getType()->isIntOrIntVectorTy() || getOperand(0)->getType()->isPtrOrPtrVectorTy()) && "Invalid operand types for ICmp instruction"' failed.

In toir.cpp, line 1195, an ICmp instruction is generated. The assertion is triggered because both operands have floating point type.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions