Georg-Johann Lay wrote: > Hi, I am struggling against hundreds of fails in the testsuite because > many cases are not carefully written, e.g. stull like shifting an int > by 19 bits if int is only 16 bits wide. > > This patch adds some additional tests to avoid FAILs that are confusing. > > Sorry for gathering it in one patch, other patches may follow. I just > don't like to flood you with bulk of patches. > > Ok to commit? > > Johann.
Some more comments for why the filers are needed follow: > testsuite/ > * gcc.dg/pragma-align.c: Run only if target !default_packed. If target packs by default, pack won't change anything. > * gcc.dg/pr46212.c: Run only if target int32plus. Constants exceeding 16-bit int. > * gcc.dg/torture/pr48146.c: Ditto. Ditto for g_2 in line 10. > * gcc.dg/tree-ssa/vrp51.c: Ditto. Ditto for constant 0x10111. > * c-c++-common/pr44832.c: Ditto. Ditto for mask 1 << 19 in line 93. > * gcc.dg/pr49544.c: Run only if target ptr32plus. Line 18: warning: cast to pointer from integer of different size > * gcc.dg/pr31490.c: Ditto. Line 5: error: initializer element is not constant > * gcc.dg/torture/builtin-math-7.c: Run only if target > large_double. The constant in line 85 won't be folded for double = float resulting in link_error(85). > * gcc.dg/torture/pr45764.c: Skip for AVR. > * gcc.dg/pr47893.c: Ditto. Architecture limitations.