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
b45863ec
Commit
b45863ec
authored
May 15, 1993
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(movqi, movhi, movsi): Make sure that address returned from
force_const_mem is valid. From-SVN: r4475
parent
fe33bfb3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
3 deletions
+21
-3
gcc/config/rs6000/rs6000.md
+21
-3
No files found.
gcc/config/rs6000/rs6000.md
View file @
b45863ec
...
...
@@ -2090,7 +2090,13 @@
operands
[
1
]
= force_reg (SImode, operands
[
1
]
);
if (CONSTANT_P (operands
[
1
]
) && GET_CODE (operands
[
1
]
) != CONST_INT)
operands
[
1
]
= force_const_mem (SImode, operands
[
1
]
);
{
operands
[
1
]
= force_const_mem (SImode, operands
[
1
]
);
if (! memory_address_p (SImode, XEXP (operands
[
1
]
, 0))
&& ! reload_in_progress)
operands
[
1
]
= change_address (operands
[
1
]
, SImode,
XEXP (operands
[
1
]
, 0));
}
if (GET_CODE (operands
[
1
]
) == CONST_INT
&& (unsigned) (INTVAL (operands
[
1
]
) + 0x8000) >= 0x10000
...
...
@@ -2162,7 +2168,13 @@
operands
[
1
]
= force_reg (HImode, operands
[
1
]
);
if (CONSTANT_P (operands
[
1
]
) && GET_CODE (operands
[
1
]
) != CONST_INT)
operands
[
1
]
= force_const_mem (HImode, operands
[
1
]
);
{
operands
[
1
]
= force_const_mem (HImode, operands
[
1
]
);
if (! memory_address_p (HImode, XEXP (operands
[
1
]
, 0))
&& ! reload_in_progress)
operands
[
1
]
= change_address (operands
[
1
]
, HImode,
XEXP (operands
[
1
]
, 0));
}
}")
(define_insn ""
...
...
@@ -2190,7 +2202,13 @@
operands
[
1
]
= force_reg (QImode, operands
[
1
]
);
if (CONSTANT_P (operands
[
1
]
) && GET_CODE (operands
[
1
]
) != CONST_INT)
operands
[
1
]
= force_const_mem (QImode, operands
[
1
]
);
{
operands
[
1
]
= force_const_mem (QImode, operands
[
1
]
);
if (! memory_address_p (QImode, XEXP (operands
[
1
]
, 0))
&& ! reload_in_progress)
operands
[
1
]
= change_address (operands
[
1
]
, QImode,
XEXP (operands
[
1
]
, 0));
}
}")
(define_insn ""
...
...
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