xref: /third_party/ltp/tools/sparse/sparse-src/validation/label-asm.c (revision f08c3bdf)
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /third_party/ltp/tools/sparse/sparse-src/validation/
1f08c3bdfSopenharmony_ci#define barrier() __asm__ __volatile__("": : :"memory")
2f08c3bdfSopenharmony_ci
3f08c3bdfSopenharmony_cistatic void f(void)
4f08c3bdfSopenharmony_ci{
5f08c3bdfSopenharmony_ci	barrier();
6f08c3bdfSopenharmony_ci	goto l;
7f08c3bdfSopenharmony_cil:
8f08c3bdfSopenharmony_ci	barrier();
9f08c3bdfSopenharmony_ci}
10f08c3bdfSopenharmony_ci/*
11f08c3bdfSopenharmony_ci * check-name: Label followed by __asm__
12f08c3bdfSopenharmony_ci * check-description: Sparse used to parse the __asm__ as modifying the label.
13f08c3bdfSopenharmony_ci */
14

Indexes created Thu Nov 07 10:32:03 CST 2024