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

Unified Diff: tests_lit/parse_errs/insertextract-err.ll

Issue 916313004: Fix subzero translator to use new API for reporting errors. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Merged into master. Created 5 years, 10 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 | « src/PNaClTranslator.cpp ('k') | tests_lit/parse_errs/nacl-fake-intrinsic.ll » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests_lit/parse_errs/insertextract-err.ll
diff --git a/tests_lit/parse_errs/insertextract-err.ll b/tests_lit/parse_errs/insertextract-err.ll
index 206067ae343406cc0d28f4c221286d4f2a9e9c40..560446a5f1e4adfc46fc6f74cdb19f0503e1ac8b 100644
--- a/tests_lit/parse_errs/insertextract-err.ll
+++ b/tests_lit/parse_errs/insertextract-err.ll
@@ -14,183 +14,183 @@
define void @ExtractV4xi1(<4 x i1> %v, i32 %i) {
%e0 = extractelement <4 x i1> %v, i32 %i
-; CHECK: Error: {{.*}} not {{.*}} constant
-; MIN: Error: {{.*}} Invalid function record: <6 4 3>
+; CHECK: Error{{.*}} not {{.*}} constant
+; MIN: Error{{.*}} Invalid function record: <6 4 3>
%e1 = extractelement <4 x i1> %v, i32 4
-; CHECK: Error: {{.*}} not in range
-; MIN: Error: {{.*}} Invalid function record: <6 5 3>
+; CHECK: Error{{.*}} not in range
+; MIN: Error{{.*}} Invalid function record: <6 5 3>
%e2 = extractelement <4 x i1> %v, i32 9
-; CHECK: Error: {{.*}} not in range
-; MIN: Error: {{.*}} Invalid function record: <6 6 3>
+; CHECK: Error{{.*}} not in range
+; MIN: Error{{.*}} Invalid function record: <6 6 3>
ret void
}
define void @ExtractV8xi1(<8 x i1> %v, i32 %i) {
%e0 = extractelement <8 x i1> %v, i32 %i
-; CHECK: Error: {{.*}} not {{.*}} constant
-; MIN: Error: {{.*}} Invalid function record: <6 4 3>
+; CHECK: Error{{.*}} not {{.*}} constant
+; MIN: Error{{.*}} Invalid function record: <6 4 3>
%e1 = extractelement <8 x i1> %v, i32 8;
-; CHECK: Error: {{.*}} not in range
-; MIN: Error: {{.*}} Invalid function record: <6 5 3>
+; CHECK: Error{{.*}} not in range
+; MIN: Error{{.*}} Invalid function record: <6 5 3>
%e2 = extractelement <8 x i1> %v, i32 9;
-; CHECK: Error: {{.*}} not in range
-; MIN: Error: {{.*}} Invalid function record: <6 6 3>
+; CHECK: Error{{.*}} not in range
+; MIN: Error{{.*}} Invalid function record: <6 6 3>
ret void
}
define void @ExtractV16xi1(<16 x i1> %v, i32 %i) {
%e0 = extractelement <16 x i1> %v, i32 %i
-; CHECK: Error: {{.*}} not {{.*}} constant
-; MIN: Error: {{.*}} Invalid function record: <6 4 3>
+; CHECK: Error{{.*}} not {{.*}} constant
+; MIN: Error{{.*}} Invalid function record: <6 4 3>
%e1 = extractelement <16 x i1> %v, i32 16
-; CHECK: Error: {{.*}} not in range
-; MIN: Error: {{.*}} Invalid function record: <6 5 3>
+; CHECK: Error{{.*}} not in range
+; MIN: Error{{.*}} Invalid function record: <6 5 3>
%e2 = extractelement <16 x i1> %v, i32 24
-; CHECK: Error: {{.*}} not in range
-; MIN: Error: {{.*}} Invalid function record: <6 6 3>
+; CHECK: Error{{.*}} not in range
+; MIN: Error{{.*}} Invalid function record: <6 6 3>
ret void
}
define void @ExtractV16xi8(<16 x i8> %v, i32 %i) {
%e0 = extractelement <16 x i8> %v, i32 %i
-; CHECK: Error: {{.*}} not {{.*}} constant
-; MIN: Error: {{.*}} Invalid function record: <6 4 3>
+; CHECK: Error{{.*}} not {{.*}} constant
+; MIN: Error{{.*}} Invalid function record: <6 4 3>
%e1 = extractelement <16 x i8> %v, i32 16
-; CHECK: Error: {{.*}} not in range
-; MIN: Error: {{.*}} Invalid function record: <6 5 3>
+; CHECK: Error{{.*}} not in range
+; MIN: Error{{.*}} Invalid function record: <6 5 3>
%e2 = extractelement <16 x i8> %v, i32 71
-; CHECK: Error: {{.*}} not in range
-; MIN: Error: {{.*}} Invalid function record: <6 6 3>
+; CHECK: Error{{.*}} not in range
+; MIN: Error{{.*}} Invalid function record: <6 6 3>
ret void
}
define void @ExtractV8xi16(<8 x i16> %v, i32 %i) {
%e0 = extractelement <8 x i16> %v, i32 %i
-; CHECK: Error: {{.*}} not {{.*}} constant
-; MIN: Error: {{.*}} Invalid function record: <6 4 3>
+; CHECK: Error{{.*}} not {{.*}} constant
+; MIN: Error{{.*}} Invalid function record: <6 4 3>
%e1 = extractelement <8 x i16> %v, i32 8
-; CHECK: Error: {{.*}} not in range
-; MIN: Error: {{.*}} Invalid function record: <6 5 3>
+; CHECK: Error{{.*}} not in range
+; MIN: Error{{.*}} Invalid function record: <6 5 3>
%e2 = extractelement <8 x i16> %v, i32 15
-; CHECK: Error: {{.*}} not in range
-; MIN: Error: {{.*}} Invalid function record: <6 6 3>
+; CHECK: Error{{.*}} not in range
+; MIN: Error{{.*}} Invalid function record: <6 6 3>
ret void
}
define i32 @ExtractV4xi32(<4 x i32> %v, i32 %i) {
%e0 = extractelement <4 x i32> %v, i32 %i
-; CHECK: Error: {{.*}} not {{.*}} constant
-; MIN: Error: {{.*}} Invalid function record: <6 4 3>
+; CHECK: Error{{.*}} not {{.*}} constant
+; MIN: Error{{.*}} Invalid function record: <6 4 3>
%e1 = extractelement <4 x i32> %v, i32 4
-; CHECK: Error: {{.*}} not in range
-; MIN: Error: {{.*}} Invalid function record: <6 5 3>
+; CHECK: Error{{.*}} not in range
+; MIN: Error{{.*}} Invalid function record: <6 5 3>
%e2 = extractelement <4 x i32> %v, i32 17
-; CHECK: Error: {{.*}} not in range
-; MIN: Error: {{.*}} Invalid function record: <6 6 3>
+; CHECK: Error{{.*}} not in range
+; MIN: Error{{.*}} Invalid function record: <6 6 3>
ret i32 %e0
}
define float @ExtractV4xfloat(<4 x float> %v, i32 %i) {
%e0 = extractelement <4 x float> %v, i32 %i
-; CHECK: Error: {{.*}} not {{.*}} constant
-; MIN: Error: {{.*}} Invalid function record: <6 3 2>
+; CHECK: Error{{.*}} not {{.*}} constant
+; MIN: Error{{.*}} Invalid function record: <6 3 2>
%e1 = extractelement <4 x float> %v, i32 4
-; CHECK: Error: {{.*}} not in range
-; MIN: Error: {{.*}} Invalid function record: <6 4 2>
+; CHECK: Error{{.*}} not in range
+; MIN: Error{{.*}} Invalid function record: <6 4 2>
%e2 = extractelement <4 x float> %v, i32 4
-; CHECK: Error: {{.*}} not in range
-; MIN: Error: {{.*}} Invalid function record: <6 5 3>
+; CHECK: Error{{.*}} not in range
+; MIN: Error{{.*}} Invalid function record: <6 5 3>
ret float %e2
}
define <4 x i1> @InsertV4xi1(<4 x i1> %v, i32 %i) {
%r0 = insertelement <4 x i1> %v, i1 1, i32 %i
-; CHECK: Error: {{.*}} not {{.*}} constant
-; MIN: Error: {{.*}} Invalid function record: <7 5 1 4>
+; CHECK: Error{{.*}} not {{.*}} constant
+; MIN: Error{{.*}} Invalid function record: <7 5 1 4>
%r1 = insertelement <4 x i1> %v, i1 1, i32 4
-; CHECK: Error: {{.*}} not in range
-; MIN: Error: {{.*}} Invalid function record: <7 6 2 4>
+; CHECK: Error{{.*}} not in range
+; MIN: Error{{.*}} Invalid function record: <7 6 2 4>
%r2 = insertelement <4 x i1> %v, i1 1, i32 7
-; CHECK: Error: {{.*}} not in range
-; MIN: Error: {{.*}} Invalid function record: <7 7 3 4>
+; CHECK: Error{{.*}} not in range
+; MIN: Error{{.*}} Invalid function record: <7 7 3 4>
ret <4 x i1> %r2
}
define <8 x i1> @InsertV8xi1(<8 x i1> %v, i32 %i) {
%r0 = insertelement <8 x i1> %v, i1 0, i32 %i
-; CHECK: Error: {{.*}} not {{.*}} constant
-; MIN: Error: {{.*}} Invalid function record: <7 5 1 4>
+; CHECK: Error{{.*}} not {{.*}} constant
+; MIN: Error{{.*}} Invalid function record: <7 5 1 4>
%r1 = insertelement <8 x i1> %v, i1 0, i32 8
-; CHECK: Error: {{.*}} not in range
-; MIN: Error: {{.*}} Invalid function record: <7 6 2 4>
+; CHECK: Error{{.*}} not in range
+; MIN: Error{{.*}} Invalid function record: <7 6 2 4>
%r2 = insertelement <8 x i1> %v, i1 0, i32 88
-; CHECK: Error: {{.*}} not in range
-; MIN: Error: {{.*}} Invalid function record: <7 7 3 4>
+; CHECK: Error{{.*}} not in range
+; MIN: Error{{.*}} Invalid function record: <7 7 3 4>
ret <8 x i1> %r2
}
define <16 x i1> @InsertV16xi1(<16 x i1> %v, i32 %i) {
%r = insertelement <16 x i1> %v, i1 1, i32 %i
-; CHECK: Error: {{.*}} not {{.*}} constant
-; MIN: Error: {{.*}} Invalid function record: <7 5 1 4>
+; CHECK: Error{{.*}} not {{.*}} constant
+; MIN: Error{{.*}} Invalid function record: <7 5 1 4>
ret <16 x i1> %r
%r1 = insertelement <16 x i1> %v, i1 1, i32 16
-; CHECK: Error: {{.*}} not in range
-; MIN: Error: {{.*}} Invalid function record: <7 6 2 4>
+; CHECK: Error{{.*}} not in range
+; MIN: Error{{.*}} Invalid function record: <7 6 2 4>
%r2 = insertelement <16 x i1> %v, i1 1, i32 31
-; CHECK: Error: {{.*}} not in range
-; MIN: Error: {{.*}} Invalid function record: <7 7 3 4>
+; CHECK: Error{{.*}} not in range
+; MIN: Error{{.*}} Invalid function record: <7 7 3 4>
ret <16 x i1> %r2
}
define <16 x i8> @InsertV16xi8(<16 x i8> %v, i32 %i) {
%r0 = insertelement <16 x i8> %v, i8 34, i32 %i
-; CHECK: Error: {{.*}} not {{.*}} constant
-; MIN: Error: {{.*}} Invalid function record: <7 5 1 4>
+; CHECK: Error{{.*}} not {{.*}} constant
+; MIN: Error{{.*}} Invalid function record: <7 5 1 4>
%r1 = insertelement <16 x i8> %v, i8 34, i32 16
-; CHECK: Error: {{.*}} not in range
-; MIN: Error: {{.*}} Invalid function record: <7 6 2 4>
+; CHECK: Error{{.*}} not in range
+; MIN: Error{{.*}} Invalid function record: <7 6 2 4>
%r2 = insertelement <16 x i8> %v, i8 34, i32 19
-; CHECK: Error: {{.*}} not in range
-; MIN: Error: {{.*}} Invalid function record: <7 7 3 4>
+; CHECK: Error{{.*}} not in range
+; MIN: Error{{.*}} Invalid function record: <7 7 3 4>
ret <16 x i8> %r0
}
define <8 x i16> @InsertV8xi16(<8 x i16> %v, i32 %i) {
%r0 = insertelement <8 x i16> %v, i16 289, i32 %i
-; CHECK: Error: {{.*}} not {{.*}} constant
-; MIN: Error: {{.*}} Invalid function record: <7 5 1 4>
+; CHECK: Error{{.*}} not {{.*}} constant
+; MIN: Error{{.*}} Invalid function record: <7 5 1 4>
%r1 = insertelement <8 x i16> %v, i16 289, i32 8
-; CHECK: Error: {{.*}} not in range
-; MIN: Error: {{.*}} Invalid function record: <7 6 2 4>
+; CHECK: Error{{.*}} not in range
+; MIN: Error{{.*}} Invalid function record: <7 6 2 4>
%r2 = insertelement <8 x i16> %v, i16 289, i32 19
-; CHECK: Error: {{.*}} not in range
-; MIN: Error: {{.*}} Invalid function record: <7 7 3 4>
+; CHECK: Error{{.*}} not in range
+; MIN: Error{{.*}} Invalid function record: <7 7 3 4>
ret <8 x i16> %r1
}
define <4 x i32> @InsertV4xi32(<4 x i32> %v, i32 %i) {
%r0 = insertelement <4 x i32> %v, i32 54545454, i32 %i
-; CHECK: Error: {{.*}} not {{.*}} constant
-; MIN: Error: {{.*}} Invalid function record: <7 5 3 4>
+; CHECK: Error{{.*}} not {{.*}} constant
+; MIN: Error{{.*}} Invalid function record: <7 5 3 4>
%r1 = insertelement <4 x i32> %v, i32 54545454, i32 4
-; CHECK: Error: {{.*}} not in range
-; MIN: Error: {{.*}} Invalid function record: <7 6 4 3>
+; CHECK: Error{{.*}} not in range
+; MIN: Error{{.*}} Invalid function record: <7 6 4 3>
%r2 = insertelement <4 x i32> %v, i32 54545454, i32 9
-; CHECK: Error: {{.*}} not in range
-; MIN: Error: {{.*}} Invalid function record: <7 7 5 3>
+; CHECK: Error{{.*}} not in range
+; MIN: Error{{.*}} Invalid function record: <7 7 5 3>
ret <4 x i32> %r2
}
define <4 x float> @InsertV4xfloat(<4 x float> %v, i32 %i) {
%r0 = insertelement <4 x float> %v, float 3.0, i32 %i
-; CHECK: Error: {{.*}} not {{.*}} constant
-; MIN: Error: {{.*}} Invalid function record: <7 5 1 4>
+; CHECK: Error{{.*}} not {{.*}} constant
+; MIN: Error{{.*}} Invalid function record: <7 5 1 4>
%r1 = insertelement <4 x float> %v, float 3.0, i32 4
-; CHECK: Error: {{.*}} not in range
-; MIN: Error: {{.*}} Invalid function record: <7 6 2 4>
+; CHECK: Error{{.*}} not in range
+; MIN: Error{{.*}} Invalid function record: <7 6 2 4>
%r2 = insertelement <4 x float> %v, float 3.0, i32 44
-; CHECK: Error: {{.*}} not in range
-; MIN: Error: {{.*}} Invalid function record: <7 7 3 4>
+; CHECK: Error{{.*}} not in range
+; MIN: Error{{.*}} Invalid function record: <7 7 3 4>
ret <4 x float> %r2
}
« no previous file with comments | « src/PNaClTranslator.cpp ('k') | tests_lit/parse_errs/nacl-fake-intrinsic.ll » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698