Chris Lattner | 7b09487 | 2006-11-28 01:26:37 +0000 | [diff] [blame^] | 1 | ; RUN: llvm-as < %s | llc -march=x86 | grep test.*1 |
2 | ; PR1016 | ||||
3 | |||||
4 | int %test(int %A, int %B, int %C) { | ||||
5 | %a = trunc int %A to bool | ||||
6 | %D = select bool %a, int %B, int %C | ||||
7 | ret int %D | ||||
8 | } |