@@ -109,42 +109,46 @@ mod test {
109109 use super :: * ;
110110 use stdarch_test:: assert_instr;
111111
112- #[ cfg_attr( all( test, not( target_env = "msvc" ) ) , assert_instr( irg) ) ] // FIXME: MSVC `dumpbin` doesn't support MTE
112+ // Instruction tests are separate because the functions use generics.
113+ //
114+ // FIXME: As of 2026 MSVC `dumpbin` doesn't support MTE.
115+
116+ #[ cfg_attr( not( target_env = "msvc" ) , assert_instr( irg) ) ]
113117 #[ allow( dead_code) ]
114118 #[ target_feature( enable = "mte" ) ]
115119 unsafe fn test_arm_mte_create_random_tag ( src : * const ( ) , mask : u64 ) -> * const ( ) {
116120 __arm_mte_create_random_tag ( src, mask)
117121 }
118122
119- #[ cfg_attr( all ( test , not( target_env = "msvc" ) ) , assert_instr( addg) ) ]
123+ #[ cfg_attr( not( target_env = "msvc" ) , assert_instr( addg) ) ]
120124 #[ allow( dead_code) ]
121125 #[ target_feature( enable = "mte" ) ]
122126 unsafe fn test_arm_mte_increment_tag ( src : * const ( ) ) -> * const ( ) {
123127 __arm_mte_increment_tag :: < 1 , _ > ( src)
124128 }
125129
126- #[ cfg_attr( all ( test , not( target_env = "msvc" ) ) , assert_instr( gmi) ) ]
130+ #[ cfg_attr( not( target_env = "msvc" ) , assert_instr( gmi) ) ]
127131 #[ allow( dead_code) ]
128132 #[ target_feature( enable = "mte" ) ]
129133 unsafe fn test_arm_mte_exclude_tag ( src : * const ( ) , excluded : u64 ) -> u64 {
130134 __arm_mte_exclude_tag ( src, excluded)
131135 }
132136
133- #[ cfg_attr( all ( test , not( target_env = "msvc" ) ) , assert_instr( stg) ) ]
137+ #[ cfg_attr( not( target_env = "msvc" ) , assert_instr( stg) ) ]
134138 #[ allow( dead_code) ]
135139 #[ target_feature( enable = "mte" ) ]
136140 unsafe fn test_arm_mte_set_tag ( src : * const ( ) ) {
137141 __arm_mte_set_tag ( src)
138142 }
139143
140- #[ cfg_attr( all ( test , not( target_env = "msvc" ) ) , assert_instr( ldg) ) ]
144+ #[ cfg_attr( not( target_env = "msvc" ) , assert_instr( ldg) ) ]
141145 #[ allow( dead_code) ]
142146 #[ target_feature( enable = "mte" ) ]
143147 unsafe fn test_arm_mte_get_tag ( src : * const ( ) ) -> * const ( ) {
144148 __arm_mte_get_tag ( src)
145149 }
146150
147- #[ cfg_attr( all ( test , not( target_env = "msvc" ) ) , assert_instr( subp) ) ]
151+ #[ cfg_attr( not( target_env = "msvc" ) , assert_instr( subp) ) ]
148152 #[ allow( dead_code) ]
149153 #[ target_feature( enable = "mte" ) ]
150154 unsafe fn test_arm_mte_ptrdiff ( a : * const ( ) , b : * const ( ) ) -> i64 {
0 commit comments