1 ; RUN: llvm-as < %s | llc -march=x86-64 | grep andb | count 2
2 ; RUN: llvm-as < %s | llc -march=x86-64 | grep andb | grep 254
3 ; RUN: llvm-as < %s | llc -march=x86-64 | grep andb | grep 253
5 %struct.bf = type { i64, i16, i16, i32 }
6 @bfi = external global %struct.bf*
8 define void @t1() nounwind ssp {
10 %0 = load %struct.bf** @bfi, align 8
11 %1 = getelementptr %struct.bf* %0, i64 0, i32 1
12 %2 = bitcast i16* %1 to i32*
13 %3 = load i32* %2, align 1
14 %4 = and i32 %3, -65537
15 store i32 %4, i32* %2, align 1
16 %5 = load %struct.bf** @bfi, align 8
17 %6 = getelementptr %struct.bf* %5, i64 0, i32 1
18 %7 = bitcast i16* %6 to i32*
19 %8 = load i32* %7, align 1
20 %9 = and i32 %8, -131073
21 store i32 %9, i32* %7, align 1