aboutsummaryrefslogtreecommitdiff
path: root/test/TableGen
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2016-07-23 20:41:05 +0000
committerDimitry Andric <dim@FreeBSD.org>2016-07-23 20:41:05 +0000
commit01095a5d43bbfde13731688ddcf6048ebb8b7721 (patch)
tree4def12e759965de927d963ac65840d663ef9d1ea /test/TableGen
parentf0f4822ed4b66e3579e92a89f368f8fb860e218e (diff)
Notes
Diffstat (limited to 'test/TableGen')
-rw-r--r--test/TableGen/intrinsic-long-name.td4
-rw-r--r--test/TableGen/intrinsic-order.td36
-rw-r--r--test/TableGen/intrinsic-varargs.td2
-rw-r--r--test/TableGen/trydecode-emission.td4
-rw-r--r--test/TableGen/trydecode-emission2.td4
-rw-r--r--test/TableGen/trydecode-emission3.td4
6 files changed, 9 insertions, 45 deletions
diff --git a/test/TableGen/intrinsic-long-name.td b/test/TableGen/intrinsic-long-name.td
index 6b9ba018e383..d7c9d3176266 100644
--- a/test/TableGen/intrinsic-long-name.td
+++ b/test/TableGen/intrinsic-long-name.td
@@ -19,10 +19,10 @@ class Intrinsic<string name, list<LLVMType> param_types = []> {
string TargetPrefix = "";
list<LLVMType> RetTypes = [];
list<LLVMType> ParamTypes = param_types;
- list<IntrinsicProperty> Properties = [];
+ list<IntrinsicProperty> IntrProperties = [];
}
-def iAny : ValueType<0, 254>;
+def iAny : ValueType<0, 125>;
def llvm_anyint_ty : LLVMType<iAny>;
// Make sure we generate the long name without crashing
diff --git a/test/TableGen/intrinsic-order.td b/test/TableGen/intrinsic-order.td
deleted file mode 100644
index 13c2db27e16a..000000000000
--- a/test/TableGen/intrinsic-order.td
+++ /dev/null
@@ -1,36 +0,0 @@
-// RUN: llvm-tblgen -gen-intrinsic %s | FileCheck %s
-// XFAIL: vg_leak
-
-class IntrinsicProperty;
-
-class ValueType<int size, int value> {
- string Namespace = "MVT";
- int Size = size;
- int Value = value;
-}
-
-class LLVMType<ValueType vt> {
- ValueType VT = vt;
-}
-
-class Intrinsic<string name, list<LLVMType> param_types = []> {
- string LLVMName = name;
- bit isTarget = 0;
- string TargetPrefix = "";
- list<LLVMType> RetTypes = [];
- list<LLVMType> ParamTypes = param_types;
- list<IntrinsicProperty> Properties = [];
-}
-
-def iAny : ValueType<0, 254>;
-def llvm_anyint_ty : LLVMType<iAny>;
-
-
-// Make sure an intrinsic name that is a prefix of another is checked after the
-// other.
-
-// CHECK: if (NameR.startswith("oo.bar.")) return Intrinsic::foo_bar;
-// CHECK: if (NameR.startswith("oo.")) return Intrinsic::foo;
-
-def int_foo : Intrinsic<"llvm.foo", [llvm_anyint_ty]>;
-def int_foo_bar : Intrinsic<"llvm.foo.bar", [llvm_anyint_ty]>;
diff --git a/test/TableGen/intrinsic-varargs.td b/test/TableGen/intrinsic-varargs.td
index 42ce8a959625..0aafad8093cc 100644
--- a/test/TableGen/intrinsic-varargs.td
+++ b/test/TableGen/intrinsic-varargs.td
@@ -19,7 +19,7 @@ class Intrinsic<string name, list<LLVMType> param_types = []> {
string TargetPrefix = "";
list<LLVMType> RetTypes = [];
list<LLVMType> ParamTypes = param_types;
- list<IntrinsicProperty> Properties = [];
+ list<IntrinsicProperty> IntrProperties = [];
}
// isVoid needs to match the definition in ValueTypes.td
diff --git a/test/TableGen/trydecode-emission.td b/test/TableGen/trydecode-emission.td
index 91c0e123857b..9fcd3436ae71 100644
--- a/test/TableGen/trydecode-emission.td
+++ b/test/TableGen/trydecode-emission.td
@@ -36,8 +36,8 @@ def InstB : TestInstruction {
// CHECK: /* 0 */ MCD::OPC_ExtractField, 4, 4, // Inst{7-4} ...
// CHECK-NEXT: /* 3 */ MCD::OPC_FilterValue, 0, 14, 0, // Skip to: 21
// CHECK-NEXT: /* 7 */ MCD::OPC_CheckField, 2, 2, 0, 5, 0, // Skip to: 18
-// CHECK-NEXT: /* 13 */ MCD::OPC_TryDecode, 24, 0, 0, 0, // Opcode: InstB, skip to: 18
-// CHECK-NEXT: /* 18 */ MCD::OPC_Decode, 23, 1, // Opcode: InstA
+// CHECK-NEXT: /* 13 */ MCD::OPC_TryDecode, {{[0-9]+}}, 0, 0, 0, // Opcode: InstB, skip to: 18
+// CHECK-NEXT: /* 18 */ MCD::OPC_Decode, {{[0-9]+}}, 1, // Opcode: InstA
// CHECK-NEXT: /* 21 */ MCD::OPC_Fail,
// CHECK: if (DecodeInstB(MI, insn, Address, Decoder) == MCDisassembler::Fail) { DecodeComplete = false; return MCDisassembler::Fail; }
diff --git a/test/TableGen/trydecode-emission2.td b/test/TableGen/trydecode-emission2.td
index 56ca6d33c241..8f57341a9685 100644
--- a/test/TableGen/trydecode-emission2.td
+++ b/test/TableGen/trydecode-emission2.td
@@ -35,9 +35,9 @@ def InstB : TestInstruction {
// CHECK-NEXT: /* 7 */ MCD::OPC_ExtractField, 5, 3, // Inst{7-5} ...
// CHECK-NEXT: /* 10 */ MCD::OPC_FilterValue, 0, 22, 0, // Skip to: 36
// CHECK-NEXT: /* 14 */ MCD::OPC_CheckField, 0, 2, 3, 5, 0, // Skip to: 25
-// CHECK-NEXT: /* 20 */ MCD::OPC_TryDecode, 24, 0, 0, 0, // Opcode: InstB, skip to: 25
+// CHECK-NEXT: /* 20 */ MCD::OPC_TryDecode, {{[0-9]+}}, 0, 0, 0, // Opcode: InstB, skip to: 25
// CHECK-NEXT: /* 25 */ MCD::OPC_CheckField, 3, 2, 0, 5, 0, // Skip to: 36
-// CHECK-NEXT: /* 31 */ MCD::OPC_TryDecode, 23, 1, 0, 0, // Opcode: InstA, skip to: 36
+// CHECK-NEXT: /* 31 */ MCD::OPC_TryDecode, {{[0-9]+}}, 1, 0, 0, // Opcode: InstA, skip to: 36
// CHECK-NEXT: /* 36 */ MCD::OPC_Fail,
// CHECK: if (DecodeInstB(MI, insn, Address, Decoder) == MCDisassembler::Fail) { DecodeComplete = false; return MCDisassembler::Fail; }
diff --git a/test/TableGen/trydecode-emission3.td b/test/TableGen/trydecode-emission3.td
index ad21eefa897a..7f7e91794e6c 100644
--- a/test/TableGen/trydecode-emission3.td
+++ b/test/TableGen/trydecode-emission3.td
@@ -37,8 +37,8 @@ def InstB : TestInstruction {
// CHECK: /* 0 */ MCD::OPC_ExtractField, 4, 4, // Inst{7-4} ...
// CHECK-NEXT: /* 3 */ MCD::OPC_FilterValue, 0, 14, 0, // Skip to: 21
// CHECK-NEXT: /* 7 */ MCD::OPC_CheckField, 2, 2, 0, 5, 0, // Skip to: 18
-// CHECK-NEXT: /* 13 */ MCD::OPC_TryDecode, 24, 0, 0, 0, // Opcode: InstB, skip to: 18
-// CHECK-NEXT: /* 18 */ MCD::OPC_Decode, 23, 1, // Opcode: InstA
+// CHECK-NEXT: /* 13 */ MCD::OPC_TryDecode, {{[0-9]+}}, 0, 0, 0, // Opcode: InstB, skip to: 18
+// CHECK-NEXT: /* 18 */ MCD::OPC_Decode, {{[0-9]+}}, 1, // Opcode: InstA
// CHECK-NEXT: /* 21 */ MCD::OPC_Fail,
// CHECK: if (DecodeInstBOp(MI, tmp, Address, Decoder) == MCDisassembler::Fail) { DecodeComplete = false; return MCDisassembler::Fail; }