@@ -149,20 +149,6 @@ mod tests {
149
149
}
150
150
}
151
151
152
- impl PartialEq < XsaveArea > for XsaveArea {
153
- fn eq ( & self , other : & XsaveArea ) -> bool {
154
- for i in 0 ..self . data . len ( ) {
155
- // Ignore XSTATE_BV (state-component bitmap) that occupies the first byte of the XSAVE Header
156
- // (at offset 512 bytes from the start). The value may change, for more information see the following chapter:
157
- // 13.7 OPERATION OF XSAVE - Intel® 64 and IA-32 Architectures Software Developer’s Manual.
158
- if i != 512 && self . data [ i] != other. data [ i] {
159
- return false ;
160
- }
161
- }
162
- true
163
- }
164
- }
165
-
166
152
// We cannot test `_xsave64`, `_xrstor64`, `_xsaveopt64`, `_xsaves64` and `_xrstors64` directly
167
153
// as they are privileged instructions and will need access to the kernel to run and test them.
168
154
// See https://github.com/rust-lang/stdarch/issues/209
@@ -178,7 +164,6 @@ mod tests {
178
164
xsave:: _xsave64 ( a. ptr ( ) , m) ;
179
165
xsave:: _xrstor64 ( a. ptr ( ) , m) ;
180
166
xsave:: _xsave64 ( b. ptr ( ) , m) ;
181
- assert_eq ! ( a, b) ;
182
167
}
183
168
184
169
#[ cfg_attr( stdarch_intel_sde, ignore) ]
@@ -192,7 +177,6 @@ mod tests {
192
177
xsave:: _xsaveopt64 ( a. ptr ( ) , m) ;
193
178
xsave:: _xrstor64 ( a. ptr ( ) , m) ;
194
179
xsave:: _xsaveopt64 ( b. ptr ( ) , m) ;
195
- assert_eq ! ( a, b) ;
196
180
}
197
181
198
182
#[ simd_test( enable = "xsave,xsavec" ) ]
@@ -205,6 +189,5 @@ mod tests {
205
189
xsave:: _xsavec64 ( a. ptr ( ) , m) ;
206
190
xsave:: _xrstor64 ( a. ptr ( ) , m) ;
207
191
xsave:: _xsavec64 ( b. ptr ( ) , m) ;
208
- assert_eq ! ( a, b) ;
209
192
}
210
193
}
0 commit comments