1 /* { dg-do compile } */ 2 /* { dg-options "-O2 -ftree-vectorize" } */ 3 4 #define FACTOR 8 5 #include "adr_1.c" 6 7 /* { dg-final { scan-assembler-times {\tadd\tz[0-9]\.b,} 2 } } */ 8 /* { dg-final { scan-assembler-times {\tlsl\tz[0-9]\.b,} 2 } } */ 9 /* { dg-final { scan-assembler-not {\tadr\tz[0-9]\.b,} } } */ 10 11 /* { dg-final { scan-assembler-times {\tadd\tz[0-9]\.h,} 2 } } */ 12 /* { dg-final { scan-assembler-times {\tlsl\tz[0-9]\.h,} 2 } } */ 13 /* { dg-final { scan-assembler-not {\tadr\tz[0-9]\.h,} } } */ 14 15 /* { dg-final { scan-assembler-not {\tadd\tz[0-9]\.s,} } } */ 16 /* { dg-final { scan-assembler-not {\tlsl\tz[0-9]\.s,} } } */ 17 /* { dg-final { scan-assembler-times {\tadr\tz[0-9]\.s, \[z[0-9]\.s, z[0-9]\.s, lsl 3\]} 2 } } */ 18 19 /* { dg-final { scan-assembler-not {\tadd\tz[0-9]\.d,} } } */ 20 /* { dg-final { scan-assembler-not {\tlsl\tz[0-9]\.d,} } } */ 21 /* { dg-final { scan-assembler-times {\tadr\tz[0-9]\.d, \[z[0-9]\.d, z[0-9]\.d, lsl 3\]} 2 } } */ 22