1// RUN: llvm-mc -triple x86_64-unknown-unknown --show-encoding %s | FileCheck %s 2 3// CHECK: clts 4// CHECK: encoding: [0x0f,0x06] 5clts 6 7// CHECK: larl 485498096, %r13d 8// CHECK: encoding: [0x44,0x0f,0x02,0x2c,0x25,0xf0,0x1c,0xf0,0x1c] 9larl 485498096, %r13d 10 11// CHECK: larl 64(%rdx), %r13d 12// CHECK: encoding: [0x44,0x0f,0x02,0x6a,0x40] 13larl 64(%rdx), %r13d 14 15// CHECK: larl 64(%rdx,%rax,4), %r13d 16// CHECK: encoding: [0x44,0x0f,0x02,0x6c,0x82,0x40] 17larl 64(%rdx,%rax,4), %r13d 18 19// CHECK: larl -64(%rdx,%rax,4), %r13d 20// CHECK: encoding: [0x44,0x0f,0x02,0x6c,0x82,0xc0] 21larl -64(%rdx,%rax,4), %r13d 22 23// CHECK: larl 64(%rdx,%rax), %r13d 24// CHECK: encoding: [0x44,0x0f,0x02,0x6c,0x02,0x40] 25larl 64(%rdx,%rax), %r13d 26 27// CHECK: larl %r13d, %r13d 28// CHECK: encoding: [0x45,0x0f,0x02,0xed] 29larl %r13d, %r13d 30 31// CHECK: larl (%rdx), %r13d 32// CHECK: encoding: [0x44,0x0f,0x02,0x2a] 33larl (%rdx), %r13d 34 35// CHECK: lgdtq 485498096 36// CHECK: encoding: [0x0f,0x01,0x14,0x25,0xf0,0x1c,0xf0,0x1c] 37lgdtq 485498096 38 39// CHECK: lgdtq 64(%rdx) 40// CHECK: encoding: [0x0f,0x01,0x52,0x40] 41lgdtq 64(%rdx) 42 43// CHECK: lgdtq 64(%rdx,%rax,4) 44// CHECK: encoding: [0x0f,0x01,0x54,0x82,0x40] 45lgdtq 64(%rdx,%rax,4) 46 47// CHECK: lgdtq -64(%rdx,%rax,4) 48// CHECK: encoding: [0x0f,0x01,0x54,0x82,0xc0] 49lgdtq -64(%rdx,%rax,4) 50 51// CHECK: lgdtq 64(%rdx,%rax) 52// CHECK: encoding: [0x0f,0x01,0x54,0x02,0x40] 53lgdtq 64(%rdx,%rax) 54 55// CHECK: lgdtq (%rdx) 56// CHECK: encoding: [0x0f,0x01,0x12] 57lgdtq (%rdx) 58 59// CHECK: lidtq 485498096 60// CHECK: encoding: [0x0f,0x01,0x1c,0x25,0xf0,0x1c,0xf0,0x1c] 61lidtq 485498096 62 63// CHECK: lidtq 64(%rdx) 64// CHECK: encoding: [0x0f,0x01,0x5a,0x40] 65lidtq 64(%rdx) 66 67// CHECK: lidtq 64(%rdx,%rax,4) 68// CHECK: encoding: [0x0f,0x01,0x5c,0x82,0x40] 69lidtq 64(%rdx,%rax,4) 70 71// CHECK: lidtq -64(%rdx,%rax,4) 72// CHECK: encoding: [0x0f,0x01,0x5c,0x82,0xc0] 73lidtq -64(%rdx,%rax,4) 74 75// CHECK: lidtq 64(%rdx,%rax) 76// CHECK: encoding: [0x0f,0x01,0x5c,0x02,0x40] 77lidtq 64(%rdx,%rax) 78 79// CHECK: lidtq (%rdx) 80// CHECK: encoding: [0x0f,0x01,0x1a] 81lidtq (%rdx) 82 83// CHECK: lldtw 485498096 84// CHECK: encoding: [0x0f,0x00,0x14,0x25,0xf0,0x1c,0xf0,0x1c] 85lldtw 485498096 86 87// CHECK: lldtw 64(%rdx) 88// CHECK: encoding: [0x0f,0x00,0x52,0x40] 89lldtw 64(%rdx) 90 91// CHECK: lldtw 64(%rdx,%rax,4) 92// CHECK: encoding: [0x0f,0x00,0x54,0x82,0x40] 93lldtw 64(%rdx,%rax,4) 94 95// CHECK: lldtw -64(%rdx,%rax,4) 96// CHECK: encoding: [0x0f,0x00,0x54,0x82,0xc0] 97lldtw -64(%rdx,%rax,4) 98 99// CHECK: lldtw 64(%rdx,%rax) 100// CHECK: encoding: [0x0f,0x00,0x54,0x02,0x40] 101lldtw 64(%rdx,%rax) 102 103// CHECK: lldtw %r11w 104// CHECK: encoding: [0x41,0x0f,0x00,0xd3] 105lldtw %r11w 106 107// CHECK: lldtw (%rdx) 108// CHECK: encoding: [0x0f,0x00,0x12] 109lldtw (%rdx) 110 111// CHECK: lmsww 485498096 112// CHECK: encoding: [0x0f,0x01,0x34,0x25,0xf0,0x1c,0xf0,0x1c] 113lmsww 485498096 114 115// CHECK: lmsww 64(%rdx) 116// CHECK: encoding: [0x0f,0x01,0x72,0x40] 117lmsww 64(%rdx) 118 119// CHECK: lmsww 64(%rdx,%rax,4) 120// CHECK: encoding: [0x0f,0x01,0x74,0x82,0x40] 121lmsww 64(%rdx,%rax,4) 122 123// CHECK: lmsww -64(%rdx,%rax,4) 124// CHECK: encoding: [0x0f,0x01,0x74,0x82,0xc0] 125lmsww -64(%rdx,%rax,4) 126 127// CHECK: lmsww 64(%rdx,%rax) 128// CHECK: encoding: [0x0f,0x01,0x74,0x02,0x40] 129lmsww 64(%rdx,%rax) 130 131// CHECK: lmsww %r11w 132// CHECK: encoding: [0x41,0x0f,0x01,0xf3] 133lmsww %r11w 134 135// CHECK: lmsww (%rdx) 136// CHECK: encoding: [0x0f,0x01,0x32] 137lmsww (%rdx) 138 139// CHECK: lsll 485498096, %r13d 140// CHECK: encoding: [0x44,0x0f,0x03,0x2c,0x25,0xf0,0x1c,0xf0,0x1c] 141lsll 485498096, %r13d 142 143// CHECK: lsll 64(%rdx), %r13d 144// CHECK: encoding: [0x44,0x0f,0x03,0x6a,0x40] 145lsll 64(%rdx), %r13d 146 147// CHECK: lsll 64(%rdx,%rax,4), %r13d 148// CHECK: encoding: [0x44,0x0f,0x03,0x6c,0x82,0x40] 149lsll 64(%rdx,%rax,4), %r13d 150 151// CHECK: lsll -64(%rdx,%rax,4), %r13d 152// CHECK: encoding: [0x44,0x0f,0x03,0x6c,0x82,0xc0] 153lsll -64(%rdx,%rax,4), %r13d 154 155// CHECK: lsll 64(%rdx,%rax), %r13d 156// CHECK: encoding: [0x44,0x0f,0x03,0x6c,0x02,0x40] 157lsll 64(%rdx,%rax), %r13d 158 159// CHECK: lsll %r13d, %r13d 160// CHECK: encoding: [0x45,0x0f,0x03,0xed] 161lsll %r13d, %r13d 162 163// CHECK: lsll (%rdx), %r13d 164// CHECK: encoding: [0x44,0x0f,0x03,0x2a] 165lsll (%rdx), %r13d 166 167// CHECK: ltrw 485498096 168// CHECK: encoding: [0x0f,0x00,0x1c,0x25,0xf0,0x1c,0xf0,0x1c] 169ltrw 485498096 170 171// CHECK: ltrw 64(%rdx) 172// CHECK: encoding: [0x0f,0x00,0x5a,0x40] 173ltrw 64(%rdx) 174 175// CHECK: ltrw 64(%rdx,%rax,4) 176// CHECK: encoding: [0x0f,0x00,0x5c,0x82,0x40] 177ltrw 64(%rdx,%rax,4) 178 179// CHECK: ltrw -64(%rdx,%rax,4) 180// CHECK: encoding: [0x0f,0x00,0x5c,0x82,0xc0] 181ltrw -64(%rdx,%rax,4) 182 183// CHECK: ltrw 64(%rdx,%rax) 184// CHECK: encoding: [0x0f,0x00,0x5c,0x02,0x40] 185ltrw 64(%rdx,%rax) 186 187// CHECK: ltrw %r11w 188// CHECK: encoding: [0x41,0x0f,0x00,0xdb] 189ltrw %r11w 190 191// CHECK: ltrw (%rdx) 192// CHECK: encoding: [0x0f,0x00,0x1a] 193ltrw (%rdx) 194 195// CHECK: sgdtq 485498096 196// CHECK: encoding: [0x0f,0x01,0x04,0x25,0xf0,0x1c,0xf0,0x1c] 197sgdtq 485498096 198 199// CHECK: sgdtq 64(%rdx) 200// CHECK: encoding: [0x0f,0x01,0x42,0x40] 201sgdtq 64(%rdx) 202 203// CHECK: sgdtq 64(%rdx,%rax,4) 204// CHECK: encoding: [0x0f,0x01,0x44,0x82,0x40] 205sgdtq 64(%rdx,%rax,4) 206 207// CHECK: sgdtq -64(%rdx,%rax,4) 208// CHECK: encoding: [0x0f,0x01,0x44,0x82,0xc0] 209sgdtq -64(%rdx,%rax,4) 210 211// CHECK: sgdtq 64(%rdx,%rax) 212// CHECK: encoding: [0x0f,0x01,0x44,0x02,0x40] 213sgdtq 64(%rdx,%rax) 214 215// CHECK: sgdtq (%rdx) 216// CHECK: encoding: [0x0f,0x01,0x02] 217sgdtq (%rdx) 218 219// CHECK: sidtq 485498096 220// CHECK: encoding: [0x0f,0x01,0x0c,0x25,0xf0,0x1c,0xf0,0x1c] 221sidtq 485498096 222 223// CHECK: sidtq 64(%rdx) 224// CHECK: encoding: [0x0f,0x01,0x4a,0x40] 225sidtq 64(%rdx) 226 227// CHECK: sidtq 64(%rdx,%rax,4) 228// CHECK: encoding: [0x0f,0x01,0x4c,0x82,0x40] 229sidtq 64(%rdx,%rax,4) 230 231// CHECK: sidtq -64(%rdx,%rax,4) 232// CHECK: encoding: [0x0f,0x01,0x4c,0x82,0xc0] 233sidtq -64(%rdx,%rax,4) 234 235// CHECK: sidtq 64(%rdx,%rax) 236// CHECK: encoding: [0x0f,0x01,0x4c,0x02,0x40] 237sidtq 64(%rdx,%rax) 238 239// CHECK: sidtq (%rdx) 240// CHECK: encoding: [0x0f,0x01,0x0a] 241sidtq (%rdx) 242 243// CHECK: sldtw %r13w 244// CHECK: encoding: [0x66,0x41,0x0f,0x00,0xc5] 245sldtw %r13w 246 247// CHECK: sldtl %r13d 248// CHECK: encoding: [0x41,0x0f,0x00,0xc5] 249sldtl %r13d 250 251// CHECK: sldtq %r13 252// CHECK: encoding: [0x49,0x0f,0x00,0xc5] 253sldtq %r13 254 255// CHECK: sldtw 485498096 256// CHECK: encoding: [0x0f,0x00,0x04,0x25,0xf0,0x1c,0xf0,0x1c] 257sldtw 485498096 258 259// CHECK: sldtw 64(%rdx) 260// CHECK: encoding: [0x0f,0x00,0x42,0x40] 261sldtw 64(%rdx) 262 263// CHECK: sldtw 64(%rdx,%rax,4) 264// CHECK: encoding: [0x0f,0x00,0x44,0x82,0x40] 265sldtw 64(%rdx,%rax,4) 266 267// CHECK: sldtw -64(%rdx,%rax,4) 268// CHECK: encoding: [0x0f,0x00,0x44,0x82,0xc0] 269sldtw -64(%rdx,%rax,4) 270 271// CHECK: sldtw 64(%rdx,%rax) 272// CHECK: encoding: [0x0f,0x00,0x44,0x02,0x40] 273sldtw 64(%rdx,%rax) 274 275// CHECK: sldtw (%rdx) 276// CHECK: encoding: [0x0f,0x00,0x02] 277sldtw (%rdx) 278 279// CHECK: smswl %r13d 280// CHECK: encoding: [0x41,0x0f,0x01,0xe5] 281smswl %r13d 282 283// CHECK: smsww 485498096 284// CHECK: encoding: [0x0f,0x01,0x24,0x25,0xf0,0x1c,0xf0,0x1c] 285smsww 485498096 286 287// CHECK: smsww 64(%rdx) 288// CHECK: encoding: [0x0f,0x01,0x62,0x40] 289smsww 64(%rdx) 290 291// CHECK: smsww 64(%rdx,%rax,4) 292// CHECK: encoding: [0x0f,0x01,0x64,0x82,0x40] 293smsww 64(%rdx,%rax,4) 294 295// CHECK: smsww -64(%rdx,%rax,4) 296// CHECK: encoding: [0x0f,0x01,0x64,0x82,0xc0] 297smsww -64(%rdx,%rax,4) 298 299// CHECK: smsww 64(%rdx,%rax) 300// CHECK: encoding: [0x0f,0x01,0x64,0x02,0x40] 301smsww 64(%rdx,%rax) 302 303// CHECK: smsww (%rdx) 304// CHECK: encoding: [0x0f,0x01,0x22] 305smsww (%rdx) 306 307// CHECK: strl %r13d 308// CHECK: encoding: [0x41,0x0f,0x00,0xcd] 309strl %r13d 310 311// CHECK: strw 485498096 312// CHECK: encoding: [0x0f,0x00,0x0c,0x25,0xf0,0x1c,0xf0,0x1c] 313strw 485498096 314 315// CHECK: strw 64(%rdx) 316// CHECK: encoding: [0x0f,0x00,0x4a,0x40] 317strw 64(%rdx) 318 319// CHECK: strw 64(%rdx,%rax,4) 320// CHECK: encoding: [0x0f,0x00,0x4c,0x82,0x40] 321strw 64(%rdx,%rax,4) 322 323// CHECK: strw -64(%rdx,%rax,4) 324// CHECK: encoding: [0x0f,0x00,0x4c,0x82,0xc0] 325strw -64(%rdx,%rax,4) 326 327// CHECK: strw 64(%rdx,%rax) 328// CHECK: encoding: [0x0f,0x00,0x4c,0x02,0x40] 329strw 64(%rdx,%rax) 330 331// CHECK: strw (%rdx) 332// CHECK: encoding: [0x0f,0x00,0x0a] 333strw (%rdx) 334 335// CHECK: verr 485498096 336// CHECK: encoding: [0x0f,0x00,0x24,0x25,0xf0,0x1c,0xf0,0x1c] 337verr 485498096 338 339// CHECK: verr 64(%rdx) 340// CHECK: encoding: [0x0f,0x00,0x62,0x40] 341verr 64(%rdx) 342 343// CHECK: verr 64(%rdx,%rax,4) 344// CHECK: encoding: [0x0f,0x00,0x64,0x82,0x40] 345verr 64(%rdx,%rax,4) 346 347// CHECK: verr -64(%rdx,%rax,4) 348// CHECK: encoding: [0x0f,0x00,0x64,0x82,0xc0] 349verr -64(%rdx,%rax,4) 350 351// CHECK: verr 64(%rdx,%rax) 352// CHECK: encoding: [0x0f,0x00,0x64,0x02,0x40] 353verr 64(%rdx,%rax) 354 355// CHECK: verr %r11w 356// CHECK: encoding: [0x41,0x0f,0x00,0xe3] 357verr %r11w 358 359// CHECK: verr (%rdx) 360// CHECK: encoding: [0x0f,0x00,0x22] 361verr (%rdx) 362 363// CHECK: verw 485498096 364// CHECK: encoding: [0x0f,0x00,0x2c,0x25,0xf0,0x1c,0xf0,0x1c] 365verw 485498096 366 367// CHECK: verw 64(%rdx) 368// CHECK: encoding: [0x0f,0x00,0x6a,0x40] 369verw 64(%rdx) 370 371// CHECK: verw 64(%rdx,%rax,4) 372// CHECK: encoding: [0x0f,0x00,0x6c,0x82,0x40] 373verw 64(%rdx,%rax,4) 374 375// CHECK: verw -64(%rdx,%rax,4) 376// CHECK: encoding: [0x0f,0x00,0x6c,0x82,0xc0] 377verw -64(%rdx,%rax,4) 378 379// CHECK: verw 64(%rdx,%rax) 380// CHECK: encoding: [0x0f,0x00,0x6c,0x02,0x40] 381verw 64(%rdx,%rax) 382 383// CHECK: verw %r11w 384// CHECK: encoding: [0x41,0x0f,0x00,0xeb] 385verw %r11w 386 387// CHECK: verw (%rdx) 388// CHECK: encoding: [0x0f,0x00,0x2a] 389verw (%rdx) 390 391