1 ; RUN: llc < %s -march=x86-64 -mcpu=corei7 -mtriple=x86_64-pc-win64 | FileCheck %s
3 ; CHECK: multiple_stores_on_chain
4 ; CHECK: movabsq
5 ; CHECK: movq
6 ; CHECK: movabsq
7 ; CHECK: movq
8 ; CHECK: ret
9 define void @multiple_stores_on_chain(i16 * %A) {
10 entry:
11 %a0 = getelementptr inbounds i16* %A, i64 0
12 %a1 = getelementptr inbounds i16* %A, i64 1
13 %a2 = getelementptr inbounds i16* %A, i64 2
14 %a3 = getelementptr inbounds i16* %A, i64 3
15 %a4 = getelementptr inbounds i16* %A, i64 4
16 %a5 = getelementptr inbounds i16* %A, i64 5
17 %a6 = getelementptr inbounds i16* %A, i64 6
18 %a7 = getelementptr inbounds i16* %A, i64 7
20 store i16 0, i16* %a0
21 store i16 1, i16* %a1
22 store i16 2, i16* %a2
23 store i16 3, i16* %a3
24 store i16 4, i16* %a4
25 store i16 5, i16* %a5
26 store i16 6, i16* %a6
27 store i16 7, i16* %a7
29 ret void
30 }