Skip to content

Commit ef679b5

Browse files
Dinar TemirbulatovDinar Temirbulatov
authored andcommitted
Resolve comment.
1 parent d88118c commit ef679b5

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

clang/include/clang/Basic/DiagnosticSemaKinds.td

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3761,7 +3761,7 @@ def warn_sme_streaming_pass_return_vl_to_non_streaming : Warning<
37613761
" different">,
37623762
InGroup<AArch64SMEAttributes>, DefaultIgnore;
37633763
def warn_sme_locally_streaming_has_vl_args_returns : Warning<
3764-
"passing/returning a VL-dependent argument from a arm_locally_streaming"
3764+
"passing/returning a VL-dependent argument from a __arm_locally_streaming"
37653765
" function. The streaming and non-streaming vector"
37663766
" lengths may be different">,
37673767
InGroup<AArch64SMEAttributes>, DefaultIgnore;

clang/test/Sema/aarch64-incompat-sm-builtin-calls.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ svuint32_t incompat_sve_sm(svbool_t pg, svuint32_t a, int16_t b) __arm_streaming
3333
return __builtin_sve_svld1_gather_u32base_index_u32(pg, a, b);
3434
}
3535

36-
// expected-warning@+1 {{passing/returning a VL-dependent argument from a arm_locally_streaming function. The streaming and non-streaming vector lengths may be different}}
36+
// expected-warning@+1 {{passing/returning a VL-dependent argument from a __arm_locally_streaming function. The streaming and non-streaming vector lengths may be different}}
3737
__arm_locally_streaming svuint32_t incompat_sve_ls(svbool_t pg, svuint32_t a, int64_t b) {
3838
// expected-warning@+1 {{builtin call has undefined behaviour when called from a streaming function}}
3939
return __builtin_sve_svld1_gather_u32base_index_u32(pg, a, b);
@@ -49,7 +49,7 @@ svuint32_t incompat_sve2_sm(svbool_t pg, svuint32_t a, int64_t b) __arm_streamin
4949
return __builtin_sve_svldnt1_gather_u32base_index_u32(pg, a, b);
5050
}
5151

52-
// expected-warning@+1 {{passing/returning a VL-dependent argument from a arm_locally_streaming function. The streaming and non-streaming vector lengths may be different}}
52+
// expected-warning@+1 {{passing/returning a VL-dependent argument from a __arm_locally_streaming function. The streaming and non-streaming vector lengths may be different}}
5353
__arm_locally_streaming svuint32_t incompat_sve2_ls(svbool_t pg, svuint32_t a, int64_t b) {
5454
// expected-warning@+1 {{builtin call has undefined behaviour when called from a streaming function}}
5555
return __builtin_sve_svldnt1_gather_u32base_index_u32(pg, a, b);
@@ -70,7 +70,7 @@ svfloat64_t streaming_caller_sve(svbool_t pg, svfloat64_t a, float64_t b) __arm_
7070
return svadd_n_f64_m(pg, a, b);
7171
}
7272

73-
// expected-warning@+1 {{passing/returning a VL-dependent argument from a arm_locally_streaming function. The streaming and non-streaming vector lengths may be different}}
73+
// expected-warning@+1 {{passing/returning a VL-dependent argument from a __arm_locally_streaming function. The streaming and non-streaming vector lengths may be different}}
7474
__arm_locally_streaming svfloat64_t locally_streaming_caller_sve(svbool_t pg, svfloat64_t a, float64_t b) {
7575
// expected-no-warning
7676
return svadd_n_f64_m(pg, a, b);
@@ -86,7 +86,7 @@ svint16_t streaming_caller_sve2(svint16_t op1, svint16_t op2) __arm_streaming {
8686
return svmul_lane_s16(op1, op2, 0);
8787
}
8888

89-
// expected-warning@+1 {{passing/returning a VL-dependent argument from a arm_locally_streaming function. The streaming and non-streaming vector lengths may be different}}
89+
// expected-warning@+1 {{passing/returning a VL-dependent argument from a __arm_locally_streaming function. The streaming and non-streaming vector lengths may be different}}
9090
__arm_locally_streaming svint16_t locally_streaming_caller_sve2(svint16_t op1, svint16_t op2) {
9191
// expected-no-warning
9292
return svmul_lane_s16(op1, op2, 0);

clang/test/Sema/aarch64-sme-func-attrs.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -512,12 +512,12 @@ void sme_no_streaming_with_vl_arg(__SVInt8_t a) { }
512512

513513
__SVInt8_t sme_no_streaming_returns_vl(void) { __SVInt8_t r; return r; }
514514

515-
// expected-warning@+2 {{passing/returning a VL-dependent argument from a arm_locally_streaming function. The streaming and non-streaming vector lengths may be different}}
516-
// expected-cpp-warning@+1 {{passing/returning a VL-dependent argument from a arm_locally_streaming function. The streaming and non-streaming vector lengths may be different}}
515+
// expected-warning@+2 {{passing/returning a VL-dependent argument from a __arm_locally_streaming function. The streaming and non-streaming vector lengths may be different}}
516+
// expected-cpp-warning@+1 {{passing/returning a VL-dependent argument from a __arm_locally_streaming function. The streaming and non-streaming vector lengths may be different}}
517517
__arm_locally_streaming void sme_locally_streaming_with_vl_arg(__SVInt8_t a) { }
518518

519-
// expected-warning@+2 {{passing/returning a VL-dependent argument from a arm_locally_streaming function. The streaming and non-streaming vector lengths may be different}}
520-
// expected-cpp-warning@+1 {{passing/returning a VL-dependent argument from a arm_locally_streaming function. The streaming and non-streaming vector lengths may be different}}
519+
// expected-warning@+2 {{passing/returning a VL-dependent argument from a __arm_locally_streaming function. The streaming and non-streaming vector lengths may be different}}
520+
// expected-cpp-warning@+1 {{passing/returning a VL-dependent argument from a __arm_locally_streaming function. The streaming and non-streaming vector lengths may be different}}
521521
__arm_locally_streaming __SVInt8_t sme_locally_streaming_returns_vl(void) { __SVInt8_t r; return r; }
522522

523523
void sme_no_streaming_calling_streaming_with_vl_args() {

0 commit comments

Comments
 (0)