Skip to content

Commit f8f20b8

Browse files
committed
Fix codegen test failure
1 parent e49c5fb commit f8f20b8

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

clang/test/CodeGenHLSL/builtins/asint16.hlsl

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,19 @@
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]]
68
int16_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]]
1518
int16_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]]
3337
int16_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]]
4247
int16_t4 test_vector_uint(uint16_t4 p0)
4348
{

0 commit comments

Comments
 (0)