This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH 2/3] or1k: testsuite: initial support for openrisc
On 08/26/2018 02:18 PM, Stafford Horne wrote:
> diff --git a/gcc/testsuite/gcc.target/or1k/cmov-1.c b/gcc/testsuite/gcc.target/or1k/cmov-1.c
> new file mode 100644
> index 00000000000..fcac129175d
> --- /dev/null
> +++ b/gcc/testsuite/gcc.target/or1k/cmov-1.c
> @@ -0,0 +1,8 @@
> +/* { dg-do compile } */
> +/* { dg-options "-O2" } */
> +
> +int cond (int a, int b) {
> + return a > b;
> +}
> +
> +/* { dg-final { scan-assembler "l.cmov" } } */
Well, I suppose this answers my previous question re cmov.
The patch is ok.
r~