brintos

brintos / llvm-project-archived public Read only

0
0
Text · 764 B · 6042c0d Raw
35 lines · plain
1// This test checks that functions containing Constant Islands are not folded even2// if they have the same data3 4// RUN: llvm-mc -filetype=obj -triple aarch64-unknown-unknown %s -o %t.o5// RUN: %clang %cflags --target=aarch64-unknown-linux %t.o -o %t.exe -Wl,-q6// RUN: llvm-bolt -icf -lite=false %t.exe -o %t.bolt7// RUN: llvm-objdump -d -j .text %t.bolt | FileCheck %s8 9// CHECK: <func1>:10// CHECK: <func2>:11 12func1:13    add x0, x0, #114    ret15    .word 0xdeadbeef16    .word 0xdeadbeef17.size func1, .-func118 19func2:20    add x0, x0, #121    ret22    .word 0xdeadbeef23    .word 0xdeadbeef24.size func2, .-func225 26.global        main27.type  main, %function28main:29    mov x0, #030    bl     func131    bl     func232    sub     x0, x0, #233    mov     w8, #9334    svc     #035