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
cd6bd5fc
Commit
cd6bd5fc
authored
Aug 19, 1995
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(fancy_btst,fancy_btst1): Branch target must be operand 0 for length
attribute to work. From-SVN: r10249
parent
3511415d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
12 deletions
+12
-12
gcc/config/h8300/h8300.md
+12
-12
No files found.
gcc/config/h8300/h8300.md
View file @
cd6bd5fc
...
...
@@ -2167,42 +2167,42 @@
(define_insn "fancy_btst"
[
(set (pc)
(if_then_else (eq (zero_extract:HI (zero_extend:HI (match_operand:QI
0
"general_operand" "Ur"))
(if_then_else (eq (zero_extract:HI (zero_extend:HI (match_operand:QI
1
"general_operand" "Ur"))
(const_int 1)
(match_operand:HI
1
"nonmemory_operand" "rn"))
(match_operand:HI
2
"nonmemory_operand" "rn"))
(const_int 0))
(label_ref (match_operand
2
"" ""))
(label_ref (match_operand
0
"" ""))
(pc)))]
""
"
*
{
if (get_attr_length (insn) == 2)
return
\"
btst %X
1,%X0
\;
beq %l2
\"
;
return
\"
btst %X
2,%X1
\;
beq %l0
\"
;
else if (get_attr_length (insn) == 4)
return
\"
btst %X
1,%X0
\;
beq %l2
:16
\"
;
return
\"
btst %X
2,%X1
\;
beq %l0
:16
\"
;
else
return
\"
btst %X
1,%X0
\;
bne %L0
\;
jmp @%l2
\;
%L0
:
\"
;
return
\"
btst %X
2,%X1
\;
bne %L1
\;
jmp @%l0
\;
%L1
:
\"
;
}"
[
(set_attr "type" "branch")
(set_attr "cc" "clobber")])
(define_insn "fancy_btst1"
[
(set (pc)
(if_then_else (ne (zero_extract:HI (zero_extend:HI (match_operand:QI
0
"general_operand" "Ur"))
(if_then_else (ne (zero_extract:HI (zero_extend:HI (match_operand:QI
1
"general_operand" "Ur"))
(const_int 1)
(match_operand:HI
1
"nonmemory_operand" "rn"))
(match_operand:HI
2
"nonmemory_operand" "rn"))
(const_int 0))
(label_ref (match_operand
2
"" ""))
(label_ref (match_operand
0
"" ""))
(pc)))]
""
"
*
{
if (get_attr_length (insn) == 2)
return
\"
btst %X
1,%X0
\;
bne %l2
\"
;
return
\"
btst %X
2,%X1
\;
bne %l0
\"
;
else if (get_attr_length (insn) == 4)
return
\"
btst %X
1,%X0
\;
bne %l2
:16
\"
;
return
\"
btst %X
2,%X1
\;
bne %l0
:16
\"
;
else
return
\"
btst %X
1,%X0
\;
beq %L0
\;
jmp @%l2
\;
%L0
:
\"
;
return
\"
btst %X
2,%X1
\;
beq %L1
\;
jmp @%l0
\;
%L1
:
\"
;
}"
[
(set_attr "type" "branch")
(set_attr "cc" "clobber")])
...
...
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