Skip to content

Commit 2c16af6

Browse files
committed
Modified: Simplified testfile to check only disassembly.
1 parent b5853a9 commit 2c16af6

File tree

1 file changed

+22
-29
lines changed

1 file changed

+22
-29
lines changed
Lines changed: 22 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,39 @@
11
REQUIRES: aarch64-registered-target
22

33
## PPR Register Class Initialization Testcase
4-
## Ideally, we should use PTRUE_{B/H/S/D} instead of FADDV_VPZ_D for an isolated test case; however, Exegesis does not yet support PTRUE_{B/H/S/D}.
5-
RUN: llvm-exegesis -mcpu=neoverse-v2 -mode=latency --dump-object-to-disk=%d --opcode-name=FADDV_VPZ_D 2>&1 | FileCheck %s --check-prefix=PPR
4+
## Ideally, we should use PTRUE_{B/H/S/D} instead of FADDV_VPZ_D for an isolated test case;
5+
## However, exegesis does not yet support PTRUE_{B/H/S/D}.
6+
RUN: llvm-exegesis -mcpu=neoverse-v2 -mode=latency --dump-object-to-disk=%d --opcode-name=FADDV_VPZ_D 2>&1
67
RUN: llvm-objdump -d %d > %t.s
78
RUN: FileCheck %s --check-prefix=PPR_ASM < %t.s
8-
PPR-NOT: setRegTo is not implemented, results will be unreliable
9-
PPR: assembled_snippet: {{.*}}C0035FD6
10-
PPR_ASM: {{<foo>:}}
11-
PPR_ASM: ptrue p{{[0-9]+}}.b
12-
PPR_ASM-NEXT: mov z{{[0-9]+}}.d, #0x0
13-
PPR_ASM-NEXT: faddv d{{[0-9]+}}, p{{[0-9]+}}, z{{[0-9]+}}
9+
PPR_ASM: <foo>:
10+
PPR_ASM: ptrue p{{[0-9]+}}.b
11+
PPR_ASM-NEXT: mov z{{[0-9]+}}.d, #0x0
12+
PPR_ASM-NEXT: faddv d{{[0-9]+}}, p{{[0-9]+}}, z{{[0-9]+}}
1413

1514
## ZPR Register Class Initialization Testcase
16-
## Ideally, we should use DUP_ZI_{B/H/S/D} instead of FADDV_VPZ_D for an isolated test case; however, Exegesis does not yet support DUP_ZI_{B/H/S/D}.
17-
RUN: llvm-exegesis -mcpu=neoverse-v2 -mode=latency --dump-object-to-disk=%d --opcode-name=FADDV_VPZ_D 2>&1 | FileCheck %s --check-prefix=ZPR
15+
## Ideally, we should use DUP_ZI_{B/H/S/D} instead of FADDV_VPZ_D for an isolated test case;
16+
## However, exegesis does not yet support DUP_ZI_{B/H/S/D}.
17+
RUN: llvm-exegesis -mcpu=neoverse-v2 -mode=latency --dump-object-to-disk=%d --opcode-name=FADDV_VPZ_D 2>&1
1818
RUN: llvm-objdump -d %d > %t.s
1919
RUN: FileCheck %s --check-prefix=ZPR_ASM < %t.s
20-
ZPR-NOT: setRegTo is not implemented, results will be unreliable
21-
ZPR: assembled_snippet: {{.*}}C0035FD6
22-
ZPR_ASM: {{<foo>:}}
23-
ZPR_ASM: ptrue p{{[0-9]+}}.b
24-
ZPR_ASM-NEXT: mov z{{[0-9]+}}.d, #0x0
25-
ZPR_ASM-NEXT: faddv d{{[0-9]+}}, p{{[0-9]+}}, z{{[0-9]+}}
20+
ZPR_ASM: <foo>:
21+
ZPR_ASM: ptrue p{{[0-9]+}}.b
22+
ZPR_ASM-NEXT: mov z{{[0-9]+}}.d, #0x0
23+
ZPR_ASM-NEXT: faddv d{{[0-9]+}}, p{{[0-9]+}}, z{{[0-9]+}}
2624

2725
## FPR128 Register Class Initialization Testcase
28-
RUN: llvm-exegesis -mcpu=neoverse-v2 -mode=latency --dump-object-to-disk=%d --opcode-name=ADDVv16i8v 2>&1 | FileCheck %s --check-prefix=FPR128
26+
RUN: llvm-exegesis -mcpu=neoverse-v2 -mode=latency --dump-object-to-disk=%d --opcode-name=ADDVv16i8v 2>&1
2927
RUN: llvm-objdump -d %d > %t.s
3028
RUN: FileCheck %s --check-prefix=FPR128-ASM < %t.s
31-
FPR128-NOT: setRegTo is not implemented, results will be unreliable
32-
FPR128: assembled_snippet: {{.*}}C0035FD6
33-
FPR128-ASM: {{<foo>:}}
34-
FPR128-ASM: movi v{{[0-9]+}}.2d, #0000000000000000
35-
FPR128-ASM-NEXT: addv b{{[0-9]+}}, v{{[0-9]+}}.16b
29+
FPR128-ASM: <foo>:
30+
FPR128-ASM: movi v{{[0-9]+}}.2d, #0000000000000000
31+
FPR128-ASM-NEXT: addv b{{[0-9]+}}, v{{[0-9]+}}.16b
3632

3733
## FPR64 Register Class Initialization Testcase
38-
RUN: llvm-exegesis -mcpu=neoverse-v2 -mode=latency --dump-object-to-disk=%d --opcode-name=ADDVv4i16v 2>&1 | FileCheck %s --check-prefix=FPR64
34+
RUN: llvm-exegesis -mcpu=neoverse-v2 -mode=latency --dump-object-to-disk=%d --opcode-name=ADDVv4i16v 2>&1
3935
RUN: llvm-objdump -d %d > %t.s
4036
RUN: FileCheck %s --check-prefix=FPR64-ASM < %t.s
41-
FPR64-NOT: setRegTo is not implemented, results will be unreliable
42-
FPR64: assembled_snippet: {{.*}}C0035FD6
43-
FPR64-ASM: {{<foo>:}}
44-
## For FMOVDi base-instruction : fmov d{{[0-9]+}}, {{#2.0+|#2\.000000000000000000e\+00}}
45-
FPR64-ASM: movi d{{[0-9]+}}, #0000000000000000
46-
FPR64-ASM-NEXT: addv h{{[0-9]+}}, v{{[0-9]+}}.4h
37+
FPR64-ASM: <foo>:
38+
FPR64-ASM: movi d{{[0-9]+}}, #0000000000000000
39+
FPR64-ASM-NEXT: addv h{{[0-9]+}}, v{{[0-9]+}}.4h

0 commit comments

Comments
 (0)