OLD | NEW |
---|---|
(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 | |
OLD | NEW |