Skip to content

Commit a8b2dd2

Browse files
committed
use existing test
Signed-off-by: Sarnie, Nick <[email protected]>
1 parent 67ae789 commit a8b2dd2

File tree

2 files changed

+14
-25
lines changed

2 files changed

+14
-25
lines changed

clang/test/OpenMP/reduction_complex.c

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,17 @@
1010
// RUN: -fopenmp-is-target-device -fopenmp-host-ir-file-path %t-ppc-host.bc \
1111
// RUN: -o - | FileCheck %s --check-prefix CHECK
1212

13+
// RUN: %clang_cc1 -verify -fopenmp -fopenmp-cuda-mode -x c++ \
14+
// RUN: -triple powerpc64le-unknown-unknown \
15+
// RUN: -fopenmp-targets=spirv64-intel -emit-llvm-bc %s -o \
16+
// RUN: %t-ppc-host-spv.bc
17+
18+
// RUN: %clang_cc1 -verify -fopenmp -fopenmp-cuda-mode -x c++ \
19+
// RUN: -triple spirv64-intel -DCUA \
20+
// RUN: -fopenmp-targets=spirv64-intel -emit-llvm %s \
21+
// RUN: -fopenmp-is-target-device -fopenmp-host-ir-file-path %t-ppc-host-spv.bc \
22+
// RUN: -o - | FileCheck %s --check-prefix CHECK
23+
1324
// expected-no-diagnostics
1425
int foo() {
1526
int i;
@@ -46,9 +57,9 @@ int foo() {
4657
// CHECK-NEXT: %[[VAL_244:.*]] = getelementptr inbounds [1 x ptr], ptr %[[VAL_232]], i64 0, i64 0
4758
// CHECK-NEXT: %[[VAL_245:.*]] = getelementptr { float, float }, ptr %[[VAL_243]], i64 1
4859
// CHECK-NEXT: %[[VAL_246:.*]] = load i64, ptr %[[VAL_243]], align 8
49-
// CHECK-NEXT: %[[VAL_247:.*]] = call i32 @__kmpc_get_warp_size()
60+
// CHECK-NEXT: %[[VAL_247:.*]] = call{{.*}}i32 @__kmpc_get_warp_size()
5061
// CHECK-NEXT: %[[VAL_248:.*]] = trunc i32 %[[VAL_247]] to i16
51-
// CHECK-NEXT: %[[VAL_249:.*]] = call i64 @__kmpc_shuffle_int64(i64 %[[VAL_246]], i16 %[[VAL_240]], i16 %[[VAL_248]])
62+
// CHECK-NEXT: %[[VAL_249:.*]] = call{{.*}}i64 @__kmpc_shuffle_int64(i64 %[[VAL_246]], i16 %[[VAL_240]], i16 %[[VAL_248]])
5263
// CHECK-NEXT: store i64 %[[VAL_249]], ptr %[[VAL_233]], align 8
5364
// CHECK-NEXT: %[[VAL_250:.*]] = getelementptr i64, ptr %[[VAL_243]], i64 1
5465
// CHECK-NEXT: %[[VAL_251:.*]] = getelementptr i64, ptr %[[VAL_233]], i64 1
@@ -67,7 +78,7 @@ int foo() {
6778
// CHECK-NEXT: %[[VAL_263:.*]] = or i1 %[[VAL_262]], %[[VAL_261]]
6879
// CHECK-NEXT: br i1 %[[VAL_263]], label %[[VAL_264:.*]], label %[[VAL_265:.*]]
6980
// CHECK: then: ; preds = %[[VAL_266:.*]]
70-
// CHECK-NEXT: call void @"{{__omp_offloading_[0-9a-z]+_[0-9a-z]+}}__Z3foov_l{{[0-9]+}}_omp_outlined_omp_outlined_omp$reduction$reduction_func"(ptr %[[VAL_238]], ptr %[[VAL_232]]) #2
81+
// CHECK-NEXT: call{{.*}}void @"{{__omp_offloading_[0-9a-z]+_[0-9a-z]+}}__Z3foov_l{{[0-9]+}}_omp_outlined_omp_outlined_omp$reduction$reduction_func"(ptr %[[VAL_238]], ptr %[[VAL_232]]) #2
7182
// CHECK-NEXT: br label %[[VAL_267:.*]]
7283
// CHECK: else: ; preds = %[[VAL_266]]
7384
// CHECK-NEXT: br label %[[VAL_267]]

clang/test/OpenMP/spirv_reduction.cpp

Lines changed: 0 additions & 22 deletions
This file was deleted.

0 commit comments

Comments
 (0)