Reid Spencer | 6405099 | 2006-12-29 20:01:32 +0000 | [diff] [blame] | 1 | ; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine | llvm-dis | grep shl |
Chris Lattner | c92921f | 2006-12-05 01:29:01 +0000 | [diff] [blame] | 2 | |
3 | bool %test(int %X, ubyte %A) { | ||||
4 | %B = lshr int %X, ubyte %A | ||||
5 | %D = trunc int %B to bool | ||||
6 | ret bool %D | ||||
7 | } |