Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
go
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
go
Commits
755e1387
Commit
755e1387
authored
Dec 06, 2012
by
Rémy Oudompheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cmd/8a: support XMM registers.
R=rsc, golang-dev CC=golang-dev
https://golang.org/cl/6884046
parent
5cb1ed21
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
885 additions
and
906 deletions
+885
-906
src/cmd/8a/a.y
src/cmd/8a/a.y
+6
-1
src/cmd/8a/lex.c
src/cmd/8a/lex.c
+9
-0
src/cmd/8a/y.tab.c
src/cmd/8a/y.tab.c
+827
-882
src/cmd/8a/y.tab.h
src/cmd/8a/y.tab.h
+43
-23
No files found.
src/cmd/8a/a.y
View file @
755e1387
...
...
@@ -55,7 +55,7 @@
%token <lval> LTYPE0 LTYPE1 LTYPE2 LTYPE3 LTYPE4
%token <lval> LTYPEC LTYPED LTYPEN LTYPER LTYPET LTYPES LTYPEM LTYPEI LTYPEG LTYPEXC
%token <lval> LCONST LFP LPC LSB
%token <lval> LBREG LLREG LSREG LFREG
%token <lval> LBREG LLREG LSREG LFREG
LXREG
%token <dval> LFCONST
%token <sval> LSCONST LSP
%token <sym> LNAME LLAB LVAR
...
...
@@ -359,6 +359,11 @@ reg:
$$ = nullgen;
$$.type = $1;
}
| LXREG
{
$$ = nullgen;
$$.type = $1;
}
| LSP
{
$$ = nullgen;
...
...
src/cmd/8a/lex.c
View file @
755e1387
...
...
@@ -210,6 +210,15 @@ struct
"F6"
,
LFREG
,
D_F0
+
6
,
"F7"
,
LFREG
,
D_F0
+
7
,
"X0"
,
LXREG
,
D_X0
+
0
,
"X1"
,
LXREG
,
D_X0
+
1
,
"X2"
,
LXREG
,
D_X0
+
2
,
"X3"
,
LXREG
,
D_X0
+
3
,
"X4"
,
LXREG
,
D_X0
+
4
,
"X5"
,
LXREG
,
D_X0
+
5
,
"X6"
,
LXREG
,
D_X0
+
6
,
"X7"
,
LXREG
,
D_X0
+
7
,
"CS"
,
LSREG
,
D_CS
,
"SS"
,
LSREG
,
D_SS
,
"DS"
,
LSREG
,
D_DS
,
...
...
src/cmd/8a/y.tab.c
View file @
755e1387
This diff is collapsed.
Click to expand it.
src/cmd/8a/y.tab.h
View file @
755e1387
/* A Bison parser, made by GNU Bison 2.6.5. */
/* A Bison parser, made by GNU Bison 2.4.1. */
/* Skeleton interface for Bison's Yacc-like parsers in C
/* Bison interface for Yacc-like parsers in C
Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006
Free Software Foundation, Inc.
Copyright (C) 1984, 1989-1990, 2000-2012 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
...
...
@@ -32,6 +30,15 @@
This special exception was added by the Free Software Foundation in
version 2.2 of Bison. */
#ifndef YY_YY_Y_TAB_H_INCLUDED
# define YY_YY_Y_TAB_H_INCLUDED
/* Enabling traces. */
#ifndef YYDEBUG
# define YYDEBUG 0
#endif
#if YYDEBUG
extern
int
yydebug
;
#endif
/* Tokens. */
#ifndef YYTOKENTYPE
...
...
@@ -62,12 +69,13 @@
LLREG
=
278
,
LSREG
=
279
,
LFREG
=
280
,
LFCONST
=
281
,
LSCONST
=
282
,
LSP
=
283
,
LNAME
=
284
,
LLAB
=
285
,
LVAR
=
286
LXREG
=
281
,
LFCONST
=
282
,
LSCONST
=
283
,
LSP
=
284
,
LNAME
=
285
,
LLAB
=
286
,
LVAR
=
287
};
#endif
/* Tokens. */
...
...
@@ -94,21 +102,20 @@
#define LLREG 278
#define LSREG 279
#define LFREG 280
#define L
FCONST
281
#define L
S
CONST 282
#define LS
P
283
#define L
NAME
284
#define L
LAB
285
#define L
VAR
286
#define L
XREG
281
#define L
F
CONST 282
#define LS
CONST
283
#define L
SP
284
#define L
NAME
285
#define L
LAB
286
#define LVAR 287
#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
typedef
union
YYSTYPE
{
/* Line 1676 of yacc.c */
/* Line 2042 of yacc.c */
#line 37 "a.y"
Sym
*
sym
;
...
...
@@ -123,9 +130,8 @@ typedef union YYSTYPE
Gen2
gen2
;
/* Line 1676 of yacc.c */
#line 129 "y.tab.h"
/* Line 2042 of yacc.c */
#line 135 "y.tab.h"
}
YYSTYPE
;
# define YYSTYPE_IS_TRIVIAL 1
# define yystype YYSTYPE
/* obsolescent; will be withdrawn */
...
...
@@ -134,4 +140,18 @@ typedef union YYSTYPE
extern
YYSTYPE
yylval
;
#ifdef YYPARSE_PARAM
#if defined __STDC__ || defined __cplusplus
int
yyparse
(
void
*
YYPARSE_PARAM
);
#else
int
yyparse
();
#endif
#else
/* ! YYPARSE_PARAM */
#if defined __STDC__ || defined __cplusplus
int
yyparse
(
void
);
#else
int
yyparse
();
#endif
#endif
/* ! YYPARSE_PARAM */
#endif
/* !YY_YY_Y_TAB_H_INCLUDED */
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment