-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Description
The method Builder.createICmpUGT incorrectly calls createICmpULT. This leads to wrong code generation for unsigned greater-than comparisons.
Current behavior:
createICmpUGT(lhs: LLVMValue, rhs: LLVMValue, name?: string) {
const result = this.builder.createICmpULT(lhs.unwrapped, rhs.unwrapped, name);
return LLVMValue.create(result, this.generator);
}
Expected behavior:
createICmpUGT(lhs: LLVMValue, rhs: LLVMValue, name?: string) {
const result = this.builder.createICmpUGT(lhs.unwrapped, rhs.unwrapped, name);
return LLVMValue.create(result, this.generator);
}
Metadata
Metadata
Assignees
Labels
No labels