summaryrefslogtreecommitdiff
path: root/gcc/config/i386
diff options
context:
space:
mode:
authoruros <uros@138bc75d-0d04-0410-961f-82ee72b054a4>2014-05-26 17:33:09 +0000
committeruros <uros@138bc75d-0d04-0410-961f-82ee72b054a4>2014-05-26 17:33:09 +0000
commit665b47a5121c113f561c0e23c5dff49b81b86ee0 (patch)
tree86de70fb83c88a390b9cbdf4e46c56281531159d /gcc/config/i386
parentd7fdb3651e37e297f38164500887a18994eb61d3 (diff)
downloadgcc-665b47a5121c113f561c0e23c5dff49b81b86ee0.tar.gz
PR target/61271
* config/i386/i386.c (ix86_rtx_costs) <case CONST_INT, case CONST, case LABEL_REF, case SYMBOL_REF>: Fix condition. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@210937 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/i386')
-rw-r--r--gcc/config/i386/i386.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c
index 0bde73241f9..88272567c56 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;