Skip to content

Commit 8b7c495

Browse files
authored
[IR2VEC] Rewrite triples.mir and entities.mir. NFC (#168574)
These test change and need updating every time a new instruction is added, including generic G_ global isel instructions. The opcodes of all instructions change force a manual update of the file, which makes it very high cost for what it is testing. I have rewritten it to use regexes for the triplets.mir test and just test a couple of opcodes in the entities.mir file.
1 parent 299ea95 commit 8b7c495

File tree

4 files changed

+43
-7196
lines changed

4 files changed

+43
-7196
lines changed

llvm/test/tools/llvm-ir2vec/entities.mir

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1-
# REQUIRES: x86_64-linux
2-
# RUN: llvm-ir2vec entities --mode=mir %s -o 2>&1 %t1.log
3-
# RUN: diff %S/output/reference_x86_entities.txt %t1.log
1+
# REQUIRES: x86-registered-target
2+
# RUN: llvm-ir2vec entities --mode=mir %s -o - | FileCheck %s
3+
4+
# CHECK: AAA 0
5+
# CHECK: VirtReg_TILE {{[0-9]+}}
46

57
--- |
68
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"

llvm/test/tools/llvm-ir2vec/output/reference_triplets.txt

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

0 commit comments

Comments
 (0)