Skip to content

Commit

Permalink
Enable SHIFT_COUNT_TRUNCATED for ARC
Browse files Browse the repository at this point in the history
Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
  • Loading branch information
vineetgarc authored and claziss committed Jul 6, 2015
1 parent 82c0c80 commit 3991768
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
7 changes: 7 additions & 0 deletions gcc/ChangeLog.ARC
Expand Up @@ -2,6 +2,13 @@

* config/arc/arc.md (doloop_begin_i): Append "@" for symbols.

2015-07-06 Vineet Gupta <vgupta@synopsys.com>

* config/arc/arc.h (SHIFT_COUNT_TRUNCATED): Define as 1.
Verfied that gcc/testsuite/gcc.c-torture/execute/20020226-1.c
works the same before and after (as that was alilely issue when
this was tried in the past)

2015-06-26 Claudiu Zissulescu <claziss@synopsys.com>

* config/arc/arc.opt (mshift-assist): Remove.
Expand Down
4 changes: 3 additions & 1 deletion gcc/config/arc/arc.h
Expand Up @@ -1611,8 +1611,10 @@ extern int arc_return_address_regs[4];
(e.g. 20020226-1.c). This change truncates the upper 27 bits of a word
while rotating a word. Came to notice through a combine phase
optimization viz. a << (32-b) is equivalent to a << (-b).
vgupta: Changed this back to 1 in 4.8.4 and see that above test passes
nevertheless both at -O2 and otherwise
*/
#define SHIFT_COUNT_TRUNCATED 0
#define SHIFT_COUNT_TRUNCATED 1

/* Value is 1 if truncating an integer of INPREC bits to OUTPREC bits
is done just by pretending it is already truncated. */
Expand Down

0 comments on commit 3991768

Please sign in to comment.