1 ; RUN: llc < %s -mtriple=i686-- | FileCheck %s
3 ;; This example can't fold the or into an LEA.
4 define i32 @test(ptr %tmp2, i32 %tmp12) nounwind {
7 ; CHECK: orl $1, %{{.*}}
10 %tmp3 = load ptr, ptr %tmp2
11 %tmp132 = shl i32 %tmp12, 2 ; <i32> [#uses=1]
12 %ctg2 = getelementptr i8, ptr %tmp3, i32 %tmp132 ; <ptr> [#uses=1]
13 %tmp6 = ptrtoint ptr %ctg2 to i32 ; <i32> [#uses=1]
14 %tmp14 = or i32 %tmp6, 1 ; <i32> [#uses=1]
19 define i32 @test2(i32 %a, i32 %b) nounwind {
22 ; CHECK: leal 3(,%{{.*}},8)