This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/59071] sse2 intrinsics and constant expressions
- From: "jakub at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sun, 16 Mar 2014 19:58:28 +0000
- Subject: [Bug c++/59071] sse2 intrinsics and constant expressions
- Auto-submitted: auto-generated
- References: <bug-59071-4 at http dot gcc dot gnu dot org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59071
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |NEW
CC| |jakub at gcc dot gnu.org
--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
You would need constexpr int n = sizeof(__i128i) - N;
to guarantee it is folded into a constant, otherwise there is no guarantee it
will be, it is normal expression and it is purely an optimization issue (which
you've requested not to be performed through -O0) whether it is evaluated as
constant or not.