From 616b5d6acd777ef1100a81daea2121d53e0ca003 Mon Sep 17 00:00:00 2001 From: Tsukasa OI Date: Sat, 31 May 2025 05:06:05 +0000 Subject: [PATCH 1/2] intrinsic-test: Use `c_prefix` to generate type names To make the type names to test correct, this commit replaces occurrences of `rust_prefix` to `c_prefix` where necessary. --- crates/intrinsic-test/src/arm/types.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/intrinsic-test/src/arm/types.rs b/crates/intrinsic-test/src/arm/types.rs index 68510658b3..9f3d6302f4 100644 --- a/crates/intrinsic-test/src/arm/types.rs +++ b/crates/intrinsic-test/src/arm/types.rs @@ -35,7 +35,7 @@ impl IntrinsicTypeDefinition for ArmIntrinsicType { fn rust_type(&self) -> String { let rust_prefix = self.0.kind.rust_prefix(); - let c_prefix = self.0.kind.rust_prefix(); + let c_prefix = self.0.kind.c_prefix(); if self.0.ptr_constant { self.c_type() } else if let (Some(bit_len), simd_len, vec_len) = From f89ef97b2a508f98e23c53fc292f2e3b2e05ce2c Mon Sep 17 00:00:00 2001 From: Tsukasa OI Date: Sat, 31 May 2025 05:06:05 +0000 Subject: [PATCH 2/2] intrinsic-test: Reverse `has_constraints()` condition It seems it returns true when *no* constraints are found, opposite to the expected behavior of the function name. This commit reverses condition as the name suggests. --- crates/intrinsic-test/src/common/argument.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/intrinsic-test/src/common/argument.rs b/crates/intrinsic-test/src/common/argument.rs index 8f1573f17d..443ccb919f 100644 --- a/crates/intrinsic-test/src/common/argument.rs +++ b/crates/intrinsic-test/src/common/argument.rs @@ -33,7 +33,7 @@ where } pub fn has_constraint(&self) -> bool { - self.constraint.is_none() + self.constraint.is_some() } pub fn type_and_name_from_c(arg: &str) -> (&str, &str) {