Re: [PATCH] aarch64: add tests for CPP predefines under -mgeneral-regs-only

2020-04-23 Thread Richard Sandiford
"Yangfei (Felix)"  writes:
> Hi,
>
> I noticed that gcc.target/aarch64/pragma_cpp_predefs_1.c performs testing 
> for -mgeneral-regs-only.
> This adds similar testing in the following two tests to make sure CPP 
> predefines redefinitions on #pragma
> works as expected when -mgeneral-regs-only option is specified (See 
> PR94678):
> gcc.target/aarch64/pragma_cpp_predefs_2.c
> gcc.target/aarch64/pragma_cpp_predefs_3.c
>
> The two tests pass with the modification.  OK?
>
> gcc/testsuite/
> PR target/94678
> * gcc.target/aarch64/pragma_cpp_predefs_2.c: Fix typos, pop_pragma ->
> pop_options. Add tests for general-regs-only.
> * gcc.target/aarch64/pragma_cpp_predefs_3.c: Add tests for
> general-regs-only.

Thanks, pushed to master.

Richard


[PATCH] aarch64: add tests for CPP predefines under -mgeneral-regs-only

2020-04-23 Thread Yangfei (Felix)
Hi,

I noticed that gcc.target/aarch64/pragma_cpp_predefs_1.c performs testing 
for -mgeneral-regs-only.
This adds similar testing in the following two tests to make sure CPP 
predefines redefinitions on #pragma
works as expected when -mgeneral-regs-only option is specified (See 
PR94678):
gcc.target/aarch64/pragma_cpp_predefs_2.c
gcc.target/aarch64/pragma_cpp_predefs_3.c

The two tests pass with the modification.  OK?

gcc/testsuite/
PR target/94678
* gcc.target/aarch64/pragma_cpp_predefs_2.c: Fix typos, pop_pragma ->
pop_options. Add tests for general-regs-only.
* gcc.target/aarch64/pragma_cpp_predefs_3.c: Add tests for
general-regs-only.

Thanks for your help,
Felix


add-sve-predef-tests-v1.diff
Description: add-sve-predef-tests-v1.diff