Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(724)

Unified Diff: test/CodeGen/X86/codegen-prepare.ll

Issue 183273009: Prep for merging 3.4: Undo changes from 3.3 branch (Closed) Base URL: http://git.chromium.org/native_client/pnacl-llvm.git@master
Patch Set: Retry Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « test/CodeGen/R600/vtx-schedule.ll ('k') | test/CodeGen/X86/compact-unwind.ll » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/CodeGen/X86/codegen-prepare.ll
diff --git a/test/CodeGen/X86/codegen-prepare.ll b/test/CodeGen/X86/codegen-prepare.ll
deleted file mode 100644
index e8ee070635310db4ca4b20f7fc2ba0548ffb19f2..0000000000000000000000000000000000000000
--- a/test/CodeGen/X86/codegen-prepare.ll
+++ /dev/null
@@ -1,44 +0,0 @@
-; RUN: llc < %s -mtriple=x86_64-pc-linux | FileCheck %s
-
-; Check that the CodeGenPrepare Pass
-; does not wrongly rewrite the address computed by Instruction %4
-; as [12 + Base:%this].
-
-; This test makes sure that:
-; - both the store and the first load instructions
-; within basic block labeled 'if.then' are not removed.
-; - the store instruction stores a value at address [60 + %this]
-; - the first load instruction loads a value at address [12 + %this]
-
-%class.A = type { %struct.B }
-%struct.B = type { %class.C, %class.D, %class.C, %class.D }
-%class.C = type { float, float, float }
-%class.D = type { [3 x %class.C] }
-
-define linkonce_odr void @foo(%class.A* nocapture %this, i32 %BoolValue) nounwind uwtable {
-entry:
- %cmp = icmp eq i32 %BoolValue, 0
- %address1 = getelementptr inbounds %class.A* %this, i64 0, i32 0, i32 3
- %address2 = getelementptr inbounds %class.A* %this, i64 0, i32 0, i32 1
- br i1 %cmp, label %if.else, label %if.then
-
-if.then: ; preds = %entry
- %0 = getelementptr inbounds %class.D* %address2, i64 0, i32 0, i64 0, i32 0
- %1 = load float* %0, align 4
- %2 = getelementptr inbounds float* %0, i64 3
- %3 = load float* %2, align 4
- %4 = getelementptr inbounds %class.D* %address1, i64 0, i32 0, i64 0, i32 0
- store float %1, float* %4, align 4
- br label %if.end
-
-if.else: ; preds = %entry
- br label %if.end
-
-if.end: ; preds = %if.then, %if.else, %entry
- ret void
-}
-
-; CHECK: foo:
-; CHECK: movss 12([[THIS:%[a-zA-Z0-9]+]]), [[REGISTER:%[a-zA-Z0-9]+]]
-; CHECK-NEXT: movss [[REGISTER]], 60([[THIS]])
-
« no previous file with comments | « test/CodeGen/R600/vtx-schedule.ll ('k') | test/CodeGen/X86/compact-unwind.ll » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698