diff --git a/test/CodeGenCXX/dyncast.cpp b/test/CodeGenCXX/dyncast.cpp index 92eb09b6c4..054b972bb1 100644 --- a/test/CodeGenCXX/dyncast.cpp +++ b/test/CodeGenCXX/dyncast.cpp @@ -70,15 +70,15 @@ void test1() { // CHECK-LL-NEXT: [[vp:%.*]] = alloca i8*, align 8 // CHECK-LL-NEXT: [[cvp:%.*]] = alloca i8*, align 8 // CHECK-LL-NEXT: br i1 false, label %[[castnull:.*]], label %[[castnotnull:.*]] -// CHECK-LL: [[castnotnull]]: +// CHECK-LL: [[castnotnull]] // CHECK-LL-NEXT: br label %[[castend:.*]] -// CHECK-LL: [[castnull]]: +// CHECK-LL: [[castnull]] // CHECK-LL-NEXT: br label %[[castend]] -// CHECK-LL: [[castend]]: +// CHECK-LL: [[castend]] // CHECK-LL-NEXT: [[v0:%.*]] = phi %class.test1_A* [ bitcast (%class.test1_D* @test1_d to %class.test1_A*), %[[castnotnull]] ], [ null, %[[castnull]] ] // CHECK-LL-NEXT: store %class.test1_A* [[v0]], %class.test1_A** [[bp]] // CHECK-LL-NEXT: br i1 false, label %[[castnull2:.*]], label %[[castnotnull1:.*]] -// CHECK-LL: [[castnotnull1]]: +// CHECK-LL: [[castnotnull1]] // CHECK-LL-NEXT: [[vtable:%.*]] = load i8** bitcast (%class.test1_D* @test1_d to i8**) // CHECK-LL-NEXT: [[vbaseoffsetptr:%.*]] = getelementptr i8* [[vtable]], i64 -24 // CHECK-LL-NEXT: [[v1:%.*]] = bitcast i8* [[vbaseoffsetptr]] to i64* @@ -86,9 +86,9 @@ void test1() { // CHECK-LL-NEXT: [[addptr:%.*]] = getelementptr i8* getelementptr inbounds (%class.test1_D* @test1_d, i32 0, i32 0, i32 0), i64 [[vbaseoffset:.*]] // CHECK-LL-NEXT: [[v2:%.*]] = bitcast i8* [[addptr]] to %class.test1_A* // CHECK-LL-NEXT: br label %[[castend3:.*]] -// CHECK-LL: [[castnull2]]: +// CHECK-LL: [[castnull2]] // CHECK-LL-NEXT: br label %[[castend3]] -// CHECK-LL: [[castend3]]: +// CHECK-LL: [[castend3]] // CHECK-LL-NEXT: [[v3:%.*]] = phi %class.test1_A* [ [[v2]], %[[castnotnull1]] ], [ null, %[[castnull2]] ] // CHECK-LL-NEXT: store %class.test1_A* [[v3]], %class.test1_A** [[ap]] // CHECK-LL-NEXT: [[tmp:%.*]] = load %class.test1_A** [[bp]] @@ -107,13 +107,13 @@ void test1() { // CHECK-LL-NEXT: [[tmp4:%.*]] = load %class.test1_D** [[dp]] // CHECK-LL-NEXT: [[cmp:%.*]] = icmp eq %class.test1_D* [[tmp4]], null // CHECK-LL-NEXT: br i1 [[cmp]], label %[[ifthen:.*]], label %[[ifelse:.*]] -// CHECK-LL: [[ifthen]]: +// CHECK-LL: [[ifthen]] // CHECK-LL-NEXT: call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([10 x i8]* @.str, i32 0, i32 0), i32 1) // CHECK-LL-NEXT: br label %[[ifend:.*]] -// CHECK-LL: [[ifelse]]: +// CHECK-LL: [[ifelse]] // CHECK-LL-NEXT: call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([10 x i8]* @.str1, i32 0, i32 0), i32 1) // CHECK-LL-NEXT: br label %[[ifend]] -// CHECK-LL: [[ifend]]: +// CHECK-LL: [[ifend]] // CHECK-LL-NEXT: [[tmp6:%.*]] = load %class.test1_A** [[bp]] // CHECK-LL-NEXT: [[v12:%.*]] = icmp ne %class.test1_A* [[tmp6]], null // CHECK-LL-NEXT: br i1 [[v12]], label %[[v13:.*]], label %[[v17:.*]] @@ -130,13 +130,13 @@ void test1() { // CHECK-LL-NEXT: [[tmp7:%.*]] = load %class.test1_A** [[ap]] // CHECK-LL-NEXT: [[cmp8:%.*]] = icmp eq %class.test1_A* [[tmp7]], null // CHECK-LL-NEXT: br i1 [[cmp8]], label %[[ifthen9:.*]], label %[[ifelse11:.*]] -// CHECK-LL: [[ifthen9]]: +// CHECK-LL: [[ifthen9]] // CHECK-LL-NEXT: call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([10 x i8]* @.str, i32 0, i32 0), i32 2) // CHECK-LL-NEXT: br label %[[ifend13:.*]] -// CHECK-LL: [[ifelse11]]: +// CHECK-LL: [[ifelse11]] // CHECK-LL-NEXT: call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([10 x i8]* @.str1, i32 0, i32 0), i32 2) // CHECK-LL-NEXT: br label %[[ifend13]] -// CHECK-LL: [[ifend13]]: +// CHECK-LL: [[ifend13]] // CHECK-LL-NEXT: [[tmp14:%.*]] = load %class.test1_A** [[ap]] // CHECK-LL-NEXT: [[v20:%.*]] = icmp ne %class.test1_A* [[tmp14]], null // CHECK-LL-NEXT: br i1 [[v20]], label %[[v21:.*]], label %[[v25:.*]] @@ -153,15 +153,15 @@ void test1() { // CHECK-LL-NEXT: [[tmp15:%.*]] = load %class.test1_A** [[bp]] // CHECK-LL-NEXT: [[cmp16:%.*]] = icmp eq %class.test1_A* [[tmp15]], null // CHECK-LL-NEXT: br i1 [[cmp16]], label %[[ifthen17:.*]], label %[[ifelse19:.*]] -// CHECK-LL: [[ifthen17]]: +// CHECK-LL: [[ifthen17]] // CHECK-LL-NEXT: call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([10 x i8]* @.str, i32 0, i32 0), i32 3) // CHECK-LL-NEXT: br label %[[ifend21:.*]] -// CHECK-LL: [[ifelse19]]: +// CHECK-LL: [[ifelse19]] // CHECK-LL-NEXT: call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([10 x i8]* @.str1, i32 0, i32 0), i32 3) // CHECK-LL-NEXT: br label %[[ifend21]] -// CHECK-LL: [[ifend21]]: +// CHECK-LL: [[ifend21]] // CHECK-LL-NEXT: br i1 false, label %[[castnull27:.*]], label %[[castnotnull22:.*]] -// CHECK-LL: [[castnotnull22]]: +// CHECK-LL: [[castnotnull22]] // CHECK-LL-NEXT: [[vtable23:%.*]] = load i8** bitcast (%class.test1_D* @test1_d to i8**) // CHECK-LL-NEXT: [[vbaseoffsetptr24:%.*]] = getelementptr i8* [[vtable23]], i64 -24 // CHECK-LL-NEXT: [[v28:%.*]] = bitcast i8* [[vbaseoffsetptr24]] to i64* @@ -169,23 +169,23 @@ void test1() { // CHECK-LL-NEXT: [[addptr26:%.*]] = getelementptr i8* getelementptr inbounds (%class.test1_D* @test1_d, i32 0, i32 0, i32 0), i64 [[vbaseoffset25]] // CHECK-LL-NEXT: [[v29:%.*]] = bitcast i8* [[addptr26]] to %class.test1_A* // CHECK-LL-NEXT: br label %[[castend28:.*]] -// CHECK-LL: [[castnull27]]: +// CHECK-LL: [[castnull27]] // CHECK-LL-NEXT: br label %[[castend28]] -// CHECK-LL: [[castend28]]: +// CHECK-LL: [[castend28]] // CHECK-LL-NEXT: [[v30:%.*]] = phi %class.test1_A* [ [[v29]], %[[castnotnull22]] ], [ null, %[[castnull27]] ] // CHECK-LL-NEXT: store %class.test1_A* [[v30]], %class.test1_A** [[ap]] // CHECK-LL-NEXT: [[tmp29:%.*]] = load %class.test1_A** [[ap]] // CHECK-LL-NEXT: [[cmp30:%.*]] = icmp ne %class.test1_A* [[tmp29]], null // CHECK-LL-NEXT: br i1 [[cmp30]], label %[[ifthen31:.*]], label %[[ifelse33:.*]] -// CHECK-LL: [[ifthen31]]: +// CHECK-LL: [[ifthen31]] // CHECK-LL-NEXT: call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([10 x i8]* @.str, i32 0, i32 0), i32 4) // CHECK-LL-NEXT: br label %[[ifend35:.*]] -// CHECK-LL: [[ifelse33]]: +// CHECK-LL: [[ifelse33]] // CHECK-LL-NEXT: call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([10 x i8]* @.str1, i32 0, i32 0), i32 4) // CHECK-LL-NEXT: br label %[[ifend35]] -// CHECK-LL: [[ifend35]]: +// CHECK-LL: [[ifend35]] // CHECK-LL-NEXT: br i1 false, label %[[castnull43:.*]], label %[[castnotnull38:.*]] -// CHECK-LL: [[castnotnull38]]: +// CHECK-LL: [[castnotnull38]] // CHECK-LL-NEXT: [[vtable39:%.*]] = load i8** bitcast (%class.test1_F* @test1_f to i8**) // CHECK-LL-NEXT: [[vbaseoffsetptr40:%.*]] = getelementptr i8* [[vtable39]], i64 -24 // CHECK-LL-NEXT: [[v31:%.*]] = bitcast i8* [[vbaseoffsetptr40]] to i64* @@ -193,21 +193,21 @@ void test1() { // CHECK-LL-NEXT: [[addptr42:%.*]] = getelementptr i8* getelementptr inbounds (%class.test1_F* @test1_f, i32 0, i32 0, i32 0), i64 [[vbaseoffset41]] // CHECK-LL-NEXT: [[v32:%.*]] = bitcast i8* [[addptr42]] to %class.test1_A* // CHECK-LL-NEXT: br label %[[castend44:.*]] -// CHECK-LL: [[castnull43]]: +// CHECK-LL: [[castnull43]] // CHECK-LL-NEXT: br label %[[castend44]] -// CHECK-LL: [[castend44]]: +// CHECK-LL: [[castend44]] // CHECK-LL-NEXT: [[v33:%.*]] = phi %class.test1_A* [ [[v32]], %[[castnotnull38]] ], [ null, %[[castnull43]] ] // CHECK-LL-NEXT: store %class.test1_A* [[v33]], %class.test1_A** [[ap37]] // CHECK-LL-NEXT: [[tmp45:%.*]] = load %class.test1_A** [[ap37]] // CHECK-LL-NEXT: [[cmp46:%.*]] = icmp ne %class.test1_A* [[tmp45]], null // CHECK-LL-NEXT: br i1 [[cmp46]], label %[[ifthen47:.*]], label %[[ifelse49:.*]] -// CHECK-LL: [[ifthen47]]: +// CHECK-LL: [[ifthen47]] // CHECK-LL-NEXT: call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([10 x i8]* @.str, i32 0, i32 0), i32 6) // CHECK-LL-NEXT: br label %[[ifend51:.*]] -// CHECK-LL: [[ifelse49]]: +// CHECK-LL: [[ifelse49]] // CHECK-LL-NEXT: call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([10 x i8]* @.str1, i32 0, i32 0), i32 6) // CHECK-LL-NEXT: br label %[[ifend51]] -// CHECK-LL: [[ifend51]]: +// CHECK-LL: [[ifend51]] // CHECK-LL-NEXT: [[tmp54:%.*]] = load %class.test1_A** [[ap37]] // CHECK-LL-NEXT: [[v34:%.*]] = icmp ne %class.test1_A* [[tmp54]], null // CHECK-LL-NEXT: br i1 [[v34]], label %[[v35:.*]], label %[[v39:.*]] @@ -224,13 +224,13 @@ void test1() { // CHECK-LL-NEXT: [[tmp55:%.*]] = load %class.test1_D** [[dp53]] // CHECK-LL-NEXT: [[cmp56:%.*]] = icmp eq %class.test1_D* [[tmp55]], null // CHECK-LL-NEXT: br i1 [[cmp56]], label %[[ifthen57:.*]], label %[[ifelse59:.*]] -// CHECK-LL: [[ifthen57]]: +// CHECK-LL: [[ifthen57]] // CHECK-LL-NEXT: call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([10 x i8]* @.str, i32 0, i32 0), i32 7) // CHECK-LL-NEXT: br label %[[ifend61:.*]] -// CHECK-LL: [[ifelse59]]: +// CHECK-LL: [[ifelse59]] // CHECK-LL-NEXT: call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([10 x i8]* @.str1, i32 0, i32 0), i32 7) // CHECK-LL-NEXT: br label %[[ifend61]] -// CHECK-LL: [[ifend61]]: +// CHECK-LL: [[ifend61]] // CHECK-LL-NEXT: [[tmp63:%.*]] = load %class.test1_A** [[ap37]] // CHECK-LL-NEXT: [[v42:%.*]] = icmp ne %class.test1_A* [[tmp63]], null // CHECK-LL-NEXT: br i1 [[v42]], label %[[v43:.*]], label %[[v47:.*]] @@ -247,35 +247,35 @@ void test1() { // CHECK-LL-NEXT: [[tmp64:%.*]] = load %class.test1_E** [[ep1]] // CHECK-LL-NEXT: [[cmp65:%.*]] = icmp ne %class.test1_E* [[tmp64]], null // CHECK-LL-NEXT: br i1 [[cmp65]], label %[[ifthen66:.*]], label %[[ifelse68:.*]] -// CHECK-LL: [[ifthen66]]: +// CHECK-LL: [[ifthen66]] // CHECK-LL-NEXT: call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([10 x i8]* @.str, i32 0, i32 0), i32 8) // CHECK-LL-NEXT: br label %[[ifend70:.*]] -// CHECK-LL: [[ifelse68]]: +// CHECK-LL: [[ifelse68]] // CHECK-LL-NEXT: call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([10 x i8]* @.str1, i32 0, i32 0), i32 8) // CHECK-LL-NEXT: br label %[[ifend70]] -// CHECK-LL: [[ifend70]]: +// CHECK-LL: [[ifend70]] // CHECK-LL-NEXT: store %class.test1_D* @test1_d, %class.test1_D** [[dp]] // CHECK-LL-NEXT: [[tmp71:%.*]] = load %class.test1_D** [[dp]] // CHECK-LL-NEXT: [[cmp72:%.*]] = icmp eq %class.test1_D* [[tmp71]], @test1_d // CHECK-LL-NEXT: br i1 [[cmp72]], label %[[ifthen73:.*]], label %[[ifelse75:.*]] -// CHECK-LL: [[ifthen73]]: +// CHECK-LL: [[ifthen73]] // CHECK-LL-NEXT: call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([10 x i8]* @.str, i32 0, i32 0), i32 9) // CHECK-LL-NEXT: br label %[[ifend77:.*]] -// CHECK-LL: [[ifelse75]]: +// CHECK-LL: [[ifelse75]] // CHECK-LL-NEXT: call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([10 x i8]* @.str1, i32 0, i32 0), i32 9) // CHECK-LL-NEXT: br label %[[ifend77]] -// CHECK-LL: [[ifend77]]: +// CHECK-LL: [[ifend77]] // CHECK-LL-NEXT: store %class.test1_D* @test1_d, %class.test1_D** [[cdp]] // CHECK-LL-NEXT: [[tmp79:%.*]] = load %class.test1_D** [[cdp]] // CHECK-LL-NEXT: [[cmp80:%.*]] = icmp eq %class.test1_D* [[tmp79]], @test1_d // CHECK-LL-NEXT: br i1 [[cmp80]], label %[[ifthen81:.*]], label %[[ifelse83:.*]] -// CHECK-LL: [[ifthen81]]: +// CHECK-LL: [[ifthen81]] // CHECK-LL-NEXT: call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([10 x i8]* @.str, i32 0, i32 0), i32 10) // CHECK-LL-NEXT: br label %[[ifend85:.*]] -// CHECK-LL: [[ifelse83]]: +// CHECK-LL: [[ifelse83]] // CHECK-LL-NEXT: call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([10 x i8]* @.str1, i32 0, i32 0), i32 10) // CHECK-LL-NEXT: br label %[[ifend85]] -// CHECK-LL: [[ifend85]]: +// CHECK-LL: [[ifend85]] // CHECK-LL-NEXT: br i1 false, label %[[v50:.*]], label %[[v53:.*]] // CHECK-LL: ;