[Bug target/54445] TLS array lookup with negative constant is not combined into a single instruction
hjl.tools at gmail dot com
gcc-bugzilla@gcc.gnu.org
Sat Sep 1 16:59:00 GMT 2012
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54445
--- Comment #3 from H.J. Lu <hjl.tools at gmail dot com> 2012-09-01 16:59:20 UTC ---
I am testing this patch:
diff --git a/gcc/config/i386/predicates.md b/gcc/config/i386/predicates.md
index c78384b..ee7ae49 100644
--- a/gcc/config/i386/predicates.md
+++ b/gcc/config/i386/predicates.md
@@ -228,8 +228,7 @@
{
case UNSPEC_DTPOFF:
case UNSPEC_NTPOFF:
- if (offset > 0
- && trunc_int_for_mode (offset, SImode) == offset)
+ if (trunc_int_for_mode (offset, SImode) == offset)
return true;
}
break;
More information about the Gcc-bugs
mailing list