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

Unified Diff: test/Transforms/MinSFI/allocate-data-segment.ll

Issue 1151093004: Changes from 3.7 merge to files not in upstream (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-llvm.git@master
Patch Set: Created 5 years, 7 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
Index: test/Transforms/MinSFI/allocate-data-segment.ll
diff --git a/test/Transforms/MinSFI/allocate-data-segment.ll b/test/Transforms/MinSFI/allocate-data-segment.ll
index 9327221de78ecc6456a755782ec283d2c8202cb0..6c73e1f73c3836be8a88dc44855cbedd9ab5da38 100644
--- a/test/Transforms/MinSFI/allocate-data-segment.ll
+++ b/test/Transforms/MinSFI/allocate-data-segment.ll
@@ -20,13 +20,13 @@ target triple = "le32-unknown-nacl"
; Use each variable to verify its location
define void @use_variables() {
- %a = load [1 x i8]* @a
- %b = load [3 x i8]* @b
- %c = load [5 x i8]* @c
- %d = load i32* @d
- %e = load i32* @e
- %f = load <{ [1 x i8], i32 }>* @f
- %g = load [1 x i8]* @g
+ %a = load [1 x i8], [1 x i8]* @a
+ %b = load [3 x i8], [3 x i8]* @b
+ %c = load [5 x i8], [5 x i8]* @c
+ %d = load i32, i32* @d
+ %e = load i32, i32* @e
+ %f = load <{ [1 x i8], i32 }>, <{ [1 x i8], i32 }>* @f
+ %g = load [1 x i8], [1 x i8]* @g
ret void
}
@@ -35,12 +35,12 @@ define void @use_variables() {
; CHECK: @__sfi_data_segment_size = constant i32 38
; CHECK-LABEL: define void @use_variables() {
-; CHECK-NEXT: %a = load [1 x i8]* inttoptr (i32 65536 to [1 x i8]*)
-; CHECK-NEXT: %b = load [3 x i8]* inttoptr (i32 65537 to [3 x i8]*)
-; CHECK-NEXT: %c = load [5 x i8]* inttoptr (i32 65552 to [5 x i8]*)
-; CHECK-NEXT: %d = load i32* inttoptr (i32 65560 to i32*)
-; CHECK-NEXT: %e = load i32* inttoptr (i32 65564 to i32*)
-; CHECK-NEXT: %f = load <{ [1 x i8], i32 }>* inttoptr (i32 65568 to <{ [1 x i8], i32 }>*)
-; CHECK-NEXT: %g = load [1 x i8]* inttoptr (i32 65573 to [1 x i8]*)
+; CHECK-NEXT: %a = load [1 x i8], [1 x i8]* inttoptr (i32 65536 to [1 x i8]*)
+; CHECK-NEXT: %b = load [3 x i8], [3 x i8]* inttoptr (i32 65537 to [3 x i8]*)
+; CHECK-NEXT: %c = load [5 x i8], [5 x i8]* inttoptr (i32 65552 to [5 x i8]*)
+; CHECK-NEXT: %d = load i32, i32* inttoptr (i32 65560 to i32*)
+; CHECK-NEXT: %e = load i32, i32* inttoptr (i32 65564 to i32*)
+; CHECK-NEXT: %f = load <{ [1 x i8], i32 }>, <{ [1 x i8], i32 }>* inttoptr (i32 65568 to <{ [1 x i8], i32 }>*)
+; CHECK-NEXT: %g = load [1 x i8], [1 x i8]* inttoptr (i32 65573 to [1 x i8]*)
; CHECK-NEXT: ret void
; CHECK-NEXT: }

Powered by Google App Engine
This is Rietveld 408576698