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

Unified Diff: tests_lit/llvm2ice_tests/nacl-mem-intrinsics.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
Index: tests_lit/llvm2ice_tests/nacl-mem-intrinsics.ll
diff --git a/tests_lit/llvm2ice_tests/nacl-mem-intrinsics.ll b/tests_lit/llvm2ice_tests/nacl-mem-intrinsics.ll
index 5e5d7b0acbc9277a532bdcedc12ce21084905696..95f5807ed200ef2e61ec34c1c39b23a0c25307c8 100644
--- a/tests_lit/llvm2ice_tests/nacl-mem-intrinsics.ll
+++ b/tests_lit/llvm2ice_tests/nacl-mem-intrinsics.ll
@@ -20,7 +20,7 @@ declare void @llvm.memcpy.p0i8.p0i8.i32(i8*, i8*, i32, i32, i1)
declare void @llvm.memmove.p0i8.p0i8.i32(i8*, i8*, i32, i32, i1)
declare void @llvm.memset.p0i8.i32(i8*, i8, i32, i32, i1)
-define void @test_memcpy(i32 %iptr_dst, i32 %iptr_src, i32 %len) {
+define internal void @test_memcpy(i32 %iptr_dst, i32 %iptr_src, i32 %len) {
entry:
%dst = inttoptr i32 %iptr_dst to i8*
%src = inttoptr i32 %iptr_src to i8*
@@ -35,7 +35,7 @@ entry:
; ARM32-LABEL: test_memcpy
; ARM32: bl {{.*}} memcpy
-define void @test_memcpy_long_const_len(i32 %iptr_dst, i32 %iptr_src) {
+define internal void @test_memcpy_long_const_len(i32 %iptr_dst, i32 %iptr_src) {
entry:
%dst = inttoptr i32 %iptr_dst to i8*
%src = inttoptr i32 %iptr_src to i8*
@@ -50,7 +50,8 @@ entry:
; ARM32-LABEL: test_memcpy_long_const_len
; ARM32: bl {{.*}} memcpy
-define void @test_memcpy_very_small_const_len(i32 %iptr_dst, i32 %iptr_src) {
+define internal void @test_memcpy_very_small_const_len(i32 %iptr_dst,
+ i32 %iptr_src) {
entry:
%dst = inttoptr i32 %iptr_dst to i8*
%src = inttoptr i32 %iptr_src to i8*
@@ -67,7 +68,7 @@ entry:
; ARM32-LABEL: test_memcpy_very_small_const_len
; ARM32: bl {{.*}} memcpy
-define void @test_memcpy_const_len_3(i32 %iptr_dst, i32 %iptr_src) {
+define internal void @test_memcpy_const_len_3(i32 %iptr_dst, i32 %iptr_src) {
entry:
%dst = inttoptr i32 %iptr_dst to i8*
%src = inttoptr i32 %iptr_src to i8*
@@ -86,7 +87,7 @@ entry:
; ARM32-LABEL: test_memcpy_const_len_3
; ARM32: bl {{.*}} memcpy
-define void @test_memcpy_mid_const_len(i32 %iptr_dst, i32 %iptr_src) {
+define internal void @test_memcpy_mid_const_len(i32 %iptr_dst, i32 %iptr_src) {
entry:
%dst = inttoptr i32 %iptr_dst to i8*
%src = inttoptr i32 %iptr_src to i8*
@@ -105,7 +106,8 @@ entry:
; ARM32-LABEL: test_memcpy_mid_const_len
; ARM32: bl {{.*}} memcpy
-define void @test_memcpy_mid_const_len_overlap(i32 %iptr_dst, i32 %iptr_src) {
+define internal void @test_memcpy_mid_const_len_overlap(i32 %iptr_dst,
+ i32 %iptr_src) {
entry:
%dst = inttoptr i32 %iptr_dst to i8*
%src = inttoptr i32 %iptr_src to i8*
@@ -124,7 +126,8 @@ entry:
; ARM32-LABEL: test_memcpy_mid_const_len_overlap
; ARM32: bl {{.*}} memcpy
-define void @test_memcpy_big_const_len_overlap(i32 %iptr_dst, i32 %iptr_src) {
+define internal void @test_memcpy_big_const_len_overlap(i32 %iptr_dst,
+ i32 %iptr_src) {
entry:
%dst = inttoptr i32 %iptr_dst to i8*
%src = inttoptr i32 %iptr_src to i8*
@@ -143,7 +146,8 @@ entry:
; ARM32-LABEL: test_memcpy_big_const_len_overlap
; ARM32: bl {{.*}} memcpy
-define void @test_memcpy_large_const_len(i32 %iptr_dst, i32 %iptr_src) {
+define internal void @test_memcpy_large_const_len(i32 %iptr_dst,
+ i32 %iptr_src) {
entry:
%dst = inttoptr i32 %iptr_dst to i8*
%src = inttoptr i32 %iptr_src to i8*
@@ -164,7 +168,7 @@ entry:
; ARM32-LABEL: test_memcpy_large_const_len
; ARM32: bl {{.*}} memcpy
-define void @test_memmove(i32 %iptr_dst, i32 %iptr_src, i32 %len) {
+define internal void @test_memmove(i32 %iptr_dst, i32 %iptr_src, i32 %len) {
entry:
%dst = inttoptr i32 %iptr_dst to i8*
%src = inttoptr i32 %iptr_src to i8*
@@ -179,7 +183,8 @@ entry:
; ARM32-LABEL: test_memmove
; ARM32: bl {{.*}} memmove
-define void @test_memmove_long_const_len(i32 %iptr_dst, i32 %iptr_src) {
+define internal void @test_memmove_long_const_len(i32 %iptr_dst,
+ i32 %iptr_src) {
entry:
%dst = inttoptr i32 %iptr_dst to i8*
%src = inttoptr i32 %iptr_src to i8*
@@ -194,7 +199,8 @@ entry:
; ARM32-LABEL: test_memmove_long_const_len
; ARM32: bl {{.*}} memmove
-define void @test_memmove_very_small_const_len(i32 %iptr_dst, i32 %iptr_src) {
+define internal void @test_memmove_very_small_const_len(i32 %iptr_dst,
+ i32 %iptr_src) {
entry:
%dst = inttoptr i32 %iptr_dst to i8*
%src = inttoptr i32 %iptr_src to i8*
@@ -211,7 +217,7 @@ entry:
; ARM32-LABEL: test_memmove_very_small_const_len
; ARM32: bl {{.*}} memmove
-define void @test_memmove_const_len_3(i32 %iptr_dst, i32 %iptr_src) {
+define internal void @test_memmove_const_len_3(i32 %iptr_dst, i32 %iptr_src) {
entry:
%dst = inttoptr i32 %iptr_dst to i8*
%src = inttoptr i32 %iptr_src to i8*
@@ -230,7 +236,7 @@ entry:
; ARM32-LABEL: test_memmove_const_len_3
; ARM32: bl {{.*}} memmove
-define void @test_memmove_mid_const_len(i32 %iptr_dst, i32 %iptr_src) {
+define internal void @test_memmove_mid_const_len(i32 %iptr_dst, i32 %iptr_src) {
entry:
%dst = inttoptr i32 %iptr_dst to i8*
%src = inttoptr i32 %iptr_src to i8*
@@ -249,7 +255,8 @@ entry:
; ARM32-LABEL: test_memmove_mid_const_len
; ARM32: bl {{.*}} memmove
-define void @test_memmove_mid_const_len_overlap(i32 %iptr_dst, i32 %iptr_src) {
+define internal void @test_memmove_mid_const_len_overlap(i32 %iptr_dst,
+ i32 %iptr_src) {
entry:
%dst = inttoptr i32 %iptr_dst to i8*
%src = inttoptr i32 %iptr_src to i8*
@@ -268,7 +275,8 @@ entry:
; ARM32-LABEL: test_memmove_mid_const_len_overlap
; ARM32: bl {{.*}} memmove
-define void @test_memmove_big_const_len_overlap(i32 %iptr_dst, i32 %iptr_src) {
+define internal void @test_memmove_big_const_len_overlap(i32 %iptr_dst,
+ i32 %iptr_src) {
entry:
%dst = inttoptr i32 %iptr_dst to i8*
%src = inttoptr i32 %iptr_src to i8*
@@ -287,7 +295,8 @@ entry:
; ARM32-LABEL: test_memmove_big_const_len_overlap
; ARM32: bl {{.*}} memmove
-define void @test_memmove_large_const_len(i32 %iptr_dst, i32 %iptr_src) {
+define internal void @test_memmove_large_const_len(i32 %iptr_dst,
+ i32 %iptr_src) {
entry:
%dst = inttoptr i32 %iptr_dst to i8*
%src = inttoptr i32 %iptr_src to i8*
@@ -308,7 +317,7 @@ entry:
; ARM32-LABEL: test_memmove_large_const_len
; ARM32: bl {{.*}} memmove
-define void @test_memset(i32 %iptr_dst, i32 %wide_val, i32 %len) {
+define internal void @test_memset(i32 %iptr_dst, i32 %wide_val, i32 %len) {
entry:
%val = trunc i32 %wide_val to i8
%dst = inttoptr i32 %iptr_dst to i8*
@@ -326,7 +335,8 @@ entry:
; ARM32: uxtb
; ARM32: bl {{.*}} memset
-define void @test_memset_const_len_align(i32 %iptr_dst, i32 %wide_val) {
+define internal void @test_memset_const_len_align(i32 %iptr_dst,
+ i32 %wide_val) {
entry:
%val = trunc i32 %wide_val to i8
%dst = inttoptr i32 %iptr_dst to i8*
@@ -344,7 +354,8 @@ entry:
; ARM32: uxtb
; ARM32: bl {{.*}} memset
-define void @test_memset_long_const_len_zero_val_align(i32 %iptr_dst) {
+define internal void @test_memset_long_const_len_zero_val_align(
+ i32 %iptr_dst) {
entry:
%dst = inttoptr i32 %iptr_dst to i8*
call void @llvm.memset.p0i8.i32(i8* %dst, i8 0,
@@ -359,7 +370,7 @@ entry:
; ARM32: uxtb
; ARM32: bl {{.*}} memset
-define void @test_memset_const_val(i32 %iptr_dst, i32 %len) {
+define internal void @test_memset_const_val(i32 %iptr_dst, i32 %len) {
entry:
%dst = inttoptr i32 %iptr_dst to i8*
call void @llvm.memset.p0i8.i32(i8* %dst, i8 0, i32 %len, i32 1, i1 false)
@@ -374,7 +385,7 @@ entry:
; ARM32: uxtb
; ARM32: bl {{.*}} memset
-define void @test_memset_const_val_len_very_small(i32 %iptr_dst) {
+define internal void @test_memset_const_val_len_very_small(i32 %iptr_dst) {
entry:
%dst = inttoptr i32 %iptr_dst to i8*
call void @llvm.memset.p0i8.i32(i8* %dst, i8 10, i32 2, i32 1, i1 false)
@@ -389,7 +400,7 @@ entry:
; ARM32: uxtb
; ARM32: bl {{.*}} memset
-define void @test_memset_const_val_len_3(i32 %iptr_dst) {
+define internal void @test_memset_const_val_len_3(i32 %iptr_dst) {
entry:
%dst = inttoptr i32 %iptr_dst to i8*
call void @llvm.memset.p0i8.i32(i8* %dst, i8 16, i32 3, i32 1, i1 false)
@@ -405,7 +416,7 @@ entry:
; ARM32: uxtb
; ARM32: bl {{.*}} memset
-define void @test_memset_const_val_len_mid(i32 %iptr_dst) {
+define internal void @test_memset_const_val_len_mid(i32 %iptr_dst) {
entry:
%dst = inttoptr i32 %iptr_dst to i8*
call void @llvm.memset.p0i8.i32(i8* %dst, i8 32, i32 9, i32 1, i1 false)
@@ -422,7 +433,7 @@ entry:
; ARM32: uxtb
; ARM32: bl {{.*}} memset
-define void @test_memset_zero_const_len_small(i32 %iptr_dst) {
+define internal void @test_memset_zero_const_len_small(i32 %iptr_dst) {
entry:
%dst = inttoptr i32 %iptr_dst to i8*
call void @llvm.memset.p0i8.i32(i8* %dst, i8 0, i32 12, i32 1, i1 false)
@@ -439,7 +450,7 @@ entry:
; ARM32: uxtb
; ARM32: bl {{.*}} memset
-define void @test_memset_zero_const_len_small_overlap(i32 %iptr_dst) {
+define internal void @test_memset_zero_const_len_small_overlap(i32 %iptr_dst) {
entry:
%dst = inttoptr i32 %iptr_dst to i8*
call void @llvm.memset.p0i8.i32(i8* %dst, i8 0, i32 15, i32 1, i1 false)
@@ -456,7 +467,7 @@ entry:
; ARM32: uxtb
; ARM32: bl {{.*}} memset
-define void @test_memset_zero_const_len_big_overlap(i32 %iptr_dst) {
+define internal void @test_memset_zero_const_len_big_overlap(i32 %iptr_dst) {
entry:
%dst = inttoptr i32 %iptr_dst to i8*
call void @llvm.memset.p0i8.i32(i8* %dst, i8 0, i32 30, i32 1, i1 false)
@@ -473,7 +484,7 @@ entry:
; ARM32: uxtb
; ARM32: bl {{.*}} memset
-define void @test_memset_zero_const_len_large(i32 %iptr_dst) {
+define internal void @test_memset_zero_const_len_large(i32 %iptr_dst) {
entry:
%dst = inttoptr i32 %iptr_dst to i8*
call void @llvm.memset.p0i8.i32(i8* %dst, i8 0, i32 33, i32 1, i1 false)
« no previous file with comments | « tests_lit/llvm2ice_tests/nacl-atomic-intrinsics.ll ('k') | tests_lit/llvm2ice_tests/nacl-other-intrinsics.ll » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698