@@ -19,11 +19,11 @@ bitflags! {
19
19
/// Enables using MXCSR and the XMM registers
20
20
/// with `XSAVE`/`XRSTOR`.
21
21
///
22
- /// Must be set if [`YMM `](XCr0Flags::YMM ) is set.
22
+ /// Must be set if [`AVX `](XCr0Flags::AVX ) is set.
23
23
const SSE = 1 <<1 ;
24
- /// Enables AVX instructions and using the upper halves of the YMM registers
24
+ /// Enables AVX instructions and using the upper halves of the AVX registers
25
25
/// with `XSAVE`/`XRSTOR`.
26
- const YMM = 1 <<2 ;
26
+ const AVX = 1 <<2 ;
27
27
/// Enables MPX instructions and using the BND0-BND3 bound registers
28
28
/// with `XSAVE`/`XRSTOR` (Intel Only).
29
29
const BNDREG = 1 << 3 ;
@@ -95,10 +95,10 @@ mod x86_64 {
95
95
let new_value = reserved | flags. bits ( ) ;
96
96
97
97
assert ! ( flags. contains( XCr0Flags :: X87 ) , "The X87 flag must be set" ) ;
98
- if flags. contains ( XCr0Flags :: YMM ) {
98
+ if flags. contains ( XCr0Flags :: AVX ) {
99
99
assert ! (
100
100
flags. contains( XCr0Flags :: SSE ) ,
101
- "AVX/YMM cannot be enabled without enabling SSE"
101
+ "AVX cannot be enabled without enabling SSE"
102
102
) ;
103
103
}
104
104
let mpx = XCr0Flags :: BNDREG | XCr0Flags :: BNDCSR ;
@@ -111,8 +111,8 @@ mod x86_64 {
111
111
let avx512 = XCr0Flags :: OPMASK | XCr0Flags :: ZMM_HI256 | XCr0Flags :: HI16_ZMM ;
112
112
if flags. intersects ( avx512) {
113
113
assert ! (
114
- flags. contains( XCr0Flags :: YMM ) ,
115
- "AVX-512 cannot be enabled without enabling AVX/YMM "
114
+ flags. contains( XCr0Flags :: AVX ) ,
115
+ "AVX-512 cannot be enabled without enabling AVX"
116
116
) ;
117
117
assert ! (
118
118
flags. contains( avx512) ,
0 commit comments