1525bfa10SJez Ng# REQUIRES: x86 2525bfa10SJez Ng 3525bfa10SJez Ng# FIXME(gkm): This test is fast on a Release tree, and slow (~10s) on 4525bfa10SJez Ng# a Debug tree mostly because of llvm-mc. Is there a way to prefer the 5525bfa10SJez Ng# fast installed llvm-mc rather than the slow one in our Debug tree? 6525bfa10SJez Ng 7525bfa10SJez Ng# If headers and offsets are proper, then ... 8525bfa10SJez Ng# 9525bfa10SJez Ng# 1) llvm-objdump will not crash, and exit with good status 10525bfa10SJez Ng# 11525bfa10SJez Ng# 2) Summary encodings from the input object will match 12525bfa10SJez Ng# those from the linked output 13525bfa10SJez Ng# 140f9a1380SNico Weber# 3) Encodings & symbols from the input object will match 15525bfa10SJez Ng# those from the linked output 16525bfa10SJez Ng 17525bfa10SJez Ng# RUN: %python %S/tools/generate-cfi-funcs.py --seed=johnnyapple >%t.s 18*e60b30d5SVy Nguyen# RUN: llvm-mc -filetype=obj -triple=x86_64-apple-darwin19.0.0 -emit-compact-unwind-non-canonical=true -o %t.o %t.s 19fd28f718SJez Ng# RUN: %lld -Z -L%S/Inputs/MacOSX.sdk/usr/lib -lSystem -o %t %t.o 20525bfa10SJez Ng# RUN: llvm-objdump --unwind-info --syms %t %t.o >%t.dump 21525bfa10SJez Ng# RUN: %python %S/tools/validate-unwind-info.py %t.dump 22