1; RUN: llc -mtriple=arm-eabi -relocation-model=static -arm-promote-constant < %s | FileCheck %s 2 3@const1 = private unnamed_addr constant i32 0, align 4 4@const2 = private unnamed_addr constant i32 0, align 4 5 6; const1 and const2 both need labels for debug info, but will be coalesced into 7; a single constpool entry 8 9; CHECK-LABEL: @test1 10; CHECK-DAG: const1: 11; CHECK-DAG: const2: 12; CHECK: .fnend 13define void @test1() { 14 %1 = load i32, i32* @const1, align 4 15 call void @a(i32 %1) 16 %2 = load i32, i32* @const2, align 4 17 call void @a(i32 %2) 18 ret void 19} 20 21declare void @a(i32) 22