@@ -127,42 +127,42 @@ mod test {
127
127
use super :: * ;
128
128
use stdarch_test:: assert_instr;
129
129
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
131
131
#[ allow( dead_code) ]
132
132
#[ target_feature( enable = "mte" ) ]
133
133
unsafe fn test_arm_mte_create_random_tag ( src : * const ( ) , mask : u64 ) -> * const ( ) {
134
134
__arm_mte_create_random_tag ( src, mask)
135
135
}
136
136
137
- #[ cfg_attr( test, assert_instr( addg) ) ]
137
+ #[ cfg_attr( all ( test, not ( target_env = "msvc" ) ) , assert_instr( addg) ) ]
138
138
#[ allow( dead_code) ]
139
139
#[ target_feature( enable = "mte" ) ]
140
140
unsafe fn test_arm_mte_increment_tag ( src : * const ( ) ) -> * const ( ) {
141
141
__arm_mte_increment_tag :: < 1 , _ > ( src)
142
142
}
143
143
144
- #[ cfg_attr( test, assert_instr( gmi) ) ]
144
+ #[ cfg_attr( all ( test, not ( target_env = "msvc" ) ) , assert_instr( gmi) ) ]
145
145
#[ allow( dead_code) ]
146
146
#[ target_feature( enable = "mte" ) ]
147
147
unsafe fn test_arm_mte_exclude_tag ( src : * const ( ) , excluded : u64 ) -> u64 {
148
148
__arm_mte_exclude_tag ( src, excluded)
149
149
}
150
150
151
- #[ cfg_attr( test, assert_instr( stg) ) ]
151
+ #[ cfg_attr( all ( test, not ( target_env = "msvc" ) ) , assert_instr( stg) ) ]
152
152
#[ allow( dead_code) ]
153
153
#[ target_feature( enable = "mte" ) ]
154
154
unsafe fn test_arm_mte_set_tag ( src : * const ( ) ) {
155
155
__arm_mte_set_tag ( src)
156
156
}
157
157
158
- #[ cfg_attr( test, assert_instr( ldg) ) ]
158
+ #[ cfg_attr( all ( test, not ( target_env = "msvc" ) ) , assert_instr( ldg) ) ]
159
159
#[ allow( dead_code) ]
160
160
#[ target_feature( enable = "mte" ) ]
161
161
unsafe fn test_arm_mte_get_tag ( src : * const ( ) ) -> * const ( ) {
162
162
__arm_mte_get_tag ( src)
163
163
}
164
164
165
- #[ cfg_attr( test, assert_instr( subp) ) ]
165
+ #[ cfg_attr( all ( test, not ( target_env = "msvc" ) ) , assert_instr( subp) ) ]
166
166
#[ allow( dead_code) ]
167
167
#[ target_feature( enable = "mte" ) ]
168
168
unsafe fn test_arm_mte_ptrdiff ( a : * const ( ) , b : * const ( ) ) -> i64 {
0 commit comments