OLD | NEW |
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 ; RUN: llvm-as < %s | pnacl-freeze | not %llvm2ice -notranslate \ | 5 ; REQUIRES: allow_dump |
| 6 ; RUN: llvm-as < %s | pnacl-freeze \ |
| 7 ; RUN: | not %llvm2ice -notranslate -build-on-read \ |
6 ; RUN: -allow-pnacl-reader-error-recovery | FileCheck %s | 8 ; RUN: -allow-pnacl-reader-error-recovery | FileCheck %s |
7 | 9 |
8 define void @ExtractV4xi1(<4 x i1> %v, i32 %i) { | 10 define void @ExtractV4xi1(<4 x i1> %v, i32 %i) { |
9 %e0 = extractelement <4 x i1> %v, i32 %i | 11 %e0 = extractelement <4 x i1> %v, i32 %i |
10 ; CHECK: Error: {{.*}} not {{.*}} constant | 12 ; CHECK: Error: {{.*}} not {{.*}} constant |
11 %e1 = extractelement <4 x i1> %v, i32 4 | 13 %e1 = extractelement <4 x i1> %v, i32 4 |
12 ; CHECK: Error: {{.*}} not in range | 14 ; CHECK: Error: {{.*}} not in range |
13 %e2 = extractelement <4 x i1> %v, i32 9 | 15 %e2 = extractelement <4 x i1> %v, i32 9 |
14 ; CHECK: Error: {{.*}} not in range | 16 ; CHECK: Error: {{.*}} not in range |
15 ret void | 17 ret void |
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
138 | 140 |
139 define <4 x float> @InsertV4xfloat(<4 x float> %v, i32 %i) { | 141 define <4 x float> @InsertV4xfloat(<4 x float> %v, i32 %i) { |
140 %r0 = insertelement <4 x float> %v, float 3.0, i32 %i | 142 %r0 = insertelement <4 x float> %v, float 3.0, i32 %i |
141 ; CHECK: Error: {{.*}} not {{.*}} constant | 143 ; CHECK: Error: {{.*}} not {{.*}} constant |
142 %r1 = insertelement <4 x float> %v, float 3.0, i32 4 | 144 %r1 = insertelement <4 x float> %v, float 3.0, i32 4 |
143 ; CHECK: Error: {{.*}} not in range | 145 ; CHECK: Error: {{.*}} not in range |
144 %r2 = insertelement <4 x float> %v, float 3.0, i32 44 | 146 %r2 = insertelement <4 x float> %v, float 3.0, i32 44 |
145 ; CHECK: Error: {{.*}} not in range | 147 ; CHECK: Error: {{.*}} not in range |
146 ret <4 x float> %r2 | 148 ret <4 x float> %r2 |
147 } | 149 } |
OLD | NEW |