Skip to content
Snippets Groups Projects
Commit d1344c41 authored by Fei Gao's avatar Fei Gao Committed by Jeff Law
Browse files

RISC-V] add TC for save-restore cfi directives.

gcc/testsuite/ChangeLog:

	* gcc.target/riscv/save-restore-cfi.c: New test to check save-restore
	cfi directives.
parent 78058904
No related branches found
No related tags found
No related merge requests found
/* { dg-do compile } */
/* { dg-options "-g -Os -march=rv32imafc -mabi=ilp32f -msave-restore -mcmodel=medlow" } */
/* { dg-skip-if "" { *-*-* } {"-O2" "-O1" "-O0" "-Og" "-O3" "-Oz" "-flto"} } */
/* { dg-final { scan-assembler-times {\.cfi_def_cfa_offset 16} 2} } */
/* { dg-final { scan-assembler-times {\.cfi_def_cfa_offset 32} 1} } */
/* { dg-final { scan-assembler-times {\.cfi_def_cfa_offset 0} 1} } */
char my_getchar();
float getf();
int foo()
{
int s0 = my_getchar();
float f0 = getf();
int b = my_getchar();
return f0 + s0 + b;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment