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
1744c800
Commit
1744c800
authored
Jul 09, 2010
by
Bernd Schmidt
Committed by
Bernd Schmidt
Jul 09, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* config/arm/arm.md (Thumb-1 ldrsb peephole): New.
From-SVN: r162021
parent
0879e7b3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
0 deletions
+23
-0
gcc/ChangeLog
+2
-0
gcc/config/arm/arm.md
+21
-0
No files found.
gcc/ChangeLog
View file @
1744c800
...
...
@@ -11,6 +11,8 @@
* config/arm/arm.md (addsi3_cbranch): Switch alternatives 0 and 1.
* config/arm/arm.md (Thumb-1 ldrsb peephole): New.
2010-07-09 Richard Guenther <rguenther@suse.de>
* gimple.c (struct type_fixup_s): New struct and VEC type.
...
...
gcc/config/arm/arm.md
View file @
1744c800
...
...
@@ -4615,6 +4615,27 @@
operands
[
3
]
= change_address (operands
[
1
]
, QImode, addr);
})
(define_peephole2
[
(set (match_operand:SI 0 "register_operand" "")
(plus:SI (match_dup 0) (match_operand 1 "const_int_operand")))
(set (match_operand:SI 2 "register_operand" "") (const_int 0))
(set (match_operand:SI 3 "register_operand" "")
(sign_extend:SI (match_operand:QI 4 "memory_operand" "")))]
"TARGET_THUMB1
&& GET_CODE (XEXP (operands
[
4
]
, 0)) == PLUS
&& rtx_equal_p (operands
[
0
]
, XEXP (XEXP (operands
[
4
]
, 0), 0))
&& rtx_equal_p (operands
[
2
]
, XEXP (XEXP (operands
[
4
]
, 0), 1))
&& (peep2_reg_dead_p (3, operands
[
0
]
)
|| rtx_equal_p (operands
[
0
]
, operands
[
3
]
))
&& (peep2_reg_dead_p (3, operands
[
2
]
)
|| rtx_equal_p (operands
[
2
]
, operands
[
3
]
))"
[
(set (match_dup 2) (match_dup 1))
(set (match_dup 3) (sign_extend:SI (match_dup 4)))]
{
rtx addr = gen_rtx_PLUS (Pmode, operands
[
0
]
, operands
[
2
]
);
operands
[
4
]
= change_address (operands
[
4
]
, QImode, addr);
})
(define_insn "thumb1_extendqisi2"
[
(set (match_operand:SI 0 "register_operand" "=l,l,l")
(sign_extend:SI (match_operand:QI 1 "nonimmediate_operand" "l,V,m")))]
...
...
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