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.
* match.pd (~x | x): Don't use tree_nop_conversion_p. Build
the final expression with the operand's type and then convert it to the type of the expression. * gcc.dg/fold-ior-3.c: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@225196 138bc75d-0d04-0410-961f-82ee72b054a4
- Loading branch information
mpolacek
committed
Jun 30, 2015
1 parent
48bd2be
commit 754e086
Showing
4 changed files
with
42 additions
and
2 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 |
---|---|---|
|
@@ -3,6 +3,10 @@ | |
* match.pd (X - (X / Y) * Y): Use convert1 and convert2. Convert | ||
both operands of the resulting expression. | ||
|
||
* match.pd (~x | x): Don't use tree_nop_conversion_p. Build | ||
the final expression with the operand's type and then convert | ||
it to the type of the expression. | ||
|
||
2015-06-30 Richard Biener <[email protected]> | ||
|
||
* fold-const.c (fold_binary_loc): Move ~x & ~y -> ~(x | y) and | ||
|
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 |
---|---|---|
|
@@ -2,6 +2,8 @@ | |
|
||
* gcc.dg/fold-minus-6.c: New test. | ||
|
||
* gcc.dg/fold-ior-3.c: New test. | ||
|
||
2015-06-30 Edward Smith-Rowland <[email protected]> | ||
|
||
Implement N4197 - Adding u8 character literals | ||
|
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,35 @@ | ||
/* { dg-do compile } */ | ||
/* { dg-options "-O -fdump-tree-cddce1" } */ | ||
|
||
int | ||
fn1 (_Bool a) | ||
{ | ||
return ((int) a) | ((int) ~a); | ||
} | ||
|
||
int | ||
fn2 (unsigned char a) | ||
{ | ||
return ((int) a) | ((int) ~a); | ||
} | ||
|
||
int | ||
fn3 (unsigned short a) | ||
{ | ||
return ((int) a) | ((int) ~a); | ||
} | ||
|
||
int | ||
fn4 (signed char a) | ||
{ | ||
return ((int) a) | ((int) ~a); | ||
} | ||
|
||
int | ||
fn5 (signed short a) | ||
{ | ||
return ((int) a) | ((int) ~a); | ||
} | ||
|
||
/* { dg-final { scan-tree-dump-not "~" "cddce1" } } */ | ||
/* { dg-final { scan-tree-dump-not " \\| " "cddce1" } } */ |