Remove 6 of XFAIL(s) in llvm/test/TableGen, since r193736. They have been XPASSing.
[oota-llvm.git] / test / TableGen / intrinsic-varargs.td
1 // RUN: llvm-tblgen -gen-intrinsic %s | FileCheck %s
2
3 class IntrinsicProperty;
4
5 class ValueType<int size, int value> {
6   string Namespace = "MVT";
7   int Size = size;
8   int Value = value;
9 }
10
11 class LLVMType<ValueType vt> {
12   ValueType VT = vt;
13 }
14
15 class Intrinsic<string name, list<LLVMType> param_types = []> {
16   string LLVMName = name;
17   bit isTarget = 0;
18   string TargetPrefix = "";
19   list<LLVMType> RetTypes = [];
20   list<LLVMType> ParamTypes = param_types;
21   list<IntrinsicProperty> Properties = [];
22 }
23
24 // isVoid needs to match the definition in ValueTypes.td
25 def isVoid : ValueType<0, 56>;   // Produces no value
26 def llvm_vararg_ty : LLVMType<isVoid>;   // this means vararg here
27
28 // CHECK: /* 0 */ 0, 27, 0,
29 def int_foo : Intrinsic<"llvm.foo", [llvm_vararg_ty]>;