1 ; RUN: llc -march=x86 < %s | FileCheck %s
3 @array = weak global [4 x i32] zeroinitializer
5 define i32 @test_lshr_and(i32 %x) {
6 ; CHECK-LABEL: test_lshr_and:
9 ; CHECK: movl {{.*}}array{{.*}},
13 %tmp2 = lshr i32 %x, 2
14 %tmp3 = and i32 %tmp2, 3
15 %tmp4 = getelementptr [4 x i32], [4 x i32]* @array, i32 0, i32 %tmp3
16 %tmp5 = load i32, i32* %tmp4, align 4