Dan Gohman | f17a25c | 2007-07-18 16:29:46 +0000 | [diff] [blame] | 1 | ; RUN: llvm-upgrade < %s | llvm-as | 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 | } |