This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[arm] Fix contraints on addsi3_cbranch_scratch


The following patch fixes the constaints on the thumb addsi3_cbranch_scratch 
pattern. It looks like these were reversed (the two argument allows a larger 
immediate operand). This was causing the folloing thumb filure on 
arm-noneeabi:

FAIL: gcc.c-torture/execute/20000412-4.c compilation,  -O3 
-fomit-frame-pointer

I also changed the output code to correctly handle negative constants using 
the "sub" instructions.

Tested with cross to arm-none-eabi.
Ok?

Paul


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]