This is the mail archive of the gcc@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] |
Thanks for the feedback Richard. The attached patch should address pretty much everything you have mentioned, except for adding this: (define_insn "*ashlsi3_const" [(set (match_operand:SI 0 "register_operand" "=R1") (ashift:SI (match_operand:SI 1 "register_operand" "0") (match_operand:SI 2 "const_5bit_operand" "i"))) (clobber (match_scratch:SI 3 "=RA"))] "!TARGET_BARREL_SHIFT_ENABLED" "calli __ashlsi3_%2" [(set_attr "type" "call")]) As I kept on getting "unable to find a register to spill in class R1" and wasn't sure how to fix it. As you say, this is something that can be added later. I've also fixed a few other issues that have cropped up during testing. Cheers, Jon ChangeLog gcc/ 2009-09-28 Jon Beniston <jon@beniston.com> * config.gcc: Add lm32 elf and uclinux targets. * config/lm32: New directory. * config/lm32/arithmetic.c: New file. * config/lm32/crti.S: New file. * config/lm32/crtn.S: New file. * config/lm32/lib1funcs.S: New file. * config/lm32/lm32.c: New file. * config/lm32/lm32.h: New file. * config/lm32/lm32.md: New file. * config/lm32/lm32.opt: New file. * config/lm32/lm32-protos.h: New file. * config/lm32/predicates.md: New file. * config/lm32/sfp-machine.h: New file. * config/lm32/t-fprules-softfp: New file. * config/lm32/t-lm32: New file. * config/lm32/uclinux-elf.h: New file. * doc/invoke.texi: Document lm32 options. * doc/contrib.texi: Document lm32 porter. * doc/install.texi: Document lm32 targets. gcc/testsuite/ 2009-09-28 Jon Beniston <jon@beniston.com> * lib/target-supports.exp (check_profiling_available): lm32 target doesn't support profiling. * gcc.dg/20020312-2.c: Add lm32 support. * g++.dg/other/packed1.C: Expect to fail on lm32. * g++.old-deja/g++.jason/thunk3.C: Likewise. libgcc/ 2009-09-28 Jon Beniston <jon@beniston.com> * config.host: Add lm32 targets. * config/lm32: New directory. * config/lm32/t-elf: New file. * config/lm32/t-uclinux: New file.
Attachment:
lm32.patch.090928
Description: Binary data
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |