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

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

Issue 339783002: Add support for undef values in ICE IR. (Closed) Base URL: https://gerrit.chromium.org/gerrit/p/native_client/pnacl-subzero.git@master
Patch Set: Comment about uninitialized registers Created 6 years, 6 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 | « src/llvm2ice.cpp ('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
(Empty)
1 ; This test checks that undef values are represented as zero.
2
3 ; RUN: %llvm2ice --verbose none %s | FileCheck %s
4 ; RUN: %llvm2ice -O2 --verbose none %s | FileCheck %s
5 ; RUN: %llvm2ice --verbose none %s | FileCheck --check-prefix=ERRORS %s
6 ; RUN: %llvm2iceinsts %s | %szdiff %s | FileCheck --check-prefix=DUMP %s
7 ; RUN: %llvm2iceinsts --pnacl %s | %szdiff %s \
8 ; RUN: | FileCheck --check-prefix=DUMP %s
9
10 define i32 @undefi32() {
11 entry:
12 ; CHECK-LABEL: undefi32:
13 ret i32 undef
14 ; CHECK: mov eax, 0
15 ; CHECK: ret
16 }
17
18 define i64 @undefi64() {
19 entry:
20 ; CHECK-LABEL: undefi64:
21 ret i64 undef
22 ; CHECK-DAG: mov eax, 0
23 ; CHECK-DAG: mov edx, 0
24 ; CHECK: ret
25 }
26
27 define float @undeffloat() {
28 entry:
29 ; CHECK-LABEL: undeffloat:
30 ret float undef
31 ; CHECK-NOT: sub esp
32 ; CHECK: fld
33 ; CHECK: ret
34 }
35
36 ; ERRORS-NOT: ICE translation error
37 ; DUMP-NOT: SZ
OLDNEW
« no previous file with comments | « src/llvm2ice.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698