llvm-6502/test/FrontendC/2002-03-14-BrokenPHINode.c
Dan Gohman fea1dd0804 Remove obsolete -f flags.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79992 91177308-0d34-0410-b5e6-96231b3b80d8
2009-08-25 15:38:29 +00:00

20 lines
420 B
C

// RUN: %llvmgcc -S %s -o - | llvm-as -o /dev/null
/* GCC was generating PHI nodes with an arity < #pred of the basic block the
* PHI node lived in. This was breaking LLVM because the number of entries
* in a PHI node must equal the number of predecessors for a basic block.
*/
int trys(char *s, int x)
{
int asa;
double Val;
int LLS;
if (x) {
asa = LLS + asa;
} else {
}
return asa+(int)Val;
}