Navigation Menu

Skip to content

Commit

Permalink
[codegen] change operand type from bool to iflag for isub borrow vari…
Browse files Browse the repository at this point in the history
…ants

The type of the borrow operands for the borrow variants of the isub
instruction (isub_bin, isub_bout, isub_borrow) 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.
  • Loading branch information
ryzokuken authored and bnjbvr committed Sep 5, 2019
1 parent 5c94b0c commit 31e7c29
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cranelift-codegen/meta/src/shared/instructions.rs
Expand Up @@ -1866,8 +1866,8 @@ pub fn define(
let y = &operand("y", iB);
let c_in = &operand_doc("c_in", iflags, "Input carry flag");
let c_out = &operand_doc("c_out", iflags, "Output carry flag");
let b_in = &operand_doc("b_in", b1, "Input borrow flag");
let b_out = &operand_doc("b_out", b1, "Output borrow flag");
let b_in = &operand_doc("b_in", iflags, "Input borrow flag");
let b_out = &operand_doc("b_out", iflags, "Output borrow flag");

ig.push(
Inst::new(
Expand Down

0 comments on commit 31e7c29

Please sign in to comment.