[llvm] r239011 - Add testcase that would crash before the previous revert.
Rafael Espindola
rafael.espindola at gmail.com
Wed Jun 3 22:51:13 PDT 2015
Author: rafael
Date: Thu Jun 4 00:51:13 2015
New Revision: 239011
URL: http://llvm.org/viewvc/llvm-project?rev=239011&view=rev
Log:
Add testcase that would crash before the previous revert.
Added:
llvm/trunk/test/MC/PowerPC/st-other-crash.s
Added: llvm/trunk/test/MC/PowerPC/st-other-crash.s
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/MC/PowerPC/st-other-crash.s?rev=239011&view=auto
==============================================================================
--- llvm/trunk/test/MC/PowerPC/st-other-crash.s (added)
+++ llvm/trunk/test/MC/PowerPC/st-other-crash.s Thu Jun 4 00:51:13 2015
@@ -0,0 +1,21 @@
+// RUN: llvm-mc < %s -filetype=obj -triple powerpc64le-pc-linux | \
+// RUN: llvm-readobj -t | FileCheck %s
+
+// This used to crash. Make sure it produce the correct symbol.
+
+// CHECK: Symbol {
+// CHECK: Name: _ZN4llvm11SmallVectorIcLj0EEC2Ev (12)
+// CHECK-NEXT: Value: 0x0
+// CHECK-NEXT: Size: 0
+// CHECK-NEXT: Binding: Local (0x0)
+// CHECK-NEXT: Type: None (0x0)
+// CHECK-NEXT: Other: 64
+// CHECK-NEXT: Section: .group (0x5)
+// CHECK-NEXT: }
+
+
+ .section .text._ZN4llvm11SmallVectorIcLj0EEC2Ev,"axG", at progbits,_ZN4llvm11SmallVectorIcLj0EEC2Ev,comdat
+.Ltmp2:
+ addis 2, 12, .TOC.-.Ltmp2 at ha
+.Ltmp3:
+ .localentry _ZN4llvm11SmallVectorIcLj0EEC2Ev, .Ltmp3-.Ltmp2
More information about the llvm-commits
mailing list