Skip to content

Commit 9f56458

Browse files
chore: update c_prefix for mask and print_result_c for vector type
1 parent f8be297 commit 9f56458

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

crates/intrinsic-test/src/common/intrinsic_helpers.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ impl TypeKind {
7575
Self::Float => "float",
7676
Self::Int(Sign::Signed) => "int",
7777
Self::Int(Sign::Unsigned) => "uint",
78+
Self::Mask => "uint",
7879
Self::Poly => "poly",
7980
Self::Char(Sign::Signed) => "char",
8081
_ => unreachable!("Not used: {:#?}", self),

crates/intrinsic-test/src/x86/intrinsic.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ impl IntrinsicDefinition<X86IntrinsicType> for Intrinsic<X86IntrinsicType> {
8484
TypeKind::Float if self.results().inner_size() == 64 => "double".to_string(),
8585
TypeKind::Float if self.results().inner_size() == 32 => "float".to_string(),
8686
TypeKind::Mask => format!("__mmask{}", self.results.bit_len.unwrap()),
87+
TypeKind::Vector => format!("__m{}i", self.results.bit_len.unwrap()),
8788
// TypeKind::Float if self.results().inner_size() == 16 => "float16_t".to_string(),
8889
// TypeKind::Int(true) if self.results().inner_size() == 64 => "long".to_string(),
8990
// TypeKind::Int(false) if self.results().inner_size() == 64 => "unsigned long".to_string(),

0 commit comments

Comments
 (0)