xref: /minix3/external/bsd/llvm/dist/llvm/test/MC/ELF/uleb.s (revision 0a6a1f1d05b60e214de2f05a7310ddd1f0e590e7)
1f4a2713aSLionel Sambuc// RUN: llvm-mc -filetype=obj -triple i686-pc-linux-gnu %s -o - | llvm-readobj -s -sd | FileCheck -check-prefix=ELF_32 %s
2f4a2713aSLionel Sambuc// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj -s -sd | FileCheck -check-prefix=ELF_64 %s
3f4a2713aSLionel Sambuc// RUN: llvm-mc -filetype=obj -triple i386-apple-darwin9 %s -o - | macho-dump  --dump-section-data | FileCheck -check-prefix=MACHO_32 %s
4f4a2713aSLionel Sambuc// RUN: llvm-mc -filetype=obj -triple x86_64-apple-darwin9 %s -o - | macho-dump  --dump-section-data | FileCheck -check-prefix=MACHO_64 %s
5f4a2713aSLionel Sambuc
6f4a2713aSLionel Sambuc	.text
7f4a2713aSLionel Sambucfoo:
8f4a2713aSLionel Sambuc	.uleb128	0
9f4a2713aSLionel Sambuc	.uleb128	1
10f4a2713aSLionel Sambuc	.uleb128	127
11f4a2713aSLionel Sambuc	.uleb128	128
12f4a2713aSLionel Sambuc	.uleb128	16383
13f4a2713aSLionel Sambuc	.uleb128	16384
14*0a6a1f1dSLionel Sambuc        .uleb128	23, 42
15f4a2713aSLionel Sambuc
16f4a2713aSLionel Sambuc// ELF_32:   Name: .text
17f4a2713aSLionel Sambuc// ELF_32:   SectionData (
18*0a6a1f1dSLionel Sambuc// ELF_32:     0000: 00017F80 01FF7F80 8001172A
19f4a2713aSLionel Sambuc// ELF_32:   )
20f4a2713aSLionel Sambuc// ELF_64:   Name: .text
21f4a2713aSLionel Sambuc// ELF_64:   SectionData (
22*0a6a1f1dSLionel Sambuc// ELF_64:     0000: 00017F80 01FF7F80 8001172A
23f4a2713aSLionel Sambuc// ELF_64:   )
24f4a2713aSLionel Sambuc// MACHO_32: ('section_name', '__text\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00')
25*0a6a1f1dSLionel Sambuc// MACHO_32: ('_section_data', '00017f80 01ff7f80 8001172a')
26f4a2713aSLionel Sambuc// MACHO_64: ('section_name', '__text\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00')
27*0a6a1f1dSLionel Sambuc// MACHO_64: ('_section_data', '00017f80 01ff7f80 8001172a')
28