Skip to content

Commit 8d0ed8a

Browse files
committed
use cc1 instead of clang_dxc
1 parent 209cabf commit 8d0ed8a

File tree

4 files changed

+29
-29
lines changed

4 files changed

+29
-29
lines changed

clang/test/SemaHLSL/BuiltIns/binary-compat-overload-warnings.hlsl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
// RUN: %clang_dxc -T cs_6_0 -HV 202x -DFUNC=atan2 %s 2>&1 | FileCheck %s -DFUNC=atan2
2-
// RUN: %clang_dxc -T cs_6_0 -HV 202x -DFUNC=pow %s 2>&1 | FileCheck %s -DFUNC=pow
3-
// RUN: %clang_dxc -T cs_6_0 -HV 202x -DFUNC=step %s 2>&1 | FileCheck %s -DFUNC=step
1+
// RUN: %clang_cc1 -finclude-default-header -triple dxilv1.0-unknown-shadermodel6.0-compute -std=hlsl202x -emit-llvm-only -disable-llvm-passes -DFUNC=atan2 %s 2>&1 | FileCheck %s -DFUNC=atan2
2+
// RUN: %clang_cc1 -finclude-default-header -triple dxilv1.0-unknown-shadermodel6.0-compute -std=hlsl202x -emit-llvm-only -disable-llvm-passes -DFUNC=pow %s 2>&1 | FileCheck %s -DFUNC=pow
3+
// RUN: %clang_cc1 -finclude-default-header -triple dxilv1.0-unknown-shadermodel6.0-compute -std=hlsl202x -emit-llvm-only -disable-llvm-passes -DFUNC=step %s 2>&1 | FileCheck %s -DFUNC=step
44

55
// binary double overloads
66
float test_binary_double(double p0) {

clang/test/SemaHLSL/BuiltIns/ternary-compat-overload-warnings.hlsl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %clang_dxc -T cs_6_0 -HV 202x -DFUNC=lerp %s 2>&1 | FileCheck %s -DFUNC=lerp
1+
// RUN: %clang_cc1 -finclude-default-header -triple dxilv1.0-unknown-shadermodel6.0-compute -std=hlsl202x -emit-llvm-only -disable-llvm-passes -DFUNC=lerp %s 2>&1 | FileCheck %s -DFUNC=lerp
22

33
// ternary double overloads
44
float test_ternary_double(double p0) {

clang/test/SemaHLSL/BuiltIns/unary-compat-overload-warnings.hlsl

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,27 @@
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
2525

2626
// unary double overloads
2727
float test_unary_double(double p0) {

clang/test/SemaHLSL/BuiltIns/vec-scalar-compat-overload-warnings.hlsl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %clang_dxc -T cs_6_0 -HV 202x %s 2>&1 | FileCheck %s
1+
// RUN: %clang_cc1 -finclude-default-header -triple dxilv1.0-unknown-shadermodel6.0-compute -std=hlsl202x -emit-llvm-only -disable-llvm-passes %s 2>&1 | FileCheck %s
22

33
float2 clamp_test1(float2 p0, float2 p1, float p2) {
44
// CHECK: warning: 'clamp<float, 2U>' is deprecated: In 202x mismatched vector/scalar lowering for clamp is deprecated. Explicitly cast parameters.

0 commit comments

Comments
 (0)