OLD | NEW |
1 ; Tests malformed insertelement and extractelement vector instructions. | 1 ; Tests malformed insertelement and extractelement vector instructions. |
2 | 2 |
3 ; RUN: %if --need=allow_dump --command llvm-as < %s \ | 3 ; RUN: %if --need=allow_dump --command \ |
4 ; RUN: | %if --need=allow_dump --command pnacl-freeze \ | 4 ; RUN: %p2i --expect-fail -i %s --allow-pnacl-reader-error-recovery \ |
5 ; RUN: | %if --need=allow_dump --command not %pnacl_sz -notranslate \ | 5 ; RUN: --filetype=obj -o /dev/null --args -notranslate \ |
6 ; RUN: -build-on-read -allow-pnacl-reader-error-recovery \ | |
7 ; RUN: -filetype=obj -o /dev/null \ | |
8 ; RUN: | %if --need=allow_dump --command FileCheck %s | 6 ; RUN: | %if --need=allow_dump --command FileCheck %s |
9 | 7 |
10 ; RUN: %if --need=no_dump --command llvm-as < %s \ | 8 ; RUN: %if --need=no_dump --command \ |
11 ; RUN: | %if --need=no_dump --command pnacl-freeze \ | 9 ; RUN: %p2i --expect-fail -i %s --allow-pnacl-reader-error-recovery \ |
12 ; RUN: | %if --need=no_dump --command not %pnacl_sz -notranslate \ | 10 ; RUN: --filetype=obj -o /dev/null --args -notranslate \ |
13 ; RUN: -build-on-read -allow-pnacl-reader-error-recovery \ | |
14 ; RUN: -filetype=obj -o /dev/null \ | |
15 ; RUN: | %if --need=no_dump --command FileCheck %s --check-prefix=MIN | 11 ; RUN: | %if --need=no_dump --command FileCheck %s --check-prefix=MIN |
16 | 12 |
17 define void @ExtractV4xi1(<4 x i1> %v, i32 %i) { | 13 define void @ExtractV4xi1(<4 x i1> %v, i32 %i) { |
18 %e0 = extractelement <4 x i1> %v, i32 %i | 14 %e0 = extractelement <4 x i1> %v, i32 %i |
19 ; CHECK: Error{{.*}} not {{.*}} constant | 15 ; CHECK: Error{{.*}} not {{.*}} constant |
20 ; MIN: Error{{.*}} Invalid function record: <6 4 3> | 16 ; MIN: Error{{.*}} Invalid function record: <6 4 3> |
21 %e1 = extractelement <4 x i1> %v, i32 4 | 17 %e1 = extractelement <4 x i1> %v, i32 4 |
22 ; CHECK: Error{{.*}} not in range | 18 ; CHECK: Error{{.*}} not in range |
23 ; MIN: Error{{.*}} Invalid function record: <6 5 3> | 19 ; MIN: Error{{.*}} Invalid function record: <6 5 3> |
24 %e2 = extractelement <4 x i1> %v, i32 9 | 20 %e2 = extractelement <4 x i1> %v, i32 9 |
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
189 ; CHECK: Error{{.*}} not {{.*}} constant | 185 ; CHECK: Error{{.*}} not {{.*}} constant |
190 ; MIN: Error{{.*}} Invalid function record: <7 5 1 4> | 186 ; MIN: Error{{.*}} Invalid function record: <7 5 1 4> |
191 %r1 = insertelement <4 x float> %v, float 3.0, i32 4 | 187 %r1 = insertelement <4 x float> %v, float 3.0, i32 4 |
192 ; CHECK: Error{{.*}} not in range | 188 ; CHECK: Error{{.*}} not in range |
193 ; MIN: Error{{.*}} Invalid function record: <7 6 2 4> | 189 ; MIN: Error{{.*}} Invalid function record: <7 6 2 4> |
194 %r2 = insertelement <4 x float> %v, float 3.0, i32 44 | 190 %r2 = insertelement <4 x float> %v, float 3.0, i32 44 |
195 ; CHECK: Error{{.*}} not in range | 191 ; CHECK: Error{{.*}} not in range |
196 ; MIN: Error{{.*}} Invalid function record: <7 7 3 4> | 192 ; MIN: Error{{.*}} Invalid function record: <7 7 3 4> |
197 ret <4 x float> %r2 | 193 ret <4 x float> %r2 |
198 } | 194 } |
OLD | NEW |