1 ; RUN: llc < %s -march=x86-64 | grep orb | count 1
2 ; RUN: llc < %s -march=x86-64 | grep orb | grep 1
3 ; RUN: llc < %s -march=x86-64 | grep orl | count 1
4 ; RUN: llc < %s -march=x86-64 | grep orl | grep 16842752
6 %struct.bf = type { i64, i16, i16, i32 }
7 @bfi = common global %struct.bf zeroinitializer, align 16
9 define void @t1() nounwind optsize ssp {
11 %0 = load i32* bitcast (i16* getelementptr (%struct.bf* @bfi, i32 0, i32 1) to i32*), align 8
13 store i32 %1, i32* bitcast (i16* getelementptr (%struct.bf* @bfi, i32 0, i32 1) to i32*), align 8
17 define void @t2() nounwind optsize ssp {
19 %0 = load i32* bitcast (i16* getelementptr (%struct.bf* @bfi, i32 0, i32 1) to i32*), align 8
20 %1 = or i32 %0, 16842752
21 store i32 %1, i32* bitcast (i16* getelementptr (%struct.bf* @bfi, i32 0, i32 1) to i32*), align 8