Home | History | Annotate | Download | only in X86
      1 // RUN: llvm-mc < %s -triple=x86_64-apple-macosx -filetype=obj -o - | llvm-objdump -fault-map-section - | FileCheck %s
      2 
      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
     15 
     16 	.quad	0xFFDAED
     17 	.long	1
     18 	.long	0
     19 	.long	1
     20 	.long	400
     21 	.long	500
     22 
     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
     30