xref: /llvm-project/llvm/test/CodeGen/X86/2012-12-1-merge-multiple.ll (revision 2f448bf509432c1a19ec46ab8cbc7353c03c6280)
1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2; RUN: llc < %s -mtriple=x86_64-unknown-unknown | FileCheck %s
3
4define void @multiple_stores_on_chain(ptr %A) {
5; CHECK-LABEL: multiple_stores_on_chain:
6; CHECK:       # %bb.0: # %entry
7; CHECK-NEXT:    movabsq $844433520132096, %rax # imm = 0x3000200010000
8; CHECK-NEXT:    movq %rax, (%rdi)
9; CHECK-NEXT:    movabsq $1970350607106052, %rax # imm = 0x7000600050004
10; CHECK-NEXT:    movq %rax, 8(%rdi)
11; CHECK-NEXT:    retq
12entry:
13  %a1 = getelementptr inbounds i16, ptr %A, i64 1
14  %a2 = getelementptr inbounds i16, ptr %A, i64 2
15  %a3 = getelementptr inbounds i16, ptr %A, i64 3
16  %a4 = getelementptr inbounds i16, ptr %A, i64 4
17  %a5 = getelementptr inbounds i16, ptr %A, i64 5
18  %a6 = getelementptr inbounds i16, ptr %A, i64 6
19  %a7 = getelementptr inbounds i16, ptr %A, i64 7
20
21  store i16 0, ptr %A
22  store i16 1, ptr %a1
23  store i16 2, ptr %a2
24  store i16 3, ptr %a3
25  store i16 4, ptr %a4
26  store i16 5, ptr %a5
27  store i16 6, ptr %a6
28  store i16 7, ptr %a7
29
30  ret void
31}
32
33