brintos

brintos / llvm-project-archived public Read only

0
0
Text · 576 B · 433467b Raw
22 lines · plain
1; RUN: llc -mtriple=arm-eabi -relocation-model=static -arm-promote-constant < %s | FileCheck %s2 3@const1 = private unnamed_addr constant i32 0, align 44@const2 = private unnamed_addr constant i32 0, align 45 6; const1 and const2 both need labels for debug info, but will be coalesced into7; a single constpool entry8 9; CHECK-LABEL: @test110; CHECK-DAG: const1:11; CHECK-DAG: const2:12; CHECK: .fnend13define void @test1() {14  %1 = load i32, ptr @const1, align 415  call void @a(i32 %1)16  %2 = load i32, ptr @const2, align 417  call void @a(i32 %2)18  ret void19}20 21declare void @a(i32)22