1; RUN: llvm-as < %s | llvm-dis -disable-output
2	%0 = type { %object.ModuleInfo.__vtbl*, i8*, %"byte[]", %1, %"ClassInfo[]", i32, void ()*, void ()*, void ()*, i8*, void ()* }		; type %0
3	%1 = type { i64, %object.ModuleInfo* }		; type %1
4	%2 = type { i32, void ()* }		; type %2
5	%"ClassInfo[]" = type { i64, %object.ClassInfo** }
6	%"Interface[]" = type { i64, %object.Interface* }
7	%"ModuleInfo[]" = type { i64, %object.ModuleInfo** }
8	%ModuleReference = type { %ModuleReference*, %object.ModuleInfo* }
9	%"OffsetTypeInfo[]" = type { i64, %object.OffsetTypeInfo* }
10	%"byte[]" = type { i64, i8* }
11	%object.ClassInfo = type { %object.ClassInfo.__vtbl*, i8*, %"byte[]", %"byte[]", %"void*[]", %"Interface[]", %object.ClassInfo*, i8*, i8*, i32, i8*, %"OffsetTypeInfo[]", i8*, %object.TypeInfo* }
12	%object.ClassInfo.__vtbl = type { %object.ClassInfo*, %"byte[]" (%object.Object*)*, i64 (%object.Object*)*, i32 (%object.Object*, %object.Object*)*, i32 (%object.Object*, %object.Object*)*, %object.Object* (%object.ClassInfo*)* }
13	%object.Interface = type { %object.ClassInfo*, %"void*[]", i64 }
14	%object.ModuleInfo = type { %object.ModuleInfo.__vtbl*, i8*, %"byte[]", %"ModuleInfo[]", %"ClassInfo[]", i32, void ()*, void ()*, void ()*, i8*, void ()* }
15	%object.ModuleInfo.__vtbl = type { %object.ClassInfo*, %"byte[]" (%object.Object*)*, i64 (%object.Object*)*, i32 (%object.Object*, %object.Object*)*, i32 (%object.Object*, %object.Object*)* }
16	%object.Object = type { %object.ModuleInfo.__vtbl*, i8* }
17	%object.OffsetTypeInfo = type { i64, %object.TypeInfo* }
18	%object.TypeInfo = type { %object.TypeInfo.__vtbl*, i8* }
19	%object.TypeInfo.__vtbl = type { %object.ClassInfo*, %"byte[]" (%object.Object*)*, i64 (%object.Object*)*, i32 (%object.Object*, %object.Object*)*, i32 (%object.Object*, %object.Object*)*, i64 (%object.TypeInfo*, i8*)*, i32 (%object.TypeInfo*, i8*, i8*)*, i32 (%object.TypeInfo*, i8*, i8*)*, i64 (%object.TypeInfo*)*, void (%object.TypeInfo*, i8*, i8*)*, %object.TypeInfo* (%object.TypeInfo*)*, %"byte[]" (%object.TypeInfo*)*, i32 (%object.TypeInfo*)*, %"OffsetTypeInfo[]" (%object.TypeInfo*)* }
20	%"void*[]" = type { i64, i8** }
21@_D10ModuleInfo6__vtblZ = external constant %object.ModuleInfo.__vtbl		; <%object.ModuleInfo.__vtbl*> [#uses=1]
22@.str = internal constant [20 x i8] c"tango.core.BitManip\00"		; <[20 x i8]*> [#uses=1]
23@_D5tango4core8BitManip8__ModuleZ = global %0 { %object.ModuleInfo.__vtbl* @_D10ModuleInfo6__vtblZ, i8* null, %"byte[]" { i64 19, i8* getelementptr ([20 x i8]* @.str, i32 0, i32 0) }, %1 zeroinitializer, %"ClassInfo[]" zeroinitializer, i32 4, void ()* null, void ()* null, void ()* null, i8* null, void ()* null }		; <%0*> [#uses=1]
24@_D5tango4core8BitManip11__moduleRefZ = internal global %ModuleReference { %ModuleReference* null, %object.ModuleInfo* bitcast (%0* @_D5tango4core8BitManip8__ModuleZ to %object.ModuleInfo*) }		; <%ModuleReference*> [#uses=2]
25@_Dmodule_ref = external global %ModuleReference*		; <%ModuleReference**> [#uses=2]
26@llvm.global_ctors = appending constant [1 x %2] [%2 { i32 65535, void ()* @_D5tango4core8BitManip16__moduleinfoCtorZ }]		; <[1 x %2]*> [#uses=0]
27
28define fastcc i32 @_D5tango4core8BitManip6popcntFkZi(i32 %x_arg) nounwind readnone {
29entry:
30	%tmp1 = lshr i32 %x_arg, 1		; <i32> [#uses=1]
31	%tmp2 = and i32 %tmp1, 1431655765		; <i32> [#uses=1]
32	%tmp4 = sub i32 %x_arg, %tmp2		; <i32> [#uses=2]
33	%tmp6 = lshr i32 %tmp4, 2		; <i32> [#uses=1]
34	%tmp7 = and i32 %tmp6, 858993459		; <i32> [#uses=1]
35	%tmp9 = and i32 %tmp4, 858993459		; <i32> [#uses=1]
36	%tmp10 = add i32 %tmp7, %tmp9		; <i32> [#uses=2]
37	%tmp12 = lshr i32 %tmp10, 4		; <i32> [#uses=1]
38	%tmp14 = add i32 %tmp12, %tmp10		; <i32> [#uses=1]
39	%tmp16 = and i32 %tmp14, 252645135		; <i32> [#uses=2]
40	%tmp18 = lshr i32 %tmp16, 8		; <i32> [#uses=1]
41	%tmp20 = add i32 %tmp18, %tmp16		; <i32> [#uses=1]
42	%tmp22 = and i32 %tmp20, 16711935		; <i32> [#uses=2]
43	%tmp24 = lshr i32 %tmp22, 16		; <i32> [#uses=1]
44	%tmp26 = add i32 %tmp24, %tmp22		; <i32> [#uses=1]
45	%tmp28 = and i32 %tmp26, 65535		; <i32> [#uses=1]
46	ret i32 %tmp28
47}
48
49define fastcc i32 @_D5tango4core8BitManip7bitswapFkZk(i32 %x_arg) nounwind readnone {
50entry:
51	%tmp1 = lshr i32 %x_arg, 1		; <i32> [#uses=1]
52	%tmp2 = and i32 %tmp1, 1431655765		; <i32> [#uses=1]
53	%tmp4 = shl i32 %x_arg, 1		; <i32> [#uses=1]
54	%tmp5 = and i32 %tmp4, -1431655766		; <i32> [#uses=1]
55	%tmp6 = or i32 %tmp2, %tmp5		; <i32> [#uses=2]
56	%tmp8 = lshr i32 %tmp6, 2		; <i32> [#uses=1]
57	%tmp9 = and i32 %tmp8, 858993459		; <i32> [#uses=1]
58	%tmp11 = shl i32 %tmp6, 2		; <i32> [#uses=1]
59	%tmp12 = and i32 %tmp11, -858993460		; <i32> [#uses=1]
60	%tmp13 = or i32 %tmp9, %tmp12		; <i32> [#uses=2]
61	%tmp15 = lshr i32 %tmp13, 4		; <i32> [#uses=1]
62	%tmp16 = and i32 %tmp15, 252645135		; <i32> [#uses=1]
63	%tmp18 = shl i32 %tmp13, 4		; <i32> [#uses=1]
64	%tmp19 = and i32 %tmp18, -252645136		; <i32> [#uses=1]
65	%tmp20 = or i32 %tmp16, %tmp19		; <i32> [#uses=2]
66	%tmp22 = lshr i32 %tmp20, 8		; <i32> [#uses=1]
67	%tmp23 = and i32 %tmp22, 16711935		; <i32> [#uses=1]
68	%tmp25 = shl i32 %tmp20, 8		; <i32> [#uses=1]
69	%tmp26 = and i32 %tmp25, -16711936		; <i32> [#uses=1]
70	%tmp27 = or i32 %tmp23, %tmp26		; <i32> [#uses=2]
71	%tmp29 = lshr i32 %tmp27, 16		; <i32> [#uses=1]
72	%tmp31 = shl i32 %tmp27, 16		; <i32> [#uses=1]
73	%tmp32 = or i32 %tmp29, %tmp31		; <i32> [#uses=1]
74	ret i32 %tmp32
75}
76
77define internal void @_D5tango4core8BitManip16__moduleinfoCtorZ() nounwind {
78moduleinfoCtorEntry:
79	%current = load %ModuleReference** @_Dmodule_ref		; <%ModuleReference*> [#uses=1]
80	store %ModuleReference* %current, %ModuleReference** getelementptr (%ModuleReference* @_D5tango4core8BitManip11__moduleRefZ, i32 0, i32 0)
81	store %ModuleReference* @_D5tango4core8BitManip11__moduleRefZ, %ModuleReference** @_Dmodule_ref
82	ret void
83}
84!llvm.ldc.classinfo._D6Object7__ClassZ = !{!0}
85!llvm.ldc.classinfo._D10ModuleInfo7__ClassZ = !{!1}
86!0 = metadata !{%object.Object undef, i1 false, i1 false}
87!1 = metadata !{%object.ModuleInfo undef, i1 false, i1 false}
88