1 ## This reproduces a bug in aggressive tail duplication/copy propagation.
3 # REQUIRES: system-linux
4 # RUN: llvm-mc -filetype=obj -triple x86_64-unknown-unknown %s -o %t.o
5 # RUN: link_fdata %s %t.o %t.fdata
6 # RUN: llvm-strip --strip-unneeded %t.o
7 # RUN: ld.lld %t.o -o %t.exe -q -nostdlib
8 # RUN: llvm-bolt %t.exe -o %t.out --data %t.fdata --relocs \
9 # RUN: --tail-duplication=aggressive \
10 # RUN: --tail-duplication-const-copy-propagation=1
20 # FDATA: 1 a #b# 1 a #d# 6 60
25 # FDATA: 1 a #f# 1 a #g# 0 8