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

Unified Diff: tests_lit/llvm2ice_tests/undef.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/switch-opt.ll ('k') | tests_lit/llvm2ice_tests/vector-align.ll » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests_lit/llvm2ice_tests/undef.ll
diff --git a/tests_lit/llvm2ice_tests/undef.ll b/tests_lit/llvm2ice_tests/undef.ll
index d5823a9a5c7021843775aa944936bdf2c76fe5e6..0e1ff0554418a473baa5efc6747c14efc6e8c631 100644
--- a/tests_lit/llvm2ice_tests/undef.ll
+++ b/tests_lit/llvm2ice_tests/undef.ll
@@ -9,14 +9,14 @@
; RUN: %p2i -i %s --filetype=obj --disassemble --args -Om1 -mattr=sse4.1 \
; RUN: | FileCheck %s
-define i32 @undef_i32() {
+define internal i32 @undef_i32() {
entry:
ret i32 undef
; CHECK-LABEL: undef_i32
; CHECK: mov eax,0x0
}
-define i64 @undef_i64() {
+define internal i64 @undef_i64() {
entry:
ret i64 undef
; CHECK-LABEL: undef_i64
@@ -25,7 +25,7 @@ entry:
; CHECK: ret
}
-define i32 @trunc_undef_i64() {
+define internal i32 @trunc_undef_i64() {
entry:
%ret = trunc i64 undef to i32
ret i32 %ret
@@ -34,63 +34,63 @@ entry:
; CHECK: ret
}
-define float @undef_float() {
+define internal float @undef_float() {
entry:
ret float undef
; CHECK-LABEL: undef_float
; CHECK: fld DWORD PTR {{.*}} .L$float$00000000
}
-define <4 x i1> @undef_v4i1() {
+define internal <4 x i1> @undef_v4i1() {
entry:
ret <4 x i1> undef
; CHECK-LABEL: undef_v4i1
; CHECK: pxor
}
-define <8 x i1> @undef_v8i1() {
+define internal <8 x i1> @undef_v8i1() {
entry:
ret <8 x i1> undef
; CHECK-LABEL: undef_v8i1
; CHECK: pxor
}
-define <16 x i1> @undef_v16i1() {
+define internal <16 x i1> @undef_v16i1() {
entry:
ret <16 x i1> undef
; CHECK-LABEL: undef_v16i1
; CHECK: pxor
}
-define <16 x i8> @undef_v16i8() {
+define internal <16 x i8> @undef_v16i8() {
entry:
ret <16 x i8> undef
; CHECK-LABEL: undef_v16i8
; CHECK: pxor
}
-define <8 x i16> @undef_v8i16() {
+define internal <8 x i16> @undef_v8i16() {
entry:
ret <8 x i16> undef
; CHECK-LABEL: undef_v8i16
; CHECK: pxor
}
-define <4 x i32> @undef_v4i32() {
+define internal <4 x i32> @undef_v4i32() {
entry:
ret <4 x i32> undef
; CHECK-LABEL: undef_v4i32
; CHECK: pxor
}
-define <4 x float> @undef_v4f32() {
+define internal <4 x float> @undef_v4f32() {
entry:
ret <4 x float> undef
; CHECK-LABEL: undef_v4f32
; CHECK: pxor
}
-define <4 x i32> @vector_arith(<4 x i32> %arg) {
+define internal <4 x i32> @vector_arith(<4 x i32> %arg) {
entry:
%val = add <4 x i32> undef, %arg
ret <4 x i32> %val
@@ -98,7 +98,7 @@ entry:
; CHECK: pxor
}
-define <4 x float> @vector_bitcast() {
+define internal <4 x float> @vector_bitcast() {
entry:
%val = bitcast <4 x i32> undef to <4 x float>
ret <4 x float> %val
@@ -106,7 +106,7 @@ entry:
; CHECK: pxor
}
-define <4 x i32> @vector_sext() {
+define internal <4 x i32> @vector_sext() {
entry:
%val = sext <4 x i1> undef to <4 x i32>
ret <4 x i32> %val
@@ -114,7 +114,7 @@ entry:
; CHECK: pxor
}
-define <4 x i32> @vector_zext() {
+define internal <4 x i32> @vector_zext() {
entry:
%val = zext <4 x i1> undef to <4 x i32>
ret <4 x i32> %val
@@ -122,7 +122,7 @@ entry:
; CHECK: pxor
}
-define <4 x i1> @vector_trunc() {
+define internal <4 x i1> @vector_trunc() {
entry:
%val = trunc <4 x i32> undef to <4 x i1>
ret <4 x i1> %val
@@ -130,7 +130,7 @@ entry:
; CHECK: pxor
}
-define <4 x i1> @vector_icmp(<4 x i32> %arg) {
+define internal <4 x i1> @vector_icmp(<4 x i32> %arg) {
entry:
%val = icmp eq <4 x i32> undef, %arg
ret <4 x i1> %val
@@ -138,7 +138,7 @@ entry:
; CHECK: pxor
}
-define <4 x i1> @vector_fcmp(<4 x float> %arg) {
+define internal <4 x i1> @vector_fcmp(<4 x float> %arg) {
entry:
%val = fcmp ueq <4 x float> undef, %arg
ret <4 x i1> %val
@@ -146,7 +146,7 @@ entry:
; CHECK: pxor
}
-define <4 x i32> @vector_fptosi() {
+define internal <4 x i32> @vector_fptosi() {
entry:
%val = fptosi <4 x float> undef to <4 x i32>
ret <4 x i32> %val
@@ -154,7 +154,7 @@ entry:
; CHECK: pxor
}
-define <4 x i32> @vector_fptoui() {
+define internal <4 x i32> @vector_fptoui() {
entry:
%val = fptoui <4 x float> undef to <4 x i32>
ret <4 x i32> %val
@@ -162,7 +162,7 @@ entry:
; CHECK: pxor
}
-define <4 x float> @vector_sitofp() {
+define internal <4 x float> @vector_sitofp() {
entry:
%val = sitofp <4 x i32> undef to <4 x float>
ret <4 x float> %val
@@ -170,7 +170,7 @@ entry:
; CHECK: pxor
}
-define <4 x float> @vector_uitofp() {
+define internal <4 x float> @vector_uitofp() {
entry:
%val = uitofp <4 x i32> undef to <4 x float>
ret <4 x float> %val
@@ -178,7 +178,7 @@ entry:
; CHECK: pxor
}
-define <4 x float> @vector_insertelement_arg1() {
+define internal <4 x float> @vector_insertelement_arg1() {
entry:
%val = insertelement <4 x float> undef, float 1.0, i32 0
ret <4 x float> %val
@@ -186,7 +186,7 @@ entry:
; CHECK: pxor
}
-define <4 x float> @vector_insertelement_arg2(<4 x float> %arg) {
+define internal <4 x float> @vector_insertelement_arg2(<4 x float> %arg) {
entry:
%val = insertelement <4 x float> %arg, float undef, i32 0
ret <4 x float> %val
@@ -194,7 +194,7 @@ entry:
; CHECK: {{movss|insertps}} {{.*}},DWORD PTR {{.*}} .L$float$00000000
}
-define float @vector_extractelement_v4f32_index_0() {
+define internal float @vector_extractelement_v4f32_index_0() {
entry:
%val = extractelement <4 x float> undef, i32 0
ret float %val
@@ -202,7 +202,7 @@ entry:
; CHECK: pxor
}
-define float @vector_extractelement_v4f32_index_1() {
+define internal float @vector_extractelement_v4f32_index_1() {
entry:
%val = extractelement <4 x float> undef, i32 1
ret float %val
@@ -210,7 +210,7 @@ entry:
; CHECK: pxor
}
-define i32 @vector_extractelement_v16i1_index_7() {
+define internal i32 @vector_extractelement_v16i1_index_7() {
entry:
%val.trunc = extractelement <16 x i1> undef, i32 7
%val = sext i1 %val.trunc to i32
@@ -219,7 +219,8 @@ entry:
; CHECK: pxor
}
-define <4 x i32> @vector_select_v4i32_cond(<4 x i32> %a, <4 x i32> %b) {
+define internal <4 x i32> @vector_select_v4i32_cond(<4 x i32> %a,
+ <4 x i32> %b) {
entry:
%val = select <4 x i1> undef, <4 x i32> %a, <4 x i32> %b
ret <4 x i32> %val
@@ -227,7 +228,8 @@ entry:
; CHECK: pxor
}
-define <4 x i32> @vector_select_v4i32_arg1(<4 x i1> %cond, <4 x i32> %b) {
+define internal <4 x i32> @vector_select_v4i32_arg1(<4 x i1> %cond,
+ <4 x i32> %b) {
entry:
%val = select <4 x i1> %cond, <4 x i32> undef, <4 x i32> %b
ret <4 x i32> %val
@@ -235,7 +237,8 @@ entry:
; CHECK: pxor
}
-define <4 x i32> @vector_select_v4i32_arg2(<4 x i1> %cond, <4 x i32> %a) {
+define internal <4 x i32> @vector_select_v4i32_arg2(<4 x i1> %cond,
+ <4 x i32> %a) {
entry:
%val = select <4 x i1> %cond, <4 x i32> %a, <4 x i32> undef
ret <4 x i32> %val
@@ -243,7 +246,8 @@ entry:
; CHECK: pxor
}
-define <4 x i1> @vector_select_v4i1_cond(<4 x i1> %a, <4 x i1> %b) {
+define internal <4 x i1> @vector_select_v4i1_cond(<4 x i1> %a,
+ <4 x i1> %b) {
entry:
%val = select <4 x i1> undef, <4 x i1> %a, <4 x i1> %b
ret <4 x i1> %val
@@ -251,7 +255,8 @@ entry:
; CHECK: pxor
}
-define <4 x i1> @vector_select_v4i1_arg1(<4 x i1> %cond, <4 x i1> %b) {
+define internal <4 x i1> @vector_select_v4i1_arg1(<4 x i1> %cond,
+ <4 x i1> %b) {
entry:
%val = select <4 x i1> %cond, <4 x i1> undef, <4 x i1> %b
ret <4 x i1> %val
@@ -259,7 +264,8 @@ entry:
; CHECK: pxor
}
-define <4 x i1> @vector_select_v4i1_arg2(<4 x i1> %cond, <4 x i1> %a) {
+define internal <4 x i1> @vector_select_v4i1_arg2(<4 x i1> %cond,
+ <4 x i1> %a) {
entry:
%val = select <4 x i1> %cond, <4 x i1> %a, <4 x i1> undef
ret <4 x i1> %val
@@ -267,7 +273,8 @@ entry:
; CHECK: pxor
}
-define <4 x float> @vector_select_v4f32_cond(<4 x float> %a, <4 x float> %b) {
+define internal <4 x float> @vector_select_v4f32_cond(<4 x float> %a,
+ <4 x float> %b) {
entry:
%val = select <4 x i1> undef, <4 x float> %a, <4 x float> %b
ret <4 x float> %val
@@ -275,7 +282,8 @@ entry:
; CHECK: pxor
}
-define <4 x float> @vector_select_v4f32_arg1(<4 x i1> %cond, <4 x float> %b) {
+define internal <4 x float> @vector_select_v4f32_arg1(<4 x i1> %cond,
+ <4 x float> %b) {
entry:
%val = select <4 x i1> %cond, <4 x float> undef, <4 x float> %b
ret <4 x float> %val
@@ -283,7 +291,8 @@ entry:
; CHECK: pxor
}
-define <4 x float> @vector_select_v4f32_arg2(<4 x i1> %cond, <4 x float> %a) {
+define internal <4 x float> @vector_select_v4f32_arg2(<4 x i1> %cond,
+ <4 x float> %a) {
entry:
%val = select <4 x i1> %cond, <4 x float> %a, <4 x float> undef
ret <4 x float> %val
« no previous file with comments | « tests_lit/llvm2ice_tests/switch-opt.ll ('k') | tests_lit/llvm2ice_tests/vector-align.ll » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698