Skip to content

Commit 39ac1d6

Browse files
author
Martin Wehking
committed
Add amdgcn-amd-amdhsa triple to libdevice test
Test whether SYCL Codegen does not emit llvm intrinsics for amdgcn-amd-amdhsa and libdevice functions can be correctly linked later on.
1 parent 52d9de9 commit 39ac1d6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

clang/test/CodeGenSYCL/sycl-libdevice-cmath.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,10 @@
55
// intrinsics. This allows the driver to link in the libdevice definitions for
66
// cosf etc. later in the driver flow.
77

8-
// RUN: %clang_cc1 %s -fsycl-is-device -triple nvptx64-nvidia-cuda -emit-llvm -o - | FileCheck %s
8+
// RUN: %clang_cc1 %s -fsycl-is-device -triple nvptx64-nvidia-cuda -emit-llvm -o - | FileCheck %s
99
// RUN: %clang_cc1 %s -fsycl-is-device -triple nvptx64-nvidia-cuda -ffast-math -emit-llvm -o - | FileCheck %s
10+
// RUN: %clang_cc1 %s -fsycl-is-device -triple amdgcn-amd-amdhsa -emit-llvm -o - | FileCheck %s
11+
// RUN: %clang_cc1 %s -fsycl-is-device -triple amdgcn-amd-amdhsa -ffast-math -emit-llvm -o - | FileCheck %s
1012

1113
#include "Inputs/sycl.hpp"
1214

0 commit comments

Comments
 (0)