diff options
author | Evan Cheng <evan.cheng@apple.com> | 2008-09-15 06:28:41 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2008-09-15 06:28:41 +0000 |
commit | 25f34a30d66e33381a023d97d72ce44ded2c7f72 (patch) | |
tree | 308ec03cb0a51d90e8ab3b199f98ded7a19db070 /test | |
parent | 206b59acf0272f89a870750c1c05b746b09b03bf (diff) | |
download | external_llvm-25f34a30d66e33381a023d97d72ce44ded2c7f72.zip external_llvm-25f34a30d66e33381a023d97d72ce44ded2c7f72.tar.gz external_llvm-25f34a30d66e33381a023d97d72ce44ded2c7f72.tar.bz2 |
Correctly update kill infos after extending a live range and merge 2 val#'s; fix 56165 - do not mark val# copy field if the copy does not define the val#.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56199 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/CodeGen/ARM/2008-09-14-CoaleserBug.ll | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/test/CodeGen/ARM/2008-09-14-CoaleserBug.ll b/test/CodeGen/ARM/2008-09-14-CoaleserBug.ll new file mode 100644 index 0000000..c601b90 --- /dev/null +++ b/test/CodeGen/ARM/2008-09-14-CoaleserBug.ll @@ -0,0 +1,29 @@ +; RUN: llvm-as < %s | llc -mtriple=arm-apple-darwin + +@"\01LC1" = external constant [288 x i8] ; <[288 x i8]*> [#uses=1] + +declare void @llvm.memcpy.i32(i8*, i8*, i32, i32) nounwind + +define i32 @main(i32 %argc, i8** %argv) nounwind { +entry: + br label %bb.i + +bb.i: ; preds = %bb.i, %entry + %i.01.i = phi i32 [ 0, %entry ], [ %indvar.next52, %bb.i ] ; <i32> [#uses=1] + %indvar.next52 = add i32 %i.01.i, 1 ; <i32> [#uses=2] + %exitcond53 = icmp eq i32 %indvar.next52, 15 ; <i1> [#uses=1] + br i1 %exitcond53, label %bb.i33.loopexit, label %bb.i + +bb.i33.loopexit: ; preds = %bb.i + %0 = malloc [347 x i8] ; <[347 x i8]*> [#uses=2] + %.sub = getelementptr [347 x i8]* %0, i32 0, i32 0 ; <i8*> [#uses=1] + call void @llvm.memcpy.i32( i8* %.sub, i8* getelementptr ([288 x i8]* @"\01LC1", i32 0, i32 0), i32 287, i32 1 ) nounwind + br label %bb.i28 + +bb.i28: ; preds = %bb.i28, %bb.i33.loopexit + br i1 false, label %repeat_fasta.exit, label %bb.i28 + +repeat_fasta.exit: ; preds = %bb.i28 + free [347 x i8]* %0 + unreachable +} |