Skip to content

Commit b227c6a

Browse files
committed
[PowerPC][NFC] Add missing P10 code enablement asm/disasm tests
Fix/add missing p10 enablement asm/dis-asm tests and remove obsolete test files now that all p10 instruction enablement patches have been committed.
1 parent 914576c commit b227c6a

File tree

4 files changed

+40
-12
lines changed

4 files changed

+40
-12
lines changed

llvm/test/MC/Disassembler/PowerPC/p10insts.txt

Lines changed: 0 additions & 4 deletions
This file was deleted.

llvm/test/MC/Disassembler/PowerPC/ppc64-encoding-ISA31.txt

Lines changed: 22 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@
77
# CHECK: paddi 1, 0, -8589934592, 1
88
0x06 0x12 0x00 0x00 0x38 0x20 0x00 0x00
99

10+
# CHECK: pli 1, -8589934592
11+
0x06 0x02 0x00 0x00 0x38 0x20 0x00 0x00
12+
13+
# CHECK: pli 1, 8589934591
14+
0x06 0x01 0xff 0xff 0x38 0x20 0xff 0xff
15+
1016
# Largest positive displacement.
1117
# CHECK: plxv 31, 8589934591(3), 0
1218
0x04 0x01 0xff 0xff 0xcb 0xe3 0xff 0xff
@@ -379,16 +385,16 @@
379385
# CHECK: cnttzdm 1, 3, 2
380386
0x7c 0x61 0x14 0x76
381387

382-
# CHECK xxgenpcvbm 0, 1, 2
388+
# CHECK: xxgenpcvbm 0, 1, 2
383389
0xf0 0x02 0x0f 0x28
384390

385-
# CHECK xxgenpcvhm 0, 1, 2
391+
# CHECK: xxgenpcvhm 0, 1, 2
386392
0xf0 0x02 0x0f 0x2a
387393

388-
# CHECK xxgenpcvwm 0, 1, 2
394+
# CHECK: xxgenpcvwm 0, 1, 2
389395
0xf0 0x02 0x0f 0x68
390396

391-
# CHECK xxgenpcvdm 0, 1, 2
397+
# CHECK: xxgenpcvdm 0, 1, 2
392398
0xf0 0x02 0x0f 0x6a
393399

394400
# CHECK: vclrlb 1, 4, 3
@@ -465,6 +471,9 @@
465471
# CHECK: vmulld 1, 2, 3
466472
0x10 0x22 0x19 0xc9
467473

474+
# CHECK: vmodsq 3, 4, 5
475+
0x10 0x64 0x2f 0x0b
476+
468477
# CHECK: vmodsw 21, 11, 10
469478
0x12 0xab 0x57 0x8b
470479

@@ -714,6 +723,12 @@
714723
# CHECK: vcmpgtuq. 4, 5, 6
715724
0x10 0x85 0x36 0x87
716725

726+
# CHECK: vcmpsq 7, 1, 2
727+
0x13 0x81 0x11 0x41
728+
729+
# CHECK: vcmpuq 7, 1, 2
730+
0x13 0x81 0x11 0x01
731+
717732
# CHECK: vmoduq 3, 4, 5
718733
0x10 0x64 0x2e 0x0b
719734

@@ -795,6 +810,9 @@
795810
# CHECK: xvcvbf16spn 33, 34
796811
0xf0 0x30 0x17 0x6f
797812

813+
# CHECK: xvtlsbb 1, 7
814+
0xf0 0x82 0x3f 0x6c
815+
798816
# CHECK: hashst 5, -8(1)
799817
0x7f 0xe1 0x2d 0xa5
800818

llvm/test/MC/PowerPC/p10.s

Lines changed: 0 additions & 4 deletions
This file was deleted.

llvm/test/MC/PowerPC/ppc64-encoding-ISA31.s

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -675,6 +675,9 @@
675675
# CHECK-BE: vmulhud 1, 2, 3 # encoding: [0x10,0x22,0x1a,0xc9]
676676
# CHECK-LE: vmulhud 1, 2, 3 # encoding: [0xc9,0x1a,0x22,0x10]
677677
vmulhud 1, 2, 3
678+
# CHECK-BE: vmodsq 3, 4, 5 # encoding: [0x10,0x64,0x2f,0x0b]
679+
# CHECK-LE: vmodsq 3, 4, 5 # encoding: [0x0b,0x2f,0x64,0x10]
680+
vmodsq 3, 4, 5
678681
# CHECK-BE: vmodsw 21, 11, 10 # encoding: [0x12,0xab,0x57,0x8b]
679682
# CHECK-LE: vmodsw 21, 11, 10 # encoding: [0x8b,0x57,0xab,0x12]
680683
vmodsw 21, 11, 10
@@ -912,6 +915,15 @@
912915
# CHECK-BE: vcmpgtuq. 4, 5, 6 # encoding: [0x10,0x85,0x36,0x87]
913916
# CHECK-LE: vcmpgtuq. 4, 5, 6 # encoding: [0x87,0x36,0x85,0x10]
914917
vcmpgtuq. 4, 5, 6
918+
# CHECK-BE: vcmpsq 7, 1, 2 # encoding: [0x13,0x81,0x11,0x41]
919+
# CHECK-LE: vcmpsq 7, 1, 2 # encoding: [0x41,0x11,0x81,0x13]
920+
vcmpsq 7, 1, 2
921+
# CHECK-BE: vcmpuq 7, 1, 2 # encoding: [0x13,0x81,0x11,0x01]
922+
# CHECK-LE: vcmpuq 7, 1, 2 # encoding: [0x01,0x11,0x81,0x13]
923+
vcmpuq 7, 1, 2
924+
# CHECK-BE: vmodsq 3, 4, 5 # encoding: [0x10,0x64,0x2f,0x0b]
925+
# CHECK-LE: vmodsq 3, 4, 5 # encoding: [0x0b,0x2f,0x64,0x10]
926+
vmodsq 3, 4, 5
915927
# CHECK-BE: vmoduq 3, 4, 5 # encoding: [0x10,0x64,0x2e,0x0b]
916928
# CHECK-LE: vmoduq 3, 4, 5 # encoding: [0x0b,0x2e,0x64,0x10]
917929
vmoduq 3, 4, 5
@@ -981,6 +993,9 @@
981993
# CHECK-BE: vstrihr. 2, 2 # encoding: [0x10,0x43,0x14,0x0d]
982994
# CHECK-LE: vstrihr. 2, 2 # encoding: [0x0d,0x14,0x43,0x10]
983995
vstrihr. 2, 2
996+
# CHECK-BE: vstrihl 2, 4 # encoding: [0x10,0x42,0x20,0x0d]
997+
# CHECK-LE: vstrihl 2, 4 # encoding: [0x0d,0x20,0x42,0x10]
998+
vstrihl 2, 4
984999
# CHECK-BE: vstrihl. 2, 2 # encoding: [0x10,0x42,0x14,0x0d]
9851000
# CHECK-LE: vstrihl. 2, 2 # encoding: [0x0d,0x14,0x42,0x10]
9861001
vstrihl. 2, 2
@@ -990,6 +1005,9 @@
9901005
# CHECK-BE: xvcvbf16spn 33, 34 # encoding: [0xf0,0x30,0x17,0x6f]
9911006
# CHECK-LE: xvcvbf16spn 33, 34 # encoding: [0x6f,0x17,0x30,0xf0]
9921007
xvcvbf16spn 33, 34
1008+
# CHECK-BE: xvtlsbb 1, 7 # encoding: [0xf0,0x82,0x3f,0x6c]
1009+
# CHECK-LE: xvtlsbb 1, 7 # encoding: [0x6c,0x3f,0x82,0xf0]
1010+
xvtlsbb 1, 7
9931011
# CHECK-BE: hashst 5, -8(1) # encoding: [0x7f,0xe1,0x2d,0xa5]
9941012
# CHECK-LE: hashst 5, -8(1) # encoding: [0xa5,0x2d,0xe1,0x7f]
9951013
hashst 5, -8(1)

0 commit comments

Comments
 (0)