diff options
author | Dale Johannesen <dalej@apple.com> | 2008-05-01 22:50:14 +0000 |
---|---|---|
committer | Dale Johannesen <dalej@apple.com> | 2008-05-01 22:50:14 +0000 |
commit | f1e94f74e5519264633c904b322214a2710f5114 (patch) | |
tree | 12dc29cb4627cbde0dafc82018f31f3793399a0b /test/Transforms/LoopRotate | |
parent | 796026711db8342aead8d85cdd50d0dc2da59c4c (diff) | |
download | external_llvm-f1e94f74e5519264633c904b322214a2710f5114.zip external_llvm-f1e94f74e5519264633c904b322214a2710f5114.tar.gz external_llvm-f1e94f74e5519264633c904b322214a2710f5114.tar.bz2 |
New test for bug fixed in 50545.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@50548 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms/LoopRotate')
-rw-r--r-- | test/Transforms/LoopRotate/LRCrash-5.ll | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/test/Transforms/LoopRotate/LRCrash-5.ll b/test/Transforms/LoopRotate/LRCrash-5.ll new file mode 100644 index 0000000..d61e749 --- /dev/null +++ b/test/Transforms/LoopRotate/LRCrash-5.ll @@ -0,0 +1,26 @@ +; RUN: llvm-as < %s | opt -loop-rotate -disable-output +target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128" +target triple = "x86_64-apple-darwin9" + %struct.NSArray = type { %struct.NSObject } + %struct.NSObject = type { %struct.objc_class* } + %struct.NSRange = type { i64, i64 } + %struct._message_ref_t = type { %struct.NSObject* (%struct.NSObject*, %struct._message_ref_t*, ...)*, %struct.objc_selector* } + %struct.objc_class = type opaque + %struct.objc_selector = type opaque +@"\01L_OBJC_MESSAGE_REF_26" = external global %struct._message_ref_t ; <%struct._message_ref_t*> [#uses=1] + +define %struct.NSArray* @"-[NSString(DocSetPrivateAddition) _dsa_stringAsPathComponent]"(%struct.NSArray* %self, %struct._message_ref_t* %_cmd) { +entry: + br label %bb116 + +bb116: ; preds = %bb131, %entry + %tmp123 = call %struct.NSRange null( %struct.NSObject* null, %struct._message_ref_t* @"\01L_OBJC_MESSAGE_REF_26", %struct.NSArray* null ) ; <%struct.NSRange> [#uses=1] + br i1 false, label %bb141, label %bb131 + +bb131: ; preds = %bb116 + %mrv_gr125 = getresult %struct.NSRange %tmp123, 1 ; <i64> [#uses=0] + br label %bb116 + +bb141: ; preds = %bb116 + ret %struct.NSArray* null +} |