[llvm-commits] [llvm] r95384 - /llvm/trunk/test/CodeGen/PowerPC/2010-02-04-EmptyGlobal.ll
Bill Wendling
isanbard at gmail.com
Fri Feb 5 03:21:07 PST 2010
Author: void
Date: Fri Feb 5 05:21:05 2010
New Revision: 95384
URL: http://llvm.org/viewvc/llvm-project?rev=95384&view=rev
Log:
Make test more fucused eliminating extraneous bits.
Modified:
llvm/trunk/test/CodeGen/PowerPC/2010-02-04-EmptyGlobal.ll
Modified: llvm/trunk/test/CodeGen/PowerPC/2010-02-04-EmptyGlobal.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/PowerPC/2010-02-04-EmptyGlobal.ll?rev=95384&r1=95383&r2=95384&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/PowerPC/2010-02-04-EmptyGlobal.ll (original)
+++ llvm/trunk/test/CodeGen/PowerPC/2010-02-04-EmptyGlobal.ll Fri Feb 5 05:21:05 2010
@@ -1,50 +1,11 @@
; RUN: llc < %s -mtriple=powerpc-apple-darwin10 -relocation-model=pic -disable-fp-elim | FileCheck %s
; <rdar://problem/7604010>
-%struct.NSString = type opaque
-%struct._DTOpaqueAssertStruct = type { }
-%struct.objc_selector = type opaque
+%cmd.type = type { }
- at _cmd = constant %struct._DTOpaqueAssertStruct zeroinitializer ; <%struct._DTOpaqueAssertStruct*> [#uses=1]
- at OBJC_IMAGE_INFO = private constant [2 x i32] zeroinitializer, section "__OBJC, __image_info,regular" ; <[2 x i32]*> [#uses=1]
- at llvm.used = appending global [1 x i8*] [i8* bitcast ([2 x i32]* @OBJC_IMAGE_INFO to i8*)], section "llvm.metadata" ; <[1 x i8*]*> [#uses=0]
+ at _cmd = constant %cmd.type zeroinitializer
-define void @_DTAssertionFailureHandler(i8* %objp, i8* %selp, i32 %lineNumber, %struct.NSString* %msgFormat, ...) nounwind ssp {
-entry:
- %objp_addr = alloca i8* ; <i8**> [#uses=1]
- %selp_addr = alloca i8* ; <i8**> [#uses=3]
- %lineNumber_addr = alloca i32 ; <i32*> [#uses=1]
- %msgFormat_addr = alloca %struct.NSString* ; <%struct.NSString**> [#uses=1]
- %iftmp.0 = alloca %struct.objc_selector* ; <%struct.objc_selector**> [#uses=3]
- %sel = alloca %struct.objc_selector* ; <%struct.objc_selector**> [#uses=1]
- %"alloca point" = bitcast i32 0 to i32 ; <i32> [#uses=0]
- store i8* %objp, i8** %objp_addr
- store i8* %selp, i8** %selp_addr
- store i32 %lineNumber, i32* %lineNumber_addr
- store %struct.NSString* %msgFormat, %struct.NSString** %msgFormat_addr
- %0 = load i8** %selp_addr, align 4 ; <i8*> [#uses=1]
- %1 = icmp ne i8* %0, bitcast (%struct._DTOpaqueAssertStruct* @_cmd to i8*) ; <i1> [#uses=1]
- br i1 %1, label %bb, label %bb1
-
-bb: ; preds = %entry
- %2 = load i8** %selp_addr, align 4 ; <i8*> [#uses=1]
- %3 = bitcast i8* %2 to %struct.objc_selector** ; <%struct.objc_selector**> [#uses=1]
- %4 = load %struct.objc_selector** %3, align 4 ; <%struct.objc_selector*> [#uses=1]
- store %struct.objc_selector* %4, %struct.objc_selector** %iftmp.0, align 4
- br label %bb2
-
-bb1: ; preds = %entry
- store %struct.objc_selector* null, %struct.objc_selector** %iftmp.0, align 4
- br label %bb2
-
-bb2: ; preds = %bb1, %bb
- %5 = load %struct.objc_selector** %iftmp.0, align 4 ; <%struct.objc_selector*> [#uses=1]
- store %struct.objc_selector* %5, %struct.objc_selector** %sel, align 4
- br label %return
-
-return: ; preds = %bb2
- ret void
-
-; CHECK: __cmd:
+; CHECK: .globl __cmd
+; CHECK-NEXT: .align 3
+; CHECK-NEXT: __cmd:
; CHECK-NEXT: .space 1
-}
More information about the llvm-commits
mailing list