forked from libre-chip/cpu
Compare commits
No commits in common. "d361a2b578e71574e8ce323828fd5415fb985896" and "29757a568c58353b024672fd71bb0b025969eee6" have entirely different histories.
d361a2b578
...
29757a568c
2 changed files with 14 additions and 24 deletions
|
|
@ -1473,19 +1473,14 @@ impl<DestReg: Type, SrcRegWidth: Size> LogicalFlagsMOp<DestReg, SrcRegWidth> {
|
|||
src: impl ToExpr<Type = Array<PRegValue, 3>>,
|
||||
) -> Expr<PRegValue> {
|
||||
let this = this.to_expr();
|
||||
let flags = LogicalFlagsMOpImm::flags_operation(
|
||||
Self::imm(this),
|
||||
this.lut,
|
||||
src.to_expr().map(|v| v.flags),
|
||||
);
|
||||
#[hdl]
|
||||
PRegValue {
|
||||
int_fp: PRegFlags::fields(flags)
|
||||
.iter()
|
||||
.as_slice()
|
||||
.cast_to_bits()
|
||||
.cast_to_static::<UInt<64>>(),
|
||||
flags,
|
||||
int_fp: 0u64,
|
||||
flags: LogicalFlagsMOpImm::flags_operation(
|
||||
Self::imm(this),
|
||||
this.lut,
|
||||
src.to_expr().map(|v| v.flags),
|
||||
),
|
||||
}
|
||||
}
|
||||
#[hdl]
|
||||
|
|
@ -1494,19 +1489,14 @@ impl<DestReg: Type, SrcRegWidth: Size> LogicalFlagsMOp<DestReg, SrcRegWidth> {
|
|||
src: impl ToSimValue<Type = Array<PRegValue, 3>>,
|
||||
) -> SimValue<PRegValue> {
|
||||
let this = this.into_sim_value();
|
||||
let flags = LogicalFlagsMOpImm::flags_operation_sim(
|
||||
Self::imm(&this),
|
||||
SimValue::into_value(this).lut,
|
||||
SimValue::into_value(src.into_sim_value()).map(|v| SimValue::into_value(v).flags),
|
||||
);
|
||||
#[hdl(sim)]
|
||||
PRegValue {
|
||||
int_fp: PRegFlags::fields_sim_ref(&flags)
|
||||
.iter()
|
||||
.as_slice()
|
||||
.cast_to_bits()
|
||||
.cast_to_static::<UInt<64>>(),
|
||||
flags,
|
||||
int_fp: 0u64,
|
||||
flags: LogicalFlagsMOpImm::flags_operation_sim(
|
||||
Self::imm(&this),
|
||||
SimValue::into_value(this).lut,
|
||||
SimValue::into_value(src.into_sim_value()).map(|v| SimValue::into_value(v).flags),
|
||||
),
|
||||
}
|
||||
}
|
||||
#[hdl]
|
||||
|
|
|
|||
|
|
@ -46,7 +46,7 @@ function main()
|
|||
*/LICENSE.md|*/Notices.txt)
|
||||
# copyright file
|
||||
;;
|
||||
/crates/cpu/tests*/expected/*.vcd|/crates/cpu/tests*/expected/*.txt)
|
||||
/crates/cpu/tests/expected/*.vcd|/crates/cpu/tests/expected/*.txt)
|
||||
# file that can't contain copyright header
|
||||
;;
|
||||
/.forgejo/workflows/*.yml|*/.gitignore|*/.gitattributes|*.toml)
|
||||
|
|
@ -71,4 +71,4 @@ function main()
|
|||
done
|
||||
}
|
||||
|
||||
main
|
||||
main
|
||||
Loading…
Add table
Add a link
Reference in a new issue