1// RUN: llvm-mc -triple i386-unknown-unknown --show-encoding %s | FileCheck %s 2 3// CHECK: vaesdec -485498096(%edx,%eax,4), %xmm1, %xmm1 4// CHECK: encoding: [0xc4,0xe2,0x71,0xde,0x8c,0x82,0x10,0xe3,0x0f,0xe3] 5vaesdec -485498096(%edx,%eax,4), %xmm1, %xmm1 6 7// CHECK: vaesdec 485498096(%edx,%eax,4), %xmm1, %xmm1 8// CHECK: encoding: [0xc4,0xe2,0x71,0xde,0x8c,0x82,0xf0,0x1c,0xf0,0x1c] 9vaesdec 485498096(%edx,%eax,4), %xmm1, %xmm1 10 11// CHECK: vaesdec 485498096(%edx), %xmm1, %xmm1 12// CHECK: encoding: [0xc4,0xe2,0x71,0xde,0x8a,0xf0,0x1c,0xf0,0x1c] 13vaesdec 485498096(%edx), %xmm1, %xmm1 14 15// CHECK: vaesdec 485498096, %xmm1, %xmm1 16// CHECK: encoding: [0xc4,0xe2,0x71,0xde,0x0d,0xf0,0x1c,0xf0,0x1c] 17vaesdec 485498096, %xmm1, %xmm1 18 19// CHECK: vaesdec 64(%edx,%eax), %xmm1, %xmm1 20// CHECK: encoding: [0xc4,0xe2,0x71,0xde,0x4c,0x02,0x40] 21vaesdec 64(%edx,%eax), %xmm1, %xmm1 22 23// CHECK: vaesdec (%edx), %xmm1, %xmm1 24// CHECK: encoding: [0xc4,0xe2,0x71,0xde,0x0a] 25vaesdec (%edx), %xmm1, %xmm1 26 27// CHECK: vaesdeclast -485498096(%edx,%eax,4), %xmm1, %xmm1 28// CHECK: encoding: [0xc4,0xe2,0x71,0xdf,0x8c,0x82,0x10,0xe3,0x0f,0xe3] 29vaesdeclast -485498096(%edx,%eax,4), %xmm1, %xmm1 30 31// CHECK: vaesdeclast 485498096(%edx,%eax,4), %xmm1, %xmm1 32// CHECK: encoding: [0xc4,0xe2,0x71,0xdf,0x8c,0x82,0xf0,0x1c,0xf0,0x1c] 33vaesdeclast 485498096(%edx,%eax,4), %xmm1, %xmm1 34 35// CHECK: vaesdeclast 485498096(%edx), %xmm1, %xmm1 36// CHECK: encoding: [0xc4,0xe2,0x71,0xdf,0x8a,0xf0,0x1c,0xf0,0x1c] 37vaesdeclast 485498096(%edx), %xmm1, %xmm1 38 39// CHECK: vaesdeclast 485498096, %xmm1, %xmm1 40// CHECK: encoding: [0xc4,0xe2,0x71,0xdf,0x0d,0xf0,0x1c,0xf0,0x1c] 41vaesdeclast 485498096, %xmm1, %xmm1 42 43// CHECK: vaesdeclast 64(%edx,%eax), %xmm1, %xmm1 44// CHECK: encoding: [0xc4,0xe2,0x71,0xdf,0x4c,0x02,0x40] 45vaesdeclast 64(%edx,%eax), %xmm1, %xmm1 46 47// CHECK: vaesdeclast (%edx), %xmm1, %xmm1 48// CHECK: encoding: [0xc4,0xe2,0x71,0xdf,0x0a] 49vaesdeclast (%edx), %xmm1, %xmm1 50 51// CHECK: vaesdeclast %xmm1, %xmm1, %xmm1 52// CHECK: encoding: [0xc4,0xe2,0x71,0xdf,0xc9] 53vaesdeclast %xmm1, %xmm1, %xmm1 54 55// CHECK: vaesdec %xmm1, %xmm1, %xmm1 56// CHECK: encoding: [0xc4,0xe2,0x71,0xde,0xc9] 57vaesdec %xmm1, %xmm1, %xmm1 58 59// CHECK: vaesenc -485498096(%edx,%eax,4), %xmm1, %xmm1 60// CHECK: encoding: [0xc4,0xe2,0x71,0xdc,0x8c,0x82,0x10,0xe3,0x0f,0xe3] 61vaesenc -485498096(%edx,%eax,4), %xmm1, %xmm1 62 63// CHECK: vaesenc 485498096(%edx,%eax,4), %xmm1, %xmm1 64// CHECK: encoding: [0xc4,0xe2,0x71,0xdc,0x8c,0x82,0xf0,0x1c,0xf0,0x1c] 65vaesenc 485498096(%edx,%eax,4), %xmm1, %xmm1 66 67// CHECK: vaesenc 485498096(%edx), %xmm1, %xmm1 68// CHECK: encoding: [0xc4,0xe2,0x71,0xdc,0x8a,0xf0,0x1c,0xf0,0x1c] 69vaesenc 485498096(%edx), %xmm1, %xmm1 70 71// CHECK: vaesenc 485498096, %xmm1, %xmm1 72// CHECK: encoding: [0xc4,0xe2,0x71,0xdc,0x0d,0xf0,0x1c,0xf0,0x1c] 73vaesenc 485498096, %xmm1, %xmm1 74 75// CHECK: vaesenc 64(%edx,%eax), %xmm1, %xmm1 76// CHECK: encoding: [0xc4,0xe2,0x71,0xdc,0x4c,0x02,0x40] 77vaesenc 64(%edx,%eax), %xmm1, %xmm1 78 79// CHECK: vaesenc (%edx), %xmm1, %xmm1 80// CHECK: encoding: [0xc4,0xe2,0x71,0xdc,0x0a] 81vaesenc (%edx), %xmm1, %xmm1 82 83// CHECK: vaesenclast -485498096(%edx,%eax,4), %xmm1, %xmm1 84// CHECK: encoding: [0xc4,0xe2,0x71,0xdd,0x8c,0x82,0x10,0xe3,0x0f,0xe3] 85vaesenclast -485498096(%edx,%eax,4), %xmm1, %xmm1 86 87// CHECK: vaesenclast 485498096(%edx,%eax,4), %xmm1, %xmm1 88// CHECK: encoding: [0xc4,0xe2,0x71,0xdd,0x8c,0x82,0xf0,0x1c,0xf0,0x1c] 89vaesenclast 485498096(%edx,%eax,4), %xmm1, %xmm1 90 91// CHECK: vaesenclast 485498096(%edx), %xmm1, %xmm1 92// CHECK: encoding: [0xc4,0xe2,0x71,0xdd,0x8a,0xf0,0x1c,0xf0,0x1c] 93vaesenclast 485498096(%edx), %xmm1, %xmm1 94 95// CHECK: vaesenclast 485498096, %xmm1, %xmm1 96// CHECK: encoding: [0xc4,0xe2,0x71,0xdd,0x0d,0xf0,0x1c,0xf0,0x1c] 97vaesenclast 485498096, %xmm1, %xmm1 98 99// CHECK: vaesenclast 64(%edx,%eax), %xmm1, %xmm1 100// CHECK: encoding: [0xc4,0xe2,0x71,0xdd,0x4c,0x02,0x40] 101vaesenclast 64(%edx,%eax), %xmm1, %xmm1 102 103// CHECK: vaesenclast (%edx), %xmm1, %xmm1 104// CHECK: encoding: [0xc4,0xe2,0x71,0xdd,0x0a] 105vaesenclast (%edx), %xmm1, %xmm1 106 107// CHECK: vaesenclast %xmm1, %xmm1, %xmm1 108// CHECK: encoding: [0xc4,0xe2,0x71,0xdd,0xc9] 109vaesenclast %xmm1, %xmm1, %xmm1 110 111// CHECK: vaesenc %xmm1, %xmm1, %xmm1 112// CHECK: encoding: [0xc4,0xe2,0x71,0xdc,0xc9] 113vaesenc %xmm1, %xmm1, %xmm1 114 115// CHECK: vaesimc -485498096(%edx,%eax,4), %xmm1 116// CHECK: encoding: [0xc4,0xe2,0x79,0xdb,0x8c,0x82,0x10,0xe3,0x0f,0xe3] 117vaesimc -485498096(%edx,%eax,4), %xmm1 118 119// CHECK: vaesimc 485498096(%edx,%eax,4), %xmm1 120// CHECK: encoding: [0xc4,0xe2,0x79,0xdb,0x8c,0x82,0xf0,0x1c,0xf0,0x1c] 121vaesimc 485498096(%edx,%eax,4), %xmm1 122 123// CHECK: vaesimc 485498096(%edx), %xmm1 124// CHECK: encoding: [0xc4,0xe2,0x79,0xdb,0x8a,0xf0,0x1c,0xf0,0x1c] 125vaesimc 485498096(%edx), %xmm1 126 127// CHECK: vaesimc 485498096, %xmm1 128// CHECK: encoding: [0xc4,0xe2,0x79,0xdb,0x0d,0xf0,0x1c,0xf0,0x1c] 129vaesimc 485498096, %xmm1 130 131// CHECK: vaesimc 64(%edx,%eax), %xmm1 132// CHECK: encoding: [0xc4,0xe2,0x79,0xdb,0x4c,0x02,0x40] 133vaesimc 64(%edx,%eax), %xmm1 134 135// CHECK: vaesimc (%edx), %xmm1 136// CHECK: encoding: [0xc4,0xe2,0x79,0xdb,0x0a] 137vaesimc (%edx), %xmm1 138 139// CHECK: vaesimc %xmm1, %xmm1 140// CHECK: encoding: [0xc4,0xe2,0x79,0xdb,0xc9] 141vaesimc %xmm1, %xmm1 142 143// CHECK: vaeskeygenassist $0, -485498096(%edx,%eax,4), %xmm1 144// CHECK: encoding: [0xc4,0xe3,0x79,0xdf,0x8c,0x82,0x10,0xe3,0x0f,0xe3,0x00] 145vaeskeygenassist $0, -485498096(%edx,%eax,4), %xmm1 146 147// CHECK: vaeskeygenassist $0, 485498096(%edx,%eax,4), %xmm1 148// CHECK: encoding: [0xc4,0xe3,0x79,0xdf,0x8c,0x82,0xf0,0x1c,0xf0,0x1c,0x00] 149vaeskeygenassist $0, 485498096(%edx,%eax,4), %xmm1 150 151// CHECK: vaeskeygenassist $0, 485498096(%edx), %xmm1 152// CHECK: encoding: [0xc4,0xe3,0x79,0xdf,0x8a,0xf0,0x1c,0xf0,0x1c,0x00] 153vaeskeygenassist $0, 485498096(%edx), %xmm1 154 155// CHECK: vaeskeygenassist $0, 485498096, %xmm1 156// CHECK: encoding: [0xc4,0xe3,0x79,0xdf,0x0d,0xf0,0x1c,0xf0,0x1c,0x00] 157vaeskeygenassist $0, 485498096, %xmm1 158 159// CHECK: vaeskeygenassist $0, 64(%edx,%eax), %xmm1 160// CHECK: encoding: [0xc4,0xe3,0x79,0xdf,0x4c,0x02,0x40,0x00] 161vaeskeygenassist $0, 64(%edx,%eax), %xmm1 162 163// CHECK: vaeskeygenassist $0, (%edx), %xmm1 164// CHECK: encoding: [0xc4,0xe3,0x79,0xdf,0x0a,0x00] 165vaeskeygenassist $0, (%edx), %xmm1 166 167// CHECK: vaeskeygenassist $0, %xmm1, %xmm1 168// CHECK: encoding: [0xc4,0xe3,0x79,0xdf,0xc9,0x00] 169vaeskeygenassist $0, %xmm1, %xmm1 170 171