45 lines · plain
1## This reproduces a bug in aggressive tail duplication/copy propagation.2 3# REQUIRES: system-linux4# RUN: llvm-mc -filetype=obj -triple x86_64-unknown-unknown %s -o %t.o5# RUN: link_fdata %s %t.o %t.fdata6# RUN: llvm-strip --strip-unneeded %t.o7# RUN: ld.lld %t.o -o %t.exe -q -nostdlib8# RUN: llvm-bolt %t.exe -o %t.out --data %t.fdata --relocs \9# RUN: --tail-duplication=aggressive \10# RUN: --tail-duplication-const-copy-propagation=111 12 .text13 .type a, %function14 .globl a15a:16 .cfi_startproc17 jmpq *JT(,%rcx,8)18b:19 jb d20# FDATA: 1 a #b# 1 a #d# 6 6021e:22 cmpl %eax, %ebx23f:24 jmp g25# FDATA: 1 a #f# 1 a #g# 0 826d:27 movl $0x1, %ebx28 jmp e29 jmp g30h:31 jmp h32i:33 jne j34g:35 jmp g36j:37 ud238 .cfi_endproc39.size a, .-a40 41.rodata42JT:43 .quad b44 .quad i45