r194243 - Fix tests effected by r194221

David Majnemer david.majnemer at gmail.com
Thu Nov 7 19:06:45 PST 2013


Author: majnemer
Date: Thu Nov  7 21:06:45 2013
New Revision: 194243

URL: http://llvm.org/viewvc/llvm-project?rev=194243&view=rev
Log:
Fix tests effected by r194221

GEP expressions were folded differently from before, change the tests to
reflect this.

Modified:
    cfe/trunk/test/CodeGenCXX/for-range.cpp
    cfe/trunk/test/CodeGenCXX/global-array-destruction.cpp

Modified: cfe/trunk/test/CodeGenCXX/for-range.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenCXX/for-range.cpp?rev=194243&r1=194242&r2=194243&view=diff
==============================================================================
--- cfe/trunk/test/CodeGenCXX/for-range.cpp (original)
+++ cfe/trunk/test/CodeGenCXX/for-range.cpp Thu Nov  7 21:06:45 2013
@@ -40,7 +40,7 @@ void for_array() {
     // CHECK-NOT: 5begin
     // CHECK-NOT: 3end
     // CHECK: getelementptr {{.*}}, i32 0
-    // CHECK: getelementptr {{.*}}, i64 1, i64 0
+    // CHECK: getelementptr {{.*}}, i64 5
     // CHECK: br label %[[COND:.*]]
 
     // CHECK: [[COND]]:

Modified: cfe/trunk/test/CodeGenCXX/global-array-destruction.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenCXX/global-array-destruction.cpp?rev=194243&r1=194242&r2=194243&view=diff
==============================================================================
--- cfe/trunk/test/CodeGenCXX/global-array-destruction.cpp (original)
+++ cfe/trunk/test/CodeGenCXX/global-array-destruction.cpp Thu Nov  7 21:06:45 2013
@@ -56,7 +56,7 @@ using U = T[2][3];
 U &&u = U{ {{1.0, 2}, {3.0, 4}, {5.0, 6}}, {{7.0, 8}, {9.0, 10}, {11.0, 12}} };
 
 // CHECK: call {{.*}} @__cxa_atexit
-// CHECK: getelementptr inbounds ([2 x [3 x {{.*}}]]* @_ZGR1u, i64 1, i64 0, i64 0)
+// CHECK: getelementptr inbounds ({{.*}}* getelementptr inbounds ([2 x [3 x {{.*}}]]* @_ZGR1u, i32 0, i32 0, i32 0), i64 6)
 // CHECK: call void @_ZN1TD1Ev
 // CHECK: icmp eq {{.*}} @_ZGR1u
 // CHECK: br i1 {{.*}}





More information about the cfe-commits mailing list