[llvm-commits] [llvm] r122145 - /llvm/trunk/test/MC/ELF/no-fixup.s

Rafael Espindola rafael.espindola at gmail.com
Fri Dec 17 21:07:45 PST 2010


Author: rafael
Date: Fri Dec 17 23:07:45 2010
New Revision: 122145

URL: http://llvm.org/viewvc/llvm-project?rev=122145&view=rev
Log:
Add a test that shows that we produce no fixups when computing the difference
of two symbols in the same fragment.

Added:
    llvm/trunk/test/MC/ELF/no-fixup.s

Added: llvm/trunk/test/MC/ELF/no-fixup.s
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/MC/ELF/no-fixup.s?rev=122145&view=auto
==============================================================================
--- llvm/trunk/test/MC/ELF/no-fixup.s (added)
+++ llvm/trunk/test/MC/ELF/no-fixup.s Fri Dec 17 23:07:45 2010
@@ -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





More information about the llvm-commits mailing list