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

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: 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
« src/IceTargetLoweringX8632.cpp ('K') | « 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 registers.
2
3 ; RUN: %llvm2ice -O2 --verbose none %s | FileCheck %s
4 ; RUN: %llvm2ice --verbose none %s | FileCheck --check-prefix=OPTM1 %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 @return() {
Jim Stichnoth 2014/06/17 06:28:08 For both of these tests, add i64 and floating-poin
11 entry:
12 ; CHECK: return:
jvoung (off chromium) 2014/06/17 15:50:11 Should we start using CHECK-LABEL more? http://ll
Jim Stichnoth 2014/06/17 17:51:12 I agree - most of the tests lack this simply becau
13 ; OPTM1: return:
14 ret i32 undef
15 ; CHECK-NOT: mov eax, dword ptr {{.*}}
16 ; OPTM1-NOT: mov eax, dword ptr {{.*}}
17 ; CHECK: ret
18 ; OPTM1: ret
19 }
20
21 define i32 @arith(i32 %arg) {
22 entry:
23 ; CHECK: arith:
24 %__1 = add i32 undef, %arg
Jim Stichnoth 2014/06/17 06:28:08 I think it could be worthwhile to test undef as th
25 ; CHECK: add e{{[a-z]+}}, e{{[a-z]+}}
26 ret i32 %__1
27 ; CHECK: ret
28 }
jvoung (off chromium) 2014/06/17 15:50:11 Sometimes function call arguments are "undef". In
wala 2014/06/17 20:00:19 There are a number of cases that could be optimize
29
30 ; ERRORS-NOT: ICE translation error
31 ; DUMP-NOT: SZ
OLDNEW
« src/IceTargetLoweringX8632.cpp ('K') | « src/llvm2ice.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698