From d6439e085433332e60145d535e98f599d7889808 Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Tue, 31 May 2016 15:00:25 +0000 Subject: [PATCH] Scan %\[re\]di instead of %rdi Since x32 may use 32-bit register in address, we should scan %\[re\]di instead of %rdi. * gcc.target/i386/avx512vl-vbroadcast-3.c: Scan %\[re\]di instead of %rdi. * gcc.target/i386/avx512vl-vcvtps2ph-3.c: Likewise. From-SVN: r236925 --- gcc/testsuite/ChangeLog | 6 ++++++ gcc/testsuite/gcc.target/i386/avx512vl-vbroadcast-3.c | 4 ++-- gcc/testsuite/gcc.target/i386/avx512vl-vcvtps2ph-3.c | 2 +- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index a7cf8340d15..2cf6a94a400 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2016-05-31 H.J. Lu + + * gcc.target/i386/avx512vl-vbroadcast-3.c: Scan %\[re\]di + instead of %rdi. + * gcc.target/i386/avx512vl-vcvtps2ph-3.c: Likewise. + 2016-05-31 Marek Polacek * c-c++-common/Wswitch-unreachable-3.c: New test. diff --git a/gcc/testsuite/gcc.target/i386/avx512vl-vbroadcast-3.c b/gcc/testsuite/gcc.target/i386/avx512vl-vbroadcast-3.c index d981fe45e19..7233398cd64 100644 --- a/gcc/testsuite/gcc.target/i386/avx512vl-vbroadcast-3.c +++ b/gcc/testsuite/gcc.target/i386/avx512vl-vbroadcast-3.c @@ -150,9 +150,9 @@ f16 (V2 *x) asm volatile ("" : "+v" (a)); } -/* { dg-final { scan-assembler-times "vbroadcastss\[^\n\r]*%rdi\[^\n\r]*%xmm16" 4 } } */ +/* { dg-final { scan-assembler-times "vbroadcastss\[^\n\r]*%\[re\]di\[^\n\r]*%xmm16" 4 } } */ /* { dg-final { scan-assembler-times "vbroadcastss\[^\n\r]*%xmm16\[^\n\r]*%ymm16" 3 } } */ -/* { dg-final { scan-assembler-times "vbroadcastss\[^\n\r]*%rdi\[^\n\r]*%ymm16" 3 } } */ +/* { dg-final { scan-assembler-times "vbroadcastss\[^\n\r]*%\[re\]di\[^\n\r]*%ymm16" 3 } } */ /* { dg-final { scan-assembler-times "vpermilps\[^\n\r]*\\\$0\[^\n\r]*%xmm16\[^\n\r]*%xmm16" 1 } } */ /* { dg-final { scan-assembler-times "vpermilps\[^\n\r]*\\\$85\[^\n\r]*%xmm16\[^\n\r]*%xmm16" 1 } } */ /* { dg-final { scan-assembler-times "vpermilps\[^\n\r]*\\\$170\[^\n\r]*%xmm16\[^\n\r]*%xmm16" 1 } } */ diff --git a/gcc/testsuite/gcc.target/i386/avx512vl-vcvtps2ph-3.c b/gcc/testsuite/gcc.target/i386/avx512vl-vcvtps2ph-3.c index 2fd2215599d..c2e3f01050e 100644 --- a/gcc/testsuite/gcc.target/i386/avx512vl-vcvtps2ph-3.c +++ b/gcc/testsuite/gcc.target/i386/avx512vl-vcvtps2ph-3.c @@ -38,4 +38,4 @@ f3 (__m256 x, __v8hi *y) *y = (__v8hi) _mm256_cvtps_ph (a, 1); } -/* { dg-final { scan-assembler "vcvtps2ph\[^\n\r]*\\\$1\[^\n\r]*%ymm16\[^\n\r]*%rdi" } } */ +/* { dg-final { scan-assembler "vcvtps2ph\[^\n\r]*\\\$1\[^\n\r]*%ymm16\[^\n\r]*%\[re\]di" } } */ -- 2.30.2