mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 05:49:08 +00:00
Move ALL_CONDITIONS to tests module
This commit is contained in:
parent
070033b054
commit
63164b70a0
1 changed files with 18 additions and 18 deletions
|
@ -1326,24 +1326,6 @@ impl std::fmt::Display for ConditionCode {
|
|||
}
|
||||
}
|
||||
|
||||
const ALL_CONDITIONS: &'static [ConditionCode] = &[
|
||||
ConditionCode::EQ,
|
||||
ConditionCode::NE,
|
||||
ConditionCode::CSHS,
|
||||
ConditionCode::CCLO,
|
||||
ConditionCode::MI,
|
||||
ConditionCode::PL,
|
||||
ConditionCode::VS,
|
||||
ConditionCode::VC,
|
||||
ConditionCode::HI,
|
||||
ConditionCode::LS,
|
||||
ConditionCode::GE,
|
||||
ConditionCode::LT,
|
||||
ConditionCode::GT,
|
||||
ConditionCode::LE,
|
||||
ConditionCode::AL,
|
||||
];
|
||||
|
||||
#[derive(PackedStruct)]
|
||||
#[packed_struct(endian = "msb")]
|
||||
pub struct ConditionalBranchImmediate {
|
||||
|
@ -2012,6 +1994,24 @@ mod tests {
|
|||
AArch64GeneralReg::ZRSP,
|
||||
];
|
||||
|
||||
const ALL_CONDITIONS: &'static [ConditionCode] = &[
|
||||
ConditionCode::EQ,
|
||||
ConditionCode::NE,
|
||||
ConditionCode::CSHS,
|
||||
ConditionCode::CCLO,
|
||||
ConditionCode::MI,
|
||||
ConditionCode::PL,
|
||||
ConditionCode::VS,
|
||||
ConditionCode::VC,
|
||||
ConditionCode::HI,
|
||||
ConditionCode::LS,
|
||||
ConditionCode::GE,
|
||||
ConditionCode::LT,
|
||||
ConditionCode::GT,
|
||||
ConditionCode::LE,
|
||||
ConditionCode::AL,
|
||||
];
|
||||
|
||||
fn setup_capstone_and_arena<T>(
|
||||
arena: &bumpalo::Bump,
|
||||
) -> (bumpalo::collections::Vec<T>, Capstone) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue