summaryrefslogtreecommitdiff
path: root/test/CodeGen/X86/merge-consecutive-stores-i1.ll
blob: 89aa77903718d3edf3901c4008aec8ff845e2141 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
; RUN: llc  -mtriple=x86_64-- < %s

; Ensure that MergeConsecutiveStores doesn't crash when dealing with
; i1 operands.

%struct.X = type { i1, i1 }

@b = common global %struct.X zeroinitializer, align 4

define void @foo() {
entry:
  store i1 0, i1* getelementptr inbounds (%struct.X, %struct.X* @b, i64 0, i32 0), align 4
  store i1 0, i1* getelementptr inbounds (%struct.X, %struct.X* @b, i64 0, i32 1), align 1
  ret void
}