Skip to content

Commit b432583

Browse files
committed
[NFC][X86] Add MC tests for all untested VIA PadLock instructions
We currently only test the encoding of xstore but none of the other instructions, which should all have their implicit REP prefix be verified as working. Reviewed By: craig.topper Differential Revision: https://reviews.llvm.org/D112354
1 parent fc3f92a commit b432583

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

llvm/test/MC/X86/padlock.s

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,27 @@
33
xstore
44
// CHECK: xstore
55
// CHECK: encoding: [0xf3,0x0f,0xa7,0xc0]
6+
xcryptecb
7+
// CHECK: xcryptecb
8+
// CHECK: encoding: [0xf3,0x0f,0xa7,0xc8]
9+
xcryptcbc
10+
// CHECK: xcryptcbc
11+
// CHECK: encoding: [0xf3,0x0f,0xa7,0xd0]
12+
xcryptctr
13+
// CHECK: xcryptctr
14+
// CHECK: encoding: [0xf3,0x0f,0xa7,0xd8]
15+
xcryptcfb
16+
// CHECK: xcryptcfb
17+
// CHECK: encoding: [0xf3,0x0f,0xa7,0xe0]
18+
xcryptofb
19+
// CHECK: xcryptofb
20+
// CHECK: encoding: [0xf3,0x0f,0xa7,0xe8]
21+
xsha1
22+
// CHECK: xsha1
23+
// CHECK: encoding: [0xf3,0x0f,0xa6,0xc8]
24+
xsha256
25+
// CHECK: xsha256
26+
// CHECK: encoding: [0xf3,0x0f,0xa6,0xd0]
27+
montmul
28+
// CHECK: montmul
29+
// CHECK: encoding: [0xf3,0x0f,0xa6,0xc0]

0 commit comments

Comments
 (0)