summaryrefslogtreecommitdiff
path: root/gas/config/bfin-lex.l
Commit message (Collapse)AuthorAgeFilesLines
* gas/opcodes: blackfin: punt BYTEOP2M insn supportMike Frysinger2011-02-131-1/+0
| | | | | | | The BYTEOP2M insn was part of the initial Blackfin designs, but never made it into any actual silicon. So punt support for it. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* gas: blackfin: reign in overeager insn flag handlingMike Frysinger2010-10-111-7/+8
| | | | | | | | | | | | | | | | | | | Currently, trying to declare single letter variables in Blackfin assembly can sometimes lead to parser errors if that letter is used for insn flags. For example, X, Z, S, M, and T are used to change the behavior of insns: R0 = 1; R0 = 1 (X); R0 = 1 (Z); But the current parser just looks for single letter tokens rather than ones that show up in the (FLAGS) field. So only match these letters as flags when they're in parentheses. Not a complete fix, but it at least lets gcc tests pass now (the test gcc/testsuite/gcc.c-torture/compile/mangle-1.c to be exact). A complete fix would require a significant parser rewrite in order to handle: R0 = (x) (x); /* zero extend the address of the symbol "x" */ R0 = W; R0 = W[P0]; Signed-off-by: Steve Kilbane <steve.kilbane@analog.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* gas: blackfin: handle multibyte symbolsMike Frysinger2010-09-221-1/+1
| | | | | | | | | | Accept any 8bit char with the high bit set so as to support multibyte characters. Also use the locale safe regular expressions to match chars/digits. This brings the Blackfin assembler inline with the behavior of other assemblers. Signed-off-by: Robin Getz <robin.getz@analog.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* opcodes/gas: blackfin: handle more ASTAT flagsMike Frysinger2010-09-221-0/+3
| | | | | | | | Support a few more ASTAT bits with the standard insns that operate on ASTAT bits directly. Signed-off-by: Robin Getz <robin.getz@analog.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* gas: blackfin: support ABORT debug insnMike Frysinger2010-09-221-1/+1
| | | | | | | | There is a pseudo debug insn named ABORT that is commonly used in simulation, so support it in the assembler too. The disassembler already supports it. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* gas: bfin: replace index() with strchr()Mike Frysinger2010-04-201-1/+1
|
* strip trailing whitespace in Blackfin filesMike Frysinger2010-03-101-9/+9
|
* * config/bfin-aux.h: Remove argument names in functionJie Zhang2010-01-141-4/+3
| | | | | | | | | | declarations. * config/bfin-lex.l (parse_int): Fix shadowed variable name warning. * config/bfin-parse.y (value_match): Remove argument names in declaration. (notethat): Likewise. (yyerror): Likewise.
* * config/bfin-lex.l: Remove V as STATUS_REG.Jie Zhang2009-09-031-1/+0
|
* * config/bfin-defs.h (F_REG_ALL): Remove macro.Jie Zhang2009-09-031-5/+7
| | | | | | | | | | | | | (F_REG_HIGH): Redefine. (F_REG_NONE): New macro. (F_REG_LOW): New macro. (REG_CLASS): Enclose macro argument in parentheses when used. (REG_EVEN): Likewise. (IS_H): Use flags. (IS_HCOMPL): Use flags. * config/bfin-lex.l (SP.L, SP.H, FP.L, FP.H): Set flags. (parse_reg): Set flags. (parse_halfreg): Set flags.
* update copyright datesAlan Modra2009-09-021-1/+1
|
* * config/bfin-lex.l (NUMBER): Protect special `.'.Jie Zhang2008-08-221-1/+1
| | | | | | | testsuite/ * gas/bfin/misc.s: New test. * gas/bfin/misc.d: New test. * gas/bfin/bfin.exp: Add misc test.
* Switch to GPLv3Nick Clifton2007-07-031-2/+2
|
* remove some duplicate #include's.Alan Modra2006-06-071-4/+2
|
* * config/bfin-defs.h (Expr_Node_Type enum): Add Expr_Node_GOT_Reloc.Bernd Schmidt2006-03-261-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | * config/bfin-lex.l: Recognize GOT17M4 and FUNCDESC_GOT17M4. * config/bfin-parse.y: Include "libbfd.h", "elf/common.h" and "elf/bfin.h". (GOT17M4, FUNCDESC_GOT17M4): New tokens of type <value>. (any_gotrel): New rule. (got): Use it, and create Expr_Node_GOT_Reloc nodes. * config/tc-bfin.c: Include "libbfd.h", "elf/common.h" and "elf/bfin.h". (DEFAULT_FLAGS, bfin_flags, bfin_pic_flag): New. (bfin_pic_ptr): New function. (md_pseudo_table): Add it for ".picptr". (OPTION_FDPIC): New macro. (md_longopts): Add -mfdpic. (md_parse_option): Handle it. (md_begin): Set BFD flags. (md_apply_fix3, bfin_fix_adjustable): Handle new relocs. (bfin_gen_ldstidxi): Adjust to match the trees that the parser gives us for GOT relocs. * Makefile.am (bfin-parse.o): Update dependencies. (DEPTC_bfin_elf): Likewise. * Makefile.in: Regenerate.
* bfd/Jie Zhang2005-10-241-1/+1
| | | | | | | | | | | | * elf32-bfin.c (bfd_bfin_elf32_create_embedded_relocs): Fix signedness warning. gas/ * Makefile.am (bfin-parse.h): Renamed from bfin-parse.tab.h. (EXTRA_DIST): Add bfin-parse.h and bfin-lex.c. * Makefile.in: Regenerate. * config/bfin-lex.l: Include bfin-parse.h instead of bfin-parse.tab.h. * config/tc-bfin.c (md_chars_to_number): Change the type of first argument from unsigned char * to char * to remove signedness warnings.
* * Makefile.am: Bfin support.Catherine Moore2005-09-301-0/+554
* Makefile.in: Regenerated. * aclocal.m4: Regenerated. * configure: Regenerated. * configure.in: Bfin support. * configure.tgt: Bfin support. * config/bfin-aux.h: New file. * config/bfin-defs.h: New file. * config/bfin-lex.l: New file. * config/bfin-parse.y: New file. * config/tc-bfin.c: New file. * config/tc-bfin.h: New file. * doc/Makefile.am: Recognize c-bfin.texi. * doc/Makefile.in: Regenerated. * doc/all.texi: Bfin support. * doc/as.texinfo: Likewise. * doc/c-bfin.texi: Document bfin-specific syntax and directives.