arm64: Implement AllTrue and AnyTrue
This enables the simd_boolean WASM SIMD spec test. Copyright (c) 2020, Arm Limited.
This commit is contained in:
@@ -304,6 +304,14 @@ impl Imm12 {
|
||||
}
|
||||
}
|
||||
|
||||
/// Create a zero immediate of this format.
|
||||
pub fn zero() -> Self {
|
||||
Imm12 {
|
||||
bits: 0,
|
||||
shift12: false,
|
||||
}
|
||||
}
|
||||
|
||||
/// Bits for 2-bit "shift" field in e.g. AddI.
|
||||
pub fn shift_bits(&self) -> u32 {
|
||||
if self.shift12 {
|
||||
|
||||
Reference in New Issue
Block a user