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