Revert "[InstCombine] Support gep nuw in icmp folds" (#118698)
[llvm-project.git] / llvm / test / MC / ELF / uleb-ehtable.s
blob6407223f36e78e9dd009152d44d798539184216e
1 // RUN: llvm-mc -filetype=obj -triple i686-pc-linux-gnu %s -o - | llvm-readobj -S --sd - | FileCheck %s -check-prefix=CHECK -check-prefix=ELF
2 // RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj -S --sd - | FileCheck %s -check-prefix=CHECK -check-prefix=ELF
3 // RUN: llvm-mc -filetype=obj -triple i386-apple-darwin9 --defsym MACHO=1 %s -o - | llvm-readobj -S --sd - | FileCheck %s -check-prefix=CHECK -check-prefix=MACHO
4 // RUN: llvm-mc -filetype=obj -triple x86_64-apple-darwin9 --defsym MACHO=1 %s -o - | llvm-readobj -S --sd - | FileCheck %s -check-prefix=CHECK -check-prefix=MACHO
6 // Test that we can assemble a GCC-like EH table that has 16381-16383 bytes of
7 // non-padding data between .ttbaseref and .ttbase. The assembler must insert
8 // extra padding either into the uleb128 or at the balign directive. See
9 // PR35809.
11 .data
12 .balign 4
13 foo:
14 .byte 0xff // LPStart omitted
15 .byte 0x1 // TType encoding (uleb128)
16 .ifdef MACHO
17 .uleb128 Lttbase-Lttbaseref
18 Lttbaseref:
19 .else
20 .uleb128 .ttbase-.ttbaseref
21 .ttbaseref:
22 .endif
23 .fill 128*128-1, 1, 0xcd // call site and actions tables
24 .balign 4
25 .ifdef MACHO
26 Lttbase:
27 .else
28 .ttbase:
29 .endif
30 .byte 1, 2, 3, 4
32 // ELF: Name: .data
33 // MACHO: Name: __data
34 // CHECK: SectionData (
35 // CHECK-NEXT: 0000: FF01FFFF 00CDCDCD CDCDCDCD CDCDCDCD
36 // CHECK: 4000: CDCDCDCD 01020304
37 // CHECK-NEXT: )