[llvm-readobj] - Simplify stack-sizes.test test case.
[llvm-complete.git] / test / MC / X86 / faultmap-section-parsing.s
blob758e70fe685cf75dee77727d264e5064b2febf14
1 // RUN: llvm-mc < %s -triple=x86_64-apple-macosx -filetype=obj -o - | llvm-objdump -fault-map-section - | FileCheck %s
3 .section __LLVM_FAULTMAPS,__llvm_faultmaps
4 __LLVM_FaultMaps:
5 .byte 1
6 .byte 0
7 .short 0
8 .long 2
9 .quad 0xFFDEAD
10 .long 1
11 .long 0
12 .long 1
13 .long 100
14 .long 200
16 .quad 0xFFDAED
17 .long 1
18 .long 0
19 .long 1
20 .long 400
21 .long 500
23 // CHECK: FaultMap table:
24 // CHECK-NEXT: Version: 0x1
25 // CHECK-NEXT: NumFunctions: 2
26 // CHECK-NEXT: FunctionAddress: 0xffdead, NumFaultingPCs: 1
27 // CHECK-NEXT: Fault kind: FaultingLoad, faulting PC offset: 100, handling PC offset: 200
28 // CHECK-NEXT: FunctionAddress: 0xffdaed, NumFaultingPCs: 1
29 // CHECK-NEXT: Fault kind: FaultingLoad, faulting PC offset: 400, handling PC offset: 500