File tree Expand file tree Collapse file tree 2 files changed +18
-1
lines changed Expand file tree Collapse file tree 2 files changed +18
-1
lines changed Original file line number Diff line number Diff line change
1
+ // RUN: %clang_cc1 -triple x86_64-windows-msvc -fdeclare-spirv-builtins -fsyntax-only -emit-llvm %s -o - | FileCheck %s
2
+
3
+ float acos (float val) {
4
+ // CHECK: @"?acos@@YAMM@Z"
5
+ // CHECK: call float @"?__spirv_ocl_acos@@YAMM@Z"
6
+ return __spirv_ocl_acos (val);
7
+ }
8
+
9
+ // CHECK: declare dso_local float @"?__spirv_ocl_acos@@YAMM@Z"(float)
10
+
11
+ double acos (double val) {
12
+ // CHECK: @"?acos@@YANN@Z"
13
+ // CHECK: call double @"?__spirv_ocl_acos@@YANN@Z"
14
+ return __spirv_ocl_acos (val);
15
+ }
16
+
17
+ // CHECK: declare dso_local double @"?__spirv_ocl_acos@@YANN@Z"(double)
Original file line number Diff line number Diff line change 1
- // RUN: %clang_cc1 -fdeclare-spirv-builtins -fsyntax-only -emit-llvm %s -o - | FileCheck %s
1
+ // RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu - fdeclare-spirv-builtins -fsyntax-only -emit-llvm %s -o - | FileCheck %s
2
2
3
3
float acos (float val) {
4
4
// CHECK: @_Z4acosf
You can’t perform that action at this time.
0 commit comments