summaryrefslogtreecommitdiffstats
path: root/clang/test/OpenMP/for_reduction_codegen_UDR.cpp
diff options
context:
space:
mode:
authorAlexey Bataev <a.bataev@hotmail.com>2017-07-13 14:54:42 +0000
committerAlexey Bataev <a.bataev@hotmail.com>2017-07-13 14:54:42 +0000
commit80621121e25f0e5febddad266f6aeb014d6575fe (patch)
tree5c613cb302107694eae8ebaecabc36b96d138312 /clang/test/OpenMP/for_reduction_codegen_UDR.cpp
parent3ef6fd5637d369ebd0a2da21ec87742b50a1b0e9 (diff)
downloadbcm5719-llvm-80621121e25f0e5febddad266f6aeb014d6575fe.tar.gz
bcm5719-llvm-80621121e25f0e5febddad266f6aeb014d6575fe.zip
[OPENMP] Fix reduction tests, NFC.
llvm-svn: 307912
Diffstat (limited to 'clang/test/OpenMP/for_reduction_codegen_UDR.cpp')
-rw-r--r--clang/test/OpenMP/for_reduction_codegen_UDR.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/clang/test/OpenMP/for_reduction_codegen_UDR.cpp b/clang/test/OpenMP/for_reduction_codegen_UDR.cpp
index 69dd31ddcb6..c96a9f36907 100644
--- a/clang/test/OpenMP/for_reduction_codegen_UDR.cpp
+++ b/clang/test/OpenMP/for_reduction_codegen_UDR.cpp
@@ -310,12 +310,8 @@ int main() {
// CHECK: store i{{[0-9]+}}* %{{.+}}, i{{[0-9]+}}** [[ARR_ADDR:%.+]],
// CHECK: [[ARR:%.+]] = load i{{[0-9]+}}*, i{{[0-9]+}}** [[ARR_ADDR]],
-// CHECK: [[LB1:%.+]] = getelementptr inbounds i32, i32* [[ARR]], i64
-// CHECK: [[LB1_0:%.+]] = getelementptr inbounds i32, i32* [[LB1]], i64 0
-// 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
+// CHECK: [[UB_CAST:%.+]] = ptrtoint i32* [[UB1_UP:%.+]] to i64
+// CHECK: [[LB_CAST:%.+]] = ptrtoint i32* [[LB1_0:%.+]] to i64
// CHECK: [[DIFF:%.+]] = sub i64 [[UB_CAST]], [[LB_CAST]]
// CHECK: [[SIZE_1:%.+]] = sdiv exact i64 [[DIFF]], ptrtoint (i32* getelementptr (i32, i32* null, i32 1) to i64)
// CHECK: [[ARR_SIZE:%.+]] = add nuw i64 [[SIZE_1]], 1
OpenPOWER on IntegriCloud