xref: /third_party/ltp/tools/sparse/sparse-src/validation/linear/asm-out0.c
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /third_party/ltp/tools/sparse/sparse-src/validation/linear/
1f08c3bdfSopenharmony_cistatic void asm_out0(void)
2f08c3bdfSopenharmony_ci{
3f08c3bdfSopenharmony_ci	int mem;
4f08c3bdfSopenharmony_ci	asm volatile ("[%1] <= 0" : "=m" (mem));
5f08c3bdfSopenharmony_ci}
6f08c3bdfSopenharmony_ci
7f08c3bdfSopenharmony_ci/*
8f08c3bdfSopenharmony_ci * check-name: asm-out0
9f08c3bdfSopenharmony_ci * check-command: test-linearize -m64 -fdump-ir $file
10f08c3bdfSopenharmony_ci *
11f08c3bdfSopenharmony_ci * check-output-start
12f08c3bdfSopenharmony_ciasm_out0:
13f08c3bdfSopenharmony_ci.L0:
14f08c3bdfSopenharmony_ci	<entry-point>
15f08c3bdfSopenharmony_ci	symaddr.64  %r1 <- mem
16f08c3bdfSopenharmony_ci	asm         "[%1] <= 0"
17f08c3bdfSopenharmony_ci		out: "=m" (%r1)
18f08c3bdfSopenharmony_ci	br          .L1
19f08c3bdfSopenharmony_ci
20f08c3bdfSopenharmony_ci.L1:
21f08c3bdfSopenharmony_ci	ret
22f08c3bdfSopenharmony_ci
23f08c3bdfSopenharmony_ci
24f08c3bdfSopenharmony_ci * check-output-end
25f08c3bdfSopenharmony_ci */
26

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