Skip to content

Commit 05e8072

Browse files
authored
Fix i8mm feature with bootstrap compiler. (#1252)
1 parent 63a720c commit 05e8072

File tree

1 file changed

+6
-3
lines changed
  • crates/core_arch/src/arm_shared/neon

1 file changed

+6
-3
lines changed

crates/core_arch/src/arm_shared/neon/mod.rs

+6-3
Original file line numberDiff line numberDiff line change
@@ -4808,7 +4808,8 @@ pub unsafe fn vpadalq_u32(a: uint64x2_t, b: uint32x4_t) -> uint64x2_t {
48084808

48094809
/// 8-bit integer matrix multiply-accumulate
48104810
#[inline]
4811-
#[target_feature(enable = "neon,i8mm")]
4811+
#[cfg_attr(not(bootstrap), target_feature(enable = "i8mm"))]
4812+
#[target_feature(enable = "neon")]
48124813
#[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))]
48134814
#[cfg_attr(all(test, target_arch = "arm"), assert_instr(nop))]
48144815
#[cfg_attr(all(test, target_arch = "aarch64"), assert_instr(smmla))]
@@ -4827,7 +4828,8 @@ pub unsafe fn vmmlaq_s32(a: int32x4_t, b: int8x16_t, c: int8x16_t) -> int32x4_t
48274828

48284829
/// 8-bit integer matrix multiply-accumulate
48294830
#[inline]
4830-
#[target_feature(enable = "neon,i8mm")]
4831+
#[cfg_attr(not(bootstrap), target_feature(enable = "i8mm"))]
4832+
#[target_feature(enable = "neon")]
48314833
#[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))]
48324834
#[cfg_attr(all(test, target_arch = "arm"), assert_instr(nop))]
48334835
#[cfg_attr(all(test, target_arch = "aarch64"), assert_instr(ummla))]
@@ -4846,7 +4848,8 @@ pub unsafe fn vmmlaq_u32(a: uint32x4_t, b: uint8x16_t, c: uint8x16_t) -> uint32x
48464848

48474849
/// Unsigned and signed 8-bit integer matrix multiply-accumulate
48484850
#[inline]
4849-
#[target_feature(enable = "neon,i8mm")]
4851+
#[cfg_attr(not(bootstrap), target_feature(enable = "i8mm"))]
4852+
#[target_feature(enable = "neon")]
48504853
#[cfg_attr(target_arch = "arm", target_feature(enable = "v8"))]
48514854
#[cfg_attr(all(test, target_arch = "arm"), assert_instr(nop))]
48524855
#[cfg_attr(all(test, target_arch = "aarch64"), assert_instr(usmmla))]

0 commit comments

Comments
 (0)