Commit 7841f13c by Claudiu Zissulescu Committed by Claudiu Zissulescu

[ARC] Fix tst_movb pattern.

The tst_movb pattern is missing guarding when spitting.

gcc/
2017-06-01  Claudiu Zissulescu  <claziss@synopsys.com>

	* config/arc/arc.md (tst_movb): Add guard when splitting.

testsuite/
2017-06-01  Claudiu Zissulescu  <claziss@synopsys.com>

	* gcc.target/arc/pr9001195952.c: New test.

From-SVN: r248783
parent 19dc4752
2017-06-01 Claudiu Zissulescu <claziss@synopsys.com> 2017-06-01 Claudiu Zissulescu <claziss@synopsys.com>
* config/arc/arc.md (tst_movb): Add guard when splitting.
2017-06-01 Claudiu Zissulescu <claziss@synopsys.com>
* config/arc/arc.c (arc_can_eliminate): Test against * config/arc/arc.c (arc_can_eliminate): Test against
arc_frame_pointer_needed. arc_frame_pointer_needed.
......
...@@ -840,7 +840,7 @@ ...@@ -840,7 +840,7 @@
(clobber (match_scratch:SI 3 "=X,X,X,X,X,X,Rrq,Rrq,c"))] (clobber (match_scratch:SI 3 "=X,X,X,X,X,X,Rrq,Rrq,c"))]
"TARGET_NPS_BITOPS" "TARGET_NPS_BITOPS"
"movb.f.cl %3,%1,%p2,%p2,%s2" "movb.f.cl %3,%1,%p2,%p2,%s2"
"reload_completed "TARGET_NPS_BITOPS && reload_completed
&& (extract_constrain_insn_cached (insn), (which_alternative & ~1) != 6)" && (extract_constrain_insn_cached (insn), (which_alternative & ~1) != 6)"
[(set (match_dup 0) (match_dup 4))]) [(set (match_dup 0) (match_dup 4))])
......
2017-06-01 Claudiu Zissulescu <claziss@synopsys.com>
* gcc.target/arc/pr9001195952.c: New test.
2017-06-01 Tom de Vries <tom@codesourcery.com> 2017-06-01 Tom de Vries <tom@codesourcery.com>
* c-c++-common/pr43395.c: Add dg-require-effective-target label_values. * c-c++-common/pr43395.c: Add dg-require-effective-target label_values.
......
/* { dg-do compile } */
/* { dg-skip-if "" { ! { clmcpu } } } */
/* { dg-options "-mcpu=archs -Os -w -fpic" } */
/* tst_movb split pattern is wrong for anything else than NPS
chip. */
__bswap_32___bsx() {
int a = __builtin_bswap32(__bswap_32___bsx);
if (a & 1048575)
zlog_warn();
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment