blob: 70c4807a044f124a14ae1ba8e74cae69c58f47f0 [file] [log] [blame]
Saleem Abdulrasool5fba8ba2017-09-07 04:00:13 +00001; 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)