diff options
author | David Malcolm <dmalcolm@redhat.com> | 2016-12-07 01:28:13 +0000 |
---|---|---|
committer | David Malcolm <dmalcolm@gcc.gnu.org> | 2016-12-07 01:28:13 +0000 |
commit | fd1c9a07d46aeece59c452105e3f2ece665bd7b8 (patch) | |
tree | 2dffcbe3702e6e8fe78b4b8b4267e2659c87abdc /gcc | |
parent | b9e8329d65e1779dcb15412a8048c4ad54ec6cb7 (diff) | |
download | gcc-fd1c9a07d46aeece59c452105e3f2ece665bd7b8.zip gcc-fd1c9a07d46aeece59c452105e3f2ece665bd7b8.tar.gz gcc-fd1c9a07d46aeece59c452105e3f2ece665bd7b8.tar.bz2 |
Fix x86_64-ism in selftest (PR bootstrap/78705)
In r243317 I accidentally introduced an assumption in a selftest
in i386.c that Pmode == DImode. This patch conditionalizes the
overzealous string comparison to avoid breaking the build on
32-bit i386.c targets.
gcc/ChangeLog:
PR bootstrap/78705
* config/i386/i386.c (selftest::ix86_test_dumping_memory_blockage):
Conditionalize the string comparison on Pmode == DImode.
From-SVN: r243332
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/config/i386/i386.c | 14 |
2 files changed, 14 insertions, 6 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 797b711..d30345f 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2016-12-06 David Malcolm <dmalcolm@redhat.com> + + PR bootstrap/78705 + * config/i386/i386.c (ix86_test_dumping_memory_blockage): + Conditionalize the string comparison on Pmode == DImode. + 2016-12-06 Tom de Vries <tom@codesourcery.com> PR tree-optimization/67955 diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c index 2e6be02..1cd1cd8 100644 --- a/gcc/config/i386/i386.c +++ b/gcc/config/i386/i386.c @@ -51190,12 +51190,14 @@ ix86_test_dumping_memory_blockage () /* Verify that the repeated references to the SCRATCH show use reuse IDS. The first should be prefixed with a reuse ID, - and the second should be dumped as a "reuse_rtx" of that ID. */ - ASSERT_RTL_DUMP_EQ_WITH_REUSE - ("(cinsn 1 (set (mem/v:BLK (0|scratch:DI) [0 A8])\n" - " (unspec:BLK [\n" - " (mem/v:BLK (reuse_rtx 0) [0 A8])\n" - " ] UNSPEC_MEMORY_BLOCKAGE)))\n", pat, &r); + and the second should be dumped as a "reuse_rtx" of that ID. + The expected string assumes Pmode == DImode. */ + if (Pmode == DImode) + ASSERT_RTL_DUMP_EQ_WITH_REUSE + ("(cinsn 1 (set (mem/v:BLK (0|scratch:DI) [0 A8])\n" + " (unspec:BLK [\n" + " (mem/v:BLK (reuse_rtx 0) [0 A8])\n" + " ] UNSPEC_MEMORY_BLOCKAGE)))\n", pat, &r); } /* Run all target-specific selftests. */ |