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
b3d45ff0
Commit
b3d45ff0
authored
Apr 03, 2013
by
Ulrich Weigand
Committed by
Ulrich Weigand
Apr 03, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* config/spu/spu.c (emit_nop_for_insn): Handle JUMP_TABLE_DATA.
From-SVN: r197406
parent
a5cde067
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
2 deletions
+15
-2
gcc/ChangeLog
+4
-0
gcc/config/spu/spu.c
+11
-2
No files found.
gcc/ChangeLog
View file @
b3d45ff0
2013-04-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
* config/spu/spu.c (emit_nop_for_insn): Handle JUMP_TABLE_DATA.
2013-04-03 Bin Cheng <bin.cheng@arm.com>
* rtl.h (AUTO_INC_DEC): Fix typo of HAVE_POST_MODIFY_DISP.
...
...
gcc/config/spu/spu.c
View file @
b3d45ff0
...
...
@@ -1978,13 +1978,22 @@ static struct spu_bb_info *spu_bb_info;
/* Emit a nop for INSN such that the two will dual issue. This assumes
INSN is 8-byte aligned. When INSN is inline asm we emit an lnop.
We check for TImode to handle a MULTI1 insn which has dual issued its
first instruction. get_pipe returns -1 for MULTI0, inline asm, or
ADDR_VEC insns. */
first instruction. get_pipe returns -1 for MULTI0 or inline asm. */
static
void
emit_nop_for_insn
(
rtx
insn
)
{
int
p
;
rtx
new_insn
;
/* We need to handle JUMP_TABLE_DATA separately. */
if
(
JUMP_TABLE_DATA_P
(
insn
))
{
new_insn
=
emit_insn_after
(
gen_lnop
(),
insn
);
recog_memoized
(
new_insn
);
INSN_LOCATION
(
new_insn
)
=
UNKNOWN_LOCATION
;
return
;
}
p
=
get_pipe
(
insn
);
if
((
CALL_P
(
insn
)
||
JUMP_P
(
insn
))
&&
SCHED_ON_EVEN_P
(
insn
))
new_insn
=
emit_insn_after
(
gen_lnop
(),
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