Skip to content

Commit 0838022

Browse files
committed
Update test
1 parent 20736d3 commit 0838022

File tree

3 files changed

+4
-0
lines changed

3 files changed

+4
-0
lines changed

clang/test/Preprocessor/sycl-macro-target-specific.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@
4242
// RUN: | FileCheck --check-prefix=CHECK-SYCL-FP-ATOMICS %s
4343
// RUN: %clang_cc1 %s -fsycl-is-device -triple amdgcn-amdhsa-amdhsa -E -dM \
4444
// RUN: | FileCheck --check-prefix=CHECK-SYCL-FP-ATOMICS %s
45+
// RUN: %clang_cc1 %s -fsycl-is-device -triple x86_64-unknown-linux-gnu -fsycl-is-native-cpu \
46+
// RUN: -E -dM | FileCheck --check-prefix=CHECK-SYCL-FP-ATOMICS %s
4547
// CHECK-SYCL-FP-ATOMICS: #define SYCL_USE_NATIVE_FP_ATOMICS
4648
// CHECK-SYCL-FP-ATOMICS-NEG-NOT: #define SYCL_USE_NATIVE_FP_ATOMICS
4749

llvm/lib/SYCLNativeCPUUtils/FAtomicsNativeCPU.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ PreservedAnalyses FAtomicsNativeCPU::run(Module &M,
2424
ModuleAnalysisManager &MAM) {
2525
bool ModuleChanged = false;
2626
auto &Ctx = M.getContext();
27+
// TODO: add checks for windows mangling
2728
for (auto &F : M) {
2829
AtomicRMWInst::BinOp OpCode;
2930
if (F.getName().starts_with("_Z21__spirv_AtomicFAddEXT")) {

sycl/test/check_device_code/native_cpu/fp_atomic.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// REQUIRES: linux
12
// RUN: %clangxx -fsycl-device-only -fsycl-targets=native_cpu -S -emit-llvm -o %t_temp.ll %s
23
// RUN: %clangxx -mllvm -sycl-native-cpu-backend -S -emit-llvm -o - %t_temp.ll | FileCheck %s
34
#include <sycl/sycl.hpp>

0 commit comments

Comments
 (0)