diff options
author | ktkachov <ktkachov@138bc75d-0d04-0410-961f-82ee72b054a4> | 2018-01-05 13:58:54 +0000 |
---|---|---|
committer | ktkachov <ktkachov@138bc75d-0d04-0410-961f-82ee72b054a4> | 2018-01-05 13:58:54 +0000 |
commit | 073d2234ccd734565b3646c4c483a55d815ac033 (patch) | |
tree | 103c27766b57fb9d7647be0cf31a486f458ab054 | |
parent | 38c4ee3a1a78d153271c6c7ed9c2de1dc69f9e8b (diff) |
[PATCH, PR83492] Fix selection of aarch64 big-endian shift parameters based on __AARCH64EB__
2018-01-05 Michael Weiser <michael.weiser@gmx.de>
Backport from trunk
2017-12-20 Michael Weiser <michael.weiser@gmx.de>
PR preprocessor/83492
* lex.c (search_line_fast) [__ARM_NEON && __ARM_64BIT_STATE]:
Fix selection of big-endian shift parameters by using
__ARM_BIG_ENDIAN.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-7-branch@256278 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r-- | libcpp/ChangeLog | 10 | ||||
-rw-r--r-- | libcpp/lex.c | 2 |
2 files changed, 11 insertions, 1 deletions
diff --git a/libcpp/ChangeLog b/libcpp/ChangeLog index 907eaed1ebe1..8967b7d8a14e 100644 --- a/libcpp/ChangeLog +++ b/libcpp/ChangeLog @@ -1,3 +1,13 @@ +2018-01-05 Michael Weiser <michael.weiser@gmx.de> + + Backport from trunk + 2017-12-20 Michael Weiser <michael.weiser@gmx.de> + + PR preprocessor/83492 + * lex.c (search_line_fast) [__ARM_NEON && __ARM_64BIT_STATE]: + Fix selection of big-endian shift parameters by using + __ARM_BIG_ENDIAN. + 2017-08-14 Release Manager * GCC 7.2.0 released. diff --git a/libcpp/lex.c b/libcpp/lex.c index 9edd2a6afdbc..097c78002cbb 100644 --- a/libcpp/lex.c +++ b/libcpp/lex.c @@ -772,7 +772,7 @@ search_line_fast (const uchar *s, const uchar *end ATTRIBUTE_UNUSED) const uint8x16_t repl_qm = vdupq_n_u8 ('?'); const uint8x16_t xmask = (uint8x16_t) vdupq_n_u64 (0x8040201008040201ULL); -#ifdef __AARCH64EB +#ifdef __ARM_BIG_ENDIAN const int16x8_t shift = {8, 8, 8, 8, 0, 0, 0, 0}; #else const int16x8_t shift = {0, 0, 0, 0, 8, 8, 8, 8}; |