Skip to content

Commit 8d094ca

Browse files
committed
correct assert_instr
1 parent 85718e2 commit 8d094ca

File tree

3 files changed

+14
-13
lines changed

3 files changed

+14
-13
lines changed

crates/core_arch/src/aarch64/neon/generated.rs

+8-8
Original file line numberDiff line numberDiff line change
@@ -1156,7 +1156,7 @@ pub unsafe fn vcvtx_high_f32_f64(a: float32x2_t, b: float64x2_t) -> float32x4_t
11561156
/// Floating-point convert to signed fixed-point, rounding toward zero
11571157
#[inline]
11581158
#[target_feature(enable = "neon")]
1159-
#[cfg_attr(test, assert_instr(fcvtzs))]
1159+
#[cfg_attr(test, assert_instr("fcvtzs.f32"))]
11601160
pub unsafe fn vcvt_s32_f32(a: float32x2_t) -> int32x2_t {
11611161
#[allow(improper_ctypes)]
11621162
extern "C" {
@@ -1169,7 +1169,7 @@ pub unsafe fn vcvt_s32_f32(a: float32x2_t) -> int32x2_t {
11691169
/// Floating-point convert to signed fixed-point, rounding toward zero
11701170
#[inline]
11711171
#[target_feature(enable = "neon")]
1172-
#[cfg_attr(test, assert_instr(fcvtzs))]
1172+
#[cfg_attr(test, assert_instr("fcvtzs.f32"))]
11731173
pub unsafe fn vcvtq_s32_f32(a: float32x4_t) -> int32x4_t {
11741174
#[allow(improper_ctypes)]
11751175
extern "C" {
@@ -1182,7 +1182,7 @@ pub unsafe fn vcvtq_s32_f32(a: float32x4_t) -> int32x4_t {
11821182
/// Floating-point convert to signed fixed-point, rounding toward zero
11831183
#[inline]
11841184
#[target_feature(enable = "neon")]
1185-
#[cfg_attr(test, assert_instr(fcvtzs))]
1185+
#[cfg_attr(test, assert_instr("fcvtzs.f64"))]
11861186
pub unsafe fn vcvt_s64_f64(a: float64x1_t) -> int64x1_t {
11871187
#[allow(improper_ctypes)]
11881188
extern "C" {
@@ -1195,7 +1195,7 @@ pub unsafe fn vcvt_s64_f64(a: float64x1_t) -> int64x1_t {
11951195
/// Floating-point convert to signed fixed-point, rounding toward zero
11961196
#[inline]
11971197
#[target_feature(enable = "neon")]
1198-
#[cfg_attr(test, assert_instr(fcvtzs))]
1198+
#[cfg_attr(test, assert_instr("fcvtzs.f64"))]
11991199
pub unsafe fn vcvtq_s64_f64(a: float64x2_t) -> int64x2_t {
12001200
#[allow(improper_ctypes)]
12011201
extern "C" {
@@ -1416,7 +1416,7 @@ pub unsafe fn vcvtpq_s64_f64(a: float64x2_t) -> int64x2_t {
14161416
/// Floating-point convert to unsigned fixed-point, rounding toward zero
14171417
#[inline]
14181418
#[target_feature(enable = "neon")]
1419-
#[cfg_attr(test, assert_instr(fcvtzu))]
1419+
#[cfg_attr(test, assert_instr("fcvtzu.f32"))]
14201420
pub unsafe fn vcvt_u32_f32(a: float32x2_t) -> uint32x2_t {
14211421
#[allow(improper_ctypes)]
14221422
extern "C" {
@@ -1429,7 +1429,7 @@ pub unsafe fn vcvt_u32_f32(a: float32x2_t) -> uint32x2_t {
14291429
/// Floating-point convert to unsigned fixed-point, rounding toward zero
14301430
#[inline]
14311431
#[target_feature(enable = "neon")]
1432-
#[cfg_attr(test, assert_instr(fcvtzu))]
1432+
#[cfg_attr(test, assert_instr("fcvtzu.f32"))]
14331433
pub unsafe fn vcvtq_u32_f32(a: float32x4_t) -> uint32x4_t {
14341434
#[allow(improper_ctypes)]
14351435
extern "C" {
@@ -1442,7 +1442,7 @@ pub unsafe fn vcvtq_u32_f32(a: float32x4_t) -> uint32x4_t {
14421442
/// Floating-point convert to unsigned fixed-point, rounding toward zero
14431443
#[inline]
14441444
#[target_feature(enable = "neon")]
1445-
#[cfg_attr(test, assert_instr(fcvtzu))]
1445+
#[cfg_attr(test, assert_instr("fcvtzu.f64"))]
14461446
pub unsafe fn vcvt_u64_f64(a: float64x1_t) -> uint64x1_t {
14471447
#[allow(improper_ctypes)]
14481448
extern "C" {
@@ -1455,7 +1455,7 @@ pub unsafe fn vcvt_u64_f64(a: float64x1_t) -> uint64x1_t {
14551455
/// Floating-point convert to unsigned fixed-point, rounding toward zero
14561456
#[inline]
14571457
#[target_feature(enable = "neon")]
1458-
#[cfg_attr(test, assert_instr(fcvtzu))]
1458+
#[cfg_attr(test, assert_instr("fcvtzu.f64"))]
14591459
pub unsafe fn vcvtq_u64_f64(a: float64x2_t) -> uint64x2_t {
14601460
#[allow(improper_ctypes)]
14611461
extern "C" {

crates/stdarch-gen/neon.spec

+2-2
Original file line numberDiff line numberDiff line change
@@ -678,7 +678,7 @@ double-suffixes
678678
a = -1.0, 2.0, -3.0, 4.0
679679
validate -1, 2, -3, 4
680680

681-
aarch64 = fcvtzs
681+
aarch64 = fcvtzs.s
682682
link-aarch64 = fcvtzs._EXT2_._EXT_
683683
generate float32x2_t:int32x2_t, float32x4_t:int32x4_t, float64x1_t:int64x1_t, float64x2_t:int64x2_t
684684

@@ -728,7 +728,7 @@ double-suffixes
728728
a = 1.0, 2.0, 3.0, 4.0
729729
validate 1, 2, 3, 4
730730

731-
aarch64 = fcvtzu
731+
aarch64 = fcvtzu.s
732732
link-aarch64 = fcvtzu._EXT2_._EXT_
733733
generate float32x2_t:uint32x2_t, float32x4_t:uint32x4_t, float64x1_t:uint64x1_t, float64x2_t:uint64x2_t
734734

crates/stdarch-gen/src/main.rs

+4-3
Original file line numberDiff line numberDiff line change
@@ -542,7 +542,7 @@ fn gen_aarch64(
542542
#[cfg_attr(test, assert_instr({}))]
543543
{}
544544
"#,
545-
current_comment, current_aarch64, call
545+
current_comment, expand_intrinsic(&current_aarch64, in_t), call
546546
);
547547

548548
let test = gen_test(
@@ -1190,7 +1190,7 @@ mod test {
11901190
tests_aarch64.push('}');
11911191
tests_aarch64.push('\n');
11921192

1193-
let arm_out_path: PathBuf = PathBuf::from(env::var("OUT_DIR").unwrap())
1193+
let arm_out_path: PathBuf = PathBuf::from("./crates/core_arch")
11941194
.join("src")
11951195
.join("arm")
11961196
.join("neon");
@@ -1200,7 +1200,8 @@ mod test {
12001200
file_arm.write_all(out_arm.as_bytes())?;
12011201
file_arm.write_all(tests_arm.as_bytes())?;
12021202

1203-
let aarch64_out_path: PathBuf = PathBuf::from(env::var("OUT_DIR").unwrap())
1203+
//let aarch64_out_path: PathBuf = PathBuf::from(env::var("OUT_DIR").unwrap())
1204+
let aarch64_out_path: PathBuf = PathBuf::from("./crates/core_arch")
12041205
.join("src")
12051206
.join("aarch64")
12061207
.join("neon");

0 commit comments

Comments
 (0)