1 ; RUN: llc < %s -march=x86 | FileCheck %s
3 define i32 @t1(i8* %X, i32 %i) {
7 ; CHECK: movl (%{{...}},%{{...}},4),
12 %tmp4 = and i32 %tmp2, 1020
13 %tmp7 = getelementptr i8* %X, i32 %tmp4
14 %tmp78 = bitcast i8* %tmp7 to i32*
15 %tmp9 = load i32* %tmp78
19 define i32 @t2(i16* %X, i32 %i) {
23 ; CHECK: movl (%{{...}},%{{...}},4),
28 %tmp4 = and i32 %tmp2, 131070
29 %tmp7 = getelementptr i16* %X, i32 %tmp4
30 %tmp78 = bitcast i16* %tmp7 to i32*
31 %tmp9 = load i32* %tmp78