// RUN: llvm-mc -filetype=obj -triple mipsel-pc-Linux-gnu %s -o - | llvm-readobj -S --sd - | FileCheck %s -check-prefix=CHECK-LE
// RUN: llvm-mc -filetype=obj -triple mips-pc-linux-gnu %s -o - | llvm-readobj -S --sd - | FileCheck %s -check-prefix=CHECK-BE
// test that this produces a correctly encoded cfi_advance_loc for both endians.
f:
.cfi_startproc
nop
.zero 252
// DW_CFA_advance_loc2: 256 to 00000100
.cfi_def_cfa_offset 8
nop
.cfi_endproc
g:
.cfi_startproc
nop
.zero 65532
// DW_CFA_advance_loc4: 65536 to 00010104
.cfi_def_cfa_offset 8
nop
.cfi_endproc
// CHECK-LE: Section {
// CHECK-LE: Index: 7
// CHECK-LE: Name:
// CHECK-LE-NEXT: Type:
// CHECK-LE-NEXT: Flags
// CHECK-LE-NEXT: Address: 0x0
// CHECK-LE-NEXT: Offset: 0x10180
// CHECK-LE-NEXT: Size: 68
// CHECK-LE-NEXT: Link: 0
// CHECK-LE-NEXT: Info: 0
// CHECK-LE-NEXT: AddressAlignment: 4
// CHECK-LE-NEXT: EntrySize: 0
// CHECK-LE-NEXT:
// CHECK-LE-NEXT: }
// CHECK-BE: Section {
// CHECK-BE: Index: 7
// CHECK-BE: Name:
// CHECK-BE-NEXT: Type:
// CHECK-BE-NEXT: Flags
// CHECK-BE-NEXT: Address: 0x0
// CHECK-BE-NEXT: Offset: 0x10180
// CHECK-BE-NEXT: Size: 68
// CHECK-BE-NEXT: Link: 0
// CHECK-BE-NEXT: Info: 0
// CHECK-BE-NEXT: AddressAlignment: 4
// CHECK-BE-NEXT: EntrySize: 0
// CHECK-BE-NEXT:
// CHECK-BE-NEXT: }