Re: [PATCH: PR target/46975] Replace 32 bit instructions with 16 bit instructions in thumb2

2011-06-07 Thread Nick Clifton
Hi Carrot, ChangeLog: 2011-05-16 Wei Guozhi PR target/46975 * config/arm/arm.md (*addsi3_carryin_compare0_): New pattern. (peephole2 for conditional move): Generate 16 bit instructions. ChangeLog: 2010-05-16 Wei Guozhi PR target/46975 * gcc.target/arm/

Re: [PATCH: PR target/46975] Replace 32 bit instructions with 16 bit instructions in thumb2

2011-05-16 Thread Carrot Wei
On Fri, Dec 17, 2010 at 8:18 PM, Richard Earnshaw wrote: > > On Thu, 2010-12-16 at 14:45 -0800, Carrot Wei wrote: >> Hi >> >> Compile the following c code with options -march=armv7-a -mthumb -Os >> >> int foo (int s) >> { >>     return s == 1; >> } >> >> GCC 4.6 generates: >> >> : >>    0

Re: [PATCH: PR target/46975] Replace 32 bit instructions with 16 bit instructions in thumb2

2011-03-18 Thread Carrot Wei
Ping On Sat, Dec 18, 2010 at 3:30 AM, Carrot Wei wrote: > On Fri, Dec 17, 2010 at 4:18 AM, Richard Earnshaw wrote: >> >> On Thu, 2010-12-16 at 14:45 -0800, Carrot Wei wrote: >>> Hi >>> >>> Compile the following c code with options -march=armv7-a -mthumb -Os >>> >>> int foo (int s) >>> { >>>