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

Unified Diff: tests_lit/llvm2ice_tests/undef.ll

Issue 353553004: Add support for vector types and vector constants. (Closed) Base URL: https://gerrit.chromium.org/gerrit/p/native_client/pnacl-subzero.git@master
Patch Set: Print out types in error messages. Created 6 years, 5 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
« src/IceTargetLoweringX8632.cpp ('K') | « src/IceTypes.def ('k') | no next file » | 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 2df08ea3aa123cd66c51cefbb51753b7d8e6f906..db69f05fdc849526b338d16eb033f297bd635a64 100644
--- a/tests_lit/llvm2ice_tests/undef.ll
+++ b/tests_lit/llvm2ice_tests/undef.ll
@@ -7,31 +7,87 @@
; RUN: %llvm2iceinsts --pnacl %s | %szdiff %s \
; RUN: | FileCheck --check-prefix=DUMP %s
-define i32 @undefi32() {
+define i32 @undef_i32() {
entry:
-; CHECK-LABEL: undefi32:
ret i32 undef
+; CHECK-LABEL: undef_i32:
; CHECK: mov eax, 0
; CHECK: ret
}
-define i64 @undefi64() {
+define i64 @undef_i64() {
entry:
-; CHECK-LABEL: undefi64:
ret i64 undef
+; CHECK-LABEL: undef_i64:
; CHECK-DAG: mov eax, 0
; CHECK-DAG: mov edx, 0
; CHECK: ret
}
-define float @undeffloat() {
+define float @undef_float() {
entry:
-; CHECK-LABEL: undeffloat:
ret float undef
+; CHECK-LABEL: undef_float:
; CHECK-NOT: sub esp
; CHECK: fld
; CHECK: ret
}
+define <4 x i1> @undef_v4i1() {
+entry:
+ ret <4 x i1> undef
+; CHECK-LABEL: undef_v4i1:
+; CHECK: pxor
+; CHECK: ret
+}
+
+define <8 x i1> @undef_v8i1() {
+entry:
+ ret <8 x i1> undef
+; CHECK-LABEL: undef_v8i1:
+; CHECK: pxor
+; CHECK: ret
+}
+
+define <16 x i1> @undef_v16i1() {
+entry:
+ ret <16 x i1> undef
+; CHECK-LABEL: undef_v16i1:
+; CHECK: pxor
+; CHECK: ret
+}
+
+define <16 x i8> @undef_v16i8() {
+entry:
+ ret <16 x i8> undef
+; CHECK-LABEL: undef_v16i8:
+; CHECK: pxor
+; CHECK: ret
+}
+
+define <8 x i16> @undef_v8i16() {
+entry:
+ ret <8 x i16> undef
+; CHECK-LABEL: undef_v8i16:
+; CHECK: pxor
+; CHECK: ret
+}
+
+define <4 x i32> @undef_v4i32() {
+entry:
+ ret <4 x i32> undef
+; CHECK-LABEL: undef_v4i32:
+; CHECK: pxor
+; CHECK: ret
+}
+
+define <4 x float> @undef_v4f32() {
+entry:
+ ret <4 x float> undef
+; CHECK-LABEL: undef_v4f32:
+; CHECK: pxor
+; CHECK: ret
+}
+
; ERRORS-NOT: ICE translation error
; DUMP-NOT: SZ
« src/IceTargetLoweringX8632.cpp ('K') | « src/IceTypes.def ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698