Revert r254897 "[mips][microMIPS] Implement LH, LHE, LHU and LHUE instructions"
[oota-llvm.git] / test / MC / Mips / cfi-advance-loc.s
1 // RUN: llvm-mc -filetype=obj -triple mipsel-pc-Linux-gnu %s -o - | llvm-readobj  -s -sd | FileCheck %s -check-prefix=CHECK-LE
2 // RUN: llvm-mc -filetype=obj -triple mips-pc-linux-gnu %s -o - | llvm-readobj -s -sd | FileCheck %s -check-prefix=CHECK-BE
3
4 // test that this produces a correctly encoded cfi_advance_loc for both endians.
5
6 f:
7         .cfi_startproc
8         nop
9         .zero 252
10         // DW_CFA_advance_loc2: 256 to 00000100
11         .cfi_def_cfa_offset 8
12         nop
13         .cfi_endproc
14
15 g:
16         .cfi_startproc
17         nop
18         .zero 65532
19         // DW_CFA_advance_loc4: 65536 to 00010104
20         .cfi_def_cfa_offset 8
21         nop
22         .cfi_endproc
23
24 // CHECK-LE:       Section {
25 // CHECK-LE:        Index: 7
26 // CHECK-LE:        Name: .eh_frame (44)
27 // CHECK-LE-NEXT:   Type: SHT_PROGBITS (0x1)
28 // CHECK-LE-NEXT:   Flags [ (0x2)
29 // CHECK-LE-NEXT:     SHF_ALLOC (0x2)
30 // CHECK-LE-NEXT:   ]
31 // CHECK-LE-NEXT:   Address: 0x0
32 // CHECK-LE-NEXT:   Offset: 0x10180
33 // CHECK-LE-NEXT:   Size: 68
34 // CHECK-LE-NEXT:   Link: 0
35 // CHECK-LE-NEXT:   Info: 0
36 // CHECK-LE-NEXT:   AddressAlignment: 4
37 // CHECK-LE-NEXT:   EntrySize: 0
38 // CHECK-LE-NEXT:   SectionData (
39 // CHECK-LE-NEXT:     0000: 10000000 00000000 017A5200 017C1F01
40 // CHECK-LE-NEXT:     0010: 0B0C1D00 14000000 18000000 00000000
41 // CHECK-LE-NEXT:     0020: 04010000 00030001 0E080000 14000000
42 // CHECK-LE-NEXT:     0030: 30000000 04010000 04000100 00040000
43 // CHECK-LE-NEXT:     0040: 01000E08
44 // CHECK-LE-NEXT:   )
45 // CHECK-LE-NEXT: }
46
47 // CHECK-BE:      Section {
48 // CHECK-BE:        Index: 7
49 // CHECK-BE:        Name: .eh_frame (44)
50 // CHECK-BE-NEXT:   Type: SHT_PROGBITS (0x1)
51 // CHECK-BE-NEXT:   Flags [ (0x2)
52 // CHECK-BE-NEXT:     SHF_ALLOC (0x2)
53 // CHECK-BE-NEXT:   ]
54 // CHECK-BE-NEXT:   Address: 0x0
55 // CHECK-BE-NEXT:   Offset: 0x10180
56 // CHECK-BE-NEXT:   Size: 68
57 // CHECK-BE-NEXT:   Link: 0
58 // CHECK-BE-NEXT:   Info: 0
59 // CHECK-BE-NEXT:   AddressAlignment: 4
60 // CHECK-BE-NEXT:   EntrySize: 0
61 // CHECK-BE-NEXT:   SectionData (
62 // CHECK-BE-NEXT:     0000: 00000010 00000000 017A5200 017C1F01
63 // CHECK-BE-NEXT:     0010: 0B0C1D00 00000014 00000018 00000000
64 // CHECK-BE-NEXT:     0020: 00000104 00030100 0E080000 00000014
65 // CHECK-BE-NEXT:     0030: 00000030 00000104 00010004 00040001
66 // CHECK-BE-NEXT:     0040: 00000E08
67 // CHECK-BE-NEXT:   )
68 // CHECK-BE-NEXT: }