| 1 |
/* { dg-do compile } */ |
| 2 |
/* { dg-require-effective-target elf } */ |
| 3 |
/* { dg-options "-O2 -fdump-tree-optimized -funwind-tables" } */ |
| 4 |
|
| 5 |
#include "../pfalse-unary_0.h" |
| 6 |
|
| 7 |
ALL_INTEGER_SCALAR (andv, IMPLICIT) |
| 8 |
ALL_INTEGER_SCALAR (eorv, IMPLICIT) |
| 9 |
ALL_ARITH_SCALAR (maxv, IMPLICIT) |
| 10 |
ALL_ARITH_SCALAR (minv, IMPLICIT) |
| 11 |
ALL_INTEGER_SCALAR (orv, IMPLICIT) |
| 12 |
ALL_FLOAT_SCALAR (maxnmv, IMPLICIT) |
| 13 |
ALL_FLOAT_SCALAR (minnmv, IMPLICIT) |
| 14 |
|
| 15 |
/* { dg-final { scan-assembler-times {\t.cfi_startproc\n\tmov\t[wx]0, 0\n\tret\n} 20 } } */ |
| 16 |
/* { dg-final { scan-tree-dump-times "return Nan" 6 "optimized" } } */ |
| 17 |
/* { dg-final { scan-assembler-times {\t.cfi_startproc\n\tmov\t[wx]0, -1\n\tret\n} 12 } } */ |
| 18 |
/* { dg-final { scan-assembler-times {\t.cfi_startproc\n\tmov\t[wxz]0(?:\.[sd])?, #?-?[1-9]+[0-9]*\n\tret\n} 27 } } */ |
| 19 |
/* { dg-final { scan-assembler-times {\t.cfi_startproc\n\t(movi|mvni)\tv0\.(2s|4h), 0x[0-9a-f]+, [a-z]+ [0-9]+\n\tret\n} 5 } } */ |
| 20 |
/* { dg-final { scan-assembler-times {\t.cfi_startproc\n} 52 } } */ |
| 21 |
|
| 22 |
/* The sum of tested cases is 52 + 12, because mov [wx]0, -1 is tested in two |
| 23 |
patterns. */ |