Re: [PATCH] gcc/arc: Avoid add_s REG,REG,pcl on ARCv2 targets

2016-06-30 Thread Andrew Burgess
* Claudiu Zissulescu [2016-06-30 07:36:32 +]: > I think the compactsi makes no sense for ARCv2 without the add_s > reg, reg,PCL instruction. Moreover, I have proposed a patch about > this issue months ago, See: >

RE: [PATCH] gcc/arc: Avoid add_s REG,REG,pcl on ARCv2 targets

2016-06-30 Thread Claudiu Zissulescu
> -Original Message- > From: Andrew Burgess [mailto:andrew.burg...@embecosm.com] > Sent: Thursday, June 30, 2016 1:43 AM > To: gcc-patches@gcc.gnu.org; g...@amylaar.uk > Cc: claudiu.zissule...@synopsys.com; Andrew Burgess > <andrew.burg...@embecosm.com> > Subject: [PATCH] g

[PATCH] gcc/arc: Avoid add_s REG,REG,pcl on ARCv2 targets

2016-06-29 Thread Andrew Burgess
The ARCv2 targets don't support add_s REG,REG,pcl like earlier ARC targets did. This instruction format is used when generating case jump tables. This commit updates the code so that ARCv2 targets avoid the unsupported instruction. This does mean the code is slightly longer on ARCv2, so the