summaryrefslogtreecommitdiff
path: root/libcpp/lex.c
diff options
context:
space:
mode:
authoruros <uros@138bc75d-0d04-0410-961f-82ee72b054a4>2011-05-22 19:04:54 +0000
committeruros <uros@138bc75d-0d04-0410-961f-82ee72b054a4>2011-05-22 19:04:54 +0000
commit85303bd5f21f864445e9f3bf4c08a212f3a5ea9c (patch)
tree825ce75a5eabb8f5d562242670776871ab972bee /libcpp/lex.c
parent478263cb070da2e5017240433dc21ac462672eb8 (diff)
downloadgcc-85303bd5f21f864445e9f3bf4c08a212f3a5ea9c.tar.gz
* lex.c (init_vectorized_lexer): Fix comparison of masked value.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@174037 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libcpp/lex.c')
-rw-r--r--libcpp/lex.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libcpp/lex.c b/libcpp/lex.c
index bbce62ca095..6c3be711504 100644
--- a/libcpp/lex.c
+++ b/libcpp/lex.c
@@ -505,7 +505,8 @@ init_vectorized_lexer (void)
}
else if (__get_cpuid (0x80000001, &dummy, &dummy, &dummy, &edx))
{
- if (minimum == 1 || (edx & (bit_MMXEXT | bit_CMOV)))
+ if (minimum == 1
+ || (edx & (bit_MMXEXT | bit_CMOV)) == (bit_MMXEXT | bit_CMOV))
impl = search_line_mmx;
}