Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
G
golang
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
golang
Commits
3f2d5428
Commit
3f2d5428
authored
Jun 17, 2008
by
Ken Thompson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added and, or, xor opcodes
SVN=123031
parent
88a3371a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
66 additions
and
0 deletions
+66
-0
gsubr.c
src/cmd/6g/gsubr.c
+66
-0
No files found.
src/cmd/6g/gsubr.c
View file @
3f2d5428
...
...
@@ -1360,6 +1360,72 @@ optoas(int op, Type *t)
a
=
ANEGQ
;
break
;
case
CASE
(
OAND
,
TINT8
):
case
CASE
(
OAND
,
TUINT8
):
a
=
AANDB
;
break
;
case
CASE
(
OAND
,
TINT16
):
case
CASE
(
OAND
,
TUINT16
):
a
=
AANDW
;
break
;
case
CASE
(
OAND
,
TINT32
):
case
CASE
(
OAND
,
TUINT32
):
case
CASE
(
OAND
,
TPTR32
):
a
=
AANDL
;
break
;
case
CASE
(
OAND
,
TINT64
):
case
CASE
(
OAND
,
TUINT64
):
case
CASE
(
OAND
,
TPTR64
):
a
=
AANDQ
;
break
;
case
CASE
(
OOR
,
TINT8
):
case
CASE
(
OOR
,
TUINT8
):
a
=
AORB
;
break
;
case
CASE
(
OOR
,
TINT16
):
case
CASE
(
OOR
,
TUINT16
):
a
=
AORW
;
break
;
case
CASE
(
OOR
,
TINT32
):
case
CASE
(
OOR
,
TUINT32
):
case
CASE
(
OOR
,
TPTR32
):
a
=
AORL
;
break
;
case
CASE
(
OOR
,
TINT64
):
case
CASE
(
OOR
,
TUINT64
):
case
CASE
(
OOR
,
TPTR64
):
a
=
AORQ
;
break
;
case
CASE
(
OXOR
,
TINT8
):
case
CASE
(
OXOR
,
TUINT8
):
a
=
AXORB
;
break
;
case
CASE
(
OXOR
,
TINT16
):
case
CASE
(
OXOR
,
TUINT16
):
a
=
AXORW
;
break
;
case
CASE
(
OXOR
,
TINT32
):
case
CASE
(
OXOR
,
TUINT32
):
case
CASE
(
OXOR
,
TPTR32
):
a
=
AXORL
;
break
;
case
CASE
(
OXOR
,
TINT64
):
case
CASE
(
OXOR
,
TUINT64
):
case
CASE
(
OXOR
,
TPTR64
):
a
=
AXORQ
;
break
;
case
CASE
(
OLSH
,
TINT8
):
case
CASE
(
OLSH
,
TUINT8
):
a
=
ASHLB
;
...
...
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