Reid Spencer | 3da59db | 2006-11-27 01:05:10 +0000 | [diff] [blame^] | 1 | // RUN: %llvmgcc -S %s -o - | grep 'trunc.*to bool' |
2 | // RUN: %llvmgcc -S %s -o - | llvm-as | llc -march=x86 | grep and | ||||
3 | int | ||||
4 | main ( int argc, char** argv) | ||||
5 | { | ||||
6 | int i; | ||||
7 | int result = 1; | ||||
8 | for (i = 2; i <= 3; i++) | ||||
9 | { | ||||
10 | if ((i & 1) == 0) | ||||
11 | { | ||||
12 | result = result + 17; | ||||
13 | } | ||||
14 | } | ||||
15 | return result; | ||||
16 | } |