File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed
clang/test/CodeGenHLSL/builtins Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change 11// RUN: %clang_cc1 -finclude-default-header -x hlsl -triple dxil-pc-shadermodel6.2-library %s -fnative-half-type -emit-llvm -O1 -o - | FileCheck %s
22
3- // CHECK-LABEL: define {{.*}}test_ints{{.*}}(i16 {{.*}} [[VAL:%.*]]){{.*}}
4- // CHECK-NOT: bitcast
5- // CHECK-NEXT: ret i16 [[VAL]]
3+ //CHECK-LABEL: define {{.*}}test_ints
4+ //CHECK-SAME: {{.*}}(i16 {{.*}} [[VAL:%.*]]){{.*}}
5+ //CHECK-NOT: bitcast
6+ //CHECK: entry:
7+ //CHECK-NEXT: ret i16 [[VAL]]
68int16_t test_int (int16_t p0)
79{
810 return asint16 (p0);
911}
1012
1113//CHECK-LABEL: define {{.*}}test_uint
1214//CHECK-SAME: {{.*}}(i16 {{.*}} [[VAL:%.*]]){{.*}}
13- //CHECK-NOT: bitcast
15+ //CHECK-NOT:bitcast
16+ //CHECK: entry:
1417//CHECK-NEXT: ret i16 [[VAL]]
1518int16_t test_uint (uint16_t p0)
1619{
@@ -29,6 +32,7 @@ int16_t test_half(half p0)
2932//CHECK-LABEL: define {{.*}}test_vector_int
3033//CHECK-SAME: {{.*}}(<4 x i16> {{.*}} [[VAL:%.*]]){{.*}}
3134//CHECK-NOT: bitcast
35+ //CHECK: entry:
3236//CHECK-NEXT: ret <4 x i16> [[VAL]]
3337int16_t4 test_vector_int (int16_t4 p0)
3438{
@@ -38,6 +42,7 @@ int16_t4 test_vector_int(int16_t4 p0)
3842//CHECK-LABEL: define {{.*}}test_vector_uint
3943//CHECK-SAME: {{.*}}(<4 x i16> {{.*}} [[VAL:%.*]]){{.*}}
4044//CHECK-NOT: bitcast
45+ //CHECK-NEXT: entry:
4146//CHECK-NEXT: ret <4 x i16> [[VAL]]
4247int16_t4 test_vector_uint (uint16_t4 p0)
4348{
You can’t perform that action at this time.
0 commit comments