1 # This reproduces a bug in tail duplication when aggressiveCodeToDuplicate
2 # fails to handle a block with a jump table.
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: %clangxx %cflags -no-pie %t.o -o %t.exe -Wl,-q
11 # RUN: llvm-bolt %t.exe -o %t.out --data %t.fdata --relocs \
12 # RUN: --tail-duplication=aggressive \
13 # RUN: --print-cfg | FileCheck %s
14 # CHECK: Jump table {{.*}} for function a at {{.*}} with a total count of 3
48 # FDATA: 1 a #k# 1 a #l# 1 3