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

Side by Side Diff: tests_lit/reader_tests/insertextract-err.ll

Issue 686913005: Turn off dump/emit routines when building minimal subzero. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Fix nits and format. Created 6 years, 1 month 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 unified diff | Download patch
OLDNEW
1 ; Tests insertelement and extractelement vector instructions report 1 ; Tests insertelement and extractelement vector instructions report
2 ; errors when malformed. Note: We can only test literal indexing since 2 ; errors when malformed. Note: We can only test literal indexing since
3 ; llvm-as will not allow other bad forms of these instructions. 3 ; llvm-as will not allow other bad forms of these instructions.
4 4
5 ; REQUIRES: allow_dump
5 ; RUN: llvm-as < %s | pnacl-freeze \ 6 ; RUN: llvm-as < %s | pnacl-freeze \
6 ; RUN: | not %llvm2ice -notranslate -build-on-read \ 7 ; RUN: | not %llvm2ice -notranslate -build-on-read \
7 ; RUN: -allow-pnacl-reader-error-recovery | FileCheck %s 8 ; RUN: -allow-pnacl-reader-error-recovery | FileCheck %s
8 9
9 define void @ExtractV4xi1(<4 x i1> %v, i32 %i) { 10 define void @ExtractV4xi1(<4 x i1> %v, i32 %i) {
10 %e0 = extractelement <4 x i1> %v, i32 %i 11 %e0 = extractelement <4 x i1> %v, i32 %i
11 ; CHECK: Error: {{.*}} not {{.*}} constant 12 ; CHECK: Error: {{.*}} not {{.*}} constant
12 %e1 = extractelement <4 x i1> %v, i32 4 13 %e1 = extractelement <4 x i1> %v, i32 4
13 ; CHECK: Error: {{.*}} not in range 14 ; CHECK: Error: {{.*}} not in range
14 %e2 = extractelement <4 x i1> %v, i32 9 15 %e2 = extractelement <4 x i1> %v, i32 9
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 140
140 define <4 x float> @InsertV4xfloat(<4 x float> %v, i32 %i) { 141 define <4 x float> @InsertV4xfloat(<4 x float> %v, i32 %i) {
141 %r0 = insertelement <4 x float> %v, float 3.0, i32 %i 142 %r0 = insertelement <4 x float> %v, float 3.0, i32 %i
142 ; CHECK: Error: {{.*}} not {{.*}} constant 143 ; CHECK: Error: {{.*}} not {{.*}} constant
143 %r1 = insertelement <4 x float> %v, float 3.0, i32 4 144 %r1 = insertelement <4 x float> %v, float 3.0, i32 4
144 ; CHECK: Error: {{.*}} not in range 145 ; CHECK: Error: {{.*}} not in range
145 %r2 = insertelement <4 x float> %v, float 3.0, i32 44 146 %r2 = insertelement <4 x float> %v, float 3.0, i32 44
146 ; CHECK: Error: {{.*}} not in range 147 ; CHECK: Error: {{.*}} not in range
147 ret <4 x float> %r2 148 ret <4 x float> %r2
148 } 149 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698