Skip to content

Commit

Permalink
[MC,test] Reorganize relax-recompute-align.s & layout-interdependency.s
Browse files Browse the repository at this point in the history
relax-recompute-align.s might change when we change the fragment
relaxation approach.
  • Loading branch information
MaskRay committed Jun 10, 2024
1 parent 4403cdb commit bf0d76d
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 42 deletions.
File renamed without changes.
23 changes: 23 additions & 0 deletions llvm/test/MC/ELF/relax-recompute-align.s
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
// RUN: llvm-mc -filetype=obj -triple i386 %s -o - | llvm-objdump -d --no-show-raw-insn - | FileCheck %s

// This is a case where llvm-mc computes a better layout than Darwin 'as'. This
// issue is that after the first jmp slides, the .align size must be
// recomputed -- otherwise the second jump will appear to be out-of-range for a
// 1-byte jump.

// CHECK: int3
// CHECK-NEXT: ce: int3
// CHECK: d0: pushal
// CHECK: 130: jl 0xd0

L0:
.space 0x8a, 0x90
jmp L0
.space (0xb3 - 0x8f), 0x90
jle L2
.space (0xcd - 0xb5), 0x90
.p2align 4, 0xcc
L1:
.space (0x130 - 0xd0),0x60
jl L1
L2:
42 changes: 0 additions & 42 deletions llvm/test/MC/MachO/relax-recompute-align.s

This file was deleted.

0 comments on commit bf0d76d

Please sign in to comment.