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);
}
The method Builder.createICmpUGT incorrectly calls createICmpULT. This leads to wrong code generation for unsigned greater-than comparisons.
Current behavior:
Expected behavior: