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
578b58f5
Commit
578b58f5
authored
28 years ago
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(clrstrsi): Correct check for constant size.
(allocate_stack{,_worker}): New patterns. From-SVN: r12708
parent
22371ff3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
1 deletions
+29
-1
gcc/config/i386/i386.md
+29
-1
No files found.
gcc/config/i386/i386.md
View file @
578b58f5
...
...
@@ -58,6 +58,8 @@
;; operand 0 is the argument for
`sin'.
;; 2 This is a `
cos' operation. The mode of the UNSPEC is MODE_FLOAT.
;; operand 0 is the argument for
`cos'.
;; 3 This is part of a `
stack probe' operation. The mode of the UNSPEC is
;; always SImode. operand 0 is the size of the stack allocation.
;; This shadows the processor_type enumeration, so changes must be made
;; to i386.h at the same time.
...
...
@@ -6183,7 +6185,7 @@
{
rtx addr0, addr1;
if (GET_CODE (operands
[
2
]
) != CONST_INT)
if (GET_CODE (operands[
1
]) != CONST_INT)
FAIL;
addr0 = copy_to_mode_reg (Pmode, XEXP (operands[0], 0));
...
...
@@ -7048,3 +7050,29 @@
"(TARGET_USE_Q_REG && optimize > 1)"
"
*
return output_strlen_unroll (operands);"
)
(define_insn "allocate_stack_worker"
[
(unspec:SI [(match_operand:SI 0 "register_operand" "a")
]
3)
(set (reg:SI 7) (minus:SI (reg:SI 7) (match_dup 0)))
(clobber (match_dup 0))]
"TARGET_STACK_PROBE"
"
*
return AS1(call,__alloca);")
(define_expand "allocate_stack"
[
(set (reg:SI 7)
(minus:SI (reg:SI 7) (match_operand:SI 0 "general_operand" "")))]
"TARGET_STACK_PROBE"
"
{
#ifdef CHECK_STACK_LIMIT
if (GET_CODE (operands
[
0
]
) == CONST_INT
&& INTVAL (operands
[
0
]
) < CHECK_STACK_LIMIT)
emit_insn (gen_subsi3 (stack_pointer_rtx, stack_pointer_rtx,
operands
[
0
]
));
else
#endif
emit_insn (gen_allocate_stack_worker (copy_to_mode_reg (SImode,
operands
[
0
]
)));
DONE;
}")
This diff is collapsed.
Click to expand it.
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