blob: eca8c8641a20074945249c3f4f50e6cb4e5c031c [file] [log] [blame]
Chandler Carruth2fa43a72011-07-02 20:42:36 +00001; RUN: llc < %s -march=x86 | FileCheck %s
Dan Gohman54e853a2009-01-24 17:32:54 +00002; PR3018
Dan Gohmandbe664a2009-01-19 21:44:21 +00003
4define i32 @test(i32 %A) nounwind {
Chandler Carruth2fa43a72011-07-02 20:42:36 +00005; CHECK: test:
6; CHECK-NOT: ret
7; CHECK: orl $1
8; CHECK: ret
Dan Gohmandbe664a2009-01-19 21:44:21 +00009 %B = or i32 %A, 1
10 %C = or i32 %B, 1
11 %D = and i32 %C, 7057
12 ret i32 %D
13}