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
4801403e
Commit
4801403e
authored
Oct 16, 1996
by
Torbjorn Granlund
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(parallel inc/dec and branch-if-zero/nonzero): 4 new patterns.
From-SVN: r12968
parent
293a36eb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
68 additions
and
0 deletions
+68
-0
gcc/config/i386/i386.md
+68
-0
No files found.
gcc/config/i386/i386.md
View file @
4801403e
...
@@ -5725,6 +5725,74 @@
...
@@ -5725,6 +5725,74 @@
return AS1 (%J0,%l3);
return AS1 (%J0,%l3);
}")
}")
(define_insn ""
[
(set (pc)
(if_then_else (ne (match_operand:SI 0 "general_operand" "g")
(const_int 0))
(label_ref (match_operand 1 "" ""))
(pc)))
(set (match_dup 0)
(plus:SI (match_dup 0)
(const_int -1)))]
""
"
*
{
operands
[
2
]
= const1_rtx;
output_asm_insn (AS2 (sub%L0,%2,%0), operands);
return
\"
jnc %l1
\"
;
}")
(define_insn ""
[
(set (pc)
(if_then_else (eq (match_operand:SI 0 "general_operand" "g")
(const_int 0))
(label_ref (match_operand 1 "" ""))
(pc)))
(set (match_dup 0)
(plus:SI (match_dup 0)
(const_int -1)))]
""
"
*
{
operands
[
2
]
= const1_rtx;
output_asm_insn (AS2 (sub%L0,%2,%0), operands);
return
\"
jc %l1
\"
;
}")
(define_insn ""
[
(set (pc)
(if_then_else (ne (match_operand:SI 0 "general_operand" "g")
(const_int 0))
(label_ref (match_operand 1 "" ""))
(pc)))
(set (match_dup 0)
(plus:SI (match_dup 0)
(const_int 1)))]
""
"
*
{
operands
[
2
]
= const1_rtx;
output_asm_insn (AS2 (add%L0,%2,%0), operands);
return
\"
jnc %l1
\"
;
}")
(define_insn ""
[
(set (pc)
(if_then_else (eq (match_operand:SI 0 "general_operand" "g")
(const_int 0))
(label_ref (match_operand 1 "" ""))
(pc)))
(set (match_dup 0)
(plus:SI (match_dup 0)
(const_int 1)))]
""
"
*
{
operands
[
2
]
= const1_rtx;
output_asm_insn (AS2 (add%L0,%2,%0), operands);
return
\"
jc %l1
\"
;
}")
;; Implement switch statements when generating PIC code. Switches are
;; Implement switch statements when generating PIC code. Switches are
;; implemented by
`tablejump' when not using -fpic.
;; implemented by
`tablejump' when not using -fpic.
...
...
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