Chandler Carruth | 2fa43a7 | 2011-07-02 20:42:36 +0000 | [diff] [blame] | 1 | ; RUN: llc < %s -march=x86 | FileCheck %s |
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 { |
Chandler Carruth | 2fa43a7 | 2011-07-02 20:42:36 +0000 | [diff] [blame] | 5 | ; CHECK: test: |
| 6 | ; CHECK-NOT: ret |
| 7 | ; CHECK: orl $1 |
| 8 | ; CHECK: ret |
Dan Gohman | dbe664a | 2009-01-19 21:44:21 +0000 | [diff] [blame] | 9 | %B = or i32 %A, 1 |
| 10 | %C = or i32 %B, 1 |
| 11 | %D = and i32 %C, 7057 |
| 12 | ret i32 %D |
| 13 | } |