File tree Expand file tree Collapse file tree 2 files changed +20
-17
lines changed
clang/test/CodeGenHLSL/builtins Expand file tree Collapse file tree 2 files changed +20
-17
lines changed Original file line number Diff line number Diff line change 1+ // RUN: %clang_cc1 -std=hlsl202x -finclude-default-header -x hlsl -triple \
2+ // RUN: dxil-pc-shadermodel6.3-library %s -emit-llvm -disable-llvm-passes \
3+ // RUN: -o - | FileCheck %s
4+
5+ // CHECK: define noundef i1 @
6+ // CHECK: %dx.isinf = call i1 @llvm.dx.isinf.f32(
7+ // CHECK: ret i1 %dx.isinf
8+ bool test_isinf_double (double p0) { return isinf (p0); }
9+ // CHECK: define noundef <2 x i1> @
10+ // CHECK: %dx.isinf = call <2 x i1> @llvm.dx.isinf.v2f32
11+ // CHECK: ret <2 x i1> %dx.isinf
12+ bool2 test_isinf_double2 (double2 p0) { return isinf (p0); }
13+ // CHECK: define noundef <3 x i1> @
14+ // CHECK: %dx.isinf = call <3 x i1> @llvm.dx.isinf.v3f32
15+ // CHECK: ret <3 x i1> %dx.isinf
16+ bool3 test_isinf_double3 (double3 p0) { return isinf (p0); }
17+ // CHECK: define noundef <4 x i1> @
18+ // CHECK: %dx.isinf = call <4 x i1> @llvm.dx.isinf.v4f32
19+ // CHECK: ret <4 x i1> %dx.isinf
20+ bool4 test_isinf_double4 (double4 p0) { return isinf (p0); }
Original file line number Diff line number Diff line change @@ -43,20 +43,3 @@ bool3 test_isinf_float3(float3 p0) { return isinf(p0); }
4343// CHECK: %dx.isinf = call <4 x i1> @llvm.dx.isinf.v4f32
4444// CHECK: ret <4 x i1> %dx.isinf
4545bool4 test_isinf_float4 (float4 p0) { return isinf (p0); }
46-
47- // CHECK: define noundef i1 @
48- // CHECK: %dx.isinf = call i1 @llvm.dx.isinf.f32(
49- // CHECK: ret i1 %dx.isinf
50- bool test_isinf_double (double p0) { return isinf (p0); }
51- // CHECK: define noundef <2 x i1> @
52- // CHECK: %dx.isinf = call <2 x i1> @llvm.dx.isinf.v2f32
53- // CHECK: ret <2 x i1> %dx.isinf
54- bool2 test_isinf_double2 (double2 p0) { return isinf (p0); }
55- // CHECK: define noundef <3 x i1> @
56- // CHECK: %dx.isinf = call <3 x i1> @llvm.dx.isinf.v3f32
57- // CHECK: ret <3 x i1> %dx.isinf
58- bool3 test_isinf_double3 (double3 p0) { return isinf (p0); }
59- // CHECK: define noundef <4 x i1> @
60- // CHECK: %dx.isinf = call <4 x i1> @llvm.dx.isinf.v4f32
61- // CHECK: ret <4 x i1> %dx.isinf
62- bool4 test_isinf_double4 (double4 p0) { return isinf (p0); }
You can’t perform that action at this time.
0 commit comments