1 ; RUN: llc < %s -arm-global-merge -data-sections | FileCheck %s
3 target datalayout = "e-m:e-p:32:32-i64:64-v128:64:128-a:0:32-n32-S64"
4 target triple = "thumbv7em-arm-none-eabi"
6 @f = local_unnamed_addr global [4 x i32*] zeroinitializer, align 4
7 @d = local_unnamed_addr global i64 0, align 8
9 ;CHECK: .section .bss..L_MergedGlobals,"aw",%nobits
10 ;CHECK-NEXT: .p2align 3
11 ;CHECK-NEXT: .L_MergedGlobals:
13 ;CHECK-NEXT: .size .L_MergedGlobals, 24
16 define i32 @func_1() {
17 %1 = load i64, i64* @d, align 8
18 %2 = load i32*, i32** getelementptr inbounds ([4 x i32*], [4 x i32*]* @f, i32 0, i32 0), align 4
19 %3 = load i32, i32* %2, align 4
20 %4 = trunc i64 %1 to i32