diff options
Diffstat (limited to 'bolt/test/X86/shrinkwrapping.test')
| -rw-r--r-- | bolt/test/X86/shrinkwrapping.test | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/bolt/test/X86/shrinkwrapping.test b/bolt/test/X86/shrinkwrapping.test index 521b4561b3ba..5470b5dd4586 100644 --- a/bolt/test/X86/shrinkwrapping.test +++ b/bolt/test/X86/shrinkwrapping.test @@ -2,23 +2,21 @@ ## shrink-wrapping when optimizing a function without ## frame pointers. -## This test has commands that rely on shell capabilities that won't execute -## correctly on Windows e.g. subshell execution to capture command output. -REQUIRES: shell - RUN: %clangxx %cxxflags -no-pie %S/Inputs/exc4sw.S -o %t.exe -Wl,-q RUN: llvm-bolt %t.exe -o %t --relocs --frame-opt=all \ RUN: --print-only=main --print-cfg \ RUN: --data=%p/Inputs/exc4sw.fdata --reorder-blocks=cache 2>&1 | \ RUN: FileCheck %s --check-prefix=CHECK-BOLT -RUN: llvm-objdump --dwarf=frames %t.exe | grep -A20 -e \ -RUN: `llvm-nm --numeric-sort %t.exe | grep main | tail -n 1 | \ -RUN: cut -f1 -d' ' | tail -c9` 2>&1 | FileCheck %s --check-prefix=CHECK-INPUT +RUN: llvm-nm --numeric-sort %t.exe | grep main | tail -n 1 | \ +RUN: cut -f1 -d' ' | tail -c9 > %t.input_address +RUN: llvm-objdump --dwarf=frames %t.exe | grep -A20 -f %t.input_address \ +RUN: 2>&1 | FileCheck %s --check-prefix=CHECK-INPUT -RUN: llvm-objdump --dwarf=frames %t | grep -A20 -e \ -RUN: `llvm-nm --numeric-sort %t | grep main | tail -n 1 | cut -f1 -d' ' | \ -RUN: tail -c9` 2>&1 | FileCheck %s --check-prefix=CHECK-OUTPUT +RUN: llvm-nm --numeric-sort %t | grep main | tail -n 1 | \ +RUN: cut -f1 -d' ' | tail -c9 > %t.output_address +RUN: llvm-objdump --dwarf=frames %t | grep -A20 -f %t.output_address \ +RUN: 2>&1 | FileCheck %s --check-prefix=CHECK-OUTPUT CHECK-BOLT: Extern Entry Count: 100 CHECK-BOLT: Shrink wrapping moved 2 spills inserting load/stores and 0 spills inserting push/pops |
