1 # This reproduces a bug in TailDuplication::isInCacheLine
2 # with accessing BlockLayout past bounds (unreachable blocks).
4 # REQUIRES: system-linux
6 # RUN: llvm-mc -filetype=obj -triple x86_64-unknown-unknown \
8 # RUN: link_fdata %s %t.o %t.fdata
9 # RUN: llvm-strip --strip-unneeded %t.o
10 # RUN: %clang %cflags -no-pie %t.o -o %t.exe -Wl,-q -nostdlib
11 # RUN: llvm-bolt %t.exe -o %t.out --data %t.fdata --relocs \
12 # RUN: --tail-duplication=aggressive
20 # FDATA: 1 _start #d# 1 _start #e# 1 3