more pack

This commit is contained in:
nora 2024-01-06 00:03:23 +01:00
parent 2f60340a3b
commit 9e4ce7913a
4 changed files with 131 additions and 6 deletions

View file

@ -198,6 +198,7 @@ impl VariableType {
let (is_signed, elem_width) = match etype {
"SI8" => (true, 8),
"SI16" => (true, 16),
"SI32" => (true, 32),
"UI8" => (false, 8),
"UI16" => (false, 16),
_ => bail!("unknown element type: {etype}"),

View file

@ -88,4 +88,10 @@ fn main() -> Result<()> {
Ok(())
}
const INTRINSICS_GENERATE: &[&str] = &["_mm_packus_epi16", "_mm_packs_epi16", "_mm_setr_epi16"];
const INTRINSICS_GENERATE: &[&str] = &[
"_mm_packus_epi16",
"_mm_packs_epi16",
"_mm_packus_epi32",
"_mm_packs_epi32",
"_mm_setr_epi16",
];