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
4456530d
Commit
4456530d
authored
Sep 13, 2002
by
Hartmut Penner
Committed by
Hartmut Penner
Sep 13, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* config/s390/s390.md ("trap", "conditional_trap", "*trap"): New insns.
From-SVN: r57102
parent
8764acde
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
39 additions
and
0 deletions
+39
-0
gcc/ChangeLog
+5
-0
gcc/config/s390/s390.md
+34
-0
No files found.
gcc/ChangeLog
View file @
4456530d
2002
-
09
-
13
Hartmut
Penner
<
hpenner
@de
.
ibm
.
com
>
*
config
/
s390
/
s390
.
md
(
"trap"
,
"conditional_trap"
,
"*trap"
)
:
New
insns
.
2002
-
09
-
12
Richard
Henderson
<
rth
@redhat
.
com
>
*
Makefile
.
in
(
HOST_PRINT
)
:
Use
print
-
rtl1
.
o
...
...
gcc/config/s390/s390.md
View file @
4456530d
...
...
@@ -5970,6 +5970,40 @@
(const_string "RR") (const_string "RX")))
(set_attr "atype" "mem")])
;;
;;- Trap instructions.
;;
(define_insn "trap"
[
(trap_if (const_int 1) (const_int 0))
]
""
"j
\\
t.+2"
[
(set_attr "op_type" "RX")
]
)
(define_expand "conditional_trap"
[
(set (match_dup 2) (match_dup 3))
(trap_if (match_operator 0 "comparison_operator"
[
(match_dup 2) (const_int 0)
]
)
(match_operand:SI 1 "general_operand" ""))]
""
"
{
enum machine_mode ccmode;
if (operands
[
1
]
!= const0_rtx) FAIL;
ccmode = s390_select_ccmode (GET_CODE (operands
[
0
]
),
s390_compare_op0, s390_compare_op1);
operands
[
2
]
= gen_rtx_REG (ccmode, 33);
operands
[
3
]
= gen_rtx_COMPARE (ccmode, s390_compare_op0, s390_compare_op1);
}")
(define_insn "
*
trap"
[
(trap_if (match_operator 0 "comparison_operator" [(reg 33) (const_int 0)
]
)
(const_int 0))]
""
"j%C0
\\
t.+2";
[
(set_attr "op_type" "RX")
]
)
;;
;;- Loop instructions.
...
...
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