[llvm-commits] [llvm] r156850 - /llvm/trunk/test/MC/MachO/ARM/llvm-objdump-macho.s

Kevin Enderby enderby at apple.com
Tue May 15 13:20:50 PDT 2012


Author: enderby
Date: Tue May 15 15:20:50 2012
New Revision: 156850

URL: http://llvm.org/viewvc/llvm-project?rev=156850&view=rev
Log:
Add a test case for r156840, a fix to llvm-objdump when disassembling using
-macho to disassemble the last symbol to the end of the section.

Added:
    llvm/trunk/test/MC/MachO/ARM/llvm-objdump-macho.s

Added: llvm/trunk/test/MC/MachO/ARM/llvm-objdump-macho.s
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/MC/MachO/ARM/llvm-objdump-macho.s?rev=156850&view=auto
==============================================================================
--- llvm/trunk/test/MC/MachO/ARM/llvm-objdump-macho.s (added)
+++ llvm/trunk/test/MC/MachO/ARM/llvm-objdump-macho.s Tue May 15 15:20:50 2012
@@ -0,0 +1,20 @@
+@ RUN: llvm-mc -triple=thumbv7-apple-ios -filetype=obj -o - < %s | llvm-objdump -d -macho -triple=thumbv7-apple-ios - | FileCheck %s
+.thumb
+.thumb_func _fib
+_fib:
+	push	{r7, lr}
+	pop	{r7, pc}
+.thumb_func _main
+_main:
+	push	{r7, lr}
+        pop	{r7, pc}
+	nop
+# CHECK: _fib:
+# CHECK:        0:	80 b5                                        	push	{r7, lr}
+# CHECK:        2:	80 bd                                        	pop	{r7, pc}
+# CHECK: _main:
+# CHECK:        4:	80 b5                                        	push	{r7, lr}
+# CHECK:        6:	80 bd                                        	pop	{r7, pc}
+# CHECK:        8:	00 bf                                        	nop
+# We are checking that second function is fully disassembled.
+# rdar://11426465





More information about the llvm-commits mailing list