forked from gcc-mirror/gcc
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* lra-remat.c (subreg_regs): New. (dump_candidates_and_remat_bb_data): Dump it. (operand_to_remat): Reject if operand in subreg_regs. (set_bb_regs): Collect subreg_regs. (lra_remat): Init and free subreg_regs. Compute calculate_local_reg_remat_bb_data before create_cands. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@232905 138bc75d-0d04-0410-961f-82ee72b054a4
- Loading branch information
rth
committed
Jan 27, 2016
1 parent
147b2f9
commit fa6e6b1
Showing
4 changed files
with
85 additions
and
34 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
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
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,26 @@ | ||
typedef unsigned char u8; | ||
typedef unsigned short u16; | ||
typedef unsigned int u32; | ||
typedef unsigned long long u64; | ||
|
||
u64 __attribute__((noinline, noclone)) | ||
foo(u8 u8_0, u16 u16_0, u64 u64_0, u8 u8_1, u16 u16_1, u64 u64_1, u64 u64_2, u8 u8_3, u64 u64_3) | ||
{ | ||
u64_1 *= 0x7730; | ||
u64_3 *= u64_3; | ||
u16_1 |= u64_3; | ||
u64_3 -= 2; | ||
u8_3 /= u64_2; | ||
u8_0 |= 3; | ||
u64_3 %= u8_0; | ||
u8_0 -= 1; | ||
return u8_0 + u16_0 + u64_0 + u8_1 + u16_1 + u64_1 + u8_3 + u64_3; | ||
} | ||
|
||
int main() | ||
{ | ||
unsigned x = foo(1, 1, 1, 1, 1, 1, 1, 1, 1); | ||
if (x != 0x7737) | ||
__builtin_abort(); | ||
return 0; | ||
} |