diff options
author | Uros Bizjak <uros@gcc.gnu.org> | 2014-05-26 19:33:09 +0200 |
---|---|---|
committer | Uros Bizjak <uros@gcc.gnu.org> | 2014-05-26 19:33:09 +0200 |
commit | b8140cd629d333788a47719d49d495e9657c219a (patch) | |
tree | 86de70fb83c88a390b9cbdf4e46c56281531159d /gcc/config | |
parent | acea91c9012e211283130eb486d83243bcbbb327 (diff) | |
download | gcc-b8140cd629d333788a47719d49d495e9657c219a.zip gcc-b8140cd629d333788a47719d49d495e9657c219a.tar.gz gcc-b8140cd629d333788a47719d49d495e9657c219a.tar.bz2 |
re PR c/61271 (10 * possible coding error with logical not (!))
PR target/61271
* config/i386/i386.c (ix86_rtx_costs)
<case CONST_INT, case CONST, case LABEL_REF, case SYMBOL_REF>:
Fix condition.
From-SVN: r210937
Diffstat (limited to 'gcc/config')
-rw-r--r-- | gcc/config/i386/i386.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c index 0bde732..8827256 100644 --- a/gcc/config/i386/i386.c +++ b/gcc/config/i386/i386.c @@ -37903,10 +37903,10 @@ ix86_rtx_costs (rtx x, int code_i, int outer_code_i, int opno, int *total, else if (TARGET_64BIT && !x86_64_zext_immediate_operand (x, VOIDmode)) *total = 2; else if (flag_pic && SYMBOLIC_CONST (x) - && (!TARGET_64BIT - || (!GET_CODE (x) != LABEL_REF - && (GET_CODE (x) != SYMBOL_REF - || !SYMBOL_REF_LOCAL_P (x))))) + && !(TARGET_64BIT + && (GET_CODE (x) == LABEL_REF + || (GET_CODE (x) == SYMBOL_REF + && SYMBOL_REF_LOCAL_P (x))))) *total = 1; else *total = 0; |