Author: abataev Date: Thu Jul 13 07:29:19 2017 New Revision: 307911 URL: http://llvm.org/viewvc/llvm-project?rev=307911&view=rev Log: [OPENMP] Fix reduction tests, NFC.
Modified: cfe/trunk/test/OpenMP/for_reduction_codegen.cpp cfe/trunk/test/OpenMP/for_reduction_codegen_UDR.cpp Modified: cfe/trunk/test/OpenMP/for_reduction_codegen.cpp URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/OpenMP/for_reduction_codegen.cpp?rev=307911&r1=307910&r2=307911&view=diff ============================================================================== --- cfe/trunk/test/OpenMP/for_reduction_codegen.cpp (original) +++ cfe/trunk/test/OpenMP/for_reduction_codegen.cpp Thu Jul 13 07:29:19 2017 @@ -497,12 +497,13 @@ int main() { // CHECK: [[RED_LIST:%.+]] = alloca [4 x i8*], // CHECK: store i{{[0-9]+}}* [[GTID_ADDR]], i{{[0-9]+}}** [[GTID_ADDR_ADDR:%.+]], +// CHECK: store i{{[0-9]+}}* %{{.+}}, i{{[0-9]+}}** +// CHECK: store i{{[0-9]+}}* %{{.+}}, i{{[0-9]+}}** [[ARR_ADDR:%.+]], +// CHECK: [[ARR:%.+]] = load i{{[0-9]+}}*, i{{[0-9]+}}** [[ARR_ADDR]], -// CHECK: [[IDX1:%.+]] = mul nsw i64 1, %{{.+}} -// CHECK: [[LB1:%.+]] = getelementptr inbounds i32, i32* %{{.+}}, i64 [[IDX1]] +// CHECK: [[LB1:%.+]] = getelementptr inbounds i32, i32* [[ARR]], i64 // CHECK: [[LB1_0:%.+]] = getelementptr inbounds i32, i32* [[LB1]], i64 0 -// CHECK: [[IDX1:%.+]] = mul nsw i64 1, %{{.+}} -// CHECK: [[UB1:%.+]] = getelementptr inbounds i32, i32* %{{.+}}, i64 [[IDX1]] +// CHECK: [[UB1:%.+]] = getelementptr inbounds i32, i32* [[ARR]], i64 // CHECK: [[UB1_UP:%.+]] = getelementptr inbounds i32, i32* [[UB1]], i64 % // CHECK: [[UB_CAST:%.+]] = ptrtoint i32* [[UB1_UP]] to i64 // CHECK: [[LB_CAST:%.+]] = ptrtoint i32* [[LB1_0]] to i64 Modified: cfe/trunk/test/OpenMP/for_reduction_codegen_UDR.cpp URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/OpenMP/for_reduction_codegen_UDR.cpp?rev=307911&r1=307910&r2=307911&view=diff ============================================================================== --- cfe/trunk/test/OpenMP/for_reduction_codegen_UDR.cpp (original) +++ cfe/trunk/test/OpenMP/for_reduction_codegen_UDR.cpp Thu Jul 13 07:29:19 2017 @@ -306,12 +306,13 @@ int main() { // CHECK: [[RED_LIST:%.+]] = alloca [4 x i8*], // CHECK: store i{{[0-9]+}}* [[GTID_ADDR]], i{{[0-9]+}}** [[GTID_ADDR_ADDR:%.+]], +// CHECK: store i{{[0-9]+}}* %{{.+}}, i{{[0-9]+}}** +// CHECK: store i{{[0-9]+}}* %{{.+}}, i{{[0-9]+}}** [[ARR_ADDR:%.+]], +// CHECK: [[ARR:%.+]] = load i{{[0-9]+}}*, i{{[0-9]+}}** [[ARR_ADDR]], -// CHECK: [[IDX1:%.+]] = mul nsw i64 1, %{{.+}} -// CHECK: [[LB1:%.+]] = getelementptr inbounds i32, i32* %{{.+}}, i64 [[IDX1]] +// CHECK: [[LB1:%.+]] = getelementptr inbounds i32, i32* [[ARR]], i64 // CHECK: [[LB1_0:%.+]] = getelementptr inbounds i32, i32* [[LB1]], i64 0 -// CHECK: [[IDX1:%.+]] = mul nsw i64 1, %{{.+}} -// CHECK: [[UB1:%.+]] = getelementptr inbounds i32, i32* %{{.+}}, i64 [[IDX1]] +// CHECK: [[UB1:%.+]] = getelementptr inbounds i32, i32* [[ARR]], i64 // CHECK: [[UB1_UP:%.+]] = getelementptr inbounds i32, i32* [[UB1]], i64 % // CHECK: [[UB_CAST:%.+]] = ptrtoint i32* [[UB1_UP]] to i64 // CHECK: [[LB_CAST:%.+]] = ptrtoint i32* [[LB1_0]] to i64 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits