projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
cd0aefe
)
Add test cases that will show the bug that was fixed in r256725.
author
Craig Topper
<craig.topper@gmail.com>
Wed, 13 Jan 2016 07:53:11 +0000
(07:53 +0000)
committer
Craig Topper
<craig.topper@gmail.com>
Wed, 13 Jan 2016 07:53:11 +0000
(07:53 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@257584
91177308
-0d34-0410-b5e6-
96231b3b80d8
test/TableGen/TwoLevelName.td
patch
|
blob
|
history
diff --git
a/test/TableGen/TwoLevelName.td
b/test/TableGen/TwoLevelName.td
index 9c502f4755077a71c58ebb1b80db7e18184e7821..77c7a6796ee4c8ab4022a54c7e45316c23c6d188 100644
(file)
--- a/
test/TableGen/TwoLevelName.td
+++ b/
test/TableGen/TwoLevelName.td
@@
-21,6
+21,21
@@
multiclass OT2<string ss, int w> {
defm i8 : OT2<"i8", 8>;
defm i8 : OT2<"i8", 8>;
+multiclass OT3<string ss, int w> {
+ defm v32#NAME : OT1<!strconcat("v32", ss), 32, w>;
+}
+
+multiclass OT4<string ss, int w> {
+ defm v64#NAME : OT1<!strconcat("v64", ss), 64, w>;
+}
+
+multiclass OT5<string ss, int w> {
+ defm NAME : OT3<ss, w>;
+ defm NAME : OT4<ss, w>;
+}
+
+defm i16 : OT5<"i16", 16>;
+
// CHECK: _v16i8
// CHECK: Length = 16
// CHECK: Width = 8
// CHECK: _v16i8
// CHECK: Length = 16
// CHECK: Width = 8
@@
-33,6
+48,10
@@
defm i8 : OT2<"i8", 8>;
// CHECK: Length = 2
// CHECK: Width = 8
// CHECK: Length = 2
// CHECK: Width = 8
+// CHECK: def _v32i16
+// CHECK: Length = 32
+// CHECK: Width = 16
+
// CHECK: _v3i8
// CHECK: Length = 3
// CHECK: Width = 8
// CHECK: _v3i8
// CHECK: Length = 3
// CHECK: Width = 8
@@
-41,6
+60,11
@@
defm i8 : OT2<"i8", 8>;
// CHECK: Length = 4
// CHECK: Width = 8
// CHECK: Length = 4
// CHECK: Width = 8
+// CHECK: _v64i16
+// CHECK: Length = 64
+// CHECK: Width = 16
+
// CHECK: _v8i8
// CHECK: Length = 8
// CHECK: Width = 8
// CHECK: _v8i8
// CHECK: Length = 8
// CHECK: Width = 8
+