mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-29 10:32:47 +00:00
Add a test that shows that we produce no fixups when computing the difference
of two symbols in the same fragment. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122145 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
3f037ef2f5
commit
54f08852f6
16
test/MC/ELF/no-fixup.s
Normal file
16
test/MC/ELF/no-fixup.s
Normal file
@ -0,0 +1,16 @@
|
||||
// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o %t -stats 2>%t.out
|
||||
// RUN: FileCheck --input-file=%t.out %s
|
||||
|
||||
// Test that we create no fixups for this file since "a" and "b" are in the
|
||||
// same fragment.
|
||||
|
||||
// CHECK: assembler - Number of assembler layout and relaxation steps
|
||||
// CHECK-NEXT: assembler - Number of emitted assembler fragments
|
||||
// CHECK-NEXT: assembler - Number of emitted object file bytes
|
||||
// CHECK-NEXT: assembler - Number of fragment layouts
|
||||
// CHECK-NEXT: mcexpr - Number of MCExpr evaluations
|
||||
|
||||
a:
|
||||
nop
|
||||
b:
|
||||
.long b - a
|
Loading…
Reference in New Issue
Block a user