[llvm-commits] [llvm] r173181 - /llvm/trunk/test/MC/X86/gnux32-dwarf-gen.s

Eli Bendersky eliben at google.com
Tue Jan 22 10:52:39 PST 2013


Author: eliben
Date: Tue Jan 22 12:52:39 2013
New Revision: 173181

URL: http://llvm.org/viewvc/llvm-project?rev=173181&view=rev
Log:
Add forgotten test case for the x32 commit

Added:
    llvm/trunk/test/MC/X86/gnux32-dwarf-gen.s

Added: llvm/trunk/test/MC/X86/gnux32-dwarf-gen.s
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/MC/X86/gnux32-dwarf-gen.s?rev=173181&view=auto
==============================================================================
--- llvm/trunk/test/MC/X86/gnux32-dwarf-gen.s (added)
+++ llvm/trunk/test/MC/X86/gnux32-dwarf-gen.s Tue Jan 22 12:52:39 2013
@@ -0,0 +1,24 @@
+# RUN: llvm-mc -g -filetype=obj -triple x86_64-pc-linux-gnu %s -o %t.64
+# RUN: llvm-dwarfdump %t.64 | FileCheck -check-prefix=DEFAULTABI %s
+
+# RUN: llvm-mc -g -filetype=obj -triple x86_64-pc-linux-gnux32 %s -o %t.32
+# RUN: llvm-dwarfdump %t.32 | FileCheck -check-prefix=X32ABI %s
+
+# This test checks the dwarf info section emitted to the output object by the
+# assembler, looking at the difference between the x32 ABI and default x86-64
+# ABI.
+
+# DEFAULTABI: addr_size = 0x08
+# X32ABI: addr_size = 0x04
+
+.globl _bar
+_bar:
+        movl    $0, %eax
+L1:     leave
+        ret
+_foo:
+_baz:
+        nop
+.data
+_x:     .long 1
+





More information about the llvm-commits mailing list