make tblgen produce a function that returns the name for a physreg.
[llvm/avr.git] / test / FrontendC / 2002-03-14-BrokenPHINode.c
blob48d9ab705a7244672f32335a1d6f66cbe81e3aa9
1 // RUN: %llvmgcc -S %s -o - | llvm-as -o /dev/null
3 /* GCC was generating PHI nodes with an arity < #pred of the basic block the
4 * PHI node lived in. This was breaking LLVM because the number of entries
5 * in a PHI node must equal the number of predecessors for a basic block.
6 */
8 int trys(char *s, int x)
10 int asa;
11 double Val;
12 int LLS;
13 if (x) {
14 asa = LLS + asa;
15 } else {
17 return asa+(int)Val;