This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch] PR 33653: don't optimize volatile mem accesses
Is it possible in our testsuite to check that RTL doesn't optimize
away the volatile read?
You could make it p[5678] and scan RTL dumps for 5678?
I like that idea. But it doesn't seem to work for machines which split
immediates. I now think (after trying with signals, which would require
limiting the number of test platforms) that it's enough to simply check
for "mem/v" in any late dump. I chose "shorten" as it seems to be the
latest one which is run on all platforms.
Yeah, that should also work. I would have thought that the 5678 would
be still present in some REG_EQUAL note.
Paolo