OLD | NEW |
---|---|
(Empty) | |
1 ; Checks if llvm bitcode defines a struct type before the pointer type, | |
2 ; even if the struct definintion appears after the pointer type, while | |
3 ; pnacl bitcode moves the pointer before the struct. | |
4 ; RUN: llvm-as < %s | llvm-bcanalyzer -dump | FileCheck %s -check-prefix=LLVM | |
5 ; RUN: llvm-as < %s | pnacl-freeze | pnacl-bcanalyzer -dump | FileCheck %s -chec k-prefix=PNACL | |
6 | |
7 %1 = type %0* | |
8 %0 = type {i8} | |
jvoung (off chromium)
2013/05/15 21:01:36
How come %0 isn't on line 7 and %1 on line 8?
I g
Karl
2013/05/20 21:48:51
I created a more complicated example. Hope this is
| |
9 ; LLVM: <TYPE_BLOCK_ID {{.*}}> | |
10 ; LLVM: <STRUCT_NAMED {{.*}}/> | |
11 ; LLVM: <POINTER {{.*}}/> | |
12 ; LLVM: </TYPE_BLOCK_ID> | |
13 | |
14 ; PNACL: <TYPE_BLOCK_ID {{.*}}> | |
15 ; PNACL: <POINTER {{.*}}/> | |
16 ; PNACL: <STRUCT_NAMED {{.*}}/> | |
17 ; PNACL: </TYPE_BLOCK_ID> | |
18 | |
19 define %1 @foo(%1 %a) | |
20 { | |
21 ret %1 %a; | |
22 } | |
23 | |
24 define %1 @bar(%1 %b) | |
25 { | |
26 ret %1 %b; | |
27 } | |
OLD | NEW |