32 lines · plain
1## This reproduces a bug in TailDuplication::isInCacheLine2## with accessing BlockLayout past bounds (unreachable blocks).3 4# REQUIRES: system-linux5 6# RUN: llvm-mc -filetype=obj -triple x86_64-unknown-unknown \7# RUN: %s -o %t.o8# RUN: link_fdata %s %t.o %t.fdata9# RUN: llvm-strip --strip-unneeded %t.o10# RUN: %clang %cflags -no-pie %t.o -o %t.exe -Wl,-q -nostdlib11# RUN: llvm-bolt %t.exe -o %t.out --data %t.fdata --relocs \12# RUN: --tail-duplication=aggressive13 .globl _start14_start:15 jmp d16 je _start17 movl %esi, %edi18d:19 jmpq *JT0(,%rcx,8)20# FDATA: 1 _start #d# 1 _start #e# 1 321f:22 movl 0, %esi23g:24 movl 0, %esi25e:26 jmp f27 28.rodata29JT0:30 .quad g31 .quad e32