From 916675a462408c9cdfc309f3bdbf1f46528d97c0 Mon Sep 17 00:00:00 2001 From: Wodann Date: Thu, 7 May 2020 12:45:57 +0200 Subject: [PATCH] misc(codegen): remove old snapshots --- .../snapshots/test__arithmetic_op_float.snap | 53 ---------------- .../test__arithmetic_op_float.snap.new | 23 ------- .../snapshots/test__arithmetic_op_int.snap | 53 ---------------- .../test__arithmetic_op_int.snap.new | 23 ------- .../snapshots/test__arithmetic_op_uint.snap | 53 ---------------- .../snapshots/test__assign_bit_op_uint.snap | 41 ------------- .../snapshots/test__assign_shift_op_int.snap | 35 ----------- .../snapshots/test__assign_shift_op_uint.snap | 35 ----------- .../snapshots/test__assignment_op_float.snap | 58 ------------------ .../test__assignment_op_float.snap.new | 26 -------- .../snapshots/test__assignment_op_int.snap | 58 ------------------ .../test__assignment_op_int.snap.new | 26 -------- .../snapshots/test__assignment_op_uint.snap | 58 ------------------ .../src/snapshots/test__bit_op_int.snap | 47 -------------- .../src/snapshots/test__bit_op_uint.snap | 47 -------------- .../src/snapshots/test__compare_op_float.snap | 61 ------------------- .../snapshots/test__compare_op_float.snap.new | 20 ------ .../src/snapshots/test__compare_op_int.snap | 61 ------------------- .../snapshots/test__compare_op_int.snap.new | 20 ------ .../src/snapshots/test__compare_op_uint.snap | 61 ------------------- .../src/snapshots/test__negate_op_float.snap | 29 --------- .../src/snapshots/test__negate_op_int.snap | 29 --------- .../src/snapshots/test__shift_op_int.snap | 35 ----------- .../src/snapshots/test__shift_op_uint.snap | 35 ----------- 24 files changed, 987 deletions(-) delete mode 100644 crates/mun_codegen/src/snapshots/test__arithmetic_op_float.snap delete mode 100644 crates/mun_codegen/src/snapshots/test__arithmetic_op_float.snap.new delete mode 100644 crates/mun_codegen/src/snapshots/test__arithmetic_op_int.snap delete mode 100644 crates/mun_codegen/src/snapshots/test__arithmetic_op_int.snap.new delete mode 100644 crates/mun_codegen/src/snapshots/test__arithmetic_op_uint.snap delete mode 100644 crates/mun_codegen/src/snapshots/test__assign_bit_op_uint.snap delete mode 100644 crates/mun_codegen/src/snapshots/test__assign_shift_op_int.snap delete mode 100644 crates/mun_codegen/src/snapshots/test__assign_shift_op_uint.snap delete mode 100644 crates/mun_codegen/src/snapshots/test__assignment_op_float.snap delete mode 100644 crates/mun_codegen/src/snapshots/test__assignment_op_float.snap.new delete mode 100644 crates/mun_codegen/src/snapshots/test__assignment_op_int.snap delete mode 100644 crates/mun_codegen/src/snapshots/test__assignment_op_int.snap.new delete mode 100644 crates/mun_codegen/src/snapshots/test__assignment_op_uint.snap delete mode 100644 crates/mun_codegen/src/snapshots/test__bit_op_int.snap delete mode 100644 crates/mun_codegen/src/snapshots/test__bit_op_uint.snap delete mode 100644 crates/mun_codegen/src/snapshots/test__compare_op_float.snap delete mode 100644 crates/mun_codegen/src/snapshots/test__compare_op_float.snap.new delete mode 100644 crates/mun_codegen/src/snapshots/test__compare_op_int.snap delete mode 100644 crates/mun_codegen/src/snapshots/test__compare_op_int.snap.new delete mode 100644 crates/mun_codegen/src/snapshots/test__compare_op_uint.snap delete mode 100644 crates/mun_codegen/src/snapshots/test__negate_op_float.snap delete mode 100644 crates/mun_codegen/src/snapshots/test__negate_op_int.snap delete mode 100644 crates/mun_codegen/src/snapshots/test__shift_op_int.snap delete mode 100644 crates/mun_codegen/src/snapshots/test__shift_op_uint.snap diff --git a/crates/mun_codegen/src/snapshots/test__arithmetic_op_float.snap b/crates/mun_codegen/src/snapshots/test__arithmetic_op_float.snap deleted file mode 100644 index 5906cb047..000000000 --- a/crates/mun_codegen/src/snapshots/test__arithmetic_op_float.snap +++ /dev/null @@ -1,53 +0,0 @@ ---- -source: crates/mun_codegen/src/test.rs -expression: "pub fn add(a: float, b: float) -> float { a + b }\npub fn subtract(a: float, b: float) -> float { a - b }\npub fn multiply(a: float, b: float) -> float { a * b }\npub fn divide(a: float, b: float) -> float { a / b }\npub fn remainder(a: float, b: float) -> float { a % b }" ---- -; == FILE IR ===================================== -; ModuleID = 'main.mun' -source_filename = "main.mun" - -%struct.MunTypeInfo = type { [16 x i8], i8 addrspace(4)*, i32, i8, i8 } - -@global_type_table = external global [1 x %struct.MunTypeInfo addrspace(4)*] - -define double @add(double, double) { -body: - %add = fadd double %0, %1 - ret double %add -} - -define double @subtract(double, double) { -body: - %sub = fsub double %0, %1 - ret double %sub -} - -define double @multiply(double, double) { -body: - %mul = fmul double %0, %1 - ret double %mul -} - -define double @divide(double, double) { -body: - %div = fdiv double %0, %1 - ret double %div -} - -define double @remainder(double, double) { -body: - %rem = frem double %0, %1 - ret double %rem -} - - -; == GROUP IR ==================================== -; ModuleID = 'group_name' -source_filename = "group_name" - -%struct.MunTypeInfo = type { [16 x i8], i8 addrspace(4)*, i32, i8, i8 } - -@"type_info::::name" = private unnamed_addr constant [10 x i8] c"core::f64\00" -@"type_info::" = private unnamed_addr constant %struct.MunTypeInfo { [16 x i8] c"`\DBF\9C?YJ%G\AD4\9F\D5\92%A", [10 x i8]* @"type_info::::name", i32 64, i8 8, i8 0 } -@global_type_table = global [1 x %struct.MunTypeInfo addrspace(4)*] [%struct.MunTypeInfo addrspace(4)* @"type_info::"] - diff --git a/crates/mun_codegen/src/snapshots/test__arithmetic_op_float.snap.new b/crates/mun_codegen/src/snapshots/test__arithmetic_op_float.snap.new deleted file mode 100644 index db3fca703..000000000 --- a/crates/mun_codegen/src/snapshots/test__arithmetic_op_float.snap.new +++ /dev/null @@ -1,23 +0,0 @@ ---- -source: crates/mun_codegen/src/test.rs -expression: "pub fn add(a: float, b: float) -> float { a + b }\npub fn subtract(a: float, b: float) -> float { a - b }\npub fn multiply(a: float, b: float) -> float { a * b }\npub fn divide(a: float, b: float) -> float { a / b }\npub fn remainder(a: float, b: float) -> float { a % b }" ---- -; == FILE IR ===================================== -error 1:15: undefined type -error 1:25: undefined type -error 1:35: undefined type -error 2:20: undefined type -error 2:30: undefined type -error 2:40: undefined type -error 3:20: undefined type -error 3:30: undefined type -error 3:40: undefined type -error 4:18: undefined type -error 4:28: undefined type -error 4:38: undefined type -error 5:21: undefined type -error 5:31: undefined type -error 5:41: undefined type - -; == GROUP IR ==================================== - diff --git a/crates/mun_codegen/src/snapshots/test__arithmetic_op_int.snap b/crates/mun_codegen/src/snapshots/test__arithmetic_op_int.snap deleted file mode 100644 index 281275c62..000000000 --- a/crates/mun_codegen/src/snapshots/test__arithmetic_op_int.snap +++ /dev/null @@ -1,53 +0,0 @@ ---- -source: crates/mun_codegen/src/test.rs -expression: "pub fn add(a: int, b: int) -> int { a + b }\npub fn subtract(a: int, b: int) -> int { a - b }\npub fn multiply(a: int, b: int) -> int { a * b }\npub fn divide(a: int, b: int) -> int { a / b }\npub fn remainder(a: int, b: int) -> int { a % b }" ---- -; == FILE IR ===================================== -; ModuleID = 'main.mun' -source_filename = "main.mun" - -%struct.MunTypeInfo = type { [16 x i8], i8 addrspace(4)*, i32, i8, i8 } - -@global_type_table = external global [1 x %struct.MunTypeInfo addrspace(4)*] - -define i64 @add(i64, i64) { -body: - %add = add i64 %0, %1 - ret i64 %add -} - -define i64 @subtract(i64, i64) { -body: - %sub = sub i64 %0, %1 - ret i64 %sub -} - -define i64 @multiply(i64, i64) { -body: - %mul = mul i64 %0, %1 - ret i64 %mul -} - -define i64 @divide(i64, i64) { -body: - %div = sdiv i64 %0, %1 - ret i64 %div -} - -define i64 @remainder(i64, i64) { -body: - %rem = srem i64 %0, %1 - ret i64 %rem -} - - -; == GROUP IR ==================================== -; ModuleID = 'group_name' -source_filename = "group_name" - -%struct.MunTypeInfo = type { [16 x i8], i8 addrspace(4)*, i32, i8, i8 } - -@"type_info::::name" = private unnamed_addr constant [10 x i8] c"core::i64\00" -@"type_info::" = private unnamed_addr constant %struct.MunTypeInfo { [16 x i8] c"G\13;t\97j8\18\D7M\83`\1D\C8\19%", [10 x i8]* @"type_info::::name", i32 64, i8 8, i8 0 } -@global_type_table = global [1 x %struct.MunTypeInfo addrspace(4)*] [%struct.MunTypeInfo addrspace(4)* @"type_info::"] - diff --git a/crates/mun_codegen/src/snapshots/test__arithmetic_op_int.snap.new b/crates/mun_codegen/src/snapshots/test__arithmetic_op_int.snap.new deleted file mode 100644 index 96c1cdfe5..000000000 --- a/crates/mun_codegen/src/snapshots/test__arithmetic_op_int.snap.new +++ /dev/null @@ -1,23 +0,0 @@ ---- -source: crates/mun_codegen/src/test.rs -expression: "pub fn add(a: int, b: int) -> int { a + b }\npub fn subtract(a: int, b: int) -> int { a - b }\npub fn multiply(a: int, b: int) -> int { a * b }\npub fn divide(a: int, b: int) -> int { a / b }\npub fn remainder(a: int, b: int) -> int { a % b }" ---- -; == FILE IR ===================================== -error 1:15: undefined type -error 1:23: undefined type -error 1:31: undefined type -error 2:20: undefined type -error 2:28: undefined type -error 2:36: undefined type -error 3:20: undefined type -error 3:28: undefined type -error 3:36: undefined type -error 4:18: undefined type -error 4:26: undefined type -error 4:34: undefined type -error 5:21: undefined type -error 5:29: undefined type -error 5:37: undefined type - -; == GROUP IR ==================================== - diff --git a/crates/mun_codegen/src/snapshots/test__arithmetic_op_uint.snap b/crates/mun_codegen/src/snapshots/test__arithmetic_op_uint.snap deleted file mode 100644 index 31515c1f5..000000000 --- a/crates/mun_codegen/src/snapshots/test__arithmetic_op_uint.snap +++ /dev/null @@ -1,53 +0,0 @@ ---- -source: crates/mun_codegen/src/test.rs -expression: "pub fn add(a: uint, b: uint) -> uint { a + b }\npub fn subtract(a: uint, b: uint) -> uint { a - b }\npub fn multiply(a: uint, b: uint) -> uint { a * b }\npub fn divide(a: uint, b: uint) -> uint { a / b }\npub fn remainder(a: uint, b: uint) -> uint { a % b }" ---- -; == FILE IR ===================================== -; ModuleID = 'main.mun' -source_filename = "main.mun" - -%struct.MunTypeInfo = type { [16 x i8], i8 addrspace(4)*, i32, i8, i8 } - -@global_type_table = external global [1 x %struct.MunTypeInfo addrspace(4)*] - -define i64 @add(i64, i64) { -body: - %add = add i64 %0, %1 - ret i64 %add -} - -define i64 @subtract(i64, i64) { -body: - %sub = sub i64 %0, %1 - ret i64 %sub -} - -define i64 @multiply(i64, i64) { -body: - %mul = mul i64 %0, %1 - ret i64 %mul -} - -define i64 @divide(i64, i64) { -body: - %div = udiv i64 %0, %1 - ret i64 %div -} - -define i64 @remainder(i64, i64) { -body: - %rem = urem i64 %0, %1 - ret i64 %rem -} - - -; == GROUP IR ==================================== -; ModuleID = 'group_name' -source_filename = "group_name" - -%struct.MunTypeInfo = type { [16 x i8], i8 addrspace(4)*, i32, i8, i8 } - -@"type_info::::name" = private unnamed_addr constant [10 x i8] c"core::u64\00" -@"type_info::" = private unnamed_addr constant %struct.MunTypeInfo { [16 x i8] c"\A6\E7g \D1\8B\1Aq`\1F\1E\07\BB5@q", [10 x i8]* @"type_info::::name", i32 64, i8 8, i8 0 } -@global_type_table = global [1 x %struct.MunTypeInfo addrspace(4)*] [%struct.MunTypeInfo addrspace(4)* @"type_info::"] - diff --git a/crates/mun_codegen/src/snapshots/test__assign_bit_op_uint.snap b/crates/mun_codegen/src/snapshots/test__assign_bit_op_uint.snap deleted file mode 100644 index 528382588..000000000 --- a/crates/mun_codegen/src/snapshots/test__assign_bit_op_uint.snap +++ /dev/null @@ -1,41 +0,0 @@ ---- -source: crates/mun_codegen/src/test.rs -expression: "pub fn assign_bitand(a: uint, b: uint) -> uint {\n a &= b;\n a\n}\npub fn assign_bitor(a: uint, b: uint) -> uint {\n a |= b;\n a\n}\npub fn assign_bitxor(a: uint, b: uint) -> uint {\n a ^= b;\n a\n}" ---- -; == FILE IR ===================================== -; ModuleID = 'main.mun' -source_filename = "main.mun" - -%struct.MunTypeInfo = type { [16 x i8], i8 addrspace(4)*, i32, i8, i8 } - -@global_type_table = external global [1 x %struct.MunTypeInfo addrspace(4)*] - -define i64 @assign_bitand(i64, i64) { -body: - %bit_and = and i64 %0, %1 - ret i64 %bit_and -} - -define i64 @assign_bitor(i64, i64) { -body: - %bit_or = or i64 %0, %1 - ret i64 %bit_or -} - -define i64 @assign_bitxor(i64, i64) { -body: - %bit_xor = xor i64 %0, %1 - ret i64 %bit_xor -} - - -; == GROUP IR ==================================== -; ModuleID = 'group_name' -source_filename = "group_name" - -%struct.MunTypeInfo = type { [16 x i8], i8 addrspace(4)*, i32, i8, i8 } - -@"type_info::::name" = private unnamed_addr constant [10 x i8] c"core::u64\00" -@"type_info::" = private unnamed_addr constant %struct.MunTypeInfo { [16 x i8] c"\A6\E7g \D1\8B\1Aq`\1F\1E\07\BB5@q", [10 x i8]* @"type_info::::name", i32 64, i8 8, i8 0 } -@global_type_table = global [1 x %struct.MunTypeInfo addrspace(4)*] [%struct.MunTypeInfo addrspace(4)* @"type_info::"] - diff --git a/crates/mun_codegen/src/snapshots/test__assign_shift_op_int.snap b/crates/mun_codegen/src/snapshots/test__assign_shift_op_int.snap deleted file mode 100644 index f2b3a8b55..000000000 --- a/crates/mun_codegen/src/snapshots/test__assign_shift_op_int.snap +++ /dev/null @@ -1,35 +0,0 @@ ---- -source: crates/mun_codegen/src/test.rs -expression: "pub fn assign_leftshift(a: int, b: int) -> int {\n a <<= b;\n a\n}\npub fn assign_rightshift(a: int, b: int) -> int {\n a >>= b;\n a\n}" ---- -; == FILE IR ===================================== -; ModuleID = 'main.mun' -source_filename = "main.mun" - -%struct.MunTypeInfo = type { [16 x i8], i8 addrspace(4)*, i32, i8, i8 } - -@global_type_table = external global [1 x %struct.MunTypeInfo addrspace(4)*] - -define i64 @assign_leftshift(i64, i64) { -body: - %left_shift = shl i64 %0, %1 - ret i64 %left_shift -} - -define i64 @assign_rightshift(i64, i64) { -body: - %right_shift = ashr i64 %0, %1 - ret i64 %right_shift -} - - -; == GROUP IR ==================================== -; ModuleID = 'group_name' -source_filename = "group_name" - -%struct.MunTypeInfo = type { [16 x i8], i8 addrspace(4)*, i32, i8, i8 } - -@"type_info::::name" = private unnamed_addr constant [10 x i8] c"core::i64\00" -@"type_info::" = private unnamed_addr constant %struct.MunTypeInfo { [16 x i8] c"G\13;t\97j8\18\D7M\83`\1D\C8\19%", [10 x i8]* @"type_info::::name", i32 64, i8 8, i8 0 } -@global_type_table = global [1 x %struct.MunTypeInfo addrspace(4)*] [%struct.MunTypeInfo addrspace(4)* @"type_info::"] - diff --git a/crates/mun_codegen/src/snapshots/test__assign_shift_op_uint.snap b/crates/mun_codegen/src/snapshots/test__assign_shift_op_uint.snap deleted file mode 100644 index 24deb0709..000000000 --- a/crates/mun_codegen/src/snapshots/test__assign_shift_op_uint.snap +++ /dev/null @@ -1,35 +0,0 @@ ---- -source: crates/mun_codegen/src/test.rs -expression: "pub fn assign_leftshift(a: uint, b: uint) -> uint {\n a <<= b;\n a\n}\npub fn assign_rightshift(a: uint, b: uint) -> uint {\n a >>= b;\n a\n}" ---- -; == FILE IR ===================================== -; ModuleID = 'main.mun' -source_filename = "main.mun" - -%struct.MunTypeInfo = type { [16 x i8], i8 addrspace(4)*, i32, i8, i8 } - -@global_type_table = external global [1 x %struct.MunTypeInfo addrspace(4)*] - -define i64 @assign_leftshift(i64, i64) { -body: - %left_shift = shl i64 %0, %1 - ret i64 %left_shift -} - -define i64 @assign_rightshift(i64, i64) { -body: - %right_shift = lshr i64 %0, %1 - ret i64 %right_shift -} - - -; == GROUP IR ==================================== -; ModuleID = 'group_name' -source_filename = "group_name" - -%struct.MunTypeInfo = type { [16 x i8], i8 addrspace(4)*, i32, i8, i8 } - -@"type_info::::name" = private unnamed_addr constant [10 x i8] c"core::u64\00" -@"type_info::" = private unnamed_addr constant %struct.MunTypeInfo { [16 x i8] c"\A6\E7g \D1\8B\1Aq`\1F\1E\07\BB5@q", [10 x i8]* @"type_info::::name", i32 64, i8 8, i8 0 } -@global_type_table = global [1 x %struct.MunTypeInfo addrspace(4)*] [%struct.MunTypeInfo addrspace(4)* @"type_info::"] - diff --git a/crates/mun_codegen/src/snapshots/test__assignment_op_float.snap b/crates/mun_codegen/src/snapshots/test__assignment_op_float.snap deleted file mode 100644 index 409fa78fb..000000000 --- a/crates/mun_codegen/src/snapshots/test__assignment_op_float.snap +++ /dev/null @@ -1,58 +0,0 @@ ---- -source: crates/mun_codegen/src/test.rs -expression: "pub fn assign(a: float, b: float) -> float {\n a = b;\n a\n}\npub fn assign_add(a: float, b: float) -> float {\n a += b;\n a\n}\npub fn assign_subtract(a: float, b: float) -> float {\n a -= b;\n a\n}\npub fn assign_multiply(a: float, b: float) -> float {\n a *= b;\n a\n}\npub fn assign_divide(a: float, b: float) -> float {\n a /= b;\n a\n}\npub fn assign_remainder(a: float, b: float) -> float {\n a %= b;\n a\n}" ---- -; == FILE IR ===================================== -; ModuleID = 'main.mun' -source_filename = "main.mun" - -%struct.MunTypeInfo = type { [16 x i8], i8 addrspace(4)*, i32, i8, i8 } - -@global_type_table = external global [1 x %struct.MunTypeInfo addrspace(4)*] - -define double @assign(double, double) { -body: - ret double %1 -} - -define double @assign_add(double, double) { -body: - %add = fadd double %0, %1 - ret double %add -} - -define double @assign_subtract(double, double) { -body: - %sub = fsub double %0, %1 - ret double %sub -} - -define double @assign_multiply(double, double) { -body: - %mul = fmul double %0, %1 - ret double %mul -} - -define double @assign_divide(double, double) { -body: - %div = fdiv double %0, %1 - ret double %div -} - -define double @assign_remainder(double, double) { -body: - %rem = frem double %0, %1 - ret double %rem -} - - -; == GROUP IR ==================================== -; ModuleID = 'group_name' -source_filename = "group_name" - -%struct.MunTypeInfo = type { [16 x i8], i8 addrspace(4)*, i32, i8, i8 } - -@"type_info::::name" = private unnamed_addr constant [10 x i8] c"core::f64\00" -@"type_info::" = private unnamed_addr constant %struct.MunTypeInfo { [16 x i8] c"`\DBF\9C?YJ%G\AD4\9F\D5\92%A", [10 x i8]* @"type_info::::name", i32 64, i8 8, i8 0 } -@global_type_table = global [1 x %struct.MunTypeInfo addrspace(4)*] [%struct.MunTypeInfo addrspace(4)* @"type_info::"] - diff --git a/crates/mun_codegen/src/snapshots/test__assignment_op_float.snap.new b/crates/mun_codegen/src/snapshots/test__assignment_op_float.snap.new deleted file mode 100644 index 10d4164b9..000000000 --- a/crates/mun_codegen/src/snapshots/test__assignment_op_float.snap.new +++ /dev/null @@ -1,26 +0,0 @@ ---- -source: crates/mun_codegen/src/test.rs -expression: "pub fn assign(a: float, b: float) -> float {\n a = b;\n a\n}\npub fn assign_add(a: float, b: float) -> float {\n a += b;\n a\n}\npub fn assign_subtract(a: float, b: float) -> float {\n a -= b;\n a\n}\npub fn assign_multiply(a: float, b: float) -> float {\n a *= b;\n a\n}\npub fn assign_divide(a: float, b: float) -> float {\n a /= b;\n a\n}\npub fn assign_remainder(a: float, b: float) -> float {\n a %= b;\n a\n}" ---- -; == FILE IR ===================================== -error 1:18: undefined type -error 1:28: undefined type -error 1:38: undefined type -error 5:22: undefined type -error 5:32: undefined type -error 5:42: undefined type -error 9:27: undefined type -error 9:37: undefined type -error 9:47: undefined type -error 13:27: undefined type -error 13:37: undefined type -error 13:47: undefined type -error 17:25: undefined type -error 17:35: undefined type -error 17:45: undefined type -error 21:28: undefined type -error 21:38: undefined type -error 21:48: undefined type - -; == GROUP IR ==================================== - diff --git a/crates/mun_codegen/src/snapshots/test__assignment_op_int.snap b/crates/mun_codegen/src/snapshots/test__assignment_op_int.snap deleted file mode 100644 index 106152e32..000000000 --- a/crates/mun_codegen/src/snapshots/test__assignment_op_int.snap +++ /dev/null @@ -1,58 +0,0 @@ ---- -source: crates/mun_codegen/src/test.rs -expression: "pub fn assign(a: int, b: int) -> int {\n a = b;\n a\n}\npub fn assign_add(a: int, b: int) -> int {\n a += b;\n a\n}\npub fn assign_subtract(a: int, b: int) -> int {\n a -= b;\n a\n}\npub fn assign_multiply(a: int, b: int) -> int {\n a *= b;\n a\n}\npub fn assign_divide(a: int, b: int) -> int {\n a /= b;\n a\n}\npub fn assign_remainder(a: int, b: int) -> int {\n a %= b;\n a\n}" ---- -; == FILE IR ===================================== -; ModuleID = 'main.mun' -source_filename = "main.mun" - -%struct.MunTypeInfo = type { [16 x i8], i8 addrspace(4)*, i32, i8, i8 } - -@global_type_table = external global [1 x %struct.MunTypeInfo addrspace(4)*] - -define i64 @assign(i64, i64) { -body: - ret i64 %1 -} - -define i64 @assign_add(i64, i64) { -body: - %add = add i64 %0, %1 - ret i64 %add -} - -define i64 @assign_subtract(i64, i64) { -body: - %sub = sub i64 %0, %1 - ret i64 %sub -} - -define i64 @assign_multiply(i64, i64) { -body: - %mul = mul i64 %0, %1 - ret i64 %mul -} - -define i64 @assign_divide(i64, i64) { -body: - %div = sdiv i64 %0, %1 - ret i64 %div -} - -define i64 @assign_remainder(i64, i64) { -body: - %rem = srem i64 %0, %1 - ret i64 %rem -} - - -; == GROUP IR ==================================== -; ModuleID = 'group_name' -source_filename = "group_name" - -%struct.MunTypeInfo = type { [16 x i8], i8 addrspace(4)*, i32, i8, i8 } - -@"type_info::::name" = private unnamed_addr constant [10 x i8] c"core::i64\00" -@"type_info::" = private unnamed_addr constant %struct.MunTypeInfo { [16 x i8] c"G\13;t\97j8\18\D7M\83`\1D\C8\19%", [10 x i8]* @"type_info::::name", i32 64, i8 8, i8 0 } -@global_type_table = global [1 x %struct.MunTypeInfo addrspace(4)*] [%struct.MunTypeInfo addrspace(4)* @"type_info::"] - diff --git a/crates/mun_codegen/src/snapshots/test__assignment_op_int.snap.new b/crates/mun_codegen/src/snapshots/test__assignment_op_int.snap.new deleted file mode 100644 index 5cfac1a93..000000000 --- a/crates/mun_codegen/src/snapshots/test__assignment_op_int.snap.new +++ /dev/null @@ -1,26 +0,0 @@ ---- -source: crates/mun_codegen/src/test.rs -expression: "pub fn assign(a: int, b: int) -> int {\n a = b;\n a\n}\npub fn assign_add(a: int, b: int) -> int {\n a += b;\n a\n}\npub fn assign_subtract(a: int, b: int) -> int {\n a -= b;\n a\n}\npub fn assign_multiply(a: int, b: int) -> int {\n a *= b;\n a\n}\npub fn assign_divide(a: int, b: int) -> int {\n a /= b;\n a\n}\npub fn assign_remainder(a: int, b: int) -> int {\n a %= b;\n a\n}" ---- -; == FILE IR ===================================== -error 1:18: undefined type -error 1:26: undefined type -error 1:34: undefined type -error 5:22: undefined type -error 5:30: undefined type -error 5:38: undefined type -error 9:27: undefined type -error 9:35: undefined type -error 9:43: undefined type -error 13:27: undefined type -error 13:35: undefined type -error 13:43: undefined type -error 17:25: undefined type -error 17:33: undefined type -error 17:41: undefined type -error 21:28: undefined type -error 21:36: undefined type -error 21:44: undefined type - -; == GROUP IR ==================================== - diff --git a/crates/mun_codegen/src/snapshots/test__assignment_op_uint.snap b/crates/mun_codegen/src/snapshots/test__assignment_op_uint.snap deleted file mode 100644 index 583198c08..000000000 --- a/crates/mun_codegen/src/snapshots/test__assignment_op_uint.snap +++ /dev/null @@ -1,58 +0,0 @@ ---- -source: crates/mun_codegen/src/test.rs -expression: "pub fn assign(a: uint, b: uint) -> uint {\n a = b;\n a\n}\npub fn assign_add(a: uint, b: uint) -> uint {\n a += b;\n a\n}\npub fn assign_subtract(a: uint, b: uint) -> uint {\n a -= b;\n a\n}\npub fn assign_multiply(a: uint, b: uint) -> uint {\n a *= b;\n a\n}\npub fn assign_divide(a: uint, b: uint) -> uint {\n a /= b;\n a\n}\npub fn assign_remainder(a: uint, b: uint) -> uint {\n a %= b;\n a\n}" ---- -; == FILE IR ===================================== -; ModuleID = 'main.mun' -source_filename = "main.mun" - -%struct.MunTypeInfo = type { [16 x i8], i8 addrspace(4)*, i32, i8, i8 } - -@global_type_table = external global [1 x %struct.MunTypeInfo addrspace(4)*] - -define i64 @assign(i64, i64) { -body: - ret i64 %1 -} - -define i64 @assign_add(i64, i64) { -body: - %add = add i64 %0, %1 - ret i64 %add -} - -define i64 @assign_subtract(i64, i64) { -body: - %sub = sub i64 %0, %1 - ret i64 %sub -} - -define i64 @assign_multiply(i64, i64) { -body: - %mul = mul i64 %0, %1 - ret i64 %mul -} - -define i64 @assign_divide(i64, i64) { -body: - %div = udiv i64 %0, %1 - ret i64 %div -} - -define i64 @assign_remainder(i64, i64) { -body: - %rem = urem i64 %0, %1 - ret i64 %rem -} - - -; == GROUP IR ==================================== -; ModuleID = 'group_name' -source_filename = "group_name" - -%struct.MunTypeInfo = type { [16 x i8], i8 addrspace(4)*, i32, i8, i8 } - -@"type_info::::name" = private unnamed_addr constant [10 x i8] c"core::u64\00" -@"type_info::" = private unnamed_addr constant %struct.MunTypeInfo { [16 x i8] c"\A6\E7g \D1\8B\1Aq`\1F\1E\07\BB5@q", [10 x i8]* @"type_info::::name", i32 64, i8 8, i8 0 } -@global_type_table = global [1 x %struct.MunTypeInfo addrspace(4)*] [%struct.MunTypeInfo addrspace(4)* @"type_info::"] - diff --git a/crates/mun_codegen/src/snapshots/test__bit_op_int.snap b/crates/mun_codegen/src/snapshots/test__bit_op_int.snap deleted file mode 100644 index a38597fcc..000000000 --- a/crates/mun_codegen/src/snapshots/test__bit_op_int.snap +++ /dev/null @@ -1,47 +0,0 @@ ---- -source: crates/mun_codegen/src/test.rs -expression: "pub fn not(a: int) -> int { !a }\npub fn bitand(a: int, b: int) -> int { a & b }\npub fn bitor(a: int, b: int) -> int { a | b }\npub fn bitxor(a: int, b: int) -> int { a ^ b }" ---- -; == FILE IR ===================================== -; ModuleID = 'main.mun' -source_filename = "main.mun" - -%struct.MunTypeInfo = type { [16 x i8], i8 addrspace(4)*, i32, i8, i8 } - -@global_type_table = external global [1 x %struct.MunTypeInfo addrspace(4)*] - -define i64 @not(i64) { -body: - %not = xor i64 %0, -1 - ret i64 %not -} - -define i64 @bitand(i64, i64) { -body: - %bit_and = and i64 %0, %1 - ret i64 %bit_and -} - -define i64 @bitor(i64, i64) { -body: - %bit_or = or i64 %0, %1 - ret i64 %bit_or -} - -define i64 @bitxor(i64, i64) { -body: - %bit_xor = xor i64 %0, %1 - ret i64 %bit_xor -} - - -; == GROUP IR ==================================== -; ModuleID = 'group_name' -source_filename = "group_name" - -%struct.MunTypeInfo = type { [16 x i8], i8 addrspace(4)*, i32, i8, i8 } - -@"type_info::::name" = private unnamed_addr constant [10 x i8] c"core::i64\00" -@"type_info::" = private unnamed_addr constant %struct.MunTypeInfo { [16 x i8] c"G\13;t\97j8\18\D7M\83`\1D\C8\19%", [10 x i8]* @"type_info::::name", i32 64, i8 8, i8 0 } -@global_type_table = global [1 x %struct.MunTypeInfo addrspace(4)*] [%struct.MunTypeInfo addrspace(4)* @"type_info::"] - diff --git a/crates/mun_codegen/src/snapshots/test__bit_op_uint.snap b/crates/mun_codegen/src/snapshots/test__bit_op_uint.snap deleted file mode 100644 index 6deef8676..000000000 --- a/crates/mun_codegen/src/snapshots/test__bit_op_uint.snap +++ /dev/null @@ -1,47 +0,0 @@ ---- -source: crates/mun_codegen/src/test.rs -expression: "pub fn not(a: uint) -> uint { !a }\npub fn bitand(a: uint, b: uint) -> uint { a & b }\npub fn bitor(a: uint, b: uint) -> uint { a | b }\npub fn bitxor(a: uint, b: uint) -> uint { a ^ b }" ---- -; == FILE IR ===================================== -; ModuleID = 'main.mun' -source_filename = "main.mun" - -%struct.MunTypeInfo = type { [16 x i8], i8 addrspace(4)*, i32, i8, i8 } - -@global_type_table = external global [1 x %struct.MunTypeInfo addrspace(4)*] - -define i64 @not(i64) { -body: - %not = xor i64 %0, -1 - ret i64 %not -} - -define i64 @bitand(i64, i64) { -body: - %bit_and = and i64 %0, %1 - ret i64 %bit_and -} - -define i64 @bitor(i64, i64) { -body: - %bit_or = or i64 %0, %1 - ret i64 %bit_or -} - -define i64 @bitxor(i64, i64) { -body: - %bit_xor = xor i64 %0, %1 - ret i64 %bit_xor -} - - -; == GROUP IR ==================================== -; ModuleID = 'group_name' -source_filename = "group_name" - -%struct.MunTypeInfo = type { [16 x i8], i8 addrspace(4)*, i32, i8, i8 } - -@"type_info::::name" = private unnamed_addr constant [10 x i8] c"core::u64\00" -@"type_info::" = private unnamed_addr constant %struct.MunTypeInfo { [16 x i8] c"\A6\E7g \D1\8B\1Aq`\1F\1E\07\BB5@q", [10 x i8]* @"type_info::::name", i32 64, i8 8, i8 0 } -@global_type_table = global [1 x %struct.MunTypeInfo addrspace(4)*] [%struct.MunTypeInfo addrspace(4)* @"type_info::"] - diff --git a/crates/mun_codegen/src/snapshots/test__compare_op_float.snap b/crates/mun_codegen/src/snapshots/test__compare_op_float.snap deleted file mode 100644 index 7066613e7..000000000 --- a/crates/mun_codegen/src/snapshots/test__compare_op_float.snap +++ /dev/null @@ -1,61 +0,0 @@ ---- -source: crates/mun_codegen/src/test.rs -expression: "pub fn equals(a: float, b: float) -> bool { a == b }\npub fn not_equal(a: float, b: float) -> bool { a != b}\npub fn less(a: float, b: float) -> bool { a < b }\npub fn less_equal(a: float, b: float) -> bool { a <= b }\npub fn greater(a: float, b: float) -> bool { a > b }\npub fn greater_equal(a: float, b: float) -> bool { a >= b }" ---- -; == FILE IR ===================================== -; ModuleID = 'main.mun' -source_filename = "main.mun" - -%struct.MunTypeInfo = type { [16 x i8], i8 addrspace(4)*, i32, i8, i8 } - -@global_type_table = external global [2 x %struct.MunTypeInfo addrspace(4)*] - -define i1 @equals(double, double) { -body: - %eq = fcmp oeq double %0, %1 - ret i1 %eq -} - -define i1 @not_equal(double, double) { -body: - %neq = fcmp one double %0, %1 - ret i1 %neq -} - -define i1 @less(double, double) { -body: - %less = fcmp olt double %0, %1 - ret i1 %less -} - -define i1 @less_equal(double, double) { -body: - %lesseq = fcmp ole double %0, %1 - ret i1 %lesseq -} - -define i1 @greater(double, double) { -body: - %greater = fcmp ogt double %0, %1 - ret i1 %greater -} - -define i1 @greater_equal(double, double) { -body: - %greatereq = fcmp oge double %0, %1 - ret i1 %greatereq -} - - -; == GROUP IR ==================================== -; ModuleID = 'group_name' -source_filename = "group_name" - -%struct.MunTypeInfo = type { [16 x i8], i8 addrspace(4)*, i32, i8, i8 } - -@"type_info::::name" = private unnamed_addr constant [10 x i8] c"core::f64\00" -@"type_info::" = private unnamed_addr constant %struct.MunTypeInfo { [16 x i8] c"`\DBF\9C?YJ%G\AD4\9F\D5\92%A", [10 x i8]* @"type_info::::name", i32 64, i8 8, i8 0 } -@"type_info::::name" = private unnamed_addr constant [11 x i8] c"core::bool\00" -@"type_info::" = private unnamed_addr constant %struct.MunTypeInfo { [16 x i8] c"x\82\81m t7\03\CB\F8k\81-;\C9\84", [11 x i8]* @"type_info::::name", i32 1, i8 1, i8 0 } -@global_type_table = global [2 x %struct.MunTypeInfo addrspace(4)*] [%struct.MunTypeInfo addrspace(4)* @"type_info::", %struct.MunTypeInfo addrspace(4)* @"type_info::"] - diff --git a/crates/mun_codegen/src/snapshots/test__compare_op_float.snap.new b/crates/mun_codegen/src/snapshots/test__compare_op_float.snap.new deleted file mode 100644 index 5d3caf9cf..000000000 --- a/crates/mun_codegen/src/snapshots/test__compare_op_float.snap.new +++ /dev/null @@ -1,20 +0,0 @@ ---- -source: crates/mun_codegen/src/test.rs -expression: "pub fn equals(a: float, b: float) -> bool { a == b }\npub fn not_equal(a: float, b: float) -> bool { a != b}\npub fn less(a: float, b: float) -> bool { a < b }\npub fn less_equal(a: float, b: float) -> bool { a <= b }\npub fn greater(a: float, b: float) -> bool { a > b }\npub fn greater_equal(a: float, b: float) -> bool { a >= b }" ---- -; == FILE IR ===================================== -error 1:18: undefined type -error 1:28: undefined type -error 2:21: undefined type -error 2:31: undefined type -error 3:16: undefined type -error 3:26: undefined type -error 4:22: undefined type -error 4:32: undefined type -error 5:19: undefined type -error 5:29: undefined type -error 6:25: undefined type -error 6:35: undefined type - -; == GROUP IR ==================================== - diff --git a/crates/mun_codegen/src/snapshots/test__compare_op_int.snap b/crates/mun_codegen/src/snapshots/test__compare_op_int.snap deleted file mode 100644 index e02b6c8f4..000000000 --- a/crates/mun_codegen/src/snapshots/test__compare_op_int.snap +++ /dev/null @@ -1,61 +0,0 @@ ---- -source: crates/mun_codegen/src/test.rs -expression: "pub fn equals(a: int, b: int) -> bool { a == b }\npub fn not_equal(a: int, b: int) -> bool { a != b}\npub fn less(a: int, b: int) -> bool { a < b }\npub fn less_equal(a: int, b: int) -> bool { a <= b }\npub fn greater(a: int, b: int) -> bool { a > b }\npub fn greater_equal(a: int, b: int) -> bool { a >= b }" ---- -; == FILE IR ===================================== -; ModuleID = 'main.mun' -source_filename = "main.mun" - -%struct.MunTypeInfo = type { [16 x i8], i8 addrspace(4)*, i32, i8, i8 } - -@global_type_table = external global [2 x %struct.MunTypeInfo addrspace(4)*] - -define i1 @equals(i64, i64) { -body: - %eq = icmp eq i64 %0, %1 - ret i1 %eq -} - -define i1 @not_equal(i64, i64) { -body: - %neq = icmp ne i64 %0, %1 - ret i1 %neq -} - -define i1 @less(i64, i64) { -body: - %less = icmp slt i64 %0, %1 - ret i1 %less -} - -define i1 @less_equal(i64, i64) { -body: - %lesseq = icmp sle i64 %0, %1 - ret i1 %lesseq -} - -define i1 @greater(i64, i64) { -body: - %greater = icmp sgt i64 %0, %1 - ret i1 %greater -} - -define i1 @greater_equal(i64, i64) { -body: - %greatereq = icmp sge i64 %0, %1 - ret i1 %greatereq -} - - -; == GROUP IR ==================================== -; ModuleID = 'group_name' -source_filename = "group_name" - -%struct.MunTypeInfo = type { [16 x i8], i8 addrspace(4)*, i32, i8, i8 } - -@"type_info::::name" = private unnamed_addr constant [10 x i8] c"core::i64\00" -@"type_info::" = private unnamed_addr constant %struct.MunTypeInfo { [16 x i8] c"G\13;t\97j8\18\D7M\83`\1D\C8\19%", [10 x i8]* @"type_info::::name", i32 64, i8 8, i8 0 } -@"type_info::::name" = private unnamed_addr constant [11 x i8] c"core::bool\00" -@"type_info::" = private unnamed_addr constant %struct.MunTypeInfo { [16 x i8] c"x\82\81m t7\03\CB\F8k\81-;\C9\84", [11 x i8]* @"type_info::::name", i32 1, i8 1, i8 0 } -@global_type_table = global [2 x %struct.MunTypeInfo addrspace(4)*] [%struct.MunTypeInfo addrspace(4)* @"type_info::", %struct.MunTypeInfo addrspace(4)* @"type_info::"] - diff --git a/crates/mun_codegen/src/snapshots/test__compare_op_int.snap.new b/crates/mun_codegen/src/snapshots/test__compare_op_int.snap.new deleted file mode 100644 index 1d64049f5..000000000 --- a/crates/mun_codegen/src/snapshots/test__compare_op_int.snap.new +++ /dev/null @@ -1,20 +0,0 @@ ---- -source: crates/mun_codegen/src/test.rs -expression: "pub fn equals(a: int, b: int) -> bool { a == b }\npub fn not_equal(a: int, b: int) -> bool { a != b}\npub fn less(a: int, b: int) -> bool { a < b }\npub fn less_equal(a: int, b: int) -> bool { a <= b }\npub fn greater(a: int, b: int) -> bool { a > b }\npub fn greater_equal(a: int, b: int) -> bool { a >= b }" ---- -; == FILE IR ===================================== -error 1:18: undefined type -error 1:26: undefined type -error 2:21: undefined type -error 2:29: undefined type -error 3:16: undefined type -error 3:24: undefined type -error 4:22: undefined type -error 4:30: undefined type -error 5:19: undefined type -error 5:27: undefined type -error 6:25: undefined type -error 6:33: undefined type - -; == GROUP IR ==================================== - diff --git a/crates/mun_codegen/src/snapshots/test__compare_op_uint.snap b/crates/mun_codegen/src/snapshots/test__compare_op_uint.snap deleted file mode 100644 index f4c2d74aa..000000000 --- a/crates/mun_codegen/src/snapshots/test__compare_op_uint.snap +++ /dev/null @@ -1,61 +0,0 @@ ---- -source: crates/mun_codegen/src/test.rs -expression: "pub fn equals(a: uint, b: uint) -> bool { a == b }\npub fn not_equal(a: uint, b: uint) -> bool { a != b}\npub fn less(a: uint, b: uint) -> bool { a < b }\npub fn less_equal(a: uint, b: uint) -> bool { a <= b }\npub fn greater(a: uint, b: uint) -> bool { a > b }\npub fn greater_equal(a: uint, b: uint) -> bool { a >= b }" ---- -; == FILE IR ===================================== -; ModuleID = 'main.mun' -source_filename = "main.mun" - -%struct.MunTypeInfo = type { [16 x i8], i8 addrspace(4)*, i32, i8, i8 } - -@global_type_table = external global [2 x %struct.MunTypeInfo addrspace(4)*] - -define i1 @equals(i64, i64) { -body: - %eq = icmp eq i64 %0, %1 - ret i1 %eq -} - -define i1 @not_equal(i64, i64) { -body: - %neq = icmp ne i64 %0, %1 - ret i1 %neq -} - -define i1 @less(i64, i64) { -body: - %less = icmp ult i64 %0, %1 - ret i1 %less -} - -define i1 @less_equal(i64, i64) { -body: - %lesseq = icmp ule i64 %0, %1 - ret i1 %lesseq -} - -define i1 @greater(i64, i64) { -body: - %greater = icmp ugt i64 %0, %1 - ret i1 %greater -} - -define i1 @greater_equal(i64, i64) { -body: - %greatereq = icmp uge i64 %0, %1 - ret i1 %greatereq -} - - -; == GROUP IR ==================================== -; ModuleID = 'group_name' -source_filename = "group_name" - -%struct.MunTypeInfo = type { [16 x i8], i8 addrspace(4)*, i32, i8, i8 } - -@"type_info::::name" = private unnamed_addr constant [11 x i8] c"core::bool\00" -@"type_info::" = private unnamed_addr constant %struct.MunTypeInfo { [16 x i8] c"x\82\81m t7\03\CB\F8k\81-;\C9\84", [11 x i8]* @"type_info::::name", i32 1, i8 1, i8 0 } -@"type_info::::name" = private unnamed_addr constant [10 x i8] c"core::u64\00" -@"type_info::" = private unnamed_addr constant %struct.MunTypeInfo { [16 x i8] c"\A6\E7g \D1\8B\1Aq`\1F\1E\07\BB5@q", [10 x i8]* @"type_info::::name", i32 64, i8 8, i8 0 } -@global_type_table = global [2 x %struct.MunTypeInfo addrspace(4)*] [%struct.MunTypeInfo addrspace(4)* @"type_info::", %struct.MunTypeInfo addrspace(4)* @"type_info::"] - diff --git a/crates/mun_codegen/src/snapshots/test__negate_op_float.snap b/crates/mun_codegen/src/snapshots/test__negate_op_float.snap deleted file mode 100644 index 050ce1381..000000000 --- a/crates/mun_codegen/src/snapshots/test__negate_op_float.snap +++ /dev/null @@ -1,29 +0,0 @@ ---- -source: crates/mun_codegen/src/test.rs -expression: "pub fn negate(a: float) -> float { -a }" ---- -; == FILE IR ===================================== -; ModuleID = 'main.mun' -source_filename = "main.mun" - -%struct.MunTypeInfo = type { [16 x i8], i8 addrspace(4)*, i32, i8, i8 } - -@global_type_table = external global [1 x %struct.MunTypeInfo addrspace(4)*] - -define double @negate(double) { -body: - %neg = fsub double -0.000000e+00, %0 - ret double %neg -} - - -; == GROUP IR ==================================== -; ModuleID = 'group_name' -source_filename = "group_name" - -%struct.MunTypeInfo = type { [16 x i8], i8 addrspace(4)*, i32, i8, i8 } - -@"type_info::::name" = private unnamed_addr constant [10 x i8] c"core::f64\00" -@"type_info::" = private unnamed_addr constant %struct.MunTypeInfo { [16 x i8] c"`\DBF\9C?YJ%G\AD4\9F\D5\92%A", [10 x i8]* @"type_info::::name", i32 64, i8 8, i8 0 } -@global_type_table = global [1 x %struct.MunTypeInfo addrspace(4)*] [%struct.MunTypeInfo addrspace(4)* @"type_info::"] - diff --git a/crates/mun_codegen/src/snapshots/test__negate_op_int.snap b/crates/mun_codegen/src/snapshots/test__negate_op_int.snap deleted file mode 100644 index 2382ed6d9..000000000 --- a/crates/mun_codegen/src/snapshots/test__negate_op_int.snap +++ /dev/null @@ -1,29 +0,0 @@ ---- -source: crates/mun_codegen/src/test.rs -expression: "pub fn negate(a: int) -> int { -a }" ---- -; == FILE IR ===================================== -; ModuleID = 'main.mun' -source_filename = "main.mun" - -%struct.MunTypeInfo = type { [16 x i8], i8 addrspace(4)*, i32, i8, i8 } - -@global_type_table = external global [1 x %struct.MunTypeInfo addrspace(4)*] - -define i64 @negate(i64) { -body: - %neg = sub i64 0, %0 - ret i64 %neg -} - - -; == GROUP IR ==================================== -; ModuleID = 'group_name' -source_filename = "group_name" - -%struct.MunTypeInfo = type { [16 x i8], i8 addrspace(4)*, i32, i8, i8 } - -@"type_info::::name" = private unnamed_addr constant [10 x i8] c"core::i64\00" -@"type_info::" = private unnamed_addr constant %struct.MunTypeInfo { [16 x i8] c"G\13;t\97j8\18\D7M\83`\1D\C8\19%", [10 x i8]* @"type_info::::name", i32 64, i8 8, i8 0 } -@global_type_table = global [1 x %struct.MunTypeInfo addrspace(4)*] [%struct.MunTypeInfo addrspace(4)* @"type_info::"] - diff --git a/crates/mun_codegen/src/snapshots/test__shift_op_int.snap b/crates/mun_codegen/src/snapshots/test__shift_op_int.snap deleted file mode 100644 index 84da1dac7..000000000 --- a/crates/mun_codegen/src/snapshots/test__shift_op_int.snap +++ /dev/null @@ -1,35 +0,0 @@ ---- -source: crates/mun_codegen/src/test.rs -expression: "pub fn leftshift(a: int, b: int) -> int { a << b }\npub fn rightshift(a: int, b: int) -> int { a >> b }" ---- -; == FILE IR ===================================== -; ModuleID = 'main.mun' -source_filename = "main.mun" - -%struct.MunTypeInfo = type { [16 x i8], i8 addrspace(4)*, i32, i8, i8 } - -@global_type_table = external global [1 x %struct.MunTypeInfo addrspace(4)*] - -define i64 @leftshift(i64, i64) { -body: - %left_shift = shl i64 %0, %1 - ret i64 %left_shift -} - -define i64 @rightshift(i64, i64) { -body: - %right_shift = ashr i64 %0, %1 - ret i64 %right_shift -} - - -; == GROUP IR ==================================== -; ModuleID = 'group_name' -source_filename = "group_name" - -%struct.MunTypeInfo = type { [16 x i8], i8 addrspace(4)*, i32, i8, i8 } - -@"type_info::::name" = private unnamed_addr constant [10 x i8] c"core::i64\00" -@"type_info::" = private unnamed_addr constant %struct.MunTypeInfo { [16 x i8] c"G\13;t\97j8\18\D7M\83`\1D\C8\19%", [10 x i8]* @"type_info::::name", i32 64, i8 8, i8 0 } -@global_type_table = global [1 x %struct.MunTypeInfo addrspace(4)*] [%struct.MunTypeInfo addrspace(4)* @"type_info::"] - diff --git a/crates/mun_codegen/src/snapshots/test__shift_op_uint.snap b/crates/mun_codegen/src/snapshots/test__shift_op_uint.snap deleted file mode 100644 index 9e8f63e3e..000000000 --- a/crates/mun_codegen/src/snapshots/test__shift_op_uint.snap +++ /dev/null @@ -1,35 +0,0 @@ ---- -source: crates/mun_codegen/src/test.rs -expression: "pub fn leftshift(a: uint, b: uint) -> uint { a << b }\npub fn rightshift(a: uint, b: uint) -> uint { a >> b }" ---- -; == FILE IR ===================================== -; ModuleID = 'main.mun' -source_filename = "main.mun" - -%struct.MunTypeInfo = type { [16 x i8], i8 addrspace(4)*, i32, i8, i8 } - -@global_type_table = external global [1 x %struct.MunTypeInfo addrspace(4)*] - -define i64 @leftshift(i64, i64) { -body: - %left_shift = shl i64 %0, %1 - ret i64 %left_shift -} - -define i64 @rightshift(i64, i64) { -body: - %right_shift = lshr i64 %0, %1 - ret i64 %right_shift -} - - -; == GROUP IR ==================================== -; ModuleID = 'group_name' -source_filename = "group_name" - -%struct.MunTypeInfo = type { [16 x i8], i8 addrspace(4)*, i32, i8, i8 } - -@"type_info::::name" = private unnamed_addr constant [10 x i8] c"core::u64\00" -@"type_info::" = private unnamed_addr constant %struct.MunTypeInfo { [16 x i8] c"\A6\E7g \D1\8B\1Aq`\1F\1E\07\BB5@q", [10 x i8]* @"type_info::::name", i32 64, i8 8, i8 0 } -@global_type_table = global [1 x %struct.MunTypeInfo addrspace(4)*] [%struct.MunTypeInfo addrspace(4)* @"type_info::"] -