Dan Gohman | dbe664a | 2009-01-19 21:44:21 +0000 | [diff] [blame] | 1 | ; RUN: llvm-as < %s | llc -march=x86 | grep {orl \$1} |
Dan Gohman | 54e853a | 2009-01-24 17:32:54 +0000 | [diff] [blame^] | 2 | ; PR3018 |
Dan Gohman | dbe664a | 2009-01-19 21:44:21 +0000 | [diff] [blame] | 3 | |
4 | define i32 @test(i32 %A) nounwind { | ||||
5 | %B = or i32 %A, 1 | ||||
6 | %C = or i32 %B, 1 | ||||
7 | %D = and i32 %C, 7057 | ||||
8 | ret i32 %D | ||||
9 | } |