• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// RUN: llvm-mc -filetype=obj -triple i686-pc-linux-gnu %s -o - | llvm-readobj -s -sd | FileCheck -check-prefix=ELF_32 %s
2// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj -s -sd | FileCheck -check-prefix=ELF_64 %s
3// RUN: llvm-mc -filetype=obj -triple i386-apple-darwin9 %s -o - | llvm-readobj -s -sd | FileCheck -check-prefix=MACHO_32 %s
4// RUN: llvm-mc -filetype=obj -triple x86_64-apple-darwin9 %s -o - | llvm-readobj -s -sd | FileCheck -check-prefix=MACHO_64 %s
5
6	.text
7foo:
8	.sleb128	0
9	.sleb128	1
10	.sleb128	-1
11	.sleb128	63
12	.sleb128	-64
13
14	.sleb128	64
15	.sleb128	-65
16
17	.sleb128	8191
18	.sleb128        -8192
19
20	.sleb128        8193
21
22// ELF_32:   Name: .text
23// ELF_32:   SectionData (
24// ELF_32:     0000: 00017F3F 40C000BF 7FFF3F80 4081C000
25// ELF_32:   )
26// ELF_64:   Name: .text
27// ELF_64:   SectionData (
28// ELF_64:     0000: 00017F3F 40C000BF 7FFF3F80 4081C000
29// ELF_64:   )
30// MACHO_32: Name: __text (5F 5F 74 65 78 74 00 00 00 00 00 00 00 00 00 00)
31// MACHO_32: SectionData (
32// MACHO_32:   0000: 00017F3F 40C000BF 7FFF3F80 4081C000  |...?@.....?.@...|
33// MACHO_32: )
34// MACHO_64: Name: __text (5F 5F 74 65 78 74 00 00 00 00 00 00 00 00 00 00)
35// MACHO_64: SectionData (
36// MACHO_64:   0000: 00017F3F 40C000BF 7FFF3F80 4081C000  |...?@.....?.@...|
37// MACHO_64: )
38