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
50fed7bf
Commit
50fed7bf
authored
May 26, 2011
by
Ramana Radhakrishnan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix generation of vorn and vbic for Neon.
From-SVN: r174266
parent
48df3fa6
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
37 additions
and
6 deletions
+37
-6
gcc/ChangeLog
+7
-0
gcc/config/arm/neon.md
+6
-6
gcc/testsuite/ChangeLog
+4
-0
gcc/testsuite/gcc.target/arm/neon-vorn-vbic.c
+20
-0
No files found.
gcc/ChangeLog
View file @
50fed7bf
2011-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
* config/arm/neon.md ("orn<mode>3_neon"): Canonicalize not.
("orndi3_neon"): Likewise.
("bic<mode>3_neon"): Likewise.
2011-05-26 Ira Rosen <ira.rosen@linaro.org>
PR tree-optimization/49038
...
...
@@ -185,6 +191,7 @@
* ipa.c (function_and_variable_visibility): Only add to same
comdat group list if DECL_ONE_ONLY.
>>>>>>> .r174265
2011-05-25 Andrey Belevantsev <abel@ispras.ru>
PR rtl-optimization/49014
...
...
gcc/config/arm/neon.md
View file @
50fed7bf
...
...
@@ -794,8 +794,8 @@
(define_insn "orn
<mode>
3_neon"
[
(set (match_operand:VDQ 0 "s_register_operand" "=w")
(ior:VDQ (
match_operand:VDQ 1 "s_register_operand" "w"
)
(
not:VDQ (match_operand:VDQ 2 "s_register_operand" "w")
)))]
(ior:VDQ (
not:VDQ (match_operand:VDQ 2 "s_register_operand" "w")
)
(
match_operand:VDQ 1 "s_register_operand" "w"
)))]
"TARGET_NEON"
"vorn
\t
%
<V
_reg
>
0, %
<V
_reg
>
1, %
<V
_reg
>
2"
[
(set_attr "neon_type" "neon_int_1")
]
...
...
@@ -803,8 +803,8 @@
(define_insn "orndi3_neon"
[
(set (match_operand:DI 0 "s_register_operand" "=w,?=&r,?&r")
(ior:DI (
match_operand:DI 1 "s_register_operand" "w,r,0"
)
(not:DI (match_operand:DI 2 "s_register_operand" "w,0,r")
)))]
(ior:DI (
not:DI (match_operand:DI 2 "s_register_operand" "w,0,r")
)
(match_operand:DI 1 "s_register_operand" "w,r,0"
)))]
"TARGET_NEON"
"@
vorn
\t
%P0, %P1, %P2
...
...
@@ -816,8 +816,8 @@
(define_insn "bic
<mode>
3_neon"
[
(set (match_operand:VDQ 0 "s_register_operand" "=w")
(and:VDQ (
match_operand:VDQ 1 "s_register_operand" "w"
)
(not:VDQ (match_operand:VDQ 2 "s_register_operand" "w")
)))]
(and:VDQ (
not:VDQ (match_operand:VDQ 2 "s_register_operand" "w")
)
(match_operand:VDQ 1 "s_register_operand" "w"
)))]
"TARGET_NEON"
"vbic
\t
%
<V
_reg
>
0, %
<V
_reg
>
1, %
<V
_reg
>
2"
[
(set_attr "neon_type" "neon_int_1")
]
...
...
gcc/testsuite/ChangeLog
View file @
50fed7bf
2011-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
* gcc.target/arm/neon-vorn-vbic.c: New test.
2011-05-26 Ira Rosen <ira.rosen@linaro.org>
PR tree-optimization/49038
...
...
gcc/testsuite/gcc.target/arm/neon-vorn-vbic.c
0 → 100644
View file @
50fed7bf
/* { dg-do compile } */
/* { dg-require-effective-target arm_neon_ok } */
/* { dg-options "-O2 -ftree-vectorize" } */
/* { dg-add-options arm_neon } */
void
bor
(
int
*
__restrict__
c
,
int
*
__restrict__
a
,
int
*
__restrict__
b
)
{
int
i
;
for
(
i
=
0
;
i
<
9
;
i
++
)
c
[
i
]
=
b
[
i
]
|
(
~
a
[
i
]);
}
void
bic
(
int
*
__restrict__
c
,
int
*
__restrict__
a
,
int
*
__restrict__
b
)
{
int
i
;
for
(
i
=
0
;
i
<
9
;
i
++
)
c
[
i
]
=
b
[
i
]
&
(
~
a
[
i
]);
}
/* { dg-final { scan-assembler "vorn\\t" } } */
/* { dg-final { scan-assembler "vbic\\t" } } */
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