Scan %\[re\]di instead of %rdi
authorH.J. Lu <hongjiu.lu@intel.com>
Tue, 31 May 2016 15:00:25 +0000 (15:00 +0000)
committerH.J. Lu <hjl@gcc.gnu.org>
Tue, 31 May 2016 15:00:25 +0000 (08:00 -0700)
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
gcc/testsuite/gcc.target/i386/avx512vl-vbroadcast-3.c
gcc/testsuite/gcc.target/i386/avx512vl-vcvtps2ph-3.c

index a7cf8340d15b6ddaac24581c0cb7cdc4378ed0fc..2cf6a94a4002f80f5767befaf3ebd25653854d8f 100644 (file)
@@ -1,3 +1,9 @@
+2016-05-31  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * 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  <polacek@redhat.com>
 
        * c-c++-common/Wswitch-unreachable-3.c: New test.
index d981fe45e19b3395ae0c7bbf694b85cd17a63411..7233398cd64edd796825a42ea68dfe3bb3d6330a 100644 (file)
@@ -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 } } */
index 2fd2215599d5a95228f48400c1efc196d3c86729..c2e3f01050eef3b74b39ab861e23621560cb4cd8 100644 (file)
@@ -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" } } */