diff options
| author | Sparrow Li <liyuan179@huawei.com> | 2021-04-29 05:59:41 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-04-28 22:59:41 +0100 |
| commit | 07f1d0cae30fecd4839d39c8b529178b7273c6ea (patch) | |
| tree | 4b9bcfa20834d8ed53cf1da9e7229e7322124a09 /library/stdarch/crates/stdarch-gen/src | |
| parent | 54a2d8b82a84c9592726b1181b528e344b32915f (diff) | |
| download | rust-07f1d0cae30fecd4839d39c8b529178b7273c6ea.tar.gz rust-07f1d0cae30fecd4839d39c8b529178b7273c6ea.zip | |
Add vmla_n, vmla_lane, vmls_n, vmls_lane neon instructions (#1145)
Diffstat (limited to 'library/stdarch/crates/stdarch-gen/src')
| -rw-r--r-- | library/stdarch/crates/stdarch-gen/src/main.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/library/stdarch/crates/stdarch-gen/src/main.rs b/library/stdarch/crates/stdarch-gen/src/main.rs index f659bab99bd..5a905d92fed 100644 --- a/library/stdarch/crates/stdarch-gen/src/main.rs +++ b/library/stdarch/crates/stdarch-gen/src/main.rs @@ -349,6 +349,7 @@ enum Suffix { OutSuffix, Lane, In2, + In2Lane, } #[derive(Clone, Copy)] @@ -847,6 +848,7 @@ fn gen_aarch64( OutSuffix => format!("{}{}", current_name, type_to_suffix(out_t)), Lane => format!("{}{}", current_name, type_to_lane_suffixes(out_t, in_t[1])), In2 => format!("{}{}", current_name, type_to_suffix(in_t[2])), + In2Lane => format!("{}{}", current_name, type_to_lane_suffixes(out_t, in_t[2])), }; let current_fn = if let Some(current_fn) = current_fn.clone() { if link_aarch64.is_some() { @@ -1259,6 +1261,7 @@ fn gen_arm( OutSuffix => format!("{}{}", current_name, type_to_suffix(out_t)), Lane => format!("{}{}", current_name, type_to_lane_suffixes(out_t, in_t[1])), In2 => format!("{}{}", current_name, type_to_suffix(in_t[2])), + In2Lane => format!("{}{}", current_name, type_to_lane_suffixes(out_t, in_t[2])), }; let current_aarch64 = current_aarch64 .clone() @@ -2216,6 +2219,8 @@ mod test { suffix = Lane; } else if line.starts_with("in2-suffix") { suffix = In2; + } else if line.starts_with("in2-lane-suffixes") { + suffix = In2Lane; } else if line.starts_with("a = ") { a = line[4..].split(',').map(|v| v.trim().to_string()).collect(); } else if line.starts_with("b = ") { |
