Found two issues with the ARC loop detection. The first generates code that the current assembler can't handle, while the second causes some loops to be missed.
-- Andrew Burgess (2): arc: Use @pcl assembler syntax instead of invalid expressions arc: Fix for loop end detection gcc/ChangeLog | 10 ++++++++ gcc/config/arc/arc.c | 5 ++-- gcc/config/arc/arc.md | 2 +- gcc/testsuite/ChangeLog | 4 ++++ gcc/testsuite/gcc.target/arc/loop-1.c | 45 +++++++++++++++++++++++++++++++++++ 5 files changed, 63 insertions(+), 3 deletions(-) create mode 100644 gcc/testsuite/gcc.target/arc/loop-1.c -- 2.4.11