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

Unified Diff: tests_lit/llvm2ice_tests/returns_twice_no_coalesce.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/return_immediates.ll ('k') | tests_lit/llvm2ice_tests/rng.ll » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests_lit/llvm2ice_tests/returns_twice_no_coalesce.ll
diff --git a/tests_lit/llvm2ice_tests/returns_twice_no_coalesce.ll b/tests_lit/llvm2ice_tests/returns_twice_no_coalesce.ll
index 8419e0f009134883d3a101133af049e5840b316c..c9da9cbc1c244e289d327c6a3bf2426099d49ddf 100644
--- a/tests_lit/llvm2ice_tests/returns_twice_no_coalesce.ll
+++ b/tests_lit/llvm2ice_tests/returns_twice_no_coalesce.ll
@@ -1,7 +1,8 @@
; This file checks that SimpleCoalescing of local stack slots is not done
; when calling a function with the "returns twice" attribute.
-; RUN: %p2i -i %s --filetype=obj --disassemble --args -Om1 | FileCheck %s
+; RUN: %p2i -i %s --filetype=obj --disassemble --args -Om1 \
+; RUN: -allow-externally-defined-symbols | FileCheck %s
; Setjmp is a function with the "returns twice" attribute.
declare i32 @llvm.nacl.setjmp(i8*)
@@ -9,7 +10,7 @@ declare i32 @llvm.nacl.setjmp(i8*)
declare i32 @other(i32)
declare void @user(i32)
-define i32 @call_returns_twice(i32 %iptr_jmpbuf, i32 %x) {
+define internal i32 @call_returns_twice(i32 %iptr_jmpbuf, i32 %x) {
entry:
%local = add i32 %x, 12345
%jmpbuf = inttoptr i32 %iptr_jmpbuf to i8*
@@ -32,7 +33,7 @@ NonZero:
; There should not be sharing of the stack slot.
; CHECK-NOT: mov DWORD PTR [esp + [[OFF]]], [[REG2]]
-define i32 @no_call_returns_twice(i32 %iptr_jmpbuf, i32 %x) {
+define internal i32 @no_call_returns_twice(i32 %iptr_jmpbuf, i32 %x) {
entry:
%local = add i32 %x, 12345
%y = call i32 @other(i32 %x)
« no previous file with comments | « tests_lit/llvm2ice_tests/return_immediates.ll ('k') | tests_lit/llvm2ice_tests/rng.ll » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698