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

Unified Diff: tests_lit/llvm2ice_tests/align-spill-locations.ll

Issue 1387963002: Make sure that all globals are internal, except for "start" functions. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Fix new tests. Created 5 years, 2 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 | « tests_lit/llvm2ice_tests/address-mode-opt.ll ('k') | tests_lit/llvm2ice_tests/alloc.ll » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests_lit/llvm2ice_tests/align-spill-locations.ll
diff --git a/tests_lit/llvm2ice_tests/align-spill-locations.ll b/tests_lit/llvm2ice_tests/align-spill-locations.ll
index dc8410cb50b83b2b3e99ad60f901564a18c4ec3c..c0b1cdacc3ee356b76ca1dfb95e3e6e7c31521ac 100644
--- a/tests_lit/llvm2ice_tests/align-spill-locations.ll
+++ b/tests_lit/llvm2ice_tests/align-spill-locations.ll
@@ -1,7 +1,9 @@
; This checks to ensure that Subzero aligns spill slots.
-; RUN: %p2i --filetype=obj --disassemble -i %s --args -Om1 | FileCheck %s
-; RUN: %p2i --filetype=obj --disassemble -i %s --args -O2 | FileCheck %s
+; RUN: %p2i --filetype=obj --disassemble -i %s --args -Om1 \
+; RUN: -allow-externally-defined-symbols | FileCheck %s
+; RUN: %p2i --filetype=obj --disassemble -i %s --args -O2 \
+; RUN: -allow-externally-defined-symbols | FileCheck %s
; The location of the stack slot for a variable is inferred from the
; return sequence.
@@ -10,7 +12,7 @@
; multiple basic blocks (not an LLVM global variable) and "local"
; refers to a variable that is live in only a single basic block.
-define <4 x i32> @align_global_vector(i32 %arg) {
+define internal <4 x i32> @align_global_vector(i32 %arg) {
entry:
%vec.global = insertelement <4 x i32> undef, i32 %arg, i32 0
br label %block
@@ -23,7 +25,7 @@ block:
; CHECK-NEXT: ret
}
-define <4 x i32> @align_local_vector(i32 %arg) {
+define internal <4 x i32> @align_local_vector(i32 %arg) {
entry:
br label %block
block:
@@ -38,7 +40,7 @@ block:
declare void @ForceXmmSpills()
-define <4 x i32> @align_global_vector_ebp_based(i32 %arg) {
+define internal <4 x i32> @align_global_vector_ebp_based(i32 %arg) {
entry:
br label %eblock ; Disable alloca optimization
eblock:
@@ -55,7 +57,7 @@ block:
; CHECK: ret
}
-define <4 x i32> @align_local_vector_ebp_based(i32 %arg) {
+define internal <4 x i32> @align_local_vector_ebp_based(i32 %arg) {
entry:
br label %eblock ; Disable alloca optimization
eblock:
@@ -70,7 +72,7 @@ eblock:
; CHECK: ret
}
-define <4 x i32> @align_local_vector_and_global_float(i32 %arg) {
+define internal <4 x i32> @align_local_vector_and_global_float(i32 %arg) {
entry:
%float.global = sitofp i32 %arg to float
call void @ForceXmmSpillsAndUseFloat(float %float.global)
« no previous file with comments | « tests_lit/llvm2ice_tests/address-mode-opt.ll ('k') | tests_lit/llvm2ice_tests/alloc.ll » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698