summaryrefslogtreecommitdiffstats
path: root/clang/test/OpenMP/target_exit_data_depend_codegen.cpp
diff options
context:
space:
mode:
authorGheorghe-Teodor Bercea <gheorghe-teod.bercea@ibm.com>2019-06-19 14:26:43 +0000
committerGheorghe-Teodor Bercea <gheorghe-teod.bercea@ibm.com>2019-06-19 14:26:43 +0000
commitc74707cb390456378496e7834c95ea15ef564e1a (patch)
treee81282a82ae04523ee95f144888a2f2edde9d0a2 /clang/test/OpenMP/target_exit_data_depend_codegen.cpp
parent2b309027ed5be06e86b628e51ba9887add5fb245 (diff)
downloadbcm5719-llvm-c74707cb390456378496e7834c95ea15ef564e1a.tar.gz
bcm5719-llvm-c74707cb390456378496e7834c95ea15ef564e1a.zip
[OpenMP] Strengthen regression tests for task allocation under nowait depend clauses NFC
Summary: This patch strengthens the tests introduced in D63009 by: - adding new test for default device ID. - modifying existing tests to pass device ID local variable to the task allocation function. Reviewers: ABataev, Hahnfeld, caomhin, jdoerfert Reviewed By: ABataev Subscribers: guansong, jdoerfert, cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D63454 llvm-svn: 363809
Diffstat (limited to 'clang/test/OpenMP/target_exit_data_depend_codegen.cpp')
-rw-r--r--clang/test/OpenMP/target_exit_data_depend_codegen.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/clang/test/OpenMP/target_exit_data_depend_codegen.cpp b/clang/test/OpenMP/target_exit_data_depend_codegen.cpp
index 50e808ff3bd..61ac63c7588 100644
--- a/clang/test/OpenMP/target_exit_data_depend_codegen.cpp
+++ b/clang/test/OpenMP/target_exit_data_depend_codegen.cpp
@@ -63,7 +63,9 @@ void foo(int arg) {
// CK1: [[CAP_DEVICE:%.+]] = getelementptr inbounds %struct.anon, %struct.anon* [[CAPTURES:%.+]], i32 0, i32 0
// CK1: [[DEVICE:%.+]] = load i32, i32* %{{.+}}
// CK1: store i32 [[DEVICE]], i32* [[CAP_DEVICE]],
- // CK1: [[RES:%.+]] = call i8* @__kmpc_omp_target_task_alloc(%struct.ident_t* {{.+}}, i32 {{.+}}, i32 1, i[[sz]] [[sz]], i[[sz]] 4, i32 (i32, i8*)* bitcast (i32 (i32, %struct.kmp_task_t_with_privates*)* [[TASK_ENTRY0:@.+]] to i32 (i32, i8*)*), i64
+ // CK1: [[DEV1:%.+]] = load i32, i32* %{{.+}}
+ // CK1: [[DEV2:%.+]] = sext i32 [[DEV1]] to i64
+ // CK1: [[RES:%.+]] = call i8* @__kmpc_omp_target_task_alloc(%struct.ident_t* {{.+}}, i32 {{.+}}, i32 1, i[[sz]] [[sz]], i[[sz]] 4, i32 (i32, i8*)* bitcast (i32 (i32, %struct.kmp_task_t_with_privates*)* [[TASK_ENTRY0:@.+]] to i32 (i32, i8*)*), i64 [[DEV2]])
// CK1: [[BC:%.+]] = bitcast i8* [[RES]] to %struct.kmp_task_t_with_privates*
// CK1: [[TASK_T:%.+]] = getelementptr inbounds %struct.kmp_task_t_with_privates, %struct.kmp_task_t_with_privates* [[BC]], i32 0, i32 0
// CK1: [[SHAREDS:%.+]] = getelementptr inbounds %struct.kmp_task_t, %struct.kmp_task_t* [[TASK_T]], i32 0, i32 0
OpenPOWER on IntegriCloud