1// RUN: llvm-mc -triple x86_64-unknown-unknown --show-encoding %s | FileCheck %s 2 3// CHECK: clrssbsy 485498096 4// CHECK: encoding: [0xf3,0x0f,0xae,0x34,0x25,0xf0,0x1c,0xf0,0x1c] 5clrssbsy 485498096 6 7// CHECK: clrssbsy 64(%rdx) 8// CHECK: encoding: [0xf3,0x0f,0xae,0x72,0x40] 9clrssbsy 64(%rdx) 10 11// CHECK: clrssbsy 64(%rdx,%rax,4) 12// CHECK: encoding: [0xf3,0x0f,0xae,0x74,0x82,0x40] 13clrssbsy 64(%rdx,%rax,4) 14 15// CHECK: clrssbsy -64(%rdx,%rax,4) 16// CHECK: encoding: [0xf3,0x0f,0xae,0x74,0x82,0xc0] 17clrssbsy -64(%rdx,%rax,4) 18 19// CHECK: clrssbsy 64(%rdx,%rax) 20// CHECK: encoding: [0xf3,0x0f,0xae,0x74,0x02,0x40] 21clrssbsy 64(%rdx,%rax) 22 23// CHECK: clrssbsy (%rdx) 24// CHECK: encoding: [0xf3,0x0f,0xae,0x32] 25clrssbsy (%rdx) 26 27// CHECK: endbr64 28// CHECK: # encoding: [0xf3,0x0f,0x1e,0xfa] 29endbr64 30 31// CHECK: endbr32 32// CHECK: # encoding: [0xf3,0x0f,0x1e,0xfb] 33endbr32 34 35// CHECK: incsspd %r13d 36// CHECK: # encoding: [0xf3,0x41,0x0f,0xae,0xed] 37incsspd %r13d 38 39// CHECK: incsspq %r15 40// CHECK: # encoding: [0xf3,0x49,0x0f,0xae,0xef] 41incsspq %r15 42 43// CHECK: rdsspd %r13d 44// CHECK: encoding: [0xf3,0x41,0x0f,0x1e,0xcd] 45rdsspd %r13d 46 47// CHECK: rdsspq %r15 48// CHECK: encoding: [0xf3,0x49,0x0f,0x1e,0xcf] 49rdsspq %r15 50 51// CHECK: rstorssp 485498096 52// CHECK: encoding: [0xf3,0x0f,0x01,0x2c,0x25,0xf0,0x1c,0xf0,0x1c] 53rstorssp 485498096 54 55// CHECK: rstorssp 64(%rdx) 56// CHECK: encoding: [0xf3,0x0f,0x01,0x6a,0x40] 57rstorssp 64(%rdx) 58 59// CHECK: rstorssp 64(%rdx,%rax,4) 60// CHECK: encoding: [0xf3,0x0f,0x01,0x6c,0x82,0x40] 61rstorssp 64(%rdx,%rax,4) 62 63// CHECK: rstorssp -64(%rdx,%rax,4) 64// CHECK: encoding: [0xf3,0x0f,0x01,0x6c,0x82,0xc0] 65rstorssp -64(%rdx,%rax,4) 66 67// CHECK: rstorssp 64(%rdx,%rax) 68// CHECK: encoding: [0xf3,0x0f,0x01,0x6c,0x02,0x40] 69rstorssp 64(%rdx,%rax) 70 71// CHECK: rstorssp (%rdx) 72// CHECK: encoding: [0xf3,0x0f,0x01,0x2a] 73rstorssp (%rdx) 74 75// CHECK: saveprevssp 76// CHECK: encoding: [0xf3,0x0f,0x01,0xea] 77saveprevssp 78 79// CHECK: setssbsy 80// CHECK: # encoding: [0xf3,0x0f,0x01,0xe8] 81setssbsy 82 83// CHECK: wrssd %r13d, 485498096 84// CHECK: encoding: [0x44,0x0f,0x38,0xf6,0x2c,0x25,0xf0,0x1c,0xf0,0x1c] 85wrssd %r13d, 485498096 86 87// CHECK: wrssd %r13d, 64(%rdx) 88// CHECK: encoding: [0x44,0x0f,0x38,0xf6,0x6a,0x40] 89wrssd %r13d, 64(%rdx) 90 91// CHECK: wrssd %r13d, 64(%rdx,%rax,4) 92// CHECK: encoding: [0x44,0x0f,0x38,0xf6,0x6c,0x82,0x40] 93wrssd %r13d, 64(%rdx,%rax,4) 94 95// CHECK: wrssd %r13d, -64(%rdx,%rax,4) 96// CHECK: encoding: [0x44,0x0f,0x38,0xf6,0x6c,0x82,0xc0] 97wrssd %r13d, -64(%rdx,%rax,4) 98 99// CHECK: wrssd %r13d, 64(%rdx,%rax) 100// CHECK: encoding: [0x44,0x0f,0x38,0xf6,0x6c,0x02,0x40] 101wrssd %r13d, 64(%rdx,%rax) 102 103// CHECK: wrssd %r13d, (%rdx) 104// CHECK: encoding: [0x44,0x0f,0x38,0xf6,0x2a] 105wrssd %r13d, (%rdx) 106 107// CHECK: wrssq %r15, 485498096 108// CHECK: encoding: [0x4c,0x0f,0x38,0xf6,0x3c,0x25,0xf0,0x1c,0xf0,0x1c] 109wrssq %r15, 485498096 110 111// CHECK: wrssq %r15, 64(%rdx) 112// CHECK: encoding: [0x4c,0x0f,0x38,0xf6,0x7a,0x40] 113wrssq %r15, 64(%rdx) 114 115// CHECK: wrssq %r15, 64(%rdx,%rax,4) 116// CHECK: encoding: [0x4c,0x0f,0x38,0xf6,0x7c,0x82,0x40] 117wrssq %r15, 64(%rdx,%rax,4) 118 119// CHECK: wrssq %r15, -64(%rdx,%rax,4) 120// CHECK: encoding: [0x4c,0x0f,0x38,0xf6,0x7c,0x82,0xc0] 121wrssq %r15, -64(%rdx,%rax,4) 122 123// CHECK: wrssq %r15, 64(%rdx,%rax) 124// CHECK: encoding: [0x4c,0x0f,0x38,0xf6,0x7c,0x02,0x40] 125wrssq %r15, 64(%rdx,%rax) 126 127// CHECK: wrssq %r15, (%rdx) 128// CHECK: encoding: [0x4c,0x0f,0x38,0xf6,0x3a] 129wrssq %r15, (%rdx) 130 131// CHECK: wrussd %r13d, 485498096 132// CHECK: encoding: [0x66,0x44,0x0f,0x38,0xf5,0x2c,0x25,0xf0,0x1c,0xf0,0x1c] 133wrussd %r13d, 485498096 134 135// CHECK: wrussd %r13d, 64(%rdx) 136// CHECK: encoding: [0x66,0x44,0x0f,0x38,0xf5,0x6a,0x40] 137wrussd %r13d, 64(%rdx) 138 139// CHECK: wrussd %r13d, 64(%rdx,%rax,4) 140// CHECK: encoding: [0x66,0x44,0x0f,0x38,0xf5,0x6c,0x82,0x40] 141wrussd %r13d, 64(%rdx,%rax,4) 142 143// CHECK: wrussd %r13d, -64(%rdx,%rax,4) 144// CHECK: encoding: [0x66,0x44,0x0f,0x38,0xf5,0x6c,0x82,0xc0] 145wrussd %r13d, -64(%rdx,%rax,4) 146 147// CHECK: wrussd %r13d, 64(%rdx,%rax) 148// CHECK: encoding: [0x66,0x44,0x0f,0x38,0xf5,0x6c,0x02,0x40] 149wrussd %r13d, 64(%rdx,%rax) 150 151// CHECK: wrussd %r13d, (%rdx) 152// CHECK: encoding: [0x66,0x44,0x0f,0x38,0xf5,0x2a] 153wrussd %r13d, (%rdx) 154 155// CHECK: wrussq %r15, 485498096 156// CHECK: encoding: [0x66,0x4c,0x0f,0x38,0xf5,0x3c,0x25,0xf0,0x1c,0xf0,0x1c] 157wrussq %r15, 485498096 158 159// CHECK: wrussq %r15, 64(%rdx) 160// CHECK: encoding: [0x66,0x4c,0x0f,0x38,0xf5,0x7a,0x40] 161wrussq %r15, 64(%rdx) 162 163// CHECK: wrussq %r15, 64(%rdx,%rax,4) 164// CHECK: encoding: [0x66,0x4c,0x0f,0x38,0xf5,0x7c,0x82,0x40] 165wrussq %r15, 64(%rdx,%rax,4) 166 167// CHECK: wrussq %r15, -64(%rdx,%rax,4) 168// CHECK: encoding: [0x66,0x4c,0x0f,0x38,0xf5,0x7c,0x82,0xc0] 169wrussq %r15, -64(%rdx,%rax,4) 170 171// CHECK: wrussq %r15, 64(%rdx,%rax) 172// CHECK: encoding: [0x66,0x4c,0x0f,0x38,0xf5,0x7c,0x02,0x40] 173wrussq %r15, 64(%rdx,%rax) 174 175// CHECK: wrussq %r15, (%rdx) 176// CHECK: encoding: [0x66,0x4c,0x0f,0x38,0xf5,0x3a] 177wrussq %r15, (%rdx) 178 179