@@ -127,42 +127,42 @@ mod test {
127127 use super :: * ;
128128 use stdarch_test:: assert_instr;
129129
130- #[ cfg_attr( test, assert_instr( irg) ) ]
130+ #[ cfg_attr( all ( test, not ( target_env = "msvc" ) ) , assert_instr( irg) ) ] // FIXME: MSVC `dumpbin` doesn't support MTE
131131 #[ allow( dead_code) ]
132132 #[ target_feature( enable = "mte" ) ]
133133 unsafe fn test_arm_mte_create_random_tag ( src : * const ( ) , mask : u64 ) -> * const ( ) {
134134 __arm_mte_create_random_tag ( src, mask)
135135 }
136136
137- #[ cfg_attr( test, assert_instr( addg) ) ]
137+ #[ cfg_attr( all ( test, not ( target_env = "msvc" ) ) , assert_instr( addg) ) ]
138138 #[ allow( dead_code) ]
139139 #[ target_feature( enable = "mte" ) ]
140140 unsafe fn test_arm_mte_increment_tag ( src : * const ( ) ) -> * const ( ) {
141141 __arm_mte_increment_tag :: < 1 , _ > ( src)
142142 }
143143
144- #[ cfg_attr( test, assert_instr( gmi) ) ]
144+ #[ cfg_attr( all ( test, not ( target_env = "msvc" ) ) , assert_instr( gmi) ) ]
145145 #[ allow( dead_code) ]
146146 #[ target_feature( enable = "mte" ) ]
147147 unsafe fn test_arm_mte_exclude_tag ( src : * const ( ) , excluded : u64 ) -> u64 {
148148 __arm_mte_exclude_tag ( src, excluded)
149149 }
150150
151- #[ cfg_attr( test, assert_instr( stg) ) ]
151+ #[ cfg_attr( all ( test, not ( target_env = "msvc" ) ) , assert_instr( stg) ) ]
152152 #[ allow( dead_code) ]
153153 #[ target_feature( enable = "mte" ) ]
154154 unsafe fn test_arm_mte_set_tag ( src : * const ( ) ) {
155155 __arm_mte_set_tag ( src)
156156 }
157157
158- #[ cfg_attr( test, assert_instr( ldg) ) ]
158+ #[ cfg_attr( all ( test, not ( target_env = "msvc" ) ) , assert_instr( ldg) ) ]
159159 #[ allow( dead_code) ]
160160 #[ target_feature( enable = "mte" ) ]
161161 unsafe fn test_arm_mte_get_tag ( src : * const ( ) ) -> * const ( ) {
162162 __arm_mte_get_tag ( src)
163163 }
164164
165- #[ cfg_attr( test, assert_instr( subp) ) ]
165+ #[ cfg_attr( all ( test, not ( target_env = "msvc" ) ) , assert_instr( subp) ) ]
166166 #[ allow( dead_code) ]
167167 #[ target_feature( enable = "mte" ) ]
168168 unsafe fn test_arm_mte_ptrdiff ( a : * const ( ) , b : * const ( ) ) -> i64 {
0 commit comments