1
1
// RUN: %clang_cc1 -triple dxil-unknown-shadermodel6.6-library -S -fnative-half-type -finclude-default-header -o - -ast-dump %s | FileCheck %s
2
- // RUN: %clang_cc1 -std=hlsl2021 -finclude-default-header -x hlsl -triple \
3
- // RUN: dxil-pc-shadermodel6.3-library %s -fnative-half-type \
4
- // RUN: -emit-llvm -disable-llvm-passes -O3 -o - | FileCheck %s \
5
- // RUN: --check-prefixes=CHECKIR
2
+ // RUN: %clang_cc1 -finclude-default-header -triple dxil-pc-shadermodel6.6-library %s -fnative-half-type -emit-llvm -disable-llvm-passes -o - | FileCheck %s --check-prefixes=CHECKIR
6
3
void Fn (double2 D);
7
4
void Fn (half2 H);
8
5
@@ -42,7 +39,8 @@ void Fn3( int64_t2 p0);
42
39
// CHECK-NEXT: ImplicitCastExpr {{.*}} 'int64_t2':'long __attribute__((ext_vector_type(2)))' <FloatingToIntegral>
43
40
// CHECK-NEXT: ImplicitCastExpr {{.*}} 'half2':'half __attribute__((ext_vector_type(2)))' <LValueToRValue>
44
41
// CHECK-NEXT: DeclRefExpr {{.*}} 'half2':'half __attribute__((ext_vector_type(2)))' lvalue ParmVar {{.*}} 'p0' 'half2':'half __attribute__((ext_vector_type(2)))'
45
- // CHECKIR: %conv = fptosi <2 x half> %0 to <2 x i64>
42
+ // CHECKIR-LABEL: Call3
43
+ // CHECKIR: %conv = fptosi <2 x half> {{.*}} to <2 x i64>
46
44
void Call3 (half2 p0) {
47
45
Fn3 (p0);
48
46
}
@@ -54,7 +52,8 @@ void Call3(half2 p0) {
54
52
// CHECK-NEXT: ImplicitCastExpr {{.*}} 'int64_t2':'long __attribute__((ext_vector_type(2)))' <FloatingToIntegral>
55
53
// CHECK-NEXT: ImplicitCastExpr {{.*}} 'float2':'float __attribute__((ext_vector_type(2)))' <LValueToRValue>
56
54
// CHECK-NEXT: DeclRefExpr {{.*}} 'float2':'float __attribute__((ext_vector_type(2)))' lvalue ParmVar {{.*}} 'p0' 'float2':'float __attribute__((ext_vector_type(2)))'
57
- // CHECKIR: %conv = fptosi <2 x float> %0 to <2 x i64>
55
+ // CHECKIR-LABEL: Call4
56
+ // CHECKIR: {{.*}} = fptosi <2 x float> {{.*}} to <2 x i64>
58
57
void Call4 (float2 p0) {
59
58
Fn3 (p0);
60
59
}
@@ -68,7 +67,8 @@ void Fn4( float2 p0);
68
67
// CHECK-NEXT: ImplicitCastExpr {{.*}} 'float2':'float __attribute__((ext_vector_type(2)))' <IntegralToFloating>
69
68
// CHECK-NEXT: ImplicitCastExpr {{.*}} 'int64_t2':'long __attribute__((ext_vector_type(2)))' <LValueToRValue>
70
69
// CHECK-NEXT: DeclRefExpr {{.*}} 'int64_t2':'long __attribute__((ext_vector_type(2)))' lvalue ParmVar {{.*}} 'p0' 'int64_t2':'long __attribute__((ext_vector_type(2)))'
71
- // CHECKIR: %conv = sitofp <2 x i64> %0 to <2 x float>
70
+ // CHECKIR-LABEL: Call5
71
+ // CHECKIR: {{.*}} = sitofp <2 x i64> {{.*}} to <2 x float>
72
72
void Call5 (int64_t2 p0) {
73
73
Fn4 (p0);
74
74
}
0 commit comments