-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[PATCH][AARCH64]Add backend aarch64_bfi pattern.
2015-08-26 Renlin Li <[email protected]> gcc/ * config/aarch64/aarch64.md (aarch64_bfi): New pattern. gcc/testsuite/ * gcc.target/aarch64/combine_bfi_1.c: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@227226 138bc75d-0d04-0410-961f-82ee72b054a4
- Loading branch information
renlin
committed
Aug 26, 2015
1 parent
f546e2d
commit 7ebdc88
Showing
4 changed files
with
52 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
2015-08-26 Renlin Li <[email protected]> | ||
|
||
* config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode><ALLX:mode>4): New. | ||
|
||
2015-08-26 Marcus Shawcroft <[email protected]> | ||
Jiong Wang <[email protected]> | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
2015-08-26 Renlin Li <[email protected]> | ||
|
||
* gcc.target/aarch64/combine_bfi_1.c: New testcase. | ||
|
||
2015-08-26 Jiong Wang <[email protected]> | ||
|
||
* gcc.target/aarch64/tlsie_tiny_1.c: New testcase. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
/* { dg-do compile } */ | ||
/* { dg-options "-O2 -fdump-rtl-combine" } */ | ||
|
||
int | ||
f1 (int x, int y) | ||
{ | ||
return (x & ~0x0ffff00) | ((y << 8) & 0x0ffff00); | ||
} | ||
|
||
int | ||
f2 (int x, int y) | ||
{ | ||
return (x & ~0x0ff000) | ((y & 0x0ff) << 12); | ||
} | ||
|
||
int | ||
f3 (int x, int y) | ||
{ | ||
return (x & ~0xffff) | (y & 0xffff); | ||
} | ||
|
||
int | ||
f4 (int x, int y) | ||
{ | ||
return (x & ~0xff) | (y & 0xff); | ||
} | ||
|
||
long | ||
f5 (long x, long y) | ||
{ | ||
return (x & ~0xffffffffull) | (y & 0xffffffff); | ||
} | ||
|
||
/* { dg-final { scan-rtl-dump-times "\\*aarch64_bfi" 5 "combine" } } */ |