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
22a89c86
Commit
22a89c86
authored
Mar 06, 2012
by
Richard Henderson
Committed by
Richard Henderson
Mar 06, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
m68k: Limit TAS to 68000 and CF ISA_B.
From-SVN: r185011
parent
593f74bb
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
2 deletions
+9
-2
gcc/ChangeLog
+6
-0
gcc/config/m68k/m68k.h
+1
-0
gcc/config/m68k/sync.md
+2
-2
No files found.
gcc/ChangeLog
View file @
22a89c86
2012-03-06 Richard Henderson <rth@redhat.com>
* config/m68k/m68k.h (ISA_HAS_TAS): New.
* config/m68k/sync.md (atomic_test_and_set): Use it.
(atomic_test_and_set_1): Likewise.
2012-03-06 Michael Meissner <meissner@linux.vnet.ibm.com>
2012-03-06 Michael Meissner <meissner@linux.vnet.ibm.com>
PR target/50310
PR target/50310
...
...
gcc/config/m68k/m68k.h
View file @
22a89c86
...
@@ -249,6 +249,7 @@ along with GCC; see the file COPYING3. If not see
...
@@ -249,6 +249,7 @@ along with GCC; see the file COPYING3. If not see
/* Some instructions are common to more than one ISA. */
/* Some instructions are common to more than one ISA. */
#define ISA_HAS_MVS_MVZ (TARGET_ISAB || TARGET_ISAC)
#define ISA_HAS_MVS_MVZ (TARGET_ISAB || TARGET_ISAC)
#define ISA_HAS_FF1 (TARGET_ISAAPLUS || TARGET_ISAC)
#define ISA_HAS_FF1 (TARGET_ISAAPLUS || TARGET_ISAC)
#define ISA_HAS_TAS (!TARGET_COLDFIRE || TARGET_ISAB || TARGET_ISAC)
#define TUNE_68000 (m68k_tune == u68000)
#define TUNE_68000 (m68k_tune == u68000)
#define TUNE_68010 (m68k_tune == u68010)
#define TUNE_68010 (m68k_tune == u68010)
...
...
gcc/config/m68k/sync.md
View file @
22a89c86
...
@@ -60,7 +60,7 @@
...
@@ -60,7 +60,7 @@
[
(match_operand:QI 0 "register_operand" "") ;; bool success output
[
(match_operand:QI 0 "register_operand" "") ;; bool success output
(match_operand:QI 1 "memory_operand" "") ;; memory
(match_operand:QI 1 "memory_operand" "") ;; memory
(match_operand:SI 2 "const_int_operand" "")] ;; model
(match_operand:SI 2 "const_int_operand" "")] ;; model
""
"
ISA_HAS_TAS
"
{
{
rtx t = gen_reg_rtx (QImode);
rtx t = gen_reg_rtx (QImode);
emit_insn (gen_atomic_test_and_set_1 (t, operands
[
1
]
));
emit_insn (gen_atomic_test_and_set_1 (t, operands
[
1
]
));
...
@@ -77,5 +77,5 @@
...
@@ -77,5 +77,5 @@
UNSPECV_TAS_1))
UNSPECV_TAS_1))
(set (match_dup 1)
(set (match_dup 1)
(unspec_volatile:QI
[
(match_dup 1)
]
UNSPECV_TAS_2))]
(unspec_volatile:QI
[
(match_dup 1)
]
UNSPECV_TAS_2))]
""
"
ISA_HAS_TAS
"
"tas %1
\;
sne %0")
"tas %1
\;
sne %0")
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