1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-25 04:02:41 +01:00
llvm-mirror/test/MC/ELF/no-fixup.s
Rafael Espindola 4c1b83e53f Add a test that shows that we produce no fixups when computing the difference
of two symbols in the same fragment.

llvm-svn: 122145
2010-12-18 05:07:45 +00:00

17 lines
560 B
ArmAsm

// 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