comparison test/Assembler/named-metadata.ll @ 0:95c75e76d11b LLVM3.4

LLVM 3.4
author Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
date Thu, 12 Dec 2013 13:56:28 +0900
parents
children 54457678186b
comparison
equal deleted inserted replaced
-1:000000000000 0:95c75e76d11b
1 ; RUN: llvm-as < %s | llvm-dis | FileCheck %s
2
3 !0 = metadata !{metadata !"zero"}
4 !1 = metadata !{metadata !"one"}
5 !2 = metadata !{metadata !"two"}
6
7 !foo = !{!0, !1, !2}
8 ; CHECK: !foo = !{!0, !1, !2}
9
10 !\23pragma = !{!0, !1, !2}
11 ; CHECK: !\23pragma = !{!0, !1, !2}
12
13 ; \31 is the digit '1'. On emission, we escape the first character (to avoid
14 ; conflicting with anonymous metadata), but not the subsequent ones.
15 !\31\31\31 = !{!0, !1, !2}
16 ; CHECK: !\3111 = !{!0, !1, !2}
17
18 !\22name\22 = !{!0, !1, !2}
19 ; CHECK: !\22name\22 = !{!0, !1, !2}
20
21 ; \x doesn't mean anything, so we parse it literally but escape the \ into \5C
22 ; when emitting it, followed by xfoo.
23 !\xfoo = !{!0, !1, !2}
24 ; CHECK: !\5Cxfoo = !{!0, !1, !2}