Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
riscv-gcc-1
Overview
Overview
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
riscv-gcc-1
Commits
95393dfd
Commit
95393dfd
authored
Jul 06, 1992
by
Charles Hannum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
entered into RCS
From-SVN: r1481
parent
9b4e97b0
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
31 additions
and
0 deletions
+31
-0
gcc/config/i386/i386.h
+19
-0
gcc/config/i386/i386.md
+12
-0
No files found.
gcc/config/i386/i386.h
View file @
95393dfd
...
...
@@ -37,6 +37,20 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
#define I386 1
/* Stubs for half-pic support if not OSF/1 reference platform. */
#ifndef HALF_PIC_P
#define HALF_PIC_P() 0
#define HALF_PIC_NUMBER_PTRS 0
#define HALF_PIC_NUMBER_REFS 0
#define HALF_PIC_ENCODE(DECL)
#define HALF_PIC_DECLARE(NAME)
#define HALF_PIC_INIT() error ("half-pic init called on systems that don't support it.")
#define HALF_PIC_ADDRESS_P(X) 0
#define HALF_PIC_PTR(X) X
#define HALF_PIC_FINISH(STREAM)
#endif
/* Run-time compilation parameters selecting different hardware subsets. */
extern
int
target_flags
;
...
...
@@ -86,8 +100,13 @@ extern int target_flags;
{ "nosvr3-shlib", -040}, \
{ "ieee-fp", 0100}, \
{ "noieee-fp", -0100}, \
SUBTARGET_SWITCHES \
{ "", TARGET_DEFAULT}}
/* This is meant to be redefined in the host dependent files */
#define SUBTARGET_SWITCHES
/* target machine storage layout */
/* Define this if most significant byte of a word is the lowest numbered. */
...
...
gcc/config/i386/i386.md
View file @
95393dfd
...
...
@@ -572,6 +572,18 @@
if (flag_pic && SYMBOLIC_CONST (operands[1]))
emit_pic_move (operands, SImode);
else if (HALF_PIC_P()
&& GET_CODE (operands[0]) == REG
&& GET_CODE (operands[1]) == SYMBOL_REF
&& HALF_PIC_ADDRESS_P (operands[1]))
{
rtx ptr = HALF_PIC_PTR (operands[1]);
if (XSTR (ptr, 0) != XSTR (operands[1], 0))
{
emit_move_insn (operands[0], gen_rtx (MEM, Pmode, ptr));
DONE;
}
}
}")
;; On i486, incl reg is faster than movl $1,reg.
...
...
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