testsuite/97066 - minor change to bypass plusminus-with-convert rule
The following testcases will be simplified by the new rule (T)(A) +- (T)(B) -> (T)(A +- B), so could not keep code pattern expected by test-check. Adjust test code to suppress simplification. 2020-09-16 Feng Xue <fxue@os.amperecomputing.com> gcc/testsuite/ PR testsuite/97066 * gcc.dg/ifcvt-3.c: Modified to suppress simplification. * gcc.dg/tree-ssa/20030807-10.c: Likewise.
This commit is contained in:
parent
2cab2431d5
commit
f419a01589
@ -11,7 +11,7 @@ foo (s64 a, s64 b, s64 c)
|
||||
if (d == 0)
|
||||
return a + c;
|
||||
else
|
||||
return b + d + c;
|
||||
return b + c + d;
|
||||
}
|
||||
|
||||
/* This test can be reduced to just return a + c; */
|
||||
|
@ -7,7 +7,7 @@ unsigned int
|
||||
subreg_highpart_offset (outermode, innermode)
|
||||
int outermode, innermode;
|
||||
{
|
||||
unsigned int offset = 0;
|
||||
unsigned int offset = 1;
|
||||
int difference = (mode_size[innermode] - mode_size[outermode]);
|
||||
if (difference > 0)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user