|
1 | | -// RUN: %clang_dxc -T cs_6_0 -HV 202x -DFUNC=acos %s 2>&1 | FileCheck %s -DFUNC=acos |
2 | | -// RUN: %clang_dxc -T cs_6_0 -HV 202x -DFUNC=asin %s 2>&1 | FileCheck %s -DFUNC=asin |
3 | | -// RUN: %clang_dxc -T cs_6_0 -HV 202x -DFUNC=atan %s 2>&1 | FileCheck %s -DFUNC=atan |
4 | | -// RUN: %clang_dxc -T cs_6_0 -HV 202x -DFUNC=ceil %s 2>&1 | FileCheck %s -DFUNC=ceil |
5 | | -// RUN: %clang_dxc -T cs_6_0 -HV 202x -DFUNC=cos %s 2>&1 | FileCheck %s -DFUNC=cos |
6 | | -// RUN: %clang_dxc -T cs_6_0 -HV 202x -DFUNC=cosh %s 2>&1 | FileCheck %s -DFUNC=cosh |
7 | | -// RUN: %clang_dxc -T cs_6_0 -HV 202x -DFUNC=degrees %s 2>&1 | FileCheck %s -DFUNC=degrees |
8 | | -// RUN: %clang_dxc -T cs_6_0 -HV 202x -DFUNC=exp %s 2>&1 | FileCheck %s -DFUNC=exp |
9 | | -// RUN: %clang_dxc -T cs_6_0 -HV 202x -DFUNC=exp2 %s 2>&1 | FileCheck %s -DFUNC=exp2 |
10 | | -// RUN: %clang_dxc -T cs_6_0 -HV 202x -DFUNC=floor %s 2>&1 | FileCheck %s -DFUNC=floor |
11 | | -// RUN: %clang_dxc -T cs_6_0 -HV 202x -DFUNC=frac %s 2>&1 | FileCheck %s -DFUNC=frac |
12 | | -// RUN: %clang_dxc -T cs_6_0 -HV 202x -DFUNC=log %s 2>&1 | FileCheck %s -DFUNC=log |
13 | | -// RUN: %clang_dxc -T cs_6_0 -HV 202x -DFUNC=log10 %s 2>&1 | FileCheck %s -DFUNC=log10 |
14 | | -// RUN: %clang_dxc -T cs_6_0 -HV 202x -DFUNC=log2 %s 2>&1 | FileCheck %s -DFUNC=log2 |
15 | | -// RUN: %clang_dxc -T cs_6_0 -HV 202x -DFUNC=normalize %s 2>&1 | FileCheck %s -DFUNC=normalize |
16 | | -// RUN: %clang_dxc -T cs_6_0 -HV 202x -DFUNC=rsqrt %s 2>&1 | FileCheck %s -DFUNC=rsqrt |
17 | | -// RUN: %clang_dxc -T cs_6_0 -HV 202x -DFUNC=round %s 2>&1 | FileCheck %s -DFUNC=round |
18 | | -// RUN: %clang_dxc -T cs_6_0 -HV 202x -DFUNC=sin %s 2>&1 | FileCheck %s -DFUNC=sin |
19 | | -// RUN: %clang_dxc -T cs_6_0 -HV 202x -DFUNC=sinh %s 2>&1 | FileCheck %s -DFUNC=sinh |
20 | | -// RUN: %clang_dxc -T cs_6_0 -HV 202x -DFUNC=sqrt %s 2>&1 | FileCheck %s -DFUNC=sqrt |
21 | | -// RUN: %clang_dxc -T cs_6_0 -HV 202x -DFUNC=tan %s 2>&1 | FileCheck %s -DFUNC=tan |
22 | | -// RUN: %clang_dxc -T cs_6_0 -HV 202x -DFUNC=tanh %s 2>&1 | FileCheck %s -DFUNC=tanh |
23 | | -// RUN: %clang_dxc -T cs_6_0 -HV 202x -DFUNC=trunc %s 2>&1 | FileCheck %s -DFUNC=trunc |
24 | | -// RUN: %clang_dxc -T cs_6_0 -HV 202x -DFUNC=radians %s 2>&1 | FileCheck %s -DFUNC=radians |
| 1 | +// RUN: %clang_cc1 -finclude-default-header -triple dxilv1.0-unknown-shadermodel6.0-compute -std=hlsl202x -emit-llvm-only -disable-llvm-passes -DFUNC=acos %s 2>&1 | FileCheck %s -DFUNC=acos |
| 2 | +// RUN: %clang_cc1 -finclude-default-header -triple dxilv1.0-unknown-shadermodel6.0-compute -std=hlsl202x -emit-llvm-only -disable-llvm-passes -DFUNC=asin %s 2>&1 | FileCheck %s -DFUNC=asin |
| 3 | +// RUN: %clang_cc1 -finclude-default-header -triple dxilv1.0-unknown-shadermodel6.0-compute -std=hlsl202x -emit-llvm-only -disable-llvm-passes -DFUNC=atan %s 2>&1 | FileCheck %s -DFUNC=atan |
| 4 | +// RUN: %clang_cc1 -finclude-default-header -triple dxilv1.0-unknown-shadermodel6.0-compute -std=hlsl202x -emit-llvm-only -disable-llvm-passes -DFUNC=ceil %s 2>&1 | FileCheck %s -DFUNC=ceil |
| 5 | +// RUN: %clang_cc1 -finclude-default-header -triple dxilv1.0-unknown-shadermodel6.0-compute -std=hlsl202x -emit-llvm-only -disable-llvm-passes -DFUNC=cos %s 2>&1 | FileCheck %s -DFUNC=cos |
| 6 | +// RUN: %clang_cc1 -finclude-default-header -triple dxilv1.0-unknown-shadermodel6.0-compute -std=hlsl202x -emit-llvm-only -disable-llvm-passes -DFUNC=cosh %s 2>&1 | FileCheck %s -DFUNC=cosh |
| 7 | +// RUN: %clang_cc1 -finclude-default-header -triple dxilv1.0-unknown-shadermodel6.0-compute -std=hlsl202x -emit-llvm-only -disable-llvm-passes -DFUNC=degrees %s 2>&1 | FileCheck %s -DFUNC=degrees |
| 8 | +// RUN: %clang_cc1 -finclude-default-header -triple dxilv1.0-unknown-shadermodel6.0-compute -std=hlsl202x -emit-llvm-only -disable-llvm-passes -DFUNC=exp %s 2>&1 | FileCheck %s -DFUNC=exp |
| 9 | +// RUN: %clang_cc1 -finclude-default-header -triple dxilv1.0-unknown-shadermodel6.0-compute -std=hlsl202x -emit-llvm-only -disable-llvm-passes -DFUNC=exp2 %s 2>&1 | FileCheck %s -DFUNC=exp2 |
| 10 | +// RUN: %clang_cc1 -finclude-default-header -triple dxilv1.0-unknown-shadermodel6.0-compute -std=hlsl202x -emit-llvm-only -disable-llvm-passes -DFUNC=floor %s 2>&1 | FileCheck %s -DFUNC=floor |
| 11 | +// RUN: %clang_cc1 -finclude-default-header -triple dxilv1.0-unknown-shadermodel6.0-compute -std=hlsl202x -emit-llvm-only -disable-llvm-passes -DFUNC=frac %s 2>&1 | FileCheck %s -DFUNC=frac |
| 12 | +// RUN: %clang_cc1 -finclude-default-header -triple dxilv1.0-unknown-shadermodel6.0-compute -std=hlsl202x -emit-llvm-only -disable-llvm-passes -DFUNC=log %s 2>&1 | FileCheck %s -DFUNC=log |
| 13 | +// RUN: %clang_cc1 -finclude-default-header -triple dxilv1.0-unknown-shadermodel6.0-compute -std=hlsl202x -emit-llvm-only -disable-llvm-passes -DFUNC=log10 %s 2>&1 | FileCheck %s -DFUNC=log10 |
| 14 | +// RUN: %clang_cc1 -finclude-default-header -triple dxilv1.0-unknown-shadermodel6.0-compute -std=hlsl202x -emit-llvm-only -disable-llvm-passes -DFUNC=log2 %s 2>&1 | FileCheck %s -DFUNC=log2 |
| 15 | +// RUN: %clang_cc1 -finclude-default-header -triple dxilv1.0-unknown-shadermodel6.0-compute -std=hlsl202x -emit-llvm-only -disable-llvm-passes -DFUNC=normalize %s 2>&1 | FileCheck %s -DFUNC=normalize |
| 16 | +// RUN: %clang_cc1 -finclude-default-header -triple dxilv1.0-unknown-shadermodel6.0-compute -std=hlsl202x -emit-llvm-only -disable-llvm-passes -DFUNC=rsqrt %s 2>&1 | FileCheck %s -DFUNC=rsqrt |
| 17 | +// RUN: %clang_cc1 -finclude-default-header -triple dxilv1.0-unknown-shadermodel6.0-compute -std=hlsl202x -emit-llvm-only -disable-llvm-passes -DFUNC=round %s 2>&1 | FileCheck %s -DFUNC=round |
| 18 | +// RUN: %clang_cc1 -finclude-default-header -triple dxilv1.0-unknown-shadermodel6.0-compute -std=hlsl202x -emit-llvm-only -disable-llvm-passes -DFUNC=sin %s 2>&1 | FileCheck %s -DFUNC=sin |
| 19 | +// RUN: %clang_cc1 -finclude-default-header -triple dxilv1.0-unknown-shadermodel6.0-compute -std=hlsl202x -emit-llvm-only -disable-llvm-passes -DFUNC=sinh %s 2>&1 | FileCheck %s -DFUNC=sinh |
| 20 | +// RUN: %clang_cc1 -finclude-default-header -triple dxilv1.0-unknown-shadermodel6.0-compute -std=hlsl202x -emit-llvm-only -disable-llvm-passes -DFUNC=sqrt %s 2>&1 | FileCheck %s -DFUNC=sqrt |
| 21 | +// RUN: %clang_cc1 -finclude-default-header -triple dxilv1.0-unknown-shadermodel6.0-compute -std=hlsl202x -emit-llvm-only -disable-llvm-passes -DFUNC=tan %s 2>&1 | FileCheck %s -DFUNC=tan |
| 22 | +// RUN: %clang_cc1 -finclude-default-header -triple dxilv1.0-unknown-shadermodel6.0-compute -std=hlsl202x -emit-llvm-only -disable-llvm-passes -DFUNC=tanh %s 2>&1 | FileCheck %s -DFUNC=tanh |
| 23 | +// RUN: %clang_cc1 -finclude-default-header -triple dxilv1.0-unknown-shadermodel6.0-compute -std=hlsl202x -emit-llvm-only -disable-llvm-passes -DFUNC=trunc %s 2>&1 | FileCheck %s -DFUNC=trunc |
| 24 | +// RUN: %clang_cc1 -finclude-default-header -triple dxilv1.0-unknown-shadermodel6.0-compute -std=hlsl202x -emit-llvm-only -disable-llvm-passes -DFUNC=radians %s 2>&1 | FileCheck %s -DFUNC=radians |
25 | 25 |
|
26 | 26 | // unary double overloads |
27 | 27 | float test_unary_double(double p0) { |
|
0 commit comments