diff options
author | Bill Wendling <isanbard@gmail.com> | 2010-06-25 20:48:10 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2010-06-25 20:48:10 +0000 |
commit | e41e40f6896e4ace94f1ca9295f0177892f7dd48 (patch) | |
tree | 67614a6543f2da410110aabb2a80dc2ddf2c3b2a /llvm/test/CodeGen | |
parent | ef7acd9a24859fa01d2a69528cfbe91bb83fa3f9 (diff) | |
download | bcm5719-llvm-e41e40f6896e4ace94f1ca9295f0177892f7dd48.tar.gz bcm5719-llvm-e41e40f6896e4ace94f1ca9295f0177892f7dd48.zip |
- Reapply r106066 now that the bzip2 build regression has been fixed.
- 2010-06-25-CoalescerSubRegDefDead.ll is the testcase for r106878.
llvm-svn: 106880
Diffstat (limited to 'llvm/test/CodeGen')
-rw-r--r-- | llvm/test/CodeGen/X86/2010-06-25-CoalescerSubRegDefDead.ll | 39 | ||||
-rw-r--r-- | llvm/test/CodeGen/X86/MachineSink-CritEdge.ll | 6 |
2 files changed, 39 insertions, 6 deletions
diff --git a/llvm/test/CodeGen/X86/2010-06-25-CoalescerSubRegDefDead.ll b/llvm/test/CodeGen/X86/2010-06-25-CoalescerSubRegDefDead.ll new file mode 100644 index 00000000000..c6421a247ea --- /dev/null +++ b/llvm/test/CodeGen/X86/2010-06-25-CoalescerSubRegDefDead.ll @@ -0,0 +1,39 @@ +; RUN: llc -O1 -mtriple=x86_64-apple-darwin10 -relocation-model=pic -disable-fp-elim < %s | FileCheck %s +; <rdar://problem/8124405> + +%struct.type = type { %struct.subtype*, i32, i8, i32, i8, i32, i32, i32, i32, i32, i8, i32, i32, i32, i32, i32, [256 x i32], i32, [257 x i32], [257 x i32], i32*, i16*, i8*, i32, i32, i32, i32, i32, [256 x i8], [16 x i8], [256 x i8], [4096 x i8], [16 x i32], [18002 x i8], [18002 x i8], [6 x [258 x i8]], [6 x [258 x i32]], [6 x [258 x i32]], [6 x [258 x i32]], [6 x i32], i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32*, i32*, i32* } +%struct.subtype = type { i8*, i32, i32, i32, i8*, i32, i32, i32, i8*, i8* (i8*, i32, i32)*, void (i8*, i8*)*, i8* } + +define i32 @func(%struct.type* %s) nounwind optsize ssp { +entry: + %tmp1 = getelementptr inbounds %struct.type* %s, i32 0, i32 1 + %tmp2 = load i32* %tmp1, align 8 + %tmp3 = icmp eq i32 %tmp2, 10 + %tmp4 = getelementptr inbounds %struct.type* %s, i32 0, i32 40 + br i1 %tmp3, label %bb, label %entry.bb1_crit_edge + +entry.bb1_crit_edge: + br label %bb1 + +bb: + +; The point of this code is that %rdi is set to %rdi+64036 for the rep;stosl +; statement. It can be an ADD or LEA instruction, it's not important which one +; it is. +; +; CHECK: ## %bb +; CHECK-NEXT: addq $64036, %rdi +; CHECK: rep;stosl + + %tmp5 = bitcast i32* %tmp4 to i8* + call void @llvm.memset.p0i8.i64(i8* %tmp5, i8 0, i64 84, i32 4, i1 false) + %tmp6 = getelementptr inbounds %struct.type* %s, i32 0, i32 62 + store i32* null, i32** %tmp6, align 8 + br label %bb1 + +bb1: + store i32 10, i32* %tmp1, align 8 + ret i32 42 +} + +declare void @llvm.memset.p0i8.i64(i8* nocapture, i8, i64, i32, i1) nounwind diff --git a/llvm/test/CodeGen/X86/MachineSink-CritEdge.ll b/llvm/test/CodeGen/X86/MachineSink-CritEdge.ll index db06b329f9b..74a1049772a 100644 --- a/llvm/test/CodeGen/X86/MachineSink-CritEdge.ll +++ b/llvm/test/CodeGen/X86/MachineSink-CritEdge.ll @@ -1,10 +1,4 @@ ; RUN: llc < %s | FileCheck %s -; XFAIL: * -; -; See <rdar://problem/8030636>. This test isn't valid after we made machine -; sinking more conservative about sinking instructions that define a preg into a -; block when we don't know if the preg is killed within the current block. - 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-n8:16:32:64" target triple = "x86_64-apple-darwin10.0.0" |