Dan Gohman | 36a0947 | 2009-09-08 23:54:48 +0000 | [diff] [blame^] | 1 | ; RUN: llc < %s -march=x86 | grep and |
Chris Lattner | 423be62 | 2008-02-14 18:48:56 +0000 | [diff] [blame] | 2 | define i32 @test(i1 %A) { |
3 | %B = zext i1 %A to i32 ; <i32> [#uses=1] | ||||
4 | %C = sub i32 0, %B ; <i32> [#uses=1] | ||||
5 | %D = and i32 %C, 255 ; <i32> [#uses=1] | ||||
6 | ret i32 %D | ||||
7 | } | ||||
8 |