| 1 |
/* { dg-do compile { target aarch64*-*-* } } */ |
| 2 |
/* { dg-options "-O2 -msve-vector-bits=256 -mlittle-endian" } */ |
| 3 |
|
| 4 |
#include <arm_sve.h> |
| 5 |
|
| 6 |
#pragma GCC target "+sve" |
| 7 |
|
| 8 |
svint64x2_t __RTL (startwith ("vregs")) foo () |
| 9 |
{ |
| 10 |
(function "foo" |
| 11 |
(insn-chain |
| 12 |
(block 2 |
| 13 |
(edge-from entry (flags "FALLTHRU")) |
| 14 |
(cnote 1 [bb 2] NOTE_INSN_BASIC_BLOCK) |
| 15 |
(cnote 2 NOTE_INSN_FUNCTION_BEG) |
| 16 |
(insn 3 (set (reg:VNx4DI <0>) |
| 17 |
(const_vector:VNx4DI [(const_int -16) |
| 18 |
(const_int -15) |
| 19 |
(const_int -14) |
| 20 |
(const_int -13) |
| 21 |
(const_int -12) |
| 22 |
(const_int -11) |
| 23 |
(const_int -10) |
| 24 |
(const_int -9)]))) |
| 25 |
(insn 4 (set (reg:VNx4DI v0) (reg:VNx4DI <0>))) |
| 26 |
(insn 5 (use (reg:VNx4DI v0))) |
| 27 |
(edge-to exit (flags "FALLTHRU")) |
| 28 |
) ;; block 2 |
| 29 |
) ;; insn-chain |
| 30 |
(crtl (return_rtx (reg:VNx4DI v0))) |
| 31 |
) ;; function |
| 32 |
} |
| 33 |
|
| 34 |
/* { dg-final { scan-assembler {\tindex\tz0\.d, #-16, #1\n} } } */ |
| 35 |
/* { dg-final { scan-assembler {\tindex\tz1\.d, #-12, #1\n} } } */ |