|
|
@@ -65,109 +65,109 @@ fn TestGreaterEq(a: u64, b: u64) -> bool { return GreaterEq(a, b); }
|
|
|
// CHECK:STDOUT: ; ModuleID = 'uint.carbon'
|
|
|
// CHECK:STDOUT: source_filename = "uint.carbon"
|
|
|
// CHECK:STDOUT:
|
|
|
-// CHECK:STDOUT: define i64 @TestNegate(i64 %a) !dbg !4 {
|
|
|
+// CHECK:STDOUT: define i64 @_CTestNegate.Main(i64 %a) !dbg !4 {
|
|
|
// CHECK:STDOUT: entry:
|
|
|
// CHECK:STDOUT: %int.unegate = sub i64 0, %a, !dbg !7
|
|
|
// CHECK:STDOUT: ret i64 %int.unegate, !dbg !8
|
|
|
// CHECK:STDOUT: }
|
|
|
// CHECK:STDOUT:
|
|
|
-// CHECK:STDOUT: define i64 @TestAdd(i64 %a, i64 %b) !dbg !9 {
|
|
|
+// CHECK:STDOUT: define i64 @_CTestAdd.Main(i64 %a, i64 %b) !dbg !9 {
|
|
|
// CHECK:STDOUT: entry:
|
|
|
// CHECK:STDOUT: %int.uadd = add i64 %a, %b, !dbg !10
|
|
|
// CHECK:STDOUT: ret i64 %int.uadd, !dbg !11
|
|
|
// CHECK:STDOUT: }
|
|
|
// CHECK:STDOUT:
|
|
|
-// CHECK:STDOUT: define i64 @TestSub(i64 %a, i64 %b) !dbg !12 {
|
|
|
+// CHECK:STDOUT: define i64 @_CTestSub.Main(i64 %a, i64 %b) !dbg !12 {
|
|
|
// CHECK:STDOUT: entry:
|
|
|
// CHECK:STDOUT: %int.usub = sub i64 %a, %b, !dbg !13
|
|
|
// CHECK:STDOUT: ret i64 %int.usub, !dbg !14
|
|
|
// CHECK:STDOUT: }
|
|
|
// CHECK:STDOUT:
|
|
|
-// CHECK:STDOUT: define i64 @TestMul(i64 %a, i64 %b) !dbg !15 {
|
|
|
+// CHECK:STDOUT: define i64 @_CTestMul.Main(i64 %a, i64 %b) !dbg !15 {
|
|
|
// CHECK:STDOUT: entry:
|
|
|
// CHECK:STDOUT: %int.umul = mul i64 %a, %b, !dbg !16
|
|
|
// CHECK:STDOUT: ret i64 %int.umul, !dbg !17
|
|
|
// CHECK:STDOUT: }
|
|
|
// CHECK:STDOUT:
|
|
|
-// CHECK:STDOUT: define i64 @TestDiv(i64 %a, i64 %b) !dbg !18 {
|
|
|
+// CHECK:STDOUT: define i64 @_CTestDiv.Main(i64 %a, i64 %b) !dbg !18 {
|
|
|
// CHECK:STDOUT: entry:
|
|
|
// CHECK:STDOUT: %int.udiv = udiv i64 %a, %b, !dbg !19
|
|
|
// CHECK:STDOUT: ret i64 %int.udiv, !dbg !20
|
|
|
// CHECK:STDOUT: }
|
|
|
// CHECK:STDOUT:
|
|
|
-// CHECK:STDOUT: define i64 @TestMod(i64 %a, i64 %b) !dbg !21 {
|
|
|
+// CHECK:STDOUT: define i64 @_CTestMod.Main(i64 %a, i64 %b) !dbg !21 {
|
|
|
// CHECK:STDOUT: entry:
|
|
|
// CHECK:STDOUT: %int.umod = urem i64 %a, %b, !dbg !22
|
|
|
// CHECK:STDOUT: ret i64 %int.umod, !dbg !23
|
|
|
// CHECK:STDOUT: }
|
|
|
// CHECK:STDOUT:
|
|
|
-// CHECK:STDOUT: define i64 @TestComplement(i64 %a) !dbg !24 {
|
|
|
+// CHECK:STDOUT: define i64 @_CTestComplement.Main(i64 %a) !dbg !24 {
|
|
|
// CHECK:STDOUT: entry:
|
|
|
// CHECK:STDOUT: %int.complement = xor i64 -1, %a, !dbg !25
|
|
|
// CHECK:STDOUT: ret i64 %int.complement, !dbg !26
|
|
|
// CHECK:STDOUT: }
|
|
|
// CHECK:STDOUT:
|
|
|
-// CHECK:STDOUT: define i64 @TestAnd(i64 %a, i64 %b) !dbg !27 {
|
|
|
+// CHECK:STDOUT: define i64 @_CTestAnd.Main(i64 %a, i64 %b) !dbg !27 {
|
|
|
// CHECK:STDOUT: entry:
|
|
|
// CHECK:STDOUT: %int.and = and i64 %a, %b, !dbg !28
|
|
|
// CHECK:STDOUT: ret i64 %int.and, !dbg !29
|
|
|
// CHECK:STDOUT: }
|
|
|
// CHECK:STDOUT:
|
|
|
-// CHECK:STDOUT: define i64 @TestOr(i64 %a, i64 %b) !dbg !30 {
|
|
|
+// CHECK:STDOUT: define i64 @_CTestOr.Main(i64 %a, i64 %b) !dbg !30 {
|
|
|
// CHECK:STDOUT: entry:
|
|
|
// CHECK:STDOUT: %int.or = or i64 %a, %b, !dbg !31
|
|
|
// CHECK:STDOUT: ret i64 %int.or, !dbg !32
|
|
|
// CHECK:STDOUT: }
|
|
|
// CHECK:STDOUT:
|
|
|
-// CHECK:STDOUT: define i64 @TestXor(i64 %a, i64 %b) !dbg !33 {
|
|
|
+// CHECK:STDOUT: define i64 @_CTestXor.Main(i64 %a, i64 %b) !dbg !33 {
|
|
|
// CHECK:STDOUT: entry:
|
|
|
// CHECK:STDOUT: %int.xor = xor i64 %a, %b, !dbg !34
|
|
|
// CHECK:STDOUT: ret i64 %int.xor, !dbg !35
|
|
|
// CHECK:STDOUT: }
|
|
|
// CHECK:STDOUT:
|
|
|
-// CHECK:STDOUT: define i64 @TestLeftShift(i64 %a, i64 %b) !dbg !36 {
|
|
|
+// CHECK:STDOUT: define i64 @_CTestLeftShift.Main(i64 %a, i64 %b) !dbg !36 {
|
|
|
// CHECK:STDOUT: entry:
|
|
|
// CHECK:STDOUT: %int.left_shift = shl i64 %a, %b, !dbg !37
|
|
|
// CHECK:STDOUT: ret i64 %int.left_shift, !dbg !38
|
|
|
// CHECK:STDOUT: }
|
|
|
// CHECK:STDOUT:
|
|
|
-// CHECK:STDOUT: define i64 @TestRightShift(i64 %a, i64 %b) !dbg !39 {
|
|
|
+// CHECK:STDOUT: define i64 @_CTestRightShift.Main(i64 %a, i64 %b) !dbg !39 {
|
|
|
// CHECK:STDOUT: entry:
|
|
|
// CHECK:STDOUT: %int.right_shift = lshr i64 %a, %b, !dbg !40
|
|
|
// CHECK:STDOUT: ret i64 %int.right_shift, !dbg !41
|
|
|
// CHECK:STDOUT: }
|
|
|
// CHECK:STDOUT:
|
|
|
-// CHECK:STDOUT: define i1 @TestEq(i64 %a, i64 %b) !dbg !42 {
|
|
|
+// CHECK:STDOUT: define i1 @_CTestEq.Main(i64 %a, i64 %b) !dbg !42 {
|
|
|
// CHECK:STDOUT: entry:
|
|
|
// CHECK:STDOUT: %int.eq = icmp eq i64 %a, %b, !dbg !43
|
|
|
// CHECK:STDOUT: ret i1 %int.eq, !dbg !44
|
|
|
// CHECK:STDOUT: }
|
|
|
// CHECK:STDOUT:
|
|
|
-// CHECK:STDOUT: define i1 @TestNeq(i64 %a, i64 %b) !dbg !45 {
|
|
|
+// CHECK:STDOUT: define i1 @_CTestNeq.Main(i64 %a, i64 %b) !dbg !45 {
|
|
|
// CHECK:STDOUT: entry:
|
|
|
// CHECK:STDOUT: %int.neq = icmp ne i64 %a, %b, !dbg !46
|
|
|
// CHECK:STDOUT: ret i1 %int.neq, !dbg !47
|
|
|
// CHECK:STDOUT: }
|
|
|
// CHECK:STDOUT:
|
|
|
-// CHECK:STDOUT: define i1 @TestLess(i64 %a, i64 %b) !dbg !48 {
|
|
|
+// CHECK:STDOUT: define i1 @_CTestLess.Main(i64 %a, i64 %b) !dbg !48 {
|
|
|
// CHECK:STDOUT: entry:
|
|
|
// CHECK:STDOUT: %int.less = icmp ult i64 %a, %b, !dbg !49
|
|
|
// CHECK:STDOUT: ret i1 %int.less, !dbg !50
|
|
|
// CHECK:STDOUT: }
|
|
|
// CHECK:STDOUT:
|
|
|
-// CHECK:STDOUT: define i1 @TestLessEq(i64 %a, i64 %b) !dbg !51 {
|
|
|
+// CHECK:STDOUT: define i1 @_CTestLessEq.Main(i64 %a, i64 %b) !dbg !51 {
|
|
|
// CHECK:STDOUT: entry:
|
|
|
// CHECK:STDOUT: %int.less_eq = icmp ule i64 %a, %b, !dbg !52
|
|
|
// CHECK:STDOUT: ret i1 %int.less_eq, !dbg !53
|
|
|
// CHECK:STDOUT: }
|
|
|
// CHECK:STDOUT:
|
|
|
-// CHECK:STDOUT: define i1 @TestGreater(i64 %a, i64 %b) !dbg !54 {
|
|
|
+// CHECK:STDOUT: define i1 @_CTestGreater.Main(i64 %a, i64 %b) !dbg !54 {
|
|
|
// CHECK:STDOUT: entry:
|
|
|
// CHECK:STDOUT: %int.greater = icmp ugt i64 %a, %b, !dbg !55
|
|
|
// CHECK:STDOUT: ret i1 %int.greater, !dbg !56
|
|
|
// CHECK:STDOUT: }
|
|
|
// CHECK:STDOUT:
|
|
|
-// CHECK:STDOUT: define i1 @TestGreaterEq(i64 %a, i64 %b) !dbg !57 {
|
|
|
+// CHECK:STDOUT: define i1 @_CTestGreaterEq.Main(i64 %a, i64 %b) !dbg !57 {
|
|
|
// CHECK:STDOUT: entry:
|
|
|
// CHECK:STDOUT: %int.greater_eq = icmp uge i64 %a, %b, !dbg !58
|
|
|
// CHECK:STDOUT: ret i1 %int.greater_eq, !dbg !59
|
|
|
@@ -180,59 +180,59 @@ fn TestGreaterEq(a: u64, b: u64) -> bool { return GreaterEq(a, b); }
|
|
|
// CHECK:STDOUT: !1 = !{i32 2, !"Debug Info Version", i32 3}
|
|
|
// CHECK:STDOUT: !2 = distinct !DICompileUnit(language: DW_LANG_C, file: !3, producer: "carbon", isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug)
|
|
|
// CHECK:STDOUT: !3 = !DIFile(filename: "uint.carbon", directory: "")
|
|
|
-// CHECK:STDOUT: !4 = distinct !DISubprogram(name: "TestNegate", linkageName: "TestNegate", scope: null, file: !3, line: 12, type: !5, spFlags: DISPFlagDefinition, unit: !2)
|
|
|
+// CHECK:STDOUT: !4 = distinct !DISubprogram(name: "TestNegate", linkageName: "_CTestNegate.Main", scope: null, file: !3, line: 12, type: !5, spFlags: DISPFlagDefinition, unit: !2)
|
|
|
// CHECK:STDOUT: !5 = !DISubroutineType(types: !6)
|
|
|
// CHECK:STDOUT: !6 = !{}
|
|
|
// CHECK:STDOUT: !7 = !DILocation(line: 12, column: 39, scope: !4)
|
|
|
// CHECK:STDOUT: !8 = !DILocation(line: 12, column: 32, scope: !4)
|
|
|
-// CHECK:STDOUT: !9 = distinct !DISubprogram(name: "TestAdd", linkageName: "TestAdd", scope: null, file: !3, line: 15, type: !5, spFlags: DISPFlagDefinition, unit: !2)
|
|
|
+// CHECK:STDOUT: !9 = distinct !DISubprogram(name: "TestAdd", linkageName: "_CTestAdd.Main", scope: null, file: !3, line: 15, type: !5, spFlags: DISPFlagDefinition, unit: !2)
|
|
|
// CHECK:STDOUT: !10 = !DILocation(line: 15, column: 44, scope: !9)
|
|
|
// CHECK:STDOUT: !11 = !DILocation(line: 15, column: 37, scope: !9)
|
|
|
-// CHECK:STDOUT: !12 = distinct !DISubprogram(name: "TestSub", linkageName: "TestSub", scope: null, file: !3, line: 18, type: !5, spFlags: DISPFlagDefinition, unit: !2)
|
|
|
+// CHECK:STDOUT: !12 = distinct !DISubprogram(name: "TestSub", linkageName: "_CTestSub.Main", scope: null, file: !3, line: 18, type: !5, spFlags: DISPFlagDefinition, unit: !2)
|
|
|
// CHECK:STDOUT: !13 = !DILocation(line: 18, column: 44, scope: !12)
|
|
|
// CHECK:STDOUT: !14 = !DILocation(line: 18, column: 37, scope: !12)
|
|
|
-// CHECK:STDOUT: !15 = distinct !DISubprogram(name: "TestMul", linkageName: "TestMul", scope: null, file: !3, line: 21, type: !5, spFlags: DISPFlagDefinition, unit: !2)
|
|
|
+// CHECK:STDOUT: !15 = distinct !DISubprogram(name: "TestMul", linkageName: "_CTestMul.Main", scope: null, file: !3, line: 21, type: !5, spFlags: DISPFlagDefinition, unit: !2)
|
|
|
// CHECK:STDOUT: !16 = !DILocation(line: 21, column: 44, scope: !15)
|
|
|
// CHECK:STDOUT: !17 = !DILocation(line: 21, column: 37, scope: !15)
|
|
|
-// CHECK:STDOUT: !18 = distinct !DISubprogram(name: "TestDiv", linkageName: "TestDiv", scope: null, file: !3, line: 24, type: !5, spFlags: DISPFlagDefinition, unit: !2)
|
|
|
+// CHECK:STDOUT: !18 = distinct !DISubprogram(name: "TestDiv", linkageName: "_CTestDiv.Main", scope: null, file: !3, line: 24, type: !5, spFlags: DISPFlagDefinition, unit: !2)
|
|
|
// CHECK:STDOUT: !19 = !DILocation(line: 24, column: 44, scope: !18)
|
|
|
// CHECK:STDOUT: !20 = !DILocation(line: 24, column: 37, scope: !18)
|
|
|
-// CHECK:STDOUT: !21 = distinct !DISubprogram(name: "TestMod", linkageName: "TestMod", scope: null, file: !3, line: 27, type: !5, spFlags: DISPFlagDefinition, unit: !2)
|
|
|
+// CHECK:STDOUT: !21 = distinct !DISubprogram(name: "TestMod", linkageName: "_CTestMod.Main", scope: null, file: !3, line: 27, type: !5, spFlags: DISPFlagDefinition, unit: !2)
|
|
|
// CHECK:STDOUT: !22 = !DILocation(line: 27, column: 44, scope: !21)
|
|
|
// CHECK:STDOUT: !23 = !DILocation(line: 27, column: 37, scope: !21)
|
|
|
-// CHECK:STDOUT: !24 = distinct !DISubprogram(name: "TestComplement", linkageName: "TestComplement", scope: null, file: !3, line: 30, type: !5, spFlags: DISPFlagDefinition, unit: !2)
|
|
|
+// CHECK:STDOUT: !24 = distinct !DISubprogram(name: "TestComplement", linkageName: "_CTestComplement.Main", scope: null, file: !3, line: 30, type: !5, spFlags: DISPFlagDefinition, unit: !2)
|
|
|
// CHECK:STDOUT: !25 = !DILocation(line: 30, column: 43, scope: !24)
|
|
|
// CHECK:STDOUT: !26 = !DILocation(line: 30, column: 36, scope: !24)
|
|
|
-// CHECK:STDOUT: !27 = distinct !DISubprogram(name: "TestAnd", linkageName: "TestAnd", scope: null, file: !3, line: 33, type: !5, spFlags: DISPFlagDefinition, unit: !2)
|
|
|
+// CHECK:STDOUT: !27 = distinct !DISubprogram(name: "TestAnd", linkageName: "_CTestAnd.Main", scope: null, file: !3, line: 33, type: !5, spFlags: DISPFlagDefinition, unit: !2)
|
|
|
// CHECK:STDOUT: !28 = !DILocation(line: 33, column: 44, scope: !27)
|
|
|
// CHECK:STDOUT: !29 = !DILocation(line: 33, column: 37, scope: !27)
|
|
|
-// CHECK:STDOUT: !30 = distinct !DISubprogram(name: "TestOr", linkageName: "TestOr", scope: null, file: !3, line: 36, type: !5, spFlags: DISPFlagDefinition, unit: !2)
|
|
|
+// CHECK:STDOUT: !30 = distinct !DISubprogram(name: "TestOr", linkageName: "_CTestOr.Main", scope: null, file: !3, line: 36, type: !5, spFlags: DISPFlagDefinition, unit: !2)
|
|
|
// CHECK:STDOUT: !31 = !DILocation(line: 36, column: 43, scope: !30)
|
|
|
// CHECK:STDOUT: !32 = !DILocation(line: 36, column: 36, scope: !30)
|
|
|
-// CHECK:STDOUT: !33 = distinct !DISubprogram(name: "TestXor", linkageName: "TestXor", scope: null, file: !3, line: 39, type: !5, spFlags: DISPFlagDefinition, unit: !2)
|
|
|
+// CHECK:STDOUT: !33 = distinct !DISubprogram(name: "TestXor", linkageName: "_CTestXor.Main", scope: null, file: !3, line: 39, type: !5, spFlags: DISPFlagDefinition, unit: !2)
|
|
|
// CHECK:STDOUT: !34 = !DILocation(line: 39, column: 44, scope: !33)
|
|
|
// CHECK:STDOUT: !35 = !DILocation(line: 39, column: 37, scope: !33)
|
|
|
-// CHECK:STDOUT: !36 = distinct !DISubprogram(name: "TestLeftShift", linkageName: "TestLeftShift", scope: null, file: !3, line: 42, type: !5, spFlags: DISPFlagDefinition, unit: !2)
|
|
|
+// CHECK:STDOUT: !36 = distinct !DISubprogram(name: "TestLeftShift", linkageName: "_CTestLeftShift.Main", scope: null, file: !3, line: 42, type: !5, spFlags: DISPFlagDefinition, unit: !2)
|
|
|
// CHECK:STDOUT: !37 = !DILocation(line: 42, column: 50, scope: !36)
|
|
|
// CHECK:STDOUT: !38 = !DILocation(line: 42, column: 43, scope: !36)
|
|
|
-// CHECK:STDOUT: !39 = distinct !DISubprogram(name: "TestRightShift", linkageName: "TestRightShift", scope: null, file: !3, line: 45, type: !5, spFlags: DISPFlagDefinition, unit: !2)
|
|
|
+// CHECK:STDOUT: !39 = distinct !DISubprogram(name: "TestRightShift", linkageName: "_CTestRightShift.Main", scope: null, file: !3, line: 45, type: !5, spFlags: DISPFlagDefinition, unit: !2)
|
|
|
// CHECK:STDOUT: !40 = !DILocation(line: 45, column: 51, scope: !39)
|
|
|
// CHECK:STDOUT: !41 = !DILocation(line: 45, column: 44, scope: !39)
|
|
|
-// CHECK:STDOUT: !42 = distinct !DISubprogram(name: "TestEq", linkageName: "TestEq", scope: null, file: !3, line: 48, type: !5, spFlags: DISPFlagDefinition, unit: !2)
|
|
|
+// CHECK:STDOUT: !42 = distinct !DISubprogram(name: "TestEq", linkageName: "_CTestEq.Main", scope: null, file: !3, line: 48, type: !5, spFlags: DISPFlagDefinition, unit: !2)
|
|
|
// CHECK:STDOUT: !43 = !DILocation(line: 48, column: 44, scope: !42)
|
|
|
// CHECK:STDOUT: !44 = !DILocation(line: 48, column: 37, scope: !42)
|
|
|
-// CHECK:STDOUT: !45 = distinct !DISubprogram(name: "TestNeq", linkageName: "TestNeq", scope: null, file: !3, line: 51, type: !5, spFlags: DISPFlagDefinition, unit: !2)
|
|
|
+// CHECK:STDOUT: !45 = distinct !DISubprogram(name: "TestNeq", linkageName: "_CTestNeq.Main", scope: null, file: !3, line: 51, type: !5, spFlags: DISPFlagDefinition, unit: !2)
|
|
|
// CHECK:STDOUT: !46 = !DILocation(line: 51, column: 45, scope: !45)
|
|
|
// CHECK:STDOUT: !47 = !DILocation(line: 51, column: 38, scope: !45)
|
|
|
-// CHECK:STDOUT: !48 = distinct !DISubprogram(name: "TestLess", linkageName: "TestLess", scope: null, file: !3, line: 54, type: !5, spFlags: DISPFlagDefinition, unit: !2)
|
|
|
+// CHECK:STDOUT: !48 = distinct !DISubprogram(name: "TestLess", linkageName: "_CTestLess.Main", scope: null, file: !3, line: 54, type: !5, spFlags: DISPFlagDefinition, unit: !2)
|
|
|
// CHECK:STDOUT: !49 = !DILocation(line: 54, column: 46, scope: !48)
|
|
|
// CHECK:STDOUT: !50 = !DILocation(line: 54, column: 39, scope: !48)
|
|
|
-// CHECK:STDOUT: !51 = distinct !DISubprogram(name: "TestLessEq", linkageName: "TestLessEq", scope: null, file: !3, line: 57, type: !5, spFlags: DISPFlagDefinition, unit: !2)
|
|
|
+// CHECK:STDOUT: !51 = distinct !DISubprogram(name: "TestLessEq", linkageName: "_CTestLessEq.Main", scope: null, file: !3, line: 57, type: !5, spFlags: DISPFlagDefinition, unit: !2)
|
|
|
// CHECK:STDOUT: !52 = !DILocation(line: 57, column: 48, scope: !51)
|
|
|
// CHECK:STDOUT: !53 = !DILocation(line: 57, column: 41, scope: !51)
|
|
|
-// CHECK:STDOUT: !54 = distinct !DISubprogram(name: "TestGreater", linkageName: "TestGreater", scope: null, file: !3, line: 60, type: !5, spFlags: DISPFlagDefinition, unit: !2)
|
|
|
+// CHECK:STDOUT: !54 = distinct !DISubprogram(name: "TestGreater", linkageName: "_CTestGreater.Main", scope: null, file: !3, line: 60, type: !5, spFlags: DISPFlagDefinition, unit: !2)
|
|
|
// CHECK:STDOUT: !55 = !DILocation(line: 60, column: 49, scope: !54)
|
|
|
// CHECK:STDOUT: !56 = !DILocation(line: 60, column: 42, scope: !54)
|
|
|
-// CHECK:STDOUT: !57 = distinct !DISubprogram(name: "TestGreaterEq", linkageName: "TestGreaterEq", scope: null, file: !3, line: 63, type: !5, spFlags: DISPFlagDefinition, unit: !2)
|
|
|
+// CHECK:STDOUT: !57 = distinct !DISubprogram(name: "TestGreaterEq", linkageName: "_CTestGreaterEq.Main", scope: null, file: !3, line: 63, type: !5, spFlags: DISPFlagDefinition, unit: !2)
|
|
|
// CHECK:STDOUT: !58 = !DILocation(line: 63, column: 51, scope: !57)
|
|
|
// CHECK:STDOUT: !59 = !DILocation(line: 63, column: 44, scope: !57)
|