xref: /llvm-project/llvm/test/CodeGen/X86/merge-consecutive-stores-i1.ll (revision 2f448bf509432c1a19ec46ab8cbc7353c03c6280)
1; RUN: llc  -mtriple=x86_64-- < %s
2
3; Ensure that MergeConsecutiveStores doesn't crash when dealing with
4; i1 operands.
5
6%struct.X = type { i1, i1 }
7
8@b = common global %struct.X zeroinitializer, align 4
9
10define void @foo() {
11entry:
12  store i1 0, ptr @b, align 4
13  store i1 0, ptr getelementptr inbounds (%struct.X, ptr @b, i64 0, i32 1), align 1
14  ret void
15}
16