From 2e7651dc80da21c94d3389333d115dc40e764879 Mon Sep 17 00:00:00 2001 From: John McCall Date: Tue, 1 May 2012 05:29:32 +0000 Subject: [PATCH] Remove some not-very-stable assumptions from this testcase. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@155889 91177308-0d34-0410-b5e6-96231b3b80d8 --- .../CodeGenCXX/microsoft-abi-array-cookies.cpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/test/CodeGenCXX/microsoft-abi-array-cookies.cpp b/test/CodeGenCXX/microsoft-abi-array-cookies.cpp index 26caa7a8a5..8f31fcdffd 100644 --- a/test/CodeGenCXX/microsoft-abi-array-cookies.cpp +++ b/test/CodeGenCXX/microsoft-abi-array-cookies.cpp @@ -28,12 +28,12 @@ void check_array_cookies_simple() { // 46 = 42 + size of cookie (4) // CHECK: [[COOKIE:%.*]] = bitcast i8* [[ALLOCATED]] to i32* // CHECK: store i32 42, i32* [[COOKIE]] -// CHECK: [[ARRAY:%.*]] = getelementptr inbounds i8* [[ALLOCATED]], i{{[0-9]+}} 4 -// CHECK: bitcast i8* [[ARRAY]] to %struct.ClassWithDtor* +// CHECK: [[ARRAY:%.*]] = getelementptr inbounds i8* [[ALLOCATED]], i64 4 +// CHECK: bitcast i8* [[ARRAY]] to [[CLASS:%.*]]* delete [] array; -// CHECK: [[ARRAY_AS_CHAR:%.*]] = bitcast %struct.ClassWithDtor* %3 to i8* -// CHECK: getelementptr inbounds i8* [[ARRAY_AS_CHAR]], i{{[0-9]+}} -4 +// CHECK: [[ARRAY_AS_CHAR:%.*]] = bitcast [[CLASS]]* {{%.*}} to i8* +// CHECK: getelementptr inbounds i8* [[ARRAY_AS_CHAR]], i64 -4 } struct __attribute__((aligned(8))) ClassWithAlignment { @@ -47,13 +47,13 @@ void check_array_cookies_aligned() { // CHECK: define {{.*}} @"\01?check_array_cookies_aligned@@YAXXZ"() ClassWithAlignment *array = new ClassWithAlignment[42]; // CHECK: [[ALLOCATED:%.*]] = call noalias i8* @"\01??_U@YAPAXI@Z"(i32 344) -// 344 = 42*8 + size of cookie (8, due to aligment) +// 344 = 42*8 + size of cookie (8, due to alignment) // CHECK: [[COOKIE:%.*]] = bitcast i8* [[ALLOCATED]] to i32* // CHECK: store i32 42, i32* [[COOKIE]] -// CHECK: [[ARRAY:%.*]] = getelementptr inbounds i8* [[ALLOCATED]], i{{[0-9]+}} 8 -// CHECK: bitcast i8* [[ARRAY]] to %struct.ClassWithAlignment* +// CHECK: [[ARRAY:%.*]] = getelementptr inbounds i8* [[ALLOCATED]], i64 8 +// CHECK: bitcast i8* [[ARRAY]] to [[CLASS:%.*]]* delete [] array; -// CHECK: [[ARRAY_AS_CHAR:%.*]] = bitcast %struct.ClassWithAlignment* %3 to i8* -// CHECK: getelementptr inbounds i8* [[ARRAY_AS_CHAR]], i{{[0-9]+}} -8 +// CHECK: [[ARRAY_AS_CHAR:%.*]] = bitcast [[CLASS]]* %3 to i8* +// CHECK: getelementptr inbounds i8* [[ARRAY_AS_CHAR]], i64 -8 } -- 2.50.1