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

Side by Side Diff: tests_lit/llvm2ice_tests/undef.ll

Issue 1233903002: Factor out legalization of undef, and handle more cases for ARM. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: stuff Created 5 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 unified diff | Download patch
« no previous file with comments | « tests_lit/llvm2ice_tests/switch-opt.ll ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 ; This test checks that undef values are represented as zero. 1 ; This test checks that undef values are represented as zero.
2 2
3 ; RUN: %p2i -i %s --filetype=obj --disassemble --args -O2 \ 3 ; RUN: %p2i -i %s --filetype=obj --disassemble --args -O2 \
4 ; RUN: | FileCheck %s 4 ; RUN: | FileCheck %s
5 ; RUN: %p2i -i %s --filetype=obj --disassemble --args -Om1 \ 5 ; RUN: %p2i -i %s --filetype=obj --disassemble --args -Om1 \
6 ; RUN: | FileCheck %s 6 ; RUN: | FileCheck %s
7 ; RUN: %p2i -i %s --filetype=obj --disassemble --args -O2 -mattr=sse4.1 \ 7 ; RUN: %p2i -i %s --filetype=obj --disassemble --args -O2 -mattr=sse4.1 \
8 ; RUN: | FileCheck %s 8 ; RUN: | FileCheck %s
9 ; RUN: %p2i -i %s --filetype=obj --disassemble --args -Om1 -mattr=sse4.1 \ 9 ; RUN: %p2i -i %s --filetype=obj --disassemble --args -Om1 -mattr=sse4.1 \
10 ; RUN: | FileCheck %s 10 ; RUN: | FileCheck %s
11 11
12 define i32 @undef_i32() { 12 define i32 @undef_i32() {
13 entry: 13 entry:
14 ret i32 undef 14 ret i32 undef
15 ; CHECK-LABEL: undef_i32 15 ; CHECK-LABEL: undef_i32
16 ; CHECK: mov eax,0x0 16 ; CHECK: mov eax,0x0
17 } 17 }
18 18
19 define i64 @undef_i64() { 19 define i64 @undef_i64() {
20 entry: 20 entry:
21 ret i64 undef 21 ret i64 undef
22 ; CHECK-LABEL: undef_i64 22 ; CHECK-LABEL: undef_i64
23 ; CHECK-DAG: mov eax,0x0 23 ; CHECK-DAG: mov eax,0x0
24 ; CHECK-DAG: mov edx,0x0 24 ; CHECK-DAG: mov edx,0x0
25 ; CHECK: ret 25 ; CHECK: ret
26 } 26 }
27 27
28 define i32 @trunc_undef_i64() {
29 entry:
30 %ret = trunc i64 undef to i32
31 ret i32 %ret
32 ; CHECK-LABEL: trunc_undef_i64
33 ; CHECK: mov eax,0x0
34 ; CHECK: ret
35 }
36
28 define float @undef_float() { 37 define float @undef_float() {
29 entry: 38 entry:
30 ret float undef 39 ret float undef
31 ; CHECK-LABEL: undef_float 40 ; CHECK-LABEL: undef_float
32 ; CHECK: fld DWORD PTR {{.*}} .L$float$0 41 ; CHECK: fld DWORD PTR {{.*}} .L$float$0
33 } 42 }
34 43
35 define <4 x i1> @undef_v4i1() { 44 define <4 x i1> @undef_v4i1() {
36 entry: 45 entry:
37 ret <4 x i1> undef 46 ret <4 x i1> undef
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after
274 ; CHECK: pxor 283 ; CHECK: pxor
275 } 284 }
276 285
277 define <4 x float> @vector_select_v4f32_arg2(<4 x i1> %cond, <4 x float> %a) { 286 define <4 x float> @vector_select_v4f32_arg2(<4 x i1> %cond, <4 x float> %a) {
278 entry: 287 entry:
279 %val = select <4 x i1> %cond, <4 x float> %a, <4 x float> undef 288 %val = select <4 x i1> %cond, <4 x float> %a, <4 x float> undef
280 ret <4 x float> %val 289 ret <4 x float> %val
281 ; CHECK-LABEL: vector_select_v4f32_arg2 290 ; CHECK-LABEL: vector_select_v4f32_arg2
282 ; CHECK: pxor 291 ; CHECK: pxor
283 } 292 }
OLDNEW
« no previous file with comments | « tests_lit/llvm2ice_tests/switch-opt.ll ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698