X-Git-Url: http://plrg.eecs.uci.edu/git/?a=blobdiff_plain;f=test%2FTableGen%2FSlice.td;h=6d051d77c8a3c5883a720f5c8bb614c1126e1385;hb=853a8c5f2ee9fa16f7c4c1fca658db40d4c73743;hp=22bf7fbfe8cf3fdd3415dbade3bf59534ac4fdef;hpb=32989deb9641cf3878686b5634311a7a125f8f02;p=oota-llvm.git diff --git a/test/TableGen/Slice.td b/test/TableGen/Slice.td index 22bf7fbfe8c..6d051d77c8a 100644 --- a/test/TableGen/Slice.td +++ b/test/TableGen/Slice.td @@ -1,5 +1,5 @@ -// RUN: tblgen %s | grep {\\\[(set} | count 2 -// RUN: tblgen %s | grep {\\\[\\\]} | count 2 +// RUN: llvm-tblgen %s | grep "\[(set" | count 2 +// RUN: llvm-tblgen %s | grep "\[\]" | count 2 // XFAIL: vg_leak class ValueType { @@ -66,19 +66,19 @@ def not : SDNode; multiclass scalar opcode, string asmstr = "", list> patterns = []> { def SSrr : Inst,patterns[0])>; + !if(!empty(patterns),[],patterns[0])>; def SSrm : Inst,!if(!null(!cdr(patterns)),patterns[0],patterns[1]))>; + !if(!empty(patterns),[],!if(!empty(!tail(patterns)),patterns[0],patterns[1]))>; } multiclass vscalar opcode, string asmstr = "", list> patterns = []> { def V#NAME#SSrr : Inst,patterns[0])>; + !if(!empty(patterns),[],patterns[0])>; def V#NAME#SSrm : Inst,!if(!null(!cdr(patterns)),patterns[0],patterns[1]))>; + !if(!empty(patterns),[],!if(!empty(!tail(patterns)),patterns[0],patterns[1]))>; } multiclass myscalar opcode, string asmstr = "", list> patterns = []> :