@@ -149,20 +149,6 @@ mod tests {
149149        } 
150150    } 
151151
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- 
166152    // We cannot test `_xsave64`, `_xrstor64`, `_xsaveopt64`, `_xsaves64` and `_xrstors64` directly 
167153    // as they are privileged instructions and will need access to the kernel to run and test them. 
168154    // See https://github.com/rust-lang/stdarch/issues/209 
@@ -178,7 +164,6 @@ mod tests {
178164        xsave:: _xsave64 ( a. ptr ( ) ,  m) ; 
179165        xsave:: _xrstor64 ( a. ptr ( ) ,  m) ; 
180166        xsave:: _xsave64 ( b. ptr ( ) ,  m) ; 
181-         assert_eq ! ( a,  b) ; 
182167    } 
183168
184169    #[ cfg_attr( stdarch_intel_sde,  ignore) ]  
@@ -192,7 +177,6 @@ mod tests {
192177        xsave:: _xsaveopt64 ( a. ptr ( ) ,  m) ; 
193178        xsave:: _xrstor64 ( a. ptr ( ) ,  m) ; 
194179        xsave:: _xsaveopt64 ( b. ptr ( ) ,  m) ; 
195-         assert_eq ! ( a,  b) ; 
196180    } 
197181
198182    #[ simd_test( enable = "xsave,xsavec" ) ]  
@@ -205,6 +189,5 @@ mod tests {
205189        xsave:: _xsavec64 ( a. ptr ( ) ,  m) ; 
206190        xsave:: _xrstor64 ( a. ptr ( ) ,  m) ; 
207191        xsave:: _xsavec64 ( b. ptr ( ) ,  m) ; 
208-         assert_eq ! ( a,  b) ; 
209192    } 
210193} 
0 commit comments