Skip to content
This repository was archived by the owner on Jun 26, 2020. It is now read-only.

Commit 4d9f584

Browse files
committed
[codegen] change operand type from bool to iflag for iadd carry variants
The type of the carry operands for the carry variants of the iadd instruction (iadd_cin, iadd_cout, iadd_carry) was bool for compatibility reasons for isa/riscv. Since support for these instructions on RISC architectures has been temporarily suspended, we can safely change the type to iflags.
1 parent 38c612d commit 4d9f584

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cranelift-codegen/meta/src/shared/instructions.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1874,8 +1874,8 @@ pub fn define(
18741874
let a = &operand("a", iB);
18751875
let x = &operand("x", iB);
18761876
let y = &operand("y", iB);
1877-
let c_in = &operand_doc("c_in", b1, "Input carry flag");
1878-
let c_out = &operand_doc("c_out", b1, "Output carry flag");
1877+
let c_in = &operand_doc("c_in", iflags, "Input carry flag");
1878+
let c_out = &operand_doc("c_out", iflags, "Output carry flag");
18791879
let b_in = &operand_doc("b_in", b1, "Input borrow flag");
18801880
let b_out = &operand_doc("b_out", b1, "Output borrow flag");
18811881

0 commit comments

Comments
 (0)