[PATCH] D89064: [AIX] Disable two itanium alignment LIT testcases
Xiangling Liao via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Oct 13 06:52:59 PDT 2020
Xiangling_L updated this revision to Diff 297848.
Xiangling_L added a comment.
Use regex to match AIX layout dumping format.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D89064/new/
https://reviews.llvm.org/D89064
Files:
clang/test/Layout/itanium-pack-and-align.cpp
clang/test/Layout/itanium-union-bitfield.cpp
Index: clang/test/Layout/itanium-union-bitfield.cpp
===================================================================
--- clang/test/Layout/itanium-union-bitfield.cpp
+++ clang/test/Layout/itanium-union-bitfield.cpp
@@ -18,12 +18,11 @@
// CHECK:*** Dumping AST Record Layout
// CHECK-NEXT: 0 | union A
// CHECK-NEXT: 0:0-2 | int f1
-// CHECK-NEXT: | [sizeof=4, dsize=1, align=4
-// CHECK-NEXT: | nvsize=1, nvalign=4]
+// CHECK-NEXT: | [sizeof=4, dsize=1, align=4{{(, preferredalign=4,)*}}
+// CHECK-NEXT: | nvsize=1, nvalign=4{{(, preferrednvalign=4)*}}]
// CHECK:*** Dumping AST Record Layout
// CHECK-NEXT: 0 | union B
// CHECK-NEXT: 0:0-34 | char f1
-// CHECK-NEXT: | [sizeof=8, dsize=5, align=4
-// CHECK-NEXT: | nvsize=5, nvalign=4]
-
+// CHECK-NEXT: | [sizeof=8, dsize=5, align=4{{(, preferredalign=4,)*}}
+// CHECK-NEXT: | nvsize=5, nvalign=4{{(, preferrednvalign=4)*}}]
Index: clang/test/Layout/itanium-pack-and-align.cpp
===================================================================
--- clang/test/Layout/itanium-pack-and-align.cpp
+++ clang/test/Layout/itanium-pack-and-align.cpp
@@ -16,11 +16,11 @@
// CHECK: 0 | struct T
// CHECK-NEXT: 0 | char x
// CHECK-NEXT: 1 | int y
-// CHECK-NEXT: | [sizeof=8, dsize=8, align=8,
-// CHECK-NEXT: | nvsize=8, nvalign=8]
+// CHECK-NEXT: | [sizeof=8, dsize=8, align=8,{{( preferredalign=8,)*}}
+// CHECK-NEXT: | nvsize=8, nvalign=8{{(, preferrednvalign=8)*}}]
// CHECK: 0 | struct S
// CHECK-NEXT: 0 | char x
// CHECK-NEXT: 1 | int y
-// CHECK-NEXT: | [sizeof=8, dsize=8, align=8,
-// CHECK-NEXT: | nvsize=8, nvalign=8]
+// CHECK-NEXT: | [sizeof=8, dsize=8, align=8,{{( preferredalign=8,)*}}
+// CHECK-NEXT: | nvsize=8, nvalign=8{{(, preferrednvalign=8)*}}]
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D89064.297848.patch
Type: text/x-patch
Size: 1953 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20201013/1eaefee9/attachment.bin>
More information about the cfe-commits
mailing list