diff --git a/toolchain/check/convert.cpp b/toolchain/check/convert.cpp index 8b5b265d14d86..5e82c431106e3 100644 --- a/toolchain/check/convert.cpp +++ b/toolchain/check/convert.cpp @@ -152,7 +152,7 @@ static auto MakeElementAccessInst(Context& context, SemIR::LocId loc_id, // TODO: Add a new instruction kind for indexing an array at a constant // index so that we don't need an integer literal instruction here, and // remove this special case. - auto index_id = block.template AddInst( + auto index_id = block.template AddInst( loc_id, {.type_id = context.GetBuiltinType(SemIR::BuiltinInstKind::IntType), .int_id = context.ints().Add(llvm::APInt(32, i))}); diff --git a/toolchain/check/eval.cpp b/toolchain/check/eval.cpp index c70b1bf4bc2fd..1dcb999d05a6c 100644 --- a/toolchain/check/eval.cpp +++ b/toolchain/check/eval.cpp @@ -243,7 +243,7 @@ static auto MakeIntResult(Context& context, SemIR::TypeId type_id, llvm::APInt value) -> SemIR::ConstantId { auto result = context.ints().Add(std::move(value)); return MakeConstantResult( - context, SemIR::IntLiteral{.type_id = type_id, .int_id = result}, + context, SemIR::IntValue{.type_id = type_id, .int_id = result}, Phase::Template); } @@ -489,7 +489,7 @@ static auto PerformArrayIndex(EvalContext& eval_context, SemIR::ArrayIndex inst) if (!index_id.is_valid()) { return MakeNonConstantResult(phase); } - auto index = eval_context.insts().TryGetAs(index_id); + auto index = eval_context.insts().TryGetAs(index_id); if (!index) { CARBON_CHECK(phase != Phase::Template, "Template constant integer should be a literal"); @@ -503,7 +503,7 @@ static auto PerformArrayIndex(EvalContext& eval_context, SemIR::ArrayIndex inst) eval_context.insts().Get(inst.array_id).type_id()); if (auto array_type = eval_context.types().TryGetAs(aggregate_type_id)) { - if (auto bound = eval_context.insts().TryGetAs( + if (auto bound = eval_context.insts().TryGetAs( array_type->bound_id)) { // This awkward call to `getZExtValue` is a workaround for APInt not // supporting comparisons between integers of different bit widths. @@ -542,7 +542,7 @@ static auto PerformArrayIndex(EvalContext& eval_context, SemIR::ArrayIndex inst) static auto ValidateIntType(Context& context, SemIRLoc loc, SemIR::IntType result) -> bool { auto bit_width = - context.insts().TryGetAs(result.bit_width_id); + context.insts().TryGetAs(result.bit_width_id); if (!bit_width) { // Symbolic bit width. return true; @@ -592,7 +592,7 @@ static auto MakeIntTypeResult(Context& context, SemIRLoc loc, // Enforces that the bit width is 64 for a float. static auto ValidateFloatBitWidth(Context& context, SemIRLoc loc, SemIR::InstId inst_id) -> bool { - auto inst = context.insts().GetAs(inst_id); + auto inst = context.insts().GetAs(inst_id); if (context.ints().Get(inst.int_id) == 64) { return true; } @@ -606,7 +606,7 @@ static auto ValidateFloatBitWidth(Context& context, SemIRLoc loc, static auto ValidateFloatType(Context& context, SemIRLoc loc, SemIR::FloatType result) -> bool { auto bit_width = - context.insts().TryGetAs(result.bit_width_id); + context.insts().TryGetAs(result.bit_width_id); if (!bit_width) { // Symbolic bit width. return true; @@ -625,7 +625,7 @@ static auto PerformBuiltinUnaryIntOp(Context& context, SemIRLoc loc, SemIR::BuiltinFunctionKind builtin_kind, SemIR::InstId arg_id) -> SemIR::ConstantId { - auto op = context.insts().GetAs(arg_id); + auto op = context.insts().GetAs(arg_id); auto op_val = context.ints().Get(op.int_id); switch (builtin_kind) { @@ -658,8 +658,8 @@ static auto PerformBuiltinBinaryIntOp(Context& context, SemIRLoc loc, SemIR::InstId lhs_id, SemIR::InstId rhs_id) -> SemIR::ConstantId { - auto lhs = context.insts().GetAs(lhs_id); - auto rhs = context.insts().GetAs(rhs_id); + auto lhs = context.insts().GetAs(lhs_id); + auto rhs = context.insts().GetAs(rhs_id); const auto& lhs_val = context.ints().Get(lhs.int_id); const auto& rhs_val = context.ints().Get(rhs.int_id); @@ -791,10 +791,10 @@ static auto PerformBuiltinIntComparison(Context& context, SemIR::InstId rhs_id, SemIR::TypeId bool_type_id) -> SemIR::ConstantId { - auto lhs = context.insts().GetAs(lhs_id); + auto lhs = context.insts().GetAs(lhs_id); const auto& lhs_val = context.ints().Get(lhs.int_id); - const auto& rhs_val = context.ints().Get( - context.insts().GetAs(rhs_id).int_id); + const auto& rhs_val = + context.ints().Get(context.insts().GetAs(rhs_id).int_id); bool is_signed = context.types().IsSignedInt(lhs.type_id); bool result; @@ -1122,8 +1122,8 @@ static auto TryEvalInstInContext(EvalContext& eval_context, eval_context, inst, [&](SemIR::ArrayType result) { auto bound_id = array_type.bound_id; - auto int_bound = eval_context.insts().TryGetAs( - result.bound_id); + auto int_bound = + eval_context.insts().TryGetAs(result.bound_id); if (!int_bound) { // TODO: Permit symbolic array bounds. This will require fixing // callers of `GetArrayBoundValue`. @@ -1330,13 +1330,13 @@ static auto TryEvalInstInContext(EvalContext& eval_context, case SemIR::BoolLiteral::Kind: case SemIR::FloatLiteral::Kind: - case SemIR::IntLiteral::Kind: + case SemIR::IntValue::Kind: case SemIR::StringLiteral::Kind: // Promote literals to the constant block. // TODO: Convert literals into a canonical form. Currently we can form two // different `i32` constants with the same value if they are represented // by `APInt`s with different bit widths. - // TODO: Can the type of an IntLiteral or FloatLiteral be symbolic? If so, + // TODO: Can the type of an IntValue or FloatLiteral be symbolic? If so, // we may need to rebuild. return MakeConstantResult(eval_context.context(), inst, Phase::Template); diff --git a/toolchain/check/handle_literal.cpp b/toolchain/check/handle_literal.cpp index 9498f368c28b5..2e6e479397216 100644 --- a/toolchain/check/handle_literal.cpp +++ b/toolchain/check/handle_literal.cpp @@ -28,7 +28,7 @@ auto HandleParseNode(Context& context, Parse::BoolLiteralTrueId node_id) return true; } -// Forms an IntLiteral instruction with type `i32` for a given literal integer +// Forms an IntValue instruction with type `i32` for a given literal integer // value, which is assumed to be unsigned. static auto MakeI32Literal(Context& context, Parse::NodeId node_id, IntId int_id) -> SemIR::InstId { @@ -43,20 +43,20 @@ static auto MakeI32Literal(Context& context, Parse::NodeId node_id, } // Literals are always represented as unsigned, so zero-extend if needed. auto i32_val = val.zextOrTrunc(32); - return context.AddInst( + return context.AddInst( node_id, {.type_id = context.GetBuiltinType(SemIR::BuiltinInstKind::IntType), .int_id = context.ints().Add(i32_val)}); } -// Forms an IntLiteral instruction with type `BigInt` for a given literal +// Forms an IntValue instruction with type `BigInt` for a given literal // integer value, which is assumed to be unsigned. static auto MakeBigIntLiteral(Context& context, Parse::NodeId node_id, IntId int_id) -> SemIR::InstId { // TODO: `IntId`s with different bit-widths are considered different values // here. Decide how we want to canonicalize these. For now this is only used // by type literals, so we rely on the lexer picking some consistent rule. - return context.AddInst( + return context.AddInst( node_id, {.type_id = context.GetBuiltinType(SemIR::BuiltinInstKind::BigIntType), .int_id = int_id}); diff --git a/toolchain/check/import_ref.cpp b/toolchain/check/import_ref.cpp index b2eef86e03dad..667badd7b412e 100644 --- a/toolchain/check/import_ref.cpp +++ b/toolchain/check/import_ref.cpp @@ -1217,7 +1217,7 @@ class ImportRefResolver { case CARBON_KIND(SemIR::InterfaceType inst): { return TryResolveTypedInst(inst); } - case CARBON_KIND(SemIR::IntLiteral inst): { + case CARBON_KIND(SemIR::IntValue inst): { return TryResolveTypedInst(inst); } case CARBON_KIND(SemIR::IntType inst): { @@ -2093,13 +2093,13 @@ class ImportRefResolver { .elements_id = elements_id}); } - auto TryResolveTypedInst(SemIR::IntLiteral inst) -> ResolveResult { + auto TryResolveTypedInst(SemIR::IntValue inst) -> ResolveResult { auto type_id = GetLocalConstantId(inst.type_id); if (HasNewWork()) { return Retry(); } - return ResolveAs( + return ResolveAs( {.type_id = context_.GetTypeIdForTypeConstant(type_id), .int_id = context_.ints().Add(import_ir_.ints().Get(inst.int_id))}); } diff --git a/toolchain/check/member_access.cpp b/toolchain/check/member_access.cpp index 7d9e080a2cf20..5db1dfb79e962 100644 --- a/toolchain/check/member_access.cpp +++ b/toolchain/check/member_access.cpp @@ -349,11 +349,11 @@ static auto PerformInstanceBinding(Context& context, SemIR::LocId loc_id, } } -// Validates that the index (required to be an IntLiteral) is valid within the +// Validates that the index (required to be an IntValue) is valid within the // tuple size. Returns the index on success, or nullptr on failure. static auto ValidateTupleIndex(Context& context, SemIR::LocId loc_id, SemIR::InstId operand_inst_id, - SemIR::IntLiteral index_inst, int size) + SemIR::IntValue index_inst, int size) -> const llvm::APInt* { const auto& index_val = context.ints().Get(index_inst.int_id); if (index_val.uge(size)) { @@ -517,7 +517,7 @@ auto PerformTupleAccess(Context& context, SemIR::LocId loc_id, return SemIR::InstId::BuiltinError; } - auto index_literal = context.insts().GetAs( + auto index_literal = context.insts().GetAs( context.constant_values().GetInstId(index_const_id)); auto type_block = context.type_blocks().Get(tuple_type->elements_id); const auto* index_val = ValidateTupleIndex(context, loc_id, tuple_inst_id, diff --git a/toolchain/check/testdata/array/array_in_place.carbon b/toolchain/check/testdata/array/array_in_place.carbon index d668dbeae506b..abff0b2b64c66 100644 --- a/toolchain/check/testdata/array/array_in_place.carbon +++ b/toolchain/check/testdata/array/array_in_place.carbon @@ -26,13 +26,13 @@ fn G() { // CHECK:STDOUT: %F: %F.type = struct_value () [template] // CHECK:STDOUT: %G.type: type = fn_type @G [template] // CHECK:STDOUT: %G: %G.type = struct_value () [template] -// CHECK:STDOUT: %.4: i32 = int_literal 2 [template] +// CHECK:STDOUT: %.4: i32 = int_value 2 [template] // CHECK:STDOUT: %.5: type = array_type %.4, %.3 [template] // CHECK:STDOUT: %.6: type = ptr_type %.3 [template] // CHECK:STDOUT: %.7: type = ptr_type %.5 [template] // CHECK:STDOUT: %.8: type = tuple_type (%.3, %.3) [template] -// CHECK:STDOUT: %.9: i32 = int_literal 0 [template] -// CHECK:STDOUT: %.10: i32 = int_literal 1 [template] +// CHECK:STDOUT: %.9: i32 = int_value 0 [template] +// CHECK:STDOUT: %.10: i32 = int_value 1 [template] // CHECK:STDOUT: } // CHECK:STDOUT: // CHECK:STDOUT: imports { @@ -82,7 +82,7 @@ fn G() { // CHECK:STDOUT: %int.make_type_32.loc14_17: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %int.make_type_32.loc14_22: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc14_25.1: %.2 = tuple_literal (%int.make_type_32.loc14_12, %int.make_type_32.loc14_17, %int.make_type_32.loc14_22) -// CHECK:STDOUT: %.loc14_28: i32 = int_literal 2 [template = constants.%.4] +// CHECK:STDOUT: %.loc14_28: i32 = int_value 2 [template = constants.%.4] // CHECK:STDOUT: %.loc14_25.2: type = value_of_initializer %int.make_type_32.loc14_12 [template = i32] // CHECK:STDOUT: %.loc14_25.3: type = converted %int.make_type_32.loc14_12, %.loc14_25.2 [template = i32] // CHECK:STDOUT: %.loc14_25.4: type = value_of_initializer %int.make_type_32.loc14_17 [template = i32] @@ -95,13 +95,13 @@ fn G() { // CHECK:STDOUT: %v: ref %.5 = bind_name v, %v.var // CHECK:STDOUT: %F.ref.loc14_34: %F.type = name_ref F, file.%F.decl [template = constants.%F] // CHECK:STDOUT: %.loc14_42.3: ref %.3 = splice_block %.loc14_42.2 { -// CHECK:STDOUT: %.loc14_42.1: i32 = int_literal 0 [template = constants.%.9] +// CHECK:STDOUT: %.loc14_42.1: i32 = int_value 0 [template = constants.%.9] // CHECK:STDOUT: %.loc14_42.2: ref %.3 = array_index %v.var, %.loc14_42.1 // CHECK:STDOUT: } // CHECK:STDOUT: %F.call.loc14_35: init %.3 = call %F.ref.loc14_34() to %.loc14_42.3 // CHECK:STDOUT: %F.ref.loc14_39: %F.type = name_ref F, file.%F.decl [template = constants.%F] // CHECK:STDOUT: %.loc14_42.6: ref %.3 = splice_block %.loc14_42.5 { -// CHECK:STDOUT: %.loc14_42.4: i32 = int_literal 1 [template = constants.%.10] +// CHECK:STDOUT: %.loc14_42.4: i32 = int_value 1 [template = constants.%.10] // CHECK:STDOUT: %.loc14_42.5: ref %.3 = array_index %v.var, %.loc14_42.4 // CHECK:STDOUT: } // CHECK:STDOUT: %F.call.loc14_40: init %.3 = call %F.ref.loc14_39() to %.loc14_42.6 diff --git a/toolchain/check/testdata/array/array_vs_tuple.carbon b/toolchain/check/testdata/array/array_vs_tuple.carbon index d1744772b7dff..1dc2f61dd707d 100644 --- a/toolchain/check/testdata/array/array_vs_tuple.carbon +++ b/toolchain/check/testdata/array/array_vs_tuple.carbon @@ -22,13 +22,13 @@ fn G() { // CHECK:STDOUT: %G: %G.type = struct_value () [template] // CHECK:STDOUT: %Int32.type: type = fn_type @Int32 [template] // CHECK:STDOUT: %Int32: %Int32.type = struct_value () [template] -// CHECK:STDOUT: %.2: i32 = int_literal 3 [template] +// CHECK:STDOUT: %.2: i32 = int_value 3 [template] // CHECK:STDOUT: %.3: type = array_type %.2, i32 [template] // CHECK:STDOUT: %.4: type = ptr_type %.3 [template] -// CHECK:STDOUT: %.5: i32 = int_literal 1 [template] -// CHECK:STDOUT: %.6: i32 = int_literal 2 [template] +// CHECK:STDOUT: %.5: i32 = int_value 1 [template] +// CHECK:STDOUT: %.6: i32 = int_value 2 [template] // CHECK:STDOUT: %.7: type = tuple_type (i32, i32, i32) [template] -// CHECK:STDOUT: %.8: i32 = int_literal 0 [template] +// CHECK:STDOUT: %.8: i32 = int_value 0 [template] // CHECK:STDOUT: %array: %.3 = tuple_value (%.5, %.6, %.2) [template] // CHECK:STDOUT: %.9: type = tuple_type (type, type, type) [template] // CHECK:STDOUT: %.10: type = ptr_type %.7 [template] @@ -56,23 +56,23 @@ fn G() { // CHECK:STDOUT: fn @G() { // CHECK:STDOUT: !entry: // CHECK:STDOUT: %int.make_type_32.loc13: init type = call constants.%Int32() [template = i32] -// CHECK:STDOUT: %.loc13_16: i32 = int_literal 3 [template = constants.%.2] +// CHECK:STDOUT: %.loc13_16: i32 = int_value 3 [template = constants.%.2] // CHECK:STDOUT: %.loc13_11.1: type = value_of_initializer %int.make_type_32.loc13 [template = i32] // CHECK:STDOUT: %.loc13_11.2: type = converted %int.make_type_32.loc13, %.loc13_11.1 [template = i32] // CHECK:STDOUT: %.loc13_17: type = array_type %.loc13_16, i32 [template = constants.%.3] // CHECK:STDOUT: %a.var: ref %.3 = var a // CHECK:STDOUT: %a: ref %.3 = bind_name a, %a.var -// CHECK:STDOUT: %.loc13_22: i32 = int_literal 1 [template = constants.%.5] -// CHECK:STDOUT: %.loc13_25: i32 = int_literal 2 [template = constants.%.6] -// CHECK:STDOUT: %.loc13_28: i32 = int_literal 3 [template = constants.%.2] +// CHECK:STDOUT: %.loc13_22: i32 = int_value 1 [template = constants.%.5] +// CHECK:STDOUT: %.loc13_25: i32 = int_value 2 [template = constants.%.6] +// CHECK:STDOUT: %.loc13_28: i32 = int_value 3 [template = constants.%.2] // CHECK:STDOUT: %.loc13_29.1: %.7 = tuple_literal (%.loc13_22, %.loc13_25, %.loc13_28) -// CHECK:STDOUT: %.loc13_29.2: i32 = int_literal 0 [template = constants.%.8] +// CHECK:STDOUT: %.loc13_29.2: i32 = int_value 0 [template = constants.%.8] // CHECK:STDOUT: %.loc13_29.3: ref i32 = array_index %a.var, %.loc13_29.2 // CHECK:STDOUT: %.loc13_29.4: init i32 = initialize_from %.loc13_22 to %.loc13_29.3 [template = constants.%.5] -// CHECK:STDOUT: %.loc13_29.5: i32 = int_literal 1 [template = constants.%.5] +// CHECK:STDOUT: %.loc13_29.5: i32 = int_value 1 [template = constants.%.5] // CHECK:STDOUT: %.loc13_29.6: ref i32 = array_index %a.var, %.loc13_29.5 // CHECK:STDOUT: %.loc13_29.7: init i32 = initialize_from %.loc13_25 to %.loc13_29.6 [template = constants.%.6] -// CHECK:STDOUT: %.loc13_29.8: i32 = int_literal 2 [template = constants.%.6] +// CHECK:STDOUT: %.loc13_29.8: i32 = int_value 2 [template = constants.%.6] // CHECK:STDOUT: %.loc13_29.9: ref i32 = array_index %a.var, %.loc13_29.8 // CHECK:STDOUT: %.loc13_29.10: init i32 = initialize_from %.loc13_28 to %.loc13_29.9 [template = constants.%.2] // CHECK:STDOUT: %.loc13_29.11: init %.3 = array_init (%.loc13_29.4, %.loc13_29.7, %.loc13_29.10) to %a.var [template = constants.%array] @@ -91,9 +91,9 @@ fn G() { // CHECK:STDOUT: %.loc14_24.8: type = converted %.loc14_24.1, constants.%.7 [template = constants.%.7] // CHECK:STDOUT: %b.var: ref %.7 = var b // CHECK:STDOUT: %b: ref %.7 = bind_name b, %b.var -// CHECK:STDOUT: %.loc14_29: i32 = int_literal 1 [template = constants.%.5] -// CHECK:STDOUT: %.loc14_32: i32 = int_literal 2 [template = constants.%.6] -// CHECK:STDOUT: %.loc14_35: i32 = int_literal 3 [template = constants.%.2] +// CHECK:STDOUT: %.loc14_29: i32 = int_value 1 [template = constants.%.5] +// CHECK:STDOUT: %.loc14_32: i32 = int_value 2 [template = constants.%.6] +// CHECK:STDOUT: %.loc14_35: i32 = int_value 3 [template = constants.%.2] // CHECK:STDOUT: %.loc14_36.1: %.7 = tuple_literal (%.loc14_29, %.loc14_32, %.loc14_35) // CHECK:STDOUT: %.loc14_36.2: ref i32 = tuple_access %b.var, element0 // CHECK:STDOUT: %.loc14_36.3: init i32 = initialize_from %.loc14_29 to %.loc14_36.2 [template = constants.%.5] diff --git a/toolchain/check/testdata/array/assign_return_value.carbon b/toolchain/check/testdata/array/assign_return_value.carbon index a968e70cfa0fd..268ca77b45b78 100644 --- a/toolchain/check/testdata/array/assign_return_value.carbon +++ b/toolchain/check/testdata/array/assign_return_value.carbon @@ -24,11 +24,11 @@ fn Run() { // CHECK:STDOUT: %.3: type = tuple_type (i32) [template] // CHECK:STDOUT: %F.type: type = fn_type @F [template] // CHECK:STDOUT: %F: %F.type = struct_value () [template] -// CHECK:STDOUT: %.4: i32 = int_literal 0 [template] +// CHECK:STDOUT: %.4: i32 = int_value 0 [template] // CHECK:STDOUT: %tuple: %.3 = tuple_value (%.4) [template] // CHECK:STDOUT: %Run.type: type = fn_type @Run [template] // CHECK:STDOUT: %Run: %Run.type = struct_value () [template] -// CHECK:STDOUT: %.5: i32 = int_literal 1 [template] +// CHECK:STDOUT: %.5: i32 = int_value 1 [template] // CHECK:STDOUT: %.6: type = array_type %.5, i32 [template] // CHECK:STDOUT: %.7: type = ptr_type %.6 [template] // CHECK:STDOUT: } @@ -68,7 +68,7 @@ fn Run() { // CHECK:STDOUT: // CHECK:STDOUT: fn @F() -> %.3 { // CHECK:STDOUT: !entry: -// CHECK:STDOUT: %.loc11_28: i32 = int_literal 0 [template = constants.%.4] +// CHECK:STDOUT: %.loc11_28: i32 = int_value 0 [template = constants.%.4] // CHECK:STDOUT: %.loc11_30: %.3 = tuple_literal (%.loc11_28) // CHECK:STDOUT: %tuple: %.3 = tuple_value (%.loc11_28) [template = constants.%tuple] // CHECK:STDOUT: %.loc11_31: %.3 = converted %.loc11_30, %tuple [template = constants.%tuple] @@ -78,7 +78,7 @@ fn Run() { // CHECK:STDOUT: fn @Run() { // CHECK:STDOUT: !entry: // CHECK:STDOUT: %int.make_type_32: init type = call constants.%Int32() [template = i32] -// CHECK:STDOUT: %.loc14_16: i32 = int_literal 1 [template = constants.%.5] +// CHECK:STDOUT: %.loc14_16: i32 = int_value 1 [template = constants.%.5] // CHECK:STDOUT: %.loc14_11.1: type = value_of_initializer %int.make_type_32 [template = i32] // CHECK:STDOUT: %.loc14_11.2: type = converted %int.make_type_32, %.loc14_11.1 [template = i32] // CHECK:STDOUT: %.loc14_17: type = array_type %.loc14_16, i32 [template = constants.%.6] @@ -90,7 +90,7 @@ fn Run() { // CHECK:STDOUT: %.loc14_22.2: ref %.3 = temporary %.loc14_22.1, %F.call // CHECK:STDOUT: %.loc14_22.3: ref i32 = tuple_access %.loc14_22.2, element0 // CHECK:STDOUT: %.loc14_22.4: i32 = bind_value %.loc14_22.3 -// CHECK:STDOUT: %.loc14_22.5: i32 = int_literal 0 [template = constants.%.4] +// CHECK:STDOUT: %.loc14_22.5: i32 = int_value 0 [template = constants.%.4] // CHECK:STDOUT: %.loc14_22.6: ref i32 = array_index %t.var, %.loc14_22.5 // CHECK:STDOUT: %.loc14_22.7: init i32 = initialize_from %.loc14_22.4 to %.loc14_22.6 // CHECK:STDOUT: %.loc14_22.8: init %.6 = array_init (%.loc14_22.7) to %t.var diff --git a/toolchain/check/testdata/array/assign_var.carbon b/toolchain/check/testdata/array/assign_var.carbon index 0687ca7e91742..460f22dd5ff3e 100644 --- a/toolchain/check/testdata/array/assign_var.carbon +++ b/toolchain/check/testdata/array/assign_var.carbon @@ -20,13 +20,13 @@ var b: [i32; 3] = a; // CHECK:STDOUT: %.2: type = tuple_type (type, type, type) [template] // CHECK:STDOUT: %.3: type = tuple_type (i32, i32, i32) [template] // CHECK:STDOUT: %.4: type = ptr_type %.3 [template] -// CHECK:STDOUT: %.5: i32 = int_literal 1 [template] -// CHECK:STDOUT: %.6: i32 = int_literal 2 [template] -// CHECK:STDOUT: %.7: i32 = int_literal 3 [template] +// CHECK:STDOUT: %.5: i32 = int_value 1 [template] +// CHECK:STDOUT: %.6: i32 = int_value 2 [template] +// CHECK:STDOUT: %.7: i32 = int_value 3 [template] // CHECK:STDOUT: %tuple: %.3 = tuple_value (%.5, %.6, %.7) [template] // CHECK:STDOUT: %.8: type = array_type %.7, i32 [template] // CHECK:STDOUT: %.9: type = ptr_type %.8 [template] -// CHECK:STDOUT: %.10: i32 = int_literal 0 [template] +// CHECK:STDOUT: %.10: i32 = int_value 0 [template] // CHECK:STDOUT: } // CHECK:STDOUT: // CHECK:STDOUT: imports { @@ -59,7 +59,7 @@ var b: [i32; 3] = a; // CHECK:STDOUT: %a.var: ref %.3 = var a // CHECK:STDOUT: %a: ref %.3 = bind_name a, %a.var // CHECK:STDOUT: %int.make_type_32.loc12: init type = call constants.%Int32() [template = i32] -// CHECK:STDOUT: %.loc12_14: i32 = int_literal 3 [template = constants.%.7] +// CHECK:STDOUT: %.loc12_14: i32 = int_value 3 [template = constants.%.7] // CHECK:STDOUT: %.loc12_9.1: type = value_of_initializer %int.make_type_32.loc12 [template = i32] // CHECK:STDOUT: %.loc12_9.2: type = converted %int.make_type_32.loc12, %.loc12_9.1 [template = i32] // CHECK:STDOUT: %.loc12_15: type = array_type %.loc12_14, i32 [template = constants.%.8] @@ -71,9 +71,9 @@ var b: [i32; 3] = a; // CHECK:STDOUT: // CHECK:STDOUT: fn @__global_init() { // CHECK:STDOUT: !entry: -// CHECK:STDOUT: %.loc11_27: i32 = int_literal 1 [template = constants.%.5] -// CHECK:STDOUT: %.loc11_30: i32 = int_literal 2 [template = constants.%.6] -// CHECK:STDOUT: %.loc11_33: i32 = int_literal 3 [template = constants.%.7] +// CHECK:STDOUT: %.loc11_27: i32 = int_value 1 [template = constants.%.5] +// CHECK:STDOUT: %.loc11_30: i32 = int_value 2 [template = constants.%.6] +// CHECK:STDOUT: %.loc11_33: i32 = int_value 3 [template = constants.%.7] // CHECK:STDOUT: %.loc11_34.1: %.3 = tuple_literal (%.loc11_27, %.loc11_30, %.loc11_33) // CHECK:STDOUT: %.loc11_34.2: ref i32 = tuple_access file.%a.var, element0 // CHECK:STDOUT: %.loc11_34.3: init i32 = initialize_from %.loc11_27 to %.loc11_34.2 [template = constants.%.5] @@ -87,17 +87,17 @@ var b: [i32; 3] = a; // CHECK:STDOUT: %a.ref: ref %.3 = name_ref a, file.%a // CHECK:STDOUT: %.loc12_19.1: ref i32 = tuple_access %a.ref, element0 // CHECK:STDOUT: %.loc12_19.2: i32 = bind_value %.loc12_19.1 -// CHECK:STDOUT: %.loc12_19.3: i32 = int_literal 0 [template = constants.%.10] +// CHECK:STDOUT: %.loc12_19.3: i32 = int_value 0 [template = constants.%.10] // CHECK:STDOUT: %.loc12_19.4: ref i32 = array_index file.%b.var, %.loc12_19.3 // CHECK:STDOUT: %.loc12_19.5: init i32 = initialize_from %.loc12_19.2 to %.loc12_19.4 // CHECK:STDOUT: %.loc12_19.6: ref i32 = tuple_access %a.ref, element1 // CHECK:STDOUT: %.loc12_19.7: i32 = bind_value %.loc12_19.6 -// CHECK:STDOUT: %.loc12_19.8: i32 = int_literal 1 [template = constants.%.5] +// CHECK:STDOUT: %.loc12_19.8: i32 = int_value 1 [template = constants.%.5] // CHECK:STDOUT: %.loc12_19.9: ref i32 = array_index file.%b.var, %.loc12_19.8 // CHECK:STDOUT: %.loc12_19.10: init i32 = initialize_from %.loc12_19.7 to %.loc12_19.9 // CHECK:STDOUT: %.loc12_19.11: ref i32 = tuple_access %a.ref, element2 // CHECK:STDOUT: %.loc12_19.12: i32 = bind_value %.loc12_19.11 -// CHECK:STDOUT: %.loc12_19.13: i32 = int_literal 2 [template = constants.%.6] +// CHECK:STDOUT: %.loc12_19.13: i32 = int_value 2 [template = constants.%.6] // CHECK:STDOUT: %.loc12_19.14: ref i32 = array_index file.%b.var, %.loc12_19.13 // CHECK:STDOUT: %.loc12_19.15: init i32 = initialize_from %.loc12_19.12 to %.loc12_19.14 // CHECK:STDOUT: %.loc12_19.16: init %.8 = array_init (%.loc12_19.5, %.loc12_19.10, %.loc12_19.15) to file.%b.var diff --git a/toolchain/check/testdata/array/base.carbon b/toolchain/check/testdata/array/base.carbon index 8f51f9052922c..a8d6733cc9f07 100644 --- a/toolchain/check/testdata/array/base.carbon +++ b/toolchain/check/testdata/array/base.carbon @@ -18,29 +18,29 @@ var c: [(); 5] = ((), (), (), (), (),); // CHECK:STDOUT: %Int32.type: type = fn_type @Int32 [template] // CHECK:STDOUT: %.1: type = tuple_type () [template] // CHECK:STDOUT: %Int32: %Int32.type = struct_value () [template] -// CHECK:STDOUT: %.2: i32 = int_literal 1 [template] +// CHECK:STDOUT: %.2: i32 = int_value 1 [template] // CHECK:STDOUT: %.3: type = array_type %.2, i32 [template] // CHECK:STDOUT: %.4: type = ptr_type %.3 [template] // CHECK:STDOUT: %.5: type = tuple_type (i32) [template] -// CHECK:STDOUT: %.6: i32 = int_literal 0 [template] +// CHECK:STDOUT: %.6: i32 = int_value 0 [template] // CHECK:STDOUT: %array.1: %.3 = tuple_value (%.2) [template] -// CHECK:STDOUT: %.7: Core.BigInt = int_literal 64 [template] +// CHECK:STDOUT: %.7: Core.BigInt = int_value 64 [template] // CHECK:STDOUT: %Float.type: type = fn_type @Float [template] // CHECK:STDOUT: %Float: %Float.type = struct_value () [template] -// CHECK:STDOUT: %.8: i32 = int_literal 2 [template] +// CHECK:STDOUT: %.8: i32 = int_value 2 [template] // CHECK:STDOUT: %.9: type = array_type %.8, f64 [template] // CHECK:STDOUT: %.10: type = ptr_type %.9 [template] // CHECK:STDOUT: %.11: f64 = float_literal 11.100000000000001 [template] // CHECK:STDOUT: %.12: f64 = float_literal 2.2000000000000002 [template] // CHECK:STDOUT: %.13: type = tuple_type (f64, f64) [template] // CHECK:STDOUT: %array.2: %.9 = tuple_value (%.11, %.12) [template] -// CHECK:STDOUT: %.14: i32 = int_literal 5 [template] +// CHECK:STDOUT: %.14: i32 = int_value 5 [template] // CHECK:STDOUT: %.15: type = array_type %.14, %.1 [template] // CHECK:STDOUT: %.16: type = ptr_type %.15 [template] // CHECK:STDOUT: %.17: type = tuple_type (%.1, %.1, %.1, %.1, %.1) [template] // CHECK:STDOUT: %tuple: %.1 = tuple_value () [template] -// CHECK:STDOUT: %.18: i32 = int_literal 3 [template] -// CHECK:STDOUT: %.19: i32 = int_literal 4 [template] +// CHECK:STDOUT: %.18: i32 = int_value 3 [template] +// CHECK:STDOUT: %.19: i32 = int_value 4 [template] // CHECK:STDOUT: %array.3: %.15 = tuple_value (%tuple, %tuple, %tuple, %tuple, %tuple) [template] // CHECK:STDOUT: } // CHECK:STDOUT: @@ -64,22 +64,22 @@ var c: [(); 5] = ((), (), (), (), (),); // CHECK:STDOUT: } // CHECK:STDOUT: %Core.import = import Core // CHECK:STDOUT: %int.make_type_32: init type = call constants.%Int32() [template = i32] -// CHECK:STDOUT: %.loc11_14: i32 = int_literal 1 [template = constants.%.2] +// CHECK:STDOUT: %.loc11_14: i32 = int_value 1 [template = constants.%.2] // CHECK:STDOUT: %.loc11_9.1: type = value_of_initializer %int.make_type_32 [template = i32] // CHECK:STDOUT: %.loc11_9.2: type = converted %int.make_type_32, %.loc11_9.1 [template = i32] // CHECK:STDOUT: %.loc11_15: type = array_type %.loc11_14, i32 [template = constants.%.3] // CHECK:STDOUT: %a.var: ref %.3 = var a // CHECK:STDOUT: %a: ref %.3 = bind_name a, %a.var -// CHECK:STDOUT: %.loc12_9.1: Core.BigInt = int_literal 64 [template = constants.%.7] +// CHECK:STDOUT: %.loc12_9.1: Core.BigInt = int_value 64 [template = constants.%.7] // CHECK:STDOUT: %float.make_type: init type = call constants.%Float(%.loc12_9.1) [template = f64] -// CHECK:STDOUT: %.loc12_14: i32 = int_literal 2 [template = constants.%.8] +// CHECK:STDOUT: %.loc12_14: i32 = int_value 2 [template = constants.%.8] // CHECK:STDOUT: %.loc12_9.2: type = value_of_initializer %float.make_type [template = f64] // CHECK:STDOUT: %.loc12_9.3: type = converted %float.make_type, %.loc12_9.2 [template = f64] // CHECK:STDOUT: %.loc12_15: type = array_type %.loc12_14, f64 [template = constants.%.9] // CHECK:STDOUT: %b.var: ref %.9 = var b // CHECK:STDOUT: %b: ref %.9 = bind_name b, %b.var // CHECK:STDOUT: %.loc13_10.1: %.1 = tuple_literal () -// CHECK:STDOUT: %.loc13_13: i32 = int_literal 5 [template = constants.%.14] +// CHECK:STDOUT: %.loc13_13: i32 = int_value 5 [template = constants.%.14] // CHECK:STDOUT: %.loc13_10.2: type = converted %.loc13_10.1, constants.%.1 [template = constants.%.1] // CHECK:STDOUT: %.loc13_14: type = array_type %.loc13_13, %.1 [template = constants.%.15] // CHECK:STDOUT: %c.var: ref %.15 = var c @@ -92,9 +92,9 @@ var c: [(); 5] = ((), (), (), (), (),); // CHECK:STDOUT: // CHECK:STDOUT: fn @__global_init() { // CHECK:STDOUT: !entry: -// CHECK:STDOUT: %.loc11_20: i32 = int_literal 1 [template = constants.%.2] +// CHECK:STDOUT: %.loc11_20: i32 = int_value 1 [template = constants.%.2] // CHECK:STDOUT: %.loc11_22.1: %.5 = tuple_literal (%.loc11_20) -// CHECK:STDOUT: %.loc11_22.2: i32 = int_literal 0 [template = constants.%.6] +// CHECK:STDOUT: %.loc11_22.2: i32 = int_value 0 [template = constants.%.6] // CHECK:STDOUT: %.loc11_22.3: ref i32 = array_index file.%a.var, %.loc11_22.2 // CHECK:STDOUT: %.loc11_22.4: init i32 = initialize_from %.loc11_20 to %.loc11_22.3 [template = constants.%.2] // CHECK:STDOUT: %.loc11_22.5: init %.3 = array_init (%.loc11_22.4) to file.%a.var [template = constants.%array.1] @@ -103,10 +103,10 @@ var c: [(); 5] = ((), (), (), (), (),); // CHECK:STDOUT: %.loc12_20: f64 = float_literal 11.100000000000001 [template = constants.%.11] // CHECK:STDOUT: %.loc12_26: f64 = float_literal 2.2000000000000002 [template = constants.%.12] // CHECK:STDOUT: %.loc12_30.1: %.13 = tuple_literal (%.loc12_20, %.loc12_26) -// CHECK:STDOUT: %.loc12_30.2: i32 = int_literal 0 [template = constants.%.6] +// CHECK:STDOUT: %.loc12_30.2: i32 = int_value 0 [template = constants.%.6] // CHECK:STDOUT: %.loc12_30.3: ref f64 = array_index file.%b.var, %.loc12_30.2 // CHECK:STDOUT: %.loc12_30.4: init f64 = initialize_from %.loc12_20 to %.loc12_30.3 [template = constants.%.11] -// CHECK:STDOUT: %.loc12_30.5: i32 = int_literal 1 [template = constants.%.2] +// CHECK:STDOUT: %.loc12_30.5: i32 = int_value 1 [template = constants.%.2] // CHECK:STDOUT: %.loc12_30.6: ref f64 = array_index file.%b.var, %.loc12_30.5 // CHECK:STDOUT: %.loc12_30.7: init f64 = initialize_from %.loc12_26 to %.loc12_30.6 [template = constants.%.12] // CHECK:STDOUT: %.loc12_30.8: init %.9 = array_init (%.loc12_30.4, %.loc12_30.7) to file.%b.var [template = constants.%array.2] @@ -118,23 +118,23 @@ var c: [(); 5] = ((), (), (), (), (),); // CHECK:STDOUT: %.loc13_32.1: %.1 = tuple_literal () // CHECK:STDOUT: %.loc13_36.1: %.1 = tuple_literal () // CHECK:STDOUT: %.loc13_38.1: %.17 = tuple_literal (%.loc13_20.1, %.loc13_24.1, %.loc13_28.1, %.loc13_32.1, %.loc13_36.1) -// CHECK:STDOUT: %.loc13_38.2: i32 = int_literal 0 [template = constants.%.6] +// CHECK:STDOUT: %.loc13_38.2: i32 = int_value 0 [template = constants.%.6] // CHECK:STDOUT: %.loc13_38.3: ref %.1 = array_index file.%c.var, %.loc13_38.2 // CHECK:STDOUT: %.loc13_20.2: init %.1 = tuple_init () to %.loc13_38.3 [template = constants.%tuple] // CHECK:STDOUT: %.loc13_38.4: init %.1 = converted %.loc13_20.1, %.loc13_20.2 [template = constants.%tuple] -// CHECK:STDOUT: %.loc13_38.5: i32 = int_literal 1 [template = constants.%.2] +// CHECK:STDOUT: %.loc13_38.5: i32 = int_value 1 [template = constants.%.2] // CHECK:STDOUT: %.loc13_38.6: ref %.1 = array_index file.%c.var, %.loc13_38.5 // CHECK:STDOUT: %.loc13_24.2: init %.1 = tuple_init () to %.loc13_38.6 [template = constants.%tuple] // CHECK:STDOUT: %.loc13_38.7: init %.1 = converted %.loc13_24.1, %.loc13_24.2 [template = constants.%tuple] -// CHECK:STDOUT: %.loc13_38.8: i32 = int_literal 2 [template = constants.%.8] +// CHECK:STDOUT: %.loc13_38.8: i32 = int_value 2 [template = constants.%.8] // CHECK:STDOUT: %.loc13_38.9: ref %.1 = array_index file.%c.var, %.loc13_38.8 // CHECK:STDOUT: %.loc13_28.2: init %.1 = tuple_init () to %.loc13_38.9 [template = constants.%tuple] // CHECK:STDOUT: %.loc13_38.10: init %.1 = converted %.loc13_28.1, %.loc13_28.2 [template = constants.%tuple] -// CHECK:STDOUT: %.loc13_38.11: i32 = int_literal 3 [template = constants.%.18] +// CHECK:STDOUT: %.loc13_38.11: i32 = int_value 3 [template = constants.%.18] // CHECK:STDOUT: %.loc13_38.12: ref %.1 = array_index file.%c.var, %.loc13_38.11 // CHECK:STDOUT: %.loc13_32.2: init %.1 = tuple_init () to %.loc13_38.12 [template = constants.%tuple] // CHECK:STDOUT: %.loc13_38.13: init %.1 = converted %.loc13_32.1, %.loc13_32.2 [template = constants.%tuple] -// CHECK:STDOUT: %.loc13_38.14: i32 = int_literal 4 [template = constants.%.19] +// CHECK:STDOUT: %.loc13_38.14: i32 = int_value 4 [template = constants.%.19] // CHECK:STDOUT: %.loc13_38.15: ref %.1 = array_index file.%c.var, %.loc13_38.14 // CHECK:STDOUT: %.loc13_36.2: init %.1 = tuple_init () to %.loc13_38.15 [template = constants.%tuple] // CHECK:STDOUT: %.loc13_38.16: init %.1 = converted %.loc13_36.1, %.loc13_36.2 [template = constants.%tuple] diff --git a/toolchain/check/testdata/array/canonicalize_index.carbon b/toolchain/check/testdata/array/canonicalize_index.carbon index 45a37b800276b..a9fd5ff629781 100644 --- a/toolchain/check/testdata/array/canonicalize_index.carbon +++ b/toolchain/check/testdata/array/canonicalize_index.carbon @@ -21,13 +21,13 @@ let b: [i32; 3]* = &a; // CHECK:STDOUT: %Int32: %Int32.type = struct_value () [template] // CHECK:STDOUT: %Add.type: type = fn_type @Add [template] // CHECK:STDOUT: %Add: %Add.type = struct_value () [template] -// CHECK:STDOUT: %.2: i32 = int_literal 1 [template] -// CHECK:STDOUT: %.3: i32 = int_literal 2 [template] -// CHECK:STDOUT: %.4: i32 = int_literal 3 [template] +// CHECK:STDOUT: %.2: i32 = int_value 1 [template] +// CHECK:STDOUT: %.3: i32 = int_value 2 [template] +// CHECK:STDOUT: %.4: i32 = int_value 3 [template] // CHECK:STDOUT: %.5: type = array_type %.4, i32 [template] // CHECK:STDOUT: %.6: type = ptr_type %.5 [template] // CHECK:STDOUT: %.7: type = tuple_type (i32, i32, i32) [template] -// CHECK:STDOUT: %.8: i32 = int_literal 0 [template] +// CHECK:STDOUT: %.8: i32 = int_value 0 [template] // CHECK:STDOUT: %array: %.5 = tuple_value (%.2, %.3, %.4) [template] // CHECK:STDOUT: } // CHECK:STDOUT: @@ -74,8 +74,8 @@ let b: [i32; 3]* = &a; // CHECK:STDOUT: } // CHECK:STDOUT: %int.make_type_32.loc13: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %Add.ref: %Add.type = name_ref Add, %Add.decl [template = constants.%Add] -// CHECK:STDOUT: %.loc13_18: i32 = int_literal 1 [template = constants.%.2] -// CHECK:STDOUT: %.loc13_21: i32 = int_literal 2 [template = constants.%.3] +// CHECK:STDOUT: %.loc13_18: i32 = int_value 1 [template = constants.%.2] +// CHECK:STDOUT: %.loc13_21: i32 = int_value 2 [template = constants.%.3] // CHECK:STDOUT: %int.sadd: init i32 = call %Add.ref(%.loc13_18, %.loc13_21) [template = constants.%.4] // CHECK:STDOUT: %.loc13_9.1: type = value_of_initializer %int.make_type_32.loc13 [template = i32] // CHECK:STDOUT: %.loc13_9.2: type = converted %int.make_type_32.loc13, %.loc13_9.1 [template = i32] @@ -83,7 +83,7 @@ let b: [i32; 3]* = &a; // CHECK:STDOUT: %a.var: ref %.5 = var a // CHECK:STDOUT: %a: ref %.5 = bind_name a, %a.var // CHECK:STDOUT: %int.make_type_32.loc14: init type = call constants.%Int32() [template = i32] -// CHECK:STDOUT: %.loc14_14: i32 = int_literal 3 [template = constants.%.4] +// CHECK:STDOUT: %.loc14_14: i32 = int_value 3 [template = constants.%.4] // CHECK:STDOUT: %.loc14_9.1: type = value_of_initializer %int.make_type_32.loc14 [template = i32] // CHECK:STDOUT: %.loc14_9.2: type = converted %int.make_type_32.loc14, %.loc14_9.1 [template = i32] // CHECK:STDOUT: %.loc14_15: type = array_type %.loc14_14, i32 [template = constants.%.5] @@ -96,17 +96,17 @@ let b: [i32; 3]* = &a; // CHECK:STDOUT: // CHECK:STDOUT: fn @__global_init() { // CHECK:STDOUT: !entry: -// CHECK:STDOUT: %.loc13_28: i32 = int_literal 1 [template = constants.%.2] -// CHECK:STDOUT: %.loc13_31: i32 = int_literal 2 [template = constants.%.3] -// CHECK:STDOUT: %.loc13_34: i32 = int_literal 3 [template = constants.%.4] +// CHECK:STDOUT: %.loc13_28: i32 = int_value 1 [template = constants.%.2] +// CHECK:STDOUT: %.loc13_31: i32 = int_value 2 [template = constants.%.3] +// CHECK:STDOUT: %.loc13_34: i32 = int_value 3 [template = constants.%.4] // CHECK:STDOUT: %.loc13_35.1: %.7 = tuple_literal (%.loc13_28, %.loc13_31, %.loc13_34) -// CHECK:STDOUT: %.loc13_35.2: i32 = int_literal 0 [template = constants.%.8] +// CHECK:STDOUT: %.loc13_35.2: i32 = int_value 0 [template = constants.%.8] // CHECK:STDOUT: %.loc13_35.3: ref i32 = array_index file.%a.var, %.loc13_35.2 // CHECK:STDOUT: %.loc13_35.4: init i32 = initialize_from %.loc13_28 to %.loc13_35.3 [template = constants.%.2] -// CHECK:STDOUT: %.loc13_35.5: i32 = int_literal 1 [template = constants.%.2] +// CHECK:STDOUT: %.loc13_35.5: i32 = int_value 1 [template = constants.%.2] // CHECK:STDOUT: %.loc13_35.6: ref i32 = array_index file.%a.var, %.loc13_35.5 // CHECK:STDOUT: %.loc13_35.7: init i32 = initialize_from %.loc13_31 to %.loc13_35.6 [template = constants.%.3] -// CHECK:STDOUT: %.loc13_35.8: i32 = int_literal 2 [template = constants.%.3] +// CHECK:STDOUT: %.loc13_35.8: i32 = int_value 2 [template = constants.%.3] // CHECK:STDOUT: %.loc13_35.9: ref i32 = array_index file.%a.var, %.loc13_35.8 // CHECK:STDOUT: %.loc13_35.10: init i32 = initialize_from %.loc13_34 to %.loc13_35.9 [template = constants.%.4] // CHECK:STDOUT: %.loc13_35.11: init %.5 = array_init (%.loc13_35.4, %.loc13_35.7, %.loc13_35.10) to file.%a.var [template = constants.%array] diff --git a/toolchain/check/testdata/array/fail_bound_negative.carbon b/toolchain/check/testdata/array/fail_bound_negative.carbon index 66a432ada728f..5e0e116addde5 100644 --- a/toolchain/check/testdata/array/fail_bound_negative.carbon +++ b/toolchain/check/testdata/array/fail_bound_negative.carbon @@ -23,8 +23,8 @@ var a: [i32; Negate(1)]; // CHECK:STDOUT: %Int32: %Int32.type = struct_value () [template] // CHECK:STDOUT: %Negate.type: type = fn_type @Negate [template] // CHECK:STDOUT: %Negate: %Negate.type = struct_value () [template] -// CHECK:STDOUT: %.2: i32 = int_literal 1 [template] -// CHECK:STDOUT: %.3: i32 = int_literal -1 [template] +// CHECK:STDOUT: %.2: i32 = int_value 1 [template] +// CHECK:STDOUT: %.3: i32 = int_value -1 [template] // CHECK:STDOUT: } // CHECK:STDOUT: // CHECK:STDOUT: imports { @@ -62,7 +62,7 @@ var a: [i32; Negate(1)]; // CHECK:STDOUT: } // CHECK:STDOUT: %int.make_type_32: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %Negate.ref: %Negate.type = name_ref Negate, %Negate.decl [template = constants.%Negate] -// CHECK:STDOUT: %.loc16_21: i32 = int_literal 1 [template = constants.%.2] +// CHECK:STDOUT: %.loc16_21: i32 = int_value 1 [template = constants.%.2] // CHECK:STDOUT: %int.snegate: init i32 = call %Negate.ref(%.loc16_21) [template = constants.%.3] // CHECK:STDOUT: %.loc16_9.1: type = value_of_initializer %int.make_type_32 [template = i32] // CHECK:STDOUT: %.loc16_9.2: type = converted %int.make_type_32, %.loc16_9.1 [template = i32] diff --git a/toolchain/check/testdata/array/fail_bound_overflow.carbon b/toolchain/check/testdata/array/fail_bound_overflow.carbon index b4668b6592fe8..32479c11d507f 100644 --- a/toolchain/check/testdata/array/fail_bound_overflow.carbon +++ b/toolchain/check/testdata/array/fail_bound_overflow.carbon @@ -35,7 +35,7 @@ var b: [1; 39999999999999999993]; // CHECK:STDOUT: %Int32.type: type = fn_type @Int32 [template] // CHECK:STDOUT: %.1: type = tuple_type () [template] // CHECK:STDOUT: %Int32: %Int32.type = struct_value () [template] -// CHECK:STDOUT: %.2: i32 = int_literal 1 [template] +// CHECK:STDOUT: %.2: i32 = int_value 1 [template] // CHECK:STDOUT: %ImplicitAs.type.1: type = generic_interface_type @ImplicitAs [template] // CHECK:STDOUT: %ImplicitAs: %ImplicitAs.type.1 = struct_value () [template] // CHECK:STDOUT: %Dest: type = bind_symbolic_name Dest, 0 [symbolic] @@ -84,7 +84,7 @@ var b: [1; 39999999999999999993]; // CHECK:STDOUT: %.loc18_34: type = array_type , i32 [template = ] // CHECK:STDOUT: %a.var: ref = var a // CHECK:STDOUT: %a: ref = bind_name a, %a.var -// CHECK:STDOUT: %.loc30_9.1: i32 = int_literal 1 [template = constants.%.2] +// CHECK:STDOUT: %.loc30_9.1: i32 = int_value 1 [template = constants.%.2] // CHECK:STDOUT: %ImplicitAs.type: type = interface_type @ImplicitAs, @ImplicitAs(type) [template = constants.%ImplicitAs.type.3] // CHECK:STDOUT: %.loc30_9.2: %.5 = specific_constant imports.%import_ref.4, @ImplicitAs(type) [template = constants.%.6] // CHECK:STDOUT: %Convert.ref: %.5 = name_ref Convert, %.loc30_9.2 [template = constants.%.6] diff --git a/toolchain/check/testdata/array/fail_incomplete_element.carbon b/toolchain/check/testdata/array/fail_incomplete_element.carbon index ebcd8c5c41ff9..538628eeb5137 100644 --- a/toolchain/check/testdata/array/fail_incomplete_element.carbon +++ b/toolchain/check/testdata/array/fail_incomplete_element.carbon @@ -24,10 +24,10 @@ var p: Incomplete* = &a[0]; // CHECK:STDOUT: // CHECK:STDOUT: constants { // CHECK:STDOUT: %Incomplete: type = class_type @Incomplete [template] -// CHECK:STDOUT: %.1: i32 = int_literal 1 [template] +// CHECK:STDOUT: %.1: i32 = int_value 1 [template] // CHECK:STDOUT: %.2: type = array_type %.1, %Incomplete [template] // CHECK:STDOUT: %.3: type = ptr_type %Incomplete [template] -// CHECK:STDOUT: %.4: i32 = int_literal 0 [template] +// CHECK:STDOUT: %.4: i32 = int_value 0 [template] // CHECK:STDOUT: } // CHECK:STDOUT: // CHECK:STDOUT: imports { @@ -47,7 +47,7 @@ var p: Incomplete* = &a[0]; // CHECK:STDOUT: %Core.import = import Core // CHECK:STDOUT: %Incomplete.decl: type = class_decl @Incomplete [template = constants.%Incomplete] {} {} // CHECK:STDOUT: %Incomplete.ref.loc19: type = name_ref Incomplete, %Incomplete.decl [template = constants.%Incomplete] -// CHECK:STDOUT: %.loc19_21: i32 = int_literal 1 [template = constants.%.1] +// CHECK:STDOUT: %.loc19_21: i32 = int_value 1 [template = constants.%.1] // CHECK:STDOUT: %.loc19_22: type = array_type %.loc19_21, %Incomplete [template = constants.%.2] // CHECK:STDOUT: %a.var: ref = var a // CHECK:STDOUT: %a: ref = bind_name a, %a.var @@ -62,7 +62,7 @@ var p: Incomplete* = &a[0]; // CHECK:STDOUT: fn @__global_init() { // CHECK:STDOUT: !entry: // CHECK:STDOUT: %a.ref: ref = name_ref a, file.%a -// CHECK:STDOUT: %.loc21_25: i32 = int_literal 0 [template = constants.%.4] +// CHECK:STDOUT: %.loc21_25: i32 = int_value 0 [template = constants.%.4] // CHECK:STDOUT: %.loc21_22: = addr_of [template = ] // CHECK:STDOUT: assign file.%p.var, // CHECK:STDOUT: return diff --git a/toolchain/check/testdata/array/fail_invalid_type.carbon b/toolchain/check/testdata/array/fail_invalid_type.carbon index ceb411db4c3ef..af3d679274abb 100644 --- a/toolchain/check/testdata/array/fail_invalid_type.carbon +++ b/toolchain/check/testdata/array/fail_invalid_type.carbon @@ -19,7 +19,7 @@ var a: [1; 1]; // CHECK:STDOUT: --- fail_invalid_type.carbon // CHECK:STDOUT: // CHECK:STDOUT: constants { -// CHECK:STDOUT: %.1: i32 = int_literal 1 [template] +// CHECK:STDOUT: %.1: i32 = int_value 1 [template] // CHECK:STDOUT: %ImplicitAs.type.1: type = generic_interface_type @ImplicitAs [template] // CHECK:STDOUT: %.2: type = tuple_type () [template] // CHECK:STDOUT: %ImplicitAs: %ImplicitAs.type.1 = struct_value () [template] @@ -60,8 +60,8 @@ var a: [1; 1]; // CHECK:STDOUT: .a = %a // CHECK:STDOUT: } // CHECK:STDOUT: %Core.import = import Core -// CHECK:STDOUT: %.loc17_9.1: i32 = int_literal 1 [template = constants.%.1] -// CHECK:STDOUT: %.loc17_12: i32 = int_literal 1 [template = constants.%.1] +// CHECK:STDOUT: %.loc17_9.1: i32 = int_value 1 [template = constants.%.1] +// CHECK:STDOUT: %.loc17_12: i32 = int_value 1 [template = constants.%.1] // CHECK:STDOUT: %ImplicitAs.type: type = interface_type @ImplicitAs, @ImplicitAs(type) [template = constants.%ImplicitAs.type.3] // CHECK:STDOUT: %.loc17_9.2: %.5 = specific_constant imports.%import_ref.3, @ImplicitAs(type) [template = constants.%.6] // CHECK:STDOUT: %Convert.ref: %.5 = name_ref Convert, %.loc17_9.2 [template = constants.%.6] diff --git a/toolchain/check/testdata/array/fail_out_of_bound.carbon b/toolchain/check/testdata/array/fail_out_of_bound.carbon index 83726e2b60f5c..a6ded308cfd9d 100644 --- a/toolchain/check/testdata/array/fail_out_of_bound.carbon +++ b/toolchain/check/testdata/array/fail_out_of_bound.carbon @@ -19,11 +19,11 @@ var a: [i32; 1] = (1, 2, 3); // CHECK:STDOUT: %Int32.type: type = fn_type @Int32 [template] // CHECK:STDOUT: %.1: type = tuple_type () [template] // CHECK:STDOUT: %Int32: %Int32.type = struct_value () [template] -// CHECK:STDOUT: %.2: i32 = int_literal 1 [template] +// CHECK:STDOUT: %.2: i32 = int_value 1 [template] // CHECK:STDOUT: %.3: type = array_type %.2, i32 [template] // CHECK:STDOUT: %.4: type = ptr_type %.3 [template] -// CHECK:STDOUT: %.5: i32 = int_literal 2 [template] -// CHECK:STDOUT: %.6: i32 = int_literal 3 [template] +// CHECK:STDOUT: %.5: i32 = int_value 2 [template] +// CHECK:STDOUT: %.6: i32 = int_value 3 [template] // CHECK:STDOUT: %.7: type = tuple_type (i32, i32, i32) [template] // CHECK:STDOUT: } // CHECK:STDOUT: @@ -43,7 +43,7 @@ var a: [i32; 1] = (1, 2, 3); // CHECK:STDOUT: } // CHECK:STDOUT: %Core.import = import Core // CHECK:STDOUT: %int.make_type_32: init type = call constants.%Int32() [template = i32] -// CHECK:STDOUT: %.loc14_14: i32 = int_literal 1 [template = constants.%.2] +// CHECK:STDOUT: %.loc14_14: i32 = int_value 1 [template = constants.%.2] // CHECK:STDOUT: %.loc14_9.1: type = value_of_initializer %int.make_type_32 [template = i32] // CHECK:STDOUT: %.loc14_9.2: type = converted %int.make_type_32, %.loc14_9.1 [template = i32] // CHECK:STDOUT: %.loc14_15: type = array_type %.loc14_14, i32 [template = constants.%.3] @@ -55,9 +55,9 @@ var a: [i32; 1] = (1, 2, 3); // CHECK:STDOUT: // CHECK:STDOUT: fn @__global_init() { // CHECK:STDOUT: !entry: -// CHECK:STDOUT: %.loc14_20: i32 = int_literal 1 [template = constants.%.2] -// CHECK:STDOUT: %.loc14_23: i32 = int_literal 2 [template = constants.%.5] -// CHECK:STDOUT: %.loc14_26: i32 = int_literal 3 [template = constants.%.6] +// CHECK:STDOUT: %.loc14_20: i32 = int_value 1 [template = constants.%.2] +// CHECK:STDOUT: %.loc14_23: i32 = int_value 2 [template = constants.%.5] +// CHECK:STDOUT: %.loc14_26: i32 = int_value 3 [template = constants.%.6] // CHECK:STDOUT: %.loc14_27: %.7 = tuple_literal (%.loc14_20, %.loc14_23, %.loc14_26) // CHECK:STDOUT: assign file.%a.var, // CHECK:STDOUT: return diff --git a/toolchain/check/testdata/array/fail_out_of_bound_non_literal.carbon b/toolchain/check/testdata/array/fail_out_of_bound_non_literal.carbon index 778cb164c2808..7c289645d91c1 100644 --- a/toolchain/check/testdata/array/fail_out_of_bound_non_literal.carbon +++ b/toolchain/check/testdata/array/fail_out_of_bound_non_literal.carbon @@ -20,13 +20,13 @@ var b: i32 = a[{.index = 3}.index]; // CHECK:STDOUT: %Int32.type: type = fn_type @Int32 [template] // CHECK:STDOUT: %.1: type = tuple_type () [template] // CHECK:STDOUT: %Int32: %Int32.type = struct_value () [template] -// CHECK:STDOUT: %.2: i32 = int_literal 3 [template] +// CHECK:STDOUT: %.2: i32 = int_value 3 [template] // CHECK:STDOUT: %.3: type = array_type %.2, i32 [template] // CHECK:STDOUT: %.4: type = ptr_type %.3 [template] -// CHECK:STDOUT: %.5: i32 = int_literal 1 [template] -// CHECK:STDOUT: %.6: i32 = int_literal 2 [template] +// CHECK:STDOUT: %.5: i32 = int_value 1 [template] +// CHECK:STDOUT: %.6: i32 = int_value 2 [template] // CHECK:STDOUT: %.7: type = tuple_type (i32, i32, i32) [template] -// CHECK:STDOUT: %.8: i32 = int_literal 0 [template] +// CHECK:STDOUT: %.8: i32 = int_value 0 [template] // CHECK:STDOUT: %array: %.3 = tuple_value (%.5, %.6, %.2) [template] // CHECK:STDOUT: %.9: type = struct_type {.index: i32} [template] // CHECK:STDOUT: %struct: %.9 = struct_value (%.2) [template] @@ -49,7 +49,7 @@ var b: i32 = a[{.index = 3}.index]; // CHECK:STDOUT: } // CHECK:STDOUT: %Core.import = import Core // CHECK:STDOUT: %int.make_type_32.loc11: init type = call constants.%Int32() [template = i32] -// CHECK:STDOUT: %.loc11_14: i32 = int_literal 3 [template = constants.%.2] +// CHECK:STDOUT: %.loc11_14: i32 = int_value 3 [template = constants.%.2] // CHECK:STDOUT: %.loc11_9.1: type = value_of_initializer %int.make_type_32.loc11 [template = i32] // CHECK:STDOUT: %.loc11_9.2: type = converted %int.make_type_32.loc11, %.loc11_9.1 [template = i32] // CHECK:STDOUT: %.loc11_15: type = array_type %.loc11_14, i32 [template = constants.%.3] @@ -66,24 +66,24 @@ var b: i32 = a[{.index = 3}.index]; // CHECK:STDOUT: // CHECK:STDOUT: fn @__global_init() { // CHECK:STDOUT: !entry: -// CHECK:STDOUT: %.loc11_20: i32 = int_literal 1 [template = constants.%.5] -// CHECK:STDOUT: %.loc11_23: i32 = int_literal 2 [template = constants.%.6] -// CHECK:STDOUT: %.loc11_26: i32 = int_literal 3 [template = constants.%.2] +// CHECK:STDOUT: %.loc11_20: i32 = int_value 1 [template = constants.%.5] +// CHECK:STDOUT: %.loc11_23: i32 = int_value 2 [template = constants.%.6] +// CHECK:STDOUT: %.loc11_26: i32 = int_value 3 [template = constants.%.2] // CHECK:STDOUT: %.loc11_27.1: %.7 = tuple_literal (%.loc11_20, %.loc11_23, %.loc11_26) -// CHECK:STDOUT: %.loc11_27.2: i32 = int_literal 0 [template = constants.%.8] +// CHECK:STDOUT: %.loc11_27.2: i32 = int_value 0 [template = constants.%.8] // CHECK:STDOUT: %.loc11_27.3: ref i32 = array_index file.%a.var, %.loc11_27.2 // CHECK:STDOUT: %.loc11_27.4: init i32 = initialize_from %.loc11_20 to %.loc11_27.3 [template = constants.%.5] -// CHECK:STDOUT: %.loc11_27.5: i32 = int_literal 1 [template = constants.%.5] +// CHECK:STDOUT: %.loc11_27.5: i32 = int_value 1 [template = constants.%.5] // CHECK:STDOUT: %.loc11_27.6: ref i32 = array_index file.%a.var, %.loc11_27.5 // CHECK:STDOUT: %.loc11_27.7: init i32 = initialize_from %.loc11_23 to %.loc11_27.6 [template = constants.%.6] -// CHECK:STDOUT: %.loc11_27.8: i32 = int_literal 2 [template = constants.%.6] +// CHECK:STDOUT: %.loc11_27.8: i32 = int_value 2 [template = constants.%.6] // CHECK:STDOUT: %.loc11_27.9: ref i32 = array_index file.%a.var, %.loc11_27.8 // CHECK:STDOUT: %.loc11_27.10: init i32 = initialize_from %.loc11_26 to %.loc11_27.9 [template = constants.%.2] // CHECK:STDOUT: %.loc11_27.11: init %.3 = array_init (%.loc11_27.4, %.loc11_27.7, %.loc11_27.10) to file.%a.var [template = constants.%array] // CHECK:STDOUT: %.loc11_28: init %.3 = converted %.loc11_27.1, %.loc11_27.11 [template = constants.%array] // CHECK:STDOUT: assign file.%a.var, %.loc11_28 // CHECK:STDOUT: %a.ref: ref %.3 = name_ref a, file.%a -// CHECK:STDOUT: %.loc15_26: i32 = int_literal 3 [template = constants.%.2] +// CHECK:STDOUT: %.loc15_26: i32 = int_value 3 [template = constants.%.2] // CHECK:STDOUT: %.loc15_27.1: %.9 = struct_literal (%.loc15_26) // CHECK:STDOUT: %struct: %.9 = struct_value (%.loc15_26) [template = constants.%struct] // CHECK:STDOUT: %.loc15_27.2: %.9 = converted %.loc15_27.1, %struct [template = constants.%struct] diff --git a/toolchain/check/testdata/array/fail_type_mismatch.carbon b/toolchain/check/testdata/array/fail_type_mismatch.carbon index 68f163ca38ab2..e5303716fe951 100644 --- a/toolchain/check/testdata/array/fail_type_mismatch.carbon +++ b/toolchain/check/testdata/array/fail_type_mismatch.carbon @@ -45,15 +45,15 @@ var d: [i32; 3] = t2; // CHECK:STDOUT: %Int32.type: type = fn_type @Int32 [template] // CHECK:STDOUT: %.1: type = tuple_type () [template] // CHECK:STDOUT: %Int32: %Int32.type = struct_value () [template] -// CHECK:STDOUT: %.2: i32 = int_literal 3 [template] +// CHECK:STDOUT: %.2: i32 = int_value 3 [template] // CHECK:STDOUT: %.3: type = array_type %.2, i32 [template] // CHECK:STDOUT: %.4: type = ptr_type %.3 [template] -// CHECK:STDOUT: %.5: i32 = int_literal 1 [template] +// CHECK:STDOUT: %.5: i32 = int_value 1 [template] // CHECK:STDOUT: %.6: type = ptr_type String [template] // CHECK:STDOUT: %.7: String = string_literal "Hello" [template] // CHECK:STDOUT: %.8: String = string_literal "World" [template] // CHECK:STDOUT: %.9: type = tuple_type (i32, String, String) [template] -// CHECK:STDOUT: %.10: i32 = int_literal 0 [template] +// CHECK:STDOUT: %.10: i32 = int_value 0 [template] // CHECK:STDOUT: %ImplicitAs.type.1: type = generic_interface_type @ImplicitAs [template] // CHECK:STDOUT: %ImplicitAs: %ImplicitAs.type.1 = struct_value () [template] // CHECK:STDOUT: %Dest: type = bind_symbolic_name Dest, 0 [symbolic] @@ -74,7 +74,7 @@ var d: [i32; 3] = t2; // CHECK:STDOUT: %.16: type = tuple_type (type, type, type) [template] // CHECK:STDOUT: %.17: type = tuple_type (i32, %.6, %.6) [template] // CHECK:STDOUT: %.18: type = ptr_type %.17 [template] -// CHECK:STDOUT: %.19: i32 = int_literal 2 [template] +// CHECK:STDOUT: %.19: i32 = int_value 2 [template] // CHECK:STDOUT: %.20: type = tuple_type (i32, i32) [template] // CHECK:STDOUT: %.21: type = tuple_type (type, type) [template] // CHECK:STDOUT: %.22: type = ptr_type %.20 [template] @@ -108,7 +108,7 @@ var d: [i32; 3] = t2; // CHECK:STDOUT: } // CHECK:STDOUT: %Core.import = import Core // CHECK:STDOUT: %int.make_type_32.loc18: init type = call constants.%Int32() [template = i32] -// CHECK:STDOUT: %.loc18_14: i32 = int_literal 3 [template = constants.%.2] +// CHECK:STDOUT: %.loc18_14: i32 = int_value 3 [template = constants.%.2] // CHECK:STDOUT: %.loc18_9.1: type = value_of_initializer %int.make_type_32.loc18 [template = i32] // CHECK:STDOUT: %.loc18_9.2: type = converted %int.make_type_32.loc18, %.loc18_9.1 [template = i32] // CHECK:STDOUT: %.loc18_15: type = array_type %.loc18_14, i32 [template = constants.%.3] @@ -122,14 +122,14 @@ var d: [i32; 3] = t2; // CHECK:STDOUT: %t1.var: ref %.9 = var t1 // CHECK:STDOUT: %t1: ref %.9 = bind_name t1, %t1.var // CHECK:STDOUT: %int.make_type_32.loc28: init type = call constants.%Int32() [template = i32] -// CHECK:STDOUT: %.loc28_14: i32 = int_literal 3 [template = constants.%.2] +// CHECK:STDOUT: %.loc28_14: i32 = int_value 3 [template = constants.%.2] // CHECK:STDOUT: %.loc28_9.1: type = value_of_initializer %int.make_type_32.loc28 [template = i32] // CHECK:STDOUT: %.loc28_9.2: type = converted %int.make_type_32.loc28, %.loc28_9.1 [template = i32] // CHECK:STDOUT: %.loc28_15: type = array_type %.loc28_14, i32 [template = constants.%.3] // CHECK:STDOUT: %b.var: ref %.3 = var b // CHECK:STDOUT: %b: ref %.3 = bind_name b, %b.var // CHECK:STDOUT: %int.make_type_32.loc34: init type = call constants.%Int32() [template = i32] -// CHECK:STDOUT: %.loc34_14: i32 = int_literal 3 [template = constants.%.2] +// CHECK:STDOUT: %.loc34_14: i32 = int_value 3 [template = constants.%.2] // CHECK:STDOUT: %.loc34_9.1: type = value_of_initializer %int.make_type_32.loc34 [template = i32] // CHECK:STDOUT: %.loc34_9.2: type = converted %int.make_type_32.loc34, %.loc34_9.1 [template = i32] // CHECK:STDOUT: %.loc34_15: type = array_type %.loc34_14, i32 [template = constants.%.3] @@ -146,7 +146,7 @@ var d: [i32; 3] = t2; // CHECK:STDOUT: %t2.var: ref %.20 = var t2 // CHECK:STDOUT: %t2: ref %.20 = bind_name t2, %t2.var // CHECK:STDOUT: %int.make_type_32.loc40: init type = call constants.%Int32() [template = i32] -// CHECK:STDOUT: %.loc40_14: i32 = int_literal 3 [template = constants.%.2] +// CHECK:STDOUT: %.loc40_14: i32 = int_value 3 [template = constants.%.2] // CHECK:STDOUT: %.loc40_9.1: type = value_of_initializer %int.make_type_32.loc40 [template = i32] // CHECK:STDOUT: %.loc40_9.2: type = converted %int.make_type_32.loc40, %.loc40_9.1 [template = i32] // CHECK:STDOUT: %.loc40_15: type = array_type %.loc40_14, i32 [template = constants.%.3] @@ -186,11 +186,11 @@ var d: [i32; 3] = t2; // CHECK:STDOUT: // CHECK:STDOUT: fn @__global_init() { // CHECK:STDOUT: !entry: -// CHECK:STDOUT: %.loc18_20: i32 = int_literal 1 [template = constants.%.5] +// CHECK:STDOUT: %.loc18_20: i32 = int_value 1 [template = constants.%.5] // CHECK:STDOUT: %.loc18_23: String = string_literal "Hello" [template = constants.%.7] // CHECK:STDOUT: %.loc18_32: String = string_literal "World" [template = constants.%.8] // CHECK:STDOUT: %.loc18_39.1: %.9 = tuple_literal (%.loc18_20, %.loc18_23, %.loc18_32) -// CHECK:STDOUT: %.loc18_39.2: i32 = int_literal 0 [template = constants.%.10] +// CHECK:STDOUT: %.loc18_39.2: i32 = int_value 0 [template = constants.%.10] // CHECK:STDOUT: %.loc18_39.3: ref i32 = array_index file.%a.var, %.loc18_39.2 // CHECK:STDOUT: %.loc18_39.4: init i32 = initialize_from %.loc18_20 to %.loc18_39.3 [template = constants.%.5] // CHECK:STDOUT: %ImplicitAs.type.loc18: type = interface_type @ImplicitAs, @ImplicitAs(i32) [template = constants.%ImplicitAs.type.3] @@ -201,7 +201,7 @@ var d: [i32; 3] = t2; // CHECK:STDOUT: %t1.ref: ref %.9 = name_ref t1, file.%t1 // CHECK:STDOUT: %.loc28_19.1: ref i32 = tuple_access %t1.ref, element0 // CHECK:STDOUT: %.loc28_19.2: i32 = bind_value %.loc28_19.1 -// CHECK:STDOUT: %.loc28_19.3: i32 = int_literal 0 [template = constants.%.10] +// CHECK:STDOUT: %.loc28_19.3: i32 = int_value 0 [template = constants.%.10] // CHECK:STDOUT: %.loc28_19.4: ref i32 = array_index file.%b.var, %.loc28_19.3 // CHECK:STDOUT: %.loc28_19.5: init i32 = initialize_from %.loc28_19.2 to %.loc28_19.4 // CHECK:STDOUT: %.loc28_19.6: ref String = tuple_access %t1.ref, element1 @@ -210,8 +210,8 @@ var d: [i32; 3] = t2; // CHECK:STDOUT: %Convert.ref.loc28: %.13 = name_ref Convert, %.loc28_19.7 [template = constants.%.14] // CHECK:STDOUT: %.loc28_19.8: i32 = converted %.loc28_19.6, [template = ] // CHECK:STDOUT: assign file.%b.var, -// CHECK:STDOUT: %.loc34_20: i32 = int_literal 1 [template = constants.%.5] -// CHECK:STDOUT: %.loc34_23: i32 = int_literal 2 [template = constants.%.19] +// CHECK:STDOUT: %.loc34_20: i32 = int_value 1 [template = constants.%.5] +// CHECK:STDOUT: %.loc34_23: i32 = int_value 2 [template = constants.%.19] // CHECK:STDOUT: %.loc34_24: %.20 = tuple_literal (%.loc34_20, %.loc34_23) // CHECK:STDOUT: assign file.%c.var, // CHECK:STDOUT: %t2.ref: ref %.20 = name_ref t2, file.%t2 diff --git a/toolchain/check/testdata/array/function_param.carbon b/toolchain/check/testdata/array/function_param.carbon index 4875dee3e6613..56bf9c8fd58dd 100644 --- a/toolchain/check/testdata/array/function_param.carbon +++ b/toolchain/check/testdata/array/function_param.carbon @@ -22,17 +22,17 @@ fn G() -> i32 { // CHECK:STDOUT: %Int32.type: type = fn_type @Int32 [template] // CHECK:STDOUT: %.1: type = tuple_type () [template] // CHECK:STDOUT: %Int32: %Int32.type = struct_value () [template] -// CHECK:STDOUT: %.2: i32 = int_literal 3 [template] +// CHECK:STDOUT: %.2: i32 = int_value 3 [template] // CHECK:STDOUT: %.3: type = array_type %.2, i32 [template] // CHECK:STDOUT: %F.type: type = fn_type @F [template] // CHECK:STDOUT: %F: %F.type = struct_value () [template] // CHECK:STDOUT: %.4: type = ptr_type %.3 [template] // CHECK:STDOUT: %G.type: type = fn_type @G [template] // CHECK:STDOUT: %G: %G.type = struct_value () [template] -// CHECK:STDOUT: %.5: i32 = int_literal 1 [template] -// CHECK:STDOUT: %.6: i32 = int_literal 2 [template] +// CHECK:STDOUT: %.5: i32 = int_value 1 [template] +// CHECK:STDOUT: %.6: i32 = int_value 2 [template] // CHECK:STDOUT: %.7: type = tuple_type (i32, i32, i32) [template] -// CHECK:STDOUT: %.8: i32 = int_literal 0 [template] +// CHECK:STDOUT: %.8: i32 = int_value 0 [template] // CHECK:STDOUT: %array: %.3 = tuple_value (%.5, %.6, %.2) [template] // CHECK:STDOUT: } // CHECK:STDOUT: @@ -61,7 +61,7 @@ fn G() -> i32 { // CHECK:STDOUT: %return.param_patt: i32 = out_param_pattern %return.patt, runtime_param2 // CHECK:STDOUT: } { // CHECK:STDOUT: %int.make_type_32.loc11_12: init type = call constants.%Int32() [template = i32] -// CHECK:STDOUT: %.loc11_17: i32 = int_literal 3 [template = constants.%.2] +// CHECK:STDOUT: %.loc11_17: i32 = int_value 3 [template = constants.%.2] // CHECK:STDOUT: %.loc11_12.1: type = value_of_initializer %int.make_type_32.loc11_12 [template = i32] // CHECK:STDOUT: %.loc11_12.2: type = converted %int.make_type_32.loc11_12, %.loc11_12.1 [template = i32] // CHECK:STDOUT: %.loc11_18: type = array_type %.loc11_17, i32 [template = constants.%.3] @@ -105,19 +105,19 @@ fn G() -> i32 { // CHECK:STDOUT: fn @G() -> i32 { // CHECK:STDOUT: !entry: // CHECK:STDOUT: %F.ref: %F.type = name_ref F, file.%F.decl [template = constants.%F] -// CHECK:STDOUT: %.loc16_13: i32 = int_literal 1 [template = constants.%.5] -// CHECK:STDOUT: %.loc16_16: i32 = int_literal 2 [template = constants.%.6] -// CHECK:STDOUT: %.loc16_19: i32 = int_literal 3 [template = constants.%.2] +// CHECK:STDOUT: %.loc16_13: i32 = int_value 1 [template = constants.%.5] +// CHECK:STDOUT: %.loc16_16: i32 = int_value 2 [template = constants.%.6] +// CHECK:STDOUT: %.loc16_19: i32 = int_value 3 [template = constants.%.2] // CHECK:STDOUT: %.loc16_20.1: %.7 = tuple_literal (%.loc16_13, %.loc16_16, %.loc16_19) -// CHECK:STDOUT: %.loc16_23: i32 = int_literal 1 [template = constants.%.5] +// CHECK:STDOUT: %.loc16_23: i32 = int_value 1 [template = constants.%.5] // CHECK:STDOUT: %.loc16_20.2: ref %.3 = temporary_storage -// CHECK:STDOUT: %.loc16_20.3: i32 = int_literal 0 [template = constants.%.8] +// CHECK:STDOUT: %.loc16_20.3: i32 = int_value 0 [template = constants.%.8] // CHECK:STDOUT: %.loc16_20.4: ref i32 = array_index %.loc16_20.2, %.loc16_20.3 // CHECK:STDOUT: %.loc16_20.5: init i32 = initialize_from %.loc16_13 to %.loc16_20.4 [template = constants.%.5] -// CHECK:STDOUT: %.loc16_20.6: i32 = int_literal 1 [template = constants.%.5] +// CHECK:STDOUT: %.loc16_20.6: i32 = int_value 1 [template = constants.%.5] // CHECK:STDOUT: %.loc16_20.7: ref i32 = array_index %.loc16_20.2, %.loc16_20.6 // CHECK:STDOUT: %.loc16_20.8: init i32 = initialize_from %.loc16_16 to %.loc16_20.7 [template = constants.%.6] -// CHECK:STDOUT: %.loc16_20.9: i32 = int_literal 2 [template = constants.%.6] +// CHECK:STDOUT: %.loc16_20.9: i32 = int_value 2 [template = constants.%.6] // CHECK:STDOUT: %.loc16_20.10: ref i32 = array_index %.loc16_20.2, %.loc16_20.9 // CHECK:STDOUT: %.loc16_20.11: init i32 = initialize_from %.loc16_19 to %.loc16_20.10 [template = constants.%.2] // CHECK:STDOUT: %.loc16_20.12: init %.3 = array_init (%.loc16_20.5, %.loc16_20.8, %.loc16_20.11) to %.loc16_20.2 [template = constants.%array] diff --git a/toolchain/check/testdata/array/generic_empty.carbon b/toolchain/check/testdata/array/generic_empty.carbon index c192ade3ef047..49c333507af23 100644 --- a/toolchain/check/testdata/array/generic_empty.carbon +++ b/toolchain/check/testdata/array/generic_empty.carbon @@ -21,7 +21,7 @@ fn G(T:! type) { // CHECK:STDOUT: %G.type: type = fn_type @G [template] // CHECK:STDOUT: %.1: type = tuple_type () [template] // CHECK:STDOUT: %G: %G.type = struct_value () [template] -// CHECK:STDOUT: %.2: i32 = int_literal 0 [template] +// CHECK:STDOUT: %.2: i32 = int_value 0 [template] // CHECK:STDOUT: %.3: type = array_type %.2, %T [symbolic] // CHECK:STDOUT: %.4: type = ptr_type %.3 [symbolic] // CHECK:STDOUT: %array: %.3 = tuple_value () [symbolic] @@ -60,7 +60,7 @@ fn G(T:! type) { // CHECK:STDOUT: fn(%T.param_patt: type) { // CHECK:STDOUT: !entry: // CHECK:STDOUT: %T.ref: type = name_ref T, %T.loc11_6.1 [symbolic = %T.loc11_6.2 (constants.%T)] -// CHECK:STDOUT: %.loc13_16: i32 = int_literal 0 [template = constants.%.2] +// CHECK:STDOUT: %.loc13_16: i32 = int_value 0 [template = constants.%.2] // CHECK:STDOUT: %.loc13_17.1: type = array_type %.loc13_16, %T [symbolic = %.loc13_17.2 (constants.%.3)] // CHECK:STDOUT: %arr.var: ref @G.%.loc13_17.2 (%.3) = var arr // CHECK:STDOUT: %arr: ref @G.%.loc13_17.2 (%.3) = bind_name arr, %arr.var diff --git a/toolchain/check/testdata/array/index_not_literal.carbon b/toolchain/check/testdata/array/index_not_literal.carbon index 169da4a2ba017..2f261aaf4ffd9 100644 --- a/toolchain/check/testdata/array/index_not_literal.carbon +++ b/toolchain/check/testdata/array/index_not_literal.carbon @@ -17,13 +17,13 @@ var b: i32 = a[{.index = 2}.index]; // CHECK:STDOUT: %Int32.type: type = fn_type @Int32 [template] // CHECK:STDOUT: %.1: type = tuple_type () [template] // CHECK:STDOUT: %Int32: %Int32.type = struct_value () [template] -// CHECK:STDOUT: %.2: i32 = int_literal 3 [template] +// CHECK:STDOUT: %.2: i32 = int_value 3 [template] // CHECK:STDOUT: %.3: type = array_type %.2, i32 [template] // CHECK:STDOUT: %.4: type = ptr_type %.3 [template] -// CHECK:STDOUT: %.5: i32 = int_literal 1 [template] -// CHECK:STDOUT: %.6: i32 = int_literal 2 [template] +// CHECK:STDOUT: %.5: i32 = int_value 1 [template] +// CHECK:STDOUT: %.6: i32 = int_value 2 [template] // CHECK:STDOUT: %.7: type = tuple_type (i32, i32, i32) [template] -// CHECK:STDOUT: %.8: i32 = int_literal 0 [template] +// CHECK:STDOUT: %.8: i32 = int_value 0 [template] // CHECK:STDOUT: %array: %.3 = tuple_value (%.5, %.6, %.2) [template] // CHECK:STDOUT: %.9: type = struct_type {.index: i32} [template] // CHECK:STDOUT: %struct: %.9 = struct_value (%.6) [template] @@ -46,7 +46,7 @@ var b: i32 = a[{.index = 2}.index]; // CHECK:STDOUT: } // CHECK:STDOUT: %Core.import = import Core // CHECK:STDOUT: %int.make_type_32.loc11: init type = call constants.%Int32() [template = i32] -// CHECK:STDOUT: %.loc11_14: i32 = int_literal 3 [template = constants.%.2] +// CHECK:STDOUT: %.loc11_14: i32 = int_value 3 [template = constants.%.2] // CHECK:STDOUT: %.loc11_9.1: type = value_of_initializer %int.make_type_32.loc11 [template = i32] // CHECK:STDOUT: %.loc11_9.2: type = converted %int.make_type_32.loc11, %.loc11_9.1 [template = i32] // CHECK:STDOUT: %.loc11_15: type = array_type %.loc11_14, i32 [template = constants.%.3] @@ -63,24 +63,24 @@ var b: i32 = a[{.index = 2}.index]; // CHECK:STDOUT: // CHECK:STDOUT: fn @__global_init() { // CHECK:STDOUT: !entry: -// CHECK:STDOUT: %.loc11_20: i32 = int_literal 1 [template = constants.%.5] -// CHECK:STDOUT: %.loc11_23: i32 = int_literal 2 [template = constants.%.6] -// CHECK:STDOUT: %.loc11_26: i32 = int_literal 3 [template = constants.%.2] +// CHECK:STDOUT: %.loc11_20: i32 = int_value 1 [template = constants.%.5] +// CHECK:STDOUT: %.loc11_23: i32 = int_value 2 [template = constants.%.6] +// CHECK:STDOUT: %.loc11_26: i32 = int_value 3 [template = constants.%.2] // CHECK:STDOUT: %.loc11_27.1: %.7 = tuple_literal (%.loc11_20, %.loc11_23, %.loc11_26) -// CHECK:STDOUT: %.loc11_27.2: i32 = int_literal 0 [template = constants.%.8] +// CHECK:STDOUT: %.loc11_27.2: i32 = int_value 0 [template = constants.%.8] // CHECK:STDOUT: %.loc11_27.3: ref i32 = array_index file.%a.var, %.loc11_27.2 // CHECK:STDOUT: %.loc11_27.4: init i32 = initialize_from %.loc11_20 to %.loc11_27.3 [template = constants.%.5] -// CHECK:STDOUT: %.loc11_27.5: i32 = int_literal 1 [template = constants.%.5] +// CHECK:STDOUT: %.loc11_27.5: i32 = int_value 1 [template = constants.%.5] // CHECK:STDOUT: %.loc11_27.6: ref i32 = array_index file.%a.var, %.loc11_27.5 // CHECK:STDOUT: %.loc11_27.7: init i32 = initialize_from %.loc11_23 to %.loc11_27.6 [template = constants.%.6] -// CHECK:STDOUT: %.loc11_27.8: i32 = int_literal 2 [template = constants.%.6] +// CHECK:STDOUT: %.loc11_27.8: i32 = int_value 2 [template = constants.%.6] // CHECK:STDOUT: %.loc11_27.9: ref i32 = array_index file.%a.var, %.loc11_27.8 // CHECK:STDOUT: %.loc11_27.10: init i32 = initialize_from %.loc11_26 to %.loc11_27.9 [template = constants.%.2] // CHECK:STDOUT: %.loc11_27.11: init %.3 = array_init (%.loc11_27.4, %.loc11_27.7, %.loc11_27.10) to file.%a.var [template = constants.%array] // CHECK:STDOUT: %.loc11_28: init %.3 = converted %.loc11_27.1, %.loc11_27.11 [template = constants.%array] // CHECK:STDOUT: assign file.%a.var, %.loc11_28 // CHECK:STDOUT: %a.ref: ref %.3 = name_ref a, file.%a -// CHECK:STDOUT: %.loc12_26: i32 = int_literal 2 [template = constants.%.6] +// CHECK:STDOUT: %.loc12_26: i32 = int_value 2 [template = constants.%.6] // CHECK:STDOUT: %.loc12_27.1: %.9 = struct_literal (%.loc12_26) // CHECK:STDOUT: %struct: %.9 = struct_value (%.loc12_26) [template = constants.%struct] // CHECK:STDOUT: %.loc12_27.2: %.9 = converted %.loc12_27.1, %struct [template = constants.%struct] diff --git a/toolchain/check/testdata/array/nine_elements.carbon b/toolchain/check/testdata/array/nine_elements.carbon index 4634059080d2f..0f70bcb6f7fe6 100644 --- a/toolchain/check/testdata/array/nine_elements.carbon +++ b/toolchain/check/testdata/array/nine_elements.carbon @@ -16,19 +16,19 @@ var a: [i32; 9] = (1, 2, 3, 4, 5, 6, 7, 8, 9); // CHECK:STDOUT: %Int32.type: type = fn_type @Int32 [template] // CHECK:STDOUT: %.1: type = tuple_type () [template] // CHECK:STDOUT: %Int32: %Int32.type = struct_value () [template] -// CHECK:STDOUT: %.2: i32 = int_literal 9 [template] +// CHECK:STDOUT: %.2: i32 = int_value 9 [template] // CHECK:STDOUT: %.3: type = array_type %.2, i32 [template] // CHECK:STDOUT: %.4: type = ptr_type %.3 [template] -// CHECK:STDOUT: %.5: i32 = int_literal 1 [template] -// CHECK:STDOUT: %.6: i32 = int_literal 2 [template] -// CHECK:STDOUT: %.7: i32 = int_literal 3 [template] -// CHECK:STDOUT: %.8: i32 = int_literal 4 [template] -// CHECK:STDOUT: %.9: i32 = int_literal 5 [template] -// CHECK:STDOUT: %.10: i32 = int_literal 6 [template] -// CHECK:STDOUT: %.11: i32 = int_literal 7 [template] -// CHECK:STDOUT: %.12: i32 = int_literal 8 [template] +// CHECK:STDOUT: %.5: i32 = int_value 1 [template] +// CHECK:STDOUT: %.6: i32 = int_value 2 [template] +// CHECK:STDOUT: %.7: i32 = int_value 3 [template] +// CHECK:STDOUT: %.8: i32 = int_value 4 [template] +// CHECK:STDOUT: %.9: i32 = int_value 5 [template] +// CHECK:STDOUT: %.10: i32 = int_value 6 [template] +// CHECK:STDOUT: %.11: i32 = int_value 7 [template] +// CHECK:STDOUT: %.12: i32 = int_value 8 [template] // CHECK:STDOUT: %.13: type = tuple_type (i32, i32, i32, i32, i32, i32, i32, i32, i32) [template] -// CHECK:STDOUT: %.14: i32 = int_literal 0 [template] +// CHECK:STDOUT: %.14: i32 = int_value 0 [template] // CHECK:STDOUT: %array: %.3 = tuple_value (%.5, %.6, %.7, %.8, %.9, %.10, %.11, %.12, %.2) [template] // CHECK:STDOUT: } // CHECK:STDOUT: @@ -48,7 +48,7 @@ var a: [i32; 9] = (1, 2, 3, 4, 5, 6, 7, 8, 9); // CHECK:STDOUT: } // CHECK:STDOUT: %Core.import = import Core // CHECK:STDOUT: %int.make_type_32: init type = call constants.%Int32() [template = i32] -// CHECK:STDOUT: %.loc11_14: i32 = int_literal 9 [template = constants.%.2] +// CHECK:STDOUT: %.loc11_14: i32 = int_value 9 [template = constants.%.2] // CHECK:STDOUT: %.loc11_9.1: type = value_of_initializer %int.make_type_32 [template = i32] // CHECK:STDOUT: %.loc11_9.2: type = converted %int.make_type_32, %.loc11_9.1 [template = i32] // CHECK:STDOUT: %.loc11_15: type = array_type %.loc11_14, i32 [template = constants.%.3] @@ -60,41 +60,41 @@ var a: [i32; 9] = (1, 2, 3, 4, 5, 6, 7, 8, 9); // CHECK:STDOUT: // CHECK:STDOUT: fn @__global_init() { // CHECK:STDOUT: !entry: -// CHECK:STDOUT: %.loc11_20: i32 = int_literal 1 [template = constants.%.5] -// CHECK:STDOUT: %.loc11_23: i32 = int_literal 2 [template = constants.%.6] -// CHECK:STDOUT: %.loc11_26: i32 = int_literal 3 [template = constants.%.7] -// CHECK:STDOUT: %.loc11_29: i32 = int_literal 4 [template = constants.%.8] -// CHECK:STDOUT: %.loc11_32: i32 = int_literal 5 [template = constants.%.9] -// CHECK:STDOUT: %.loc11_35: i32 = int_literal 6 [template = constants.%.10] -// CHECK:STDOUT: %.loc11_38: i32 = int_literal 7 [template = constants.%.11] -// CHECK:STDOUT: %.loc11_41: i32 = int_literal 8 [template = constants.%.12] -// CHECK:STDOUT: %.loc11_44: i32 = int_literal 9 [template = constants.%.2] +// CHECK:STDOUT: %.loc11_20: i32 = int_value 1 [template = constants.%.5] +// CHECK:STDOUT: %.loc11_23: i32 = int_value 2 [template = constants.%.6] +// CHECK:STDOUT: %.loc11_26: i32 = int_value 3 [template = constants.%.7] +// CHECK:STDOUT: %.loc11_29: i32 = int_value 4 [template = constants.%.8] +// CHECK:STDOUT: %.loc11_32: i32 = int_value 5 [template = constants.%.9] +// CHECK:STDOUT: %.loc11_35: i32 = int_value 6 [template = constants.%.10] +// CHECK:STDOUT: %.loc11_38: i32 = int_value 7 [template = constants.%.11] +// CHECK:STDOUT: %.loc11_41: i32 = int_value 8 [template = constants.%.12] +// CHECK:STDOUT: %.loc11_44: i32 = int_value 9 [template = constants.%.2] // CHECK:STDOUT: %.loc11_45.1: %.13 = tuple_literal (%.loc11_20, %.loc11_23, %.loc11_26, %.loc11_29, %.loc11_32, %.loc11_35, %.loc11_38, %.loc11_41, %.loc11_44) -// CHECK:STDOUT: %.loc11_45.2: i32 = int_literal 0 [template = constants.%.14] +// CHECK:STDOUT: %.loc11_45.2: i32 = int_value 0 [template = constants.%.14] // CHECK:STDOUT: %.loc11_45.3: ref i32 = array_index file.%a.var, %.loc11_45.2 // CHECK:STDOUT: %.loc11_45.4: init i32 = initialize_from %.loc11_20 to %.loc11_45.3 [template = constants.%.5] -// CHECK:STDOUT: %.loc11_45.5: i32 = int_literal 1 [template = constants.%.5] +// CHECK:STDOUT: %.loc11_45.5: i32 = int_value 1 [template = constants.%.5] // CHECK:STDOUT: %.loc11_45.6: ref i32 = array_index file.%a.var, %.loc11_45.5 // CHECK:STDOUT: %.loc11_45.7: init i32 = initialize_from %.loc11_23 to %.loc11_45.6 [template = constants.%.6] -// CHECK:STDOUT: %.loc11_45.8: i32 = int_literal 2 [template = constants.%.6] +// CHECK:STDOUT: %.loc11_45.8: i32 = int_value 2 [template = constants.%.6] // CHECK:STDOUT: %.loc11_45.9: ref i32 = array_index file.%a.var, %.loc11_45.8 // CHECK:STDOUT: %.loc11_45.10: init i32 = initialize_from %.loc11_26 to %.loc11_45.9 [template = constants.%.7] -// CHECK:STDOUT: %.loc11_45.11: i32 = int_literal 3 [template = constants.%.7] +// CHECK:STDOUT: %.loc11_45.11: i32 = int_value 3 [template = constants.%.7] // CHECK:STDOUT: %.loc11_45.12: ref i32 = array_index file.%a.var, %.loc11_45.11 // CHECK:STDOUT: %.loc11_45.13: init i32 = initialize_from %.loc11_29 to %.loc11_45.12 [template = constants.%.8] -// CHECK:STDOUT: %.loc11_45.14: i32 = int_literal 4 [template = constants.%.8] +// CHECK:STDOUT: %.loc11_45.14: i32 = int_value 4 [template = constants.%.8] // CHECK:STDOUT: %.loc11_45.15: ref i32 = array_index file.%a.var, %.loc11_45.14 // CHECK:STDOUT: %.loc11_45.16: init i32 = initialize_from %.loc11_32 to %.loc11_45.15 [template = constants.%.9] -// CHECK:STDOUT: %.loc11_45.17: i32 = int_literal 5 [template = constants.%.9] +// CHECK:STDOUT: %.loc11_45.17: i32 = int_value 5 [template = constants.%.9] // CHECK:STDOUT: %.loc11_45.18: ref i32 = array_index file.%a.var, %.loc11_45.17 // CHECK:STDOUT: %.loc11_45.19: init i32 = initialize_from %.loc11_35 to %.loc11_45.18 [template = constants.%.10] -// CHECK:STDOUT: %.loc11_45.20: i32 = int_literal 6 [template = constants.%.10] +// CHECK:STDOUT: %.loc11_45.20: i32 = int_value 6 [template = constants.%.10] // CHECK:STDOUT: %.loc11_45.21: ref i32 = array_index file.%a.var, %.loc11_45.20 // CHECK:STDOUT: %.loc11_45.22: init i32 = initialize_from %.loc11_38 to %.loc11_45.21 [template = constants.%.11] -// CHECK:STDOUT: %.loc11_45.23: i32 = int_literal 7 [template = constants.%.11] +// CHECK:STDOUT: %.loc11_45.23: i32 = int_value 7 [template = constants.%.11] // CHECK:STDOUT: %.loc11_45.24: ref i32 = array_index file.%a.var, %.loc11_45.23 // CHECK:STDOUT: %.loc11_45.25: init i32 = initialize_from %.loc11_41 to %.loc11_45.24 [template = constants.%.12] -// CHECK:STDOUT: %.loc11_45.26: i32 = int_literal 8 [template = constants.%.12] +// CHECK:STDOUT: %.loc11_45.26: i32 = int_value 8 [template = constants.%.12] // CHECK:STDOUT: %.loc11_45.27: ref i32 = array_index file.%a.var, %.loc11_45.26 // CHECK:STDOUT: %.loc11_45.28: init i32 = initialize_from %.loc11_44 to %.loc11_45.27 [template = constants.%.2] // CHECK:STDOUT: %.loc11_45.29: init %.3 = array_init (%.loc11_45.4, %.loc11_45.7, %.loc11_45.10, %.loc11_45.13, %.loc11_45.16, %.loc11_45.19, %.loc11_45.22, %.loc11_45.25, %.loc11_45.28) to file.%a.var [template = constants.%array] diff --git a/toolchain/check/testdata/as/adapter_conversion.carbon b/toolchain/check/testdata/as/adapter_conversion.carbon index da57104665ca8..27d53370da6a9 100644 --- a/toolchain/check/testdata/as/adapter_conversion.carbon +++ b/toolchain/check/testdata/as/adapter_conversion.carbon @@ -118,8 +118,8 @@ var b: B = {.x = 1} as B; // CHECK:STDOUT: %.3: type = struct_type {.x: i32, .y: i32} [template] // CHECK:STDOUT: %.4: = complete_type_witness %.3 [template] // CHECK:STDOUT: %.5: type = ptr_type %.3 [template] -// CHECK:STDOUT: %.6: i32 = int_literal 1 [template] -// CHECK:STDOUT: %.7: i32 = int_literal 2 [template] +// CHECK:STDOUT: %.6: i32 = int_value 1 [template] +// CHECK:STDOUT: %.7: i32 = int_value 2 [template] // CHECK:STDOUT: %struct: %A = struct_value (%.6, %.7) [template] // CHECK:STDOUT: %B: type = class_type @B [template] // CHECK:STDOUT: %.8: = complete_type_witness %A [template] @@ -200,8 +200,8 @@ var b: B = {.x = 1} as B; // CHECK:STDOUT: // CHECK:STDOUT: fn @Make() -> %return: %A { // CHECK:STDOUT: !entry: -// CHECK:STDOUT: %.loc9_18: i32 = int_literal 1 [template = constants.%.6] -// CHECK:STDOUT: %.loc9_26: i32 = int_literal 2 [template = constants.%.7] +// CHECK:STDOUT: %.loc9_18: i32 = int_value 1 [template = constants.%.6] +// CHECK:STDOUT: %.loc9_26: i32 = int_value 2 [template = constants.%.7] // CHECK:STDOUT: %.loc9_27.1: %.3 = struct_literal (%.loc9_18, %.loc9_26) // CHECK:STDOUT: %.loc9_27.2: ref i32 = class_element_access %return, element0 // CHECK:STDOUT: %.loc9_27.3: init i32 = initialize_from %.loc9_18 to %.loc9_27.2 [template = constants.%.6] @@ -214,8 +214,8 @@ var b: B = {.x = 1} as B; // CHECK:STDOUT: // CHECK:STDOUT: fn @__global_init() { // CHECK:STDOUT: !entry: -// CHECK:STDOUT: %.loc17_22: i32 = int_literal 1 [template = constants.%.6] -// CHECK:STDOUT: %.loc17_30: i32 = int_literal 2 [template = constants.%.7] +// CHECK:STDOUT: %.loc17_22: i32 = int_value 1 [template = constants.%.6] +// CHECK:STDOUT: %.loc17_30: i32 = int_value 2 [template = constants.%.7] // CHECK:STDOUT: %.loc17_31.1: %.3 = struct_literal (%.loc17_22, %.loc17_30) // CHECK:STDOUT: %.loc17_31.2: ref i32 = class_element_access file.%a_ref.var, element0 // CHECK:STDOUT: %.loc17_31.3: init i32 = initialize_from %.loc17_22 to %.loc17_31.2 [template = constants.%.6] @@ -257,7 +257,7 @@ var b: B = {.x = 1} as B; // CHECK:STDOUT: %.1: type = tuple_type () [template] // CHECK:STDOUT: %Int32: %Int32.type = struct_value () [template] // CHECK:STDOUT: %.2: = complete_type_witness i32 [template] -// CHECK:STDOUT: %.3: i32 = int_literal 1 [template] +// CHECK:STDOUT: %.3: i32 = int_value 1 [template] // CHECK:STDOUT: } // CHECK:STDOUT: // CHECK:STDOUT: imports { @@ -299,7 +299,7 @@ var b: B = {.x = 1} as B; // CHECK:STDOUT: // CHECK:STDOUT: fn @__global_init() { // CHECK:STDOUT: !entry: -// CHECK:STDOUT: %.loc8_13: i32 = int_literal 1 [template = constants.%.3] +// CHECK:STDOUT: %.loc8_13: i32 = int_value 1 [template = constants.%.3] // CHECK:STDOUT: %int.make_type_32.loc8: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc8_18.1: type = value_of_initializer %int.make_type_32.loc8 [template = i32] // CHECK:STDOUT: %.loc8_18.2: type = converted %int.make_type_32.loc8, %.loc8_18.1 [template = i32] @@ -412,8 +412,8 @@ var b: B = {.x = 1} as B; // CHECK:STDOUT: %B: type = class_type @B [template] // CHECK:STDOUT: %.5: type = ptr_type %.3 [template] // CHECK:STDOUT: %.6: = complete_type_witness %A [template] -// CHECK:STDOUT: %.7: i32 = int_literal 1 [template] -// CHECK:STDOUT: %.8: i32 = int_literal 2 [template] +// CHECK:STDOUT: %.7: i32 = int_value 1 [template] +// CHECK:STDOUT: %.8: i32 = int_value 2 [template] // CHECK:STDOUT: %struct: %A = struct_value (%.7, %.8) [template] // CHECK:STDOUT: } // CHECK:STDOUT: @@ -473,8 +473,8 @@ var b: B = {.x = 1} as B; // CHECK:STDOUT: // CHECK:STDOUT: fn @__global_init() { // CHECK:STDOUT: !entry: -// CHECK:STDOUT: %.loc13_25: i32 = int_literal 1 [template = constants.%.7] -// CHECK:STDOUT: %.loc13_33: i32 = int_literal 2 [template = constants.%.8] +// CHECK:STDOUT: %.loc13_25: i32 = int_value 1 [template = constants.%.7] +// CHECK:STDOUT: %.loc13_33: i32 = int_value 2 [template = constants.%.8] // CHECK:STDOUT: %.loc13_34.1: %.3 = struct_literal (%.loc13_25, %.loc13_33) // CHECK:STDOUT: %A.ref.loc13: type = name_ref A, file.%A.decl [template = constants.%A] // CHECK:STDOUT: %.loc13_34.2: ref %A = temporary_storage @@ -490,8 +490,8 @@ var b: B = {.x = 1} as B; // CHECK:STDOUT: %.loc13_42.2: ref %B = converted %.loc13_36, %.loc13_42.1 // CHECK:STDOUT: %.loc13_42.3: %B = bind_value %.loc13_42.2 // CHECK:STDOUT: %b_value: %B = bind_name b_value, %.loc13_42.3 -// CHECK:STDOUT: %.loc24_24: i32 = int_literal 1 [template = constants.%.7] -// CHECK:STDOUT: %.loc24_32: i32 = int_literal 2 [template = constants.%.8] +// CHECK:STDOUT: %.loc24_24: i32 = int_value 1 [template = constants.%.7] +// CHECK:STDOUT: %.loc24_32: i32 = int_value 2 [template = constants.%.8] // CHECK:STDOUT: %.loc24_33.1: %.3 = struct_literal (%.loc24_24, %.loc24_32) // CHECK:STDOUT: %A.ref.loc24: type = name_ref A, file.%A.decl [template = constants.%A] // CHECK:STDOUT: %.loc24_33.2: ref %A = temporary_storage @@ -523,7 +523,7 @@ var b: B = {.x = 1} as B; // CHECK:STDOUT: %B: type = class_type @B [template] // CHECK:STDOUT: %.5: type = ptr_type %.3 [template] // CHECK:STDOUT: %.6: = complete_type_witness %A [template] -// CHECK:STDOUT: %.7: i32 = int_literal 1 [template] +// CHECK:STDOUT: %.7: i32 = int_value 1 [template] // CHECK:STDOUT: %As.type.1: type = generic_interface_type @As [template] // CHECK:STDOUT: %As: %As.type.1 = struct_value () [template] // CHECK:STDOUT: %Dest: type = bind_symbolic_name Dest, 0 [symbolic] @@ -628,7 +628,7 @@ var b: B = {.x = 1} as B; // CHECK:STDOUT: // CHECK:STDOUT: fn @__global_init() { // CHECK:STDOUT: !entry: -// CHECK:STDOUT: %.loc21_18: i32 = int_literal 1 [template = constants.%.7] +// CHECK:STDOUT: %.loc21_18: i32 = int_value 1 [template = constants.%.7] // CHECK:STDOUT: %.loc21_19.1: %.3 = struct_literal (%.loc21_18) // CHECK:STDOUT: %B.ref: type = name_ref B, file.%B.decl [template = constants.%B] // CHECK:STDOUT: %As.type: type = interface_type @As, @As(constants.%B) [template = constants.%As.type.3] diff --git a/toolchain/check/testdata/as/basic.carbon b/toolchain/check/testdata/as/basic.carbon index 826bb3d0a4fab..d426a678e6840 100644 --- a/toolchain/check/testdata/as/basic.carbon +++ b/toolchain/check/testdata/as/basic.carbon @@ -20,7 +20,7 @@ fn Main() -> i32 { // CHECK:STDOUT: %Int32: %Int32.type = struct_value () [template] // CHECK:STDOUT: %Main.type: type = fn_type @Main [template] // CHECK:STDOUT: %Main: %Main.type = struct_value () [template] -// CHECK:STDOUT: %.2: i32 = int_literal 1 [template] +// CHECK:STDOUT: %.2: i32 = int_value 1 [template] // CHECK:STDOUT: } // CHECK:STDOUT: // CHECK:STDOUT: imports { @@ -54,7 +54,7 @@ fn Main() -> i32 { // CHECK:STDOUT: // CHECK:STDOUT: fn @Main() -> i32 { // CHECK:STDOUT: !entry: -// CHECK:STDOUT: %.loc12_10: i32 = int_literal 1 [template = constants.%.2] +// CHECK:STDOUT: %.loc12_10: i32 = int_value 1 [template = constants.%.2] // CHECK:STDOUT: %int.make_type_32.loc12: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc12_15.1: type = value_of_initializer %int.make_type_32.loc12 [template = i32] // CHECK:STDOUT: %.loc12_15.2: type = converted %int.make_type_32.loc12, %.loc12_15.1 [template = i32] diff --git a/toolchain/check/testdata/as/fail_no_conversion.carbon b/toolchain/check/testdata/as/fail_no_conversion.carbon index 8f0c5932d44d5..87298f8d27208 100644 --- a/toolchain/check/testdata/as/fail_no_conversion.carbon +++ b/toolchain/check/testdata/as/fail_no_conversion.carbon @@ -25,7 +25,7 @@ let n: (i32, i32) = 1 as (i32, i32); // CHECK:STDOUT: %.2: type = tuple_type (type, type) [template] // CHECK:STDOUT: %.3: type = tuple_type (i32, i32) [template] // CHECK:STDOUT: %.4: type = ptr_type %.3 [template] -// CHECK:STDOUT: %.5: i32 = int_literal 1 [template] +// CHECK:STDOUT: %.5: i32 = int_value 1 [template] // CHECK:STDOUT: %As.type.1: type = generic_interface_type @As [template] // CHECK:STDOUT: %As: %As.type.1 = struct_value () [template] // CHECK:STDOUT: %Dest: type = bind_symbolic_name Dest, 0 [symbolic] @@ -109,7 +109,7 @@ let n: (i32, i32) = 1 as (i32, i32); // CHECK:STDOUT: // CHECK:STDOUT: fn @__global_init() { // CHECK:STDOUT: !entry: -// CHECK:STDOUT: %.loc17_21: i32 = int_literal 1 [template = constants.%.5] +// CHECK:STDOUT: %.loc17_21: i32 = int_value 1 [template = constants.%.5] // CHECK:STDOUT: %int.make_type_32.loc17_27: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %int.make_type_32.loc17_32: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc17_35.1: %.2 = tuple_literal (%int.make_type_32.loc17_27, %int.make_type_32.loc17_32) diff --git a/toolchain/check/testdata/as/fail_not_type.carbon b/toolchain/check/testdata/as/fail_not_type.carbon index 07fe936f5299c..710c2b38bafe4 100644 --- a/toolchain/check/testdata/as/fail_not_type.carbon +++ b/toolchain/check/testdata/as/fail_not_type.carbon @@ -22,8 +22,8 @@ let n: i32 = 1 as 2; // CHECK:STDOUT: %Int32.type: type = fn_type @Int32 [template] // CHECK:STDOUT: %.1: type = tuple_type () [template] // CHECK:STDOUT: %Int32: %Int32.type = struct_value () [template] -// CHECK:STDOUT: %.2: i32 = int_literal 1 [template] -// CHECK:STDOUT: %.3: i32 = int_literal 2 [template] +// CHECK:STDOUT: %.2: i32 = int_value 1 [template] +// CHECK:STDOUT: %.3: i32 = int_value 2 [template] // CHECK:STDOUT: %ImplicitAs.type.1: type = generic_interface_type @ImplicitAs [template] // CHECK:STDOUT: %ImplicitAs: %ImplicitAs.type.1 = struct_value () [template] // CHECK:STDOUT: %Dest: type = bind_symbolic_name Dest, 0 [symbolic] @@ -102,8 +102,8 @@ let n: i32 = 1 as 2; // CHECK:STDOUT: // CHECK:STDOUT: fn @__global_init() { // CHECK:STDOUT: !entry: -// CHECK:STDOUT: %.loc17_14: i32 = int_literal 1 [template = constants.%.2] -// CHECK:STDOUT: %.loc17_19.1: i32 = int_literal 2 [template = constants.%.3] +// CHECK:STDOUT: %.loc17_14: i32 = int_value 1 [template = constants.%.2] +// CHECK:STDOUT: %.loc17_19.1: i32 = int_value 2 [template = constants.%.3] // CHECK:STDOUT: %ImplicitAs.type: type = interface_type @ImplicitAs, @ImplicitAs(type) [template = constants.%ImplicitAs.type.3] // CHECK:STDOUT: %.loc17_19.2: %.6 = specific_constant imports.%import_ref.4, @ImplicitAs(type) [template = constants.%.7] // CHECK:STDOUT: %Convert.ref: %.6 = name_ref Convert, %.loc17_19.2 [template = constants.%.7] diff --git a/toolchain/check/testdata/as/overloaded.carbon b/toolchain/check/testdata/as/overloaded.carbon index 08b5c5dafd6ad..8430481ab1964 100644 --- a/toolchain/check/testdata/as/overloaded.carbon +++ b/toolchain/check/testdata/as/overloaded.carbon @@ -60,7 +60,7 @@ let n: i32 = ((4 as i32) as X) as i32; // CHECK:STDOUT: %.11: type = assoc_entity_type %As.type.4, %Convert.type.5 [template] // CHECK:STDOUT: %.12: %.11 = assoc_entity element0, imports.%import_ref.6 [template] // CHECK:STDOUT: %.13: = interface_witness (%Convert.4) [template] -// CHECK:STDOUT: %.14: i32 = int_literal 4 [template] +// CHECK:STDOUT: %.14: i32 = int_value 4 [template] // CHECK:STDOUT: %.15: %.5 = assoc_entity element0, imports.%import_ref.7 [symbolic] // CHECK:STDOUT: %.16: = bound_method %.14, %Convert.2 [template] // CHECK:STDOUT: } @@ -222,7 +222,7 @@ let n: i32 = ((4 as i32) as X) as i32; // CHECK:STDOUT: // CHECK:STDOUT: fn @__global_init() { // CHECK:STDOUT: !entry: -// CHECK:STDOUT: %.loc23_16: i32 = int_literal 4 [template = constants.%.14] +// CHECK:STDOUT: %.loc23_16: i32 = int_value 4 [template = constants.%.14] // CHECK:STDOUT: %int.make_type_32.loc23_21: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc23_21.1: type = value_of_initializer %int.make_type_32.loc23_21 [template = i32] // CHECK:STDOUT: %.loc23_21.2: type = converted %int.make_type_32.loc23_21, %.loc23_21.1 [template = i32] diff --git a/toolchain/check/testdata/basics/builtin_types.carbon b/toolchain/check/testdata/basics/builtin_types.carbon index bc02a5b3632d2..633db2e550f97 100644 --- a/toolchain/check/testdata/basics/builtin_types.carbon +++ b/toolchain/check/testdata/basics/builtin_types.carbon @@ -19,8 +19,8 @@ var test_type: type = i32; // CHECK:STDOUT: %Int32.type: type = fn_type @Int32 [template] // CHECK:STDOUT: %.1: type = tuple_type () [template] // CHECK:STDOUT: %Int32: %Int32.type = struct_value () [template] -// CHECK:STDOUT: %.2: i32 = int_literal 0 [template] -// CHECK:STDOUT: %.3: Core.BigInt = int_literal 64 [template] +// CHECK:STDOUT: %.2: i32 = int_value 0 [template] +// CHECK:STDOUT: %.3: Core.BigInt = int_value 64 [template] // CHECK:STDOUT: %Float.type: type = fn_type @Float [template] // CHECK:STDOUT: %Float: %Float.type = struct_value () [template] // CHECK:STDOUT: %.4: f64 = float_literal 0.10000000000000001 [template] @@ -53,7 +53,7 @@ var test_type: type = i32; // CHECK:STDOUT: %.loc11_15.2: type = converted %int.make_type_32, %.loc11_15.1 [template = i32] // CHECK:STDOUT: %test_i32.var: ref i32 = var test_i32 // CHECK:STDOUT: %test_i32: ref i32 = bind_name test_i32, %test_i32.var -// CHECK:STDOUT: %.loc12_15.1: Core.BigInt = int_literal 64 [template = constants.%.3] +// CHECK:STDOUT: %.loc12_15.1: Core.BigInt = int_value 64 [template = constants.%.3] // CHECK:STDOUT: %float.make_type: init type = call constants.%Float(%.loc12_15.1) [template = f64] // CHECK:STDOUT: %.loc12_15.2: type = value_of_initializer %float.make_type [template = f64] // CHECK:STDOUT: %.loc12_15.3: type = converted %float.make_type, %.loc12_15.2 [template = f64] @@ -69,7 +69,7 @@ var test_type: type = i32; // CHECK:STDOUT: // CHECK:STDOUT: fn @__global_init() { // CHECK:STDOUT: !entry: -// CHECK:STDOUT: %.loc11: i32 = int_literal 0 [template = constants.%.2] +// CHECK:STDOUT: %.loc11: i32 = int_value 0 [template = constants.%.2] // CHECK:STDOUT: assign file.%test_i32.var, %.loc11 // CHECK:STDOUT: %.loc12: f64 = float_literal 0.10000000000000001 [template = constants.%.4] // CHECK:STDOUT: assign file.%test_f64.var, %.loc12 diff --git a/toolchain/check/testdata/basics/fail_non_type_as_type.carbon b/toolchain/check/testdata/basics/fail_non_type_as_type.carbon index 7101d45d73ee5..54998b3c83838 100644 --- a/toolchain/check/testdata/basics/fail_non_type_as_type.carbon +++ b/toolchain/check/testdata/basics/fail_non_type_as_type.carbon @@ -19,7 +19,7 @@ var x: type = 42; // CHECK:STDOUT: --- fail_non_type_as_type.carbon // CHECK:STDOUT: // CHECK:STDOUT: constants { -// CHECK:STDOUT: %.1: i32 = int_literal 42 [template] +// CHECK:STDOUT: %.1: i32 = int_value 42 [template] // CHECK:STDOUT: %ImplicitAs.type.1: type = generic_interface_type @ImplicitAs [template] // CHECK:STDOUT: %.2: type = tuple_type () [template] // CHECK:STDOUT: %ImplicitAs: %ImplicitAs.type.1 = struct_value () [template] @@ -94,7 +94,7 @@ var x: type = 42; // CHECK:STDOUT: // CHECK:STDOUT: fn @__global_init() { // CHECK:STDOUT: !entry: -// CHECK:STDOUT: %.loc17_15: i32 = int_literal 42 [template = constants.%.1] +// CHECK:STDOUT: %.loc17_15: i32 = int_value 42 [template = constants.%.1] // CHECK:STDOUT: %ImplicitAs.type: type = interface_type @ImplicitAs, @ImplicitAs(type) [template = constants.%ImplicitAs.type.3] // CHECK:STDOUT: %.loc17_17.1: %.5 = specific_constant imports.%import_ref.3, @ImplicitAs(type) [template = constants.%.6] // CHECK:STDOUT: %Convert.ref: %.5 = name_ref Convert, %.loc17_17.1 [template = constants.%.6] diff --git a/toolchain/check/testdata/basics/fail_numeric_literal_overflow.carbon b/toolchain/check/testdata/basics/fail_numeric_literal_overflow.carbon index 1b88e09e605f6..ce6cec26f41ac 100644 --- a/toolchain/check/testdata/basics/fail_numeric_literal_overflow.carbon +++ b/toolchain/check/testdata/basics/fail_numeric_literal_overflow.carbon @@ -43,7 +43,7 @@ let e: f64 = 5.0e39999999999999999993; // CHECK:STDOUT: %Int32.type: type = fn_type @Int32 [template] // CHECK:STDOUT: %.1: type = tuple_type () [template] // CHECK:STDOUT: %Int32: %Int32.type = struct_value () [template] -// CHECK:STDOUT: %.2: Core.BigInt = int_literal 64 [template] +// CHECK:STDOUT: %.2: Core.BigInt = int_value 64 [template] // CHECK:STDOUT: %Float.type: type = fn_type @Float [template] // CHECK:STDOUT: %Float: %Float.type = struct_value () [template] // CHECK:STDOUT: } @@ -78,11 +78,11 @@ let e: f64 = 5.0e39999999999999999993; // CHECK:STDOUT: %int.make_type_32.loc27: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc27_8.1: type = value_of_initializer %int.make_type_32.loc27 [template = i32] // CHECK:STDOUT: %.loc27_8.2: type = converted %int.make_type_32.loc27, %.loc27_8.1 [template = i32] -// CHECK:STDOUT: %.loc33_8.1: Core.BigInt = int_literal 64 [template = constants.%.2] +// CHECK:STDOUT: %.loc33_8.1: Core.BigInt = int_value 64 [template = constants.%.2] // CHECK:STDOUT: %float.make_type.loc33: init type = call constants.%Float(%.loc33_8.1) [template = f64] // CHECK:STDOUT: %.loc33_8.2: type = value_of_initializer %float.make_type.loc33 [template = f64] // CHECK:STDOUT: %.loc33_8.3: type = converted %float.make_type.loc33, %.loc33_8.2 [template = f64] -// CHECK:STDOUT: %.loc38_8.1: Core.BigInt = int_literal 64 [template = constants.%.2] +// CHECK:STDOUT: %.loc38_8.1: Core.BigInt = int_value 64 [template = constants.%.2] // CHECK:STDOUT: %float.make_type.loc38: init type = call constants.%Float(%.loc38_8.1) [template = f64] // CHECK:STDOUT: %.loc38_8.2: type = value_of_initializer %float.make_type.loc38 [template = f64] // CHECK:STDOUT: %.loc38_8.3: type = converted %float.make_type.loc38, %.loc38_8.2 [template = f64] diff --git a/toolchain/check/testdata/basics/numeric_literals.carbon b/toolchain/check/testdata/basics/numeric_literals.carbon index 2a424b7a8166c..1c81e67fe12bd 100644 --- a/toolchain/check/testdata/basics/numeric_literals.carbon +++ b/toolchain/check/testdata/basics/numeric_literals.carbon @@ -37,21 +37,21 @@ fn F() { // CHECK:STDOUT: %F: %F.type = struct_value () [template] // CHECK:STDOUT: %Int32.type: type = fn_type @Int32 [template] // CHECK:STDOUT: %Int32: %Int32.type = struct_value () [template] -// CHECK:STDOUT: %.2: i32 = int_literal 6 [template] +// CHECK:STDOUT: %.2: i32 = int_value 6 [template] // CHECK:STDOUT: %.3: type = array_type %.2, i32 [template] // CHECK:STDOUT: %.4: type = ptr_type %.3 [template] -// CHECK:STDOUT: %.5: i32 = int_literal 8 [template] -// CHECK:STDOUT: %.6: i32 = int_literal 9 [template] -// CHECK:STDOUT: %.7: i32 = int_literal 2147483647 [template] +// CHECK:STDOUT: %.5: i32 = int_value 8 [template] +// CHECK:STDOUT: %.6: i32 = int_value 9 [template] +// CHECK:STDOUT: %.7: i32 = int_value 2147483647 [template] // CHECK:STDOUT: %.8: type = tuple_type (i32, i32, i32, i32, i32, i32) [template] -// CHECK:STDOUT: %.9: i32 = int_literal 0 [template] -// CHECK:STDOUT: %.10: i32 = int_literal 1 [template] -// CHECK:STDOUT: %.11: i32 = int_literal 2 [template] -// CHECK:STDOUT: %.12: i32 = int_literal 3 [template] -// CHECK:STDOUT: %.13: i32 = int_literal 4 [template] -// CHECK:STDOUT: %.14: i32 = int_literal 5 [template] +// CHECK:STDOUT: %.9: i32 = int_value 0 [template] +// CHECK:STDOUT: %.10: i32 = int_value 1 [template] +// CHECK:STDOUT: %.11: i32 = int_value 2 [template] +// CHECK:STDOUT: %.12: i32 = int_value 3 [template] +// CHECK:STDOUT: %.13: i32 = int_value 4 [template] +// CHECK:STDOUT: %.14: i32 = int_value 5 [template] // CHECK:STDOUT: %array.1: %.3 = tuple_value (%.5, %.6, %.5, %.5, %.7, %.7) [template] -// CHECK:STDOUT: %.15: Core.BigInt = int_literal 64 [template] +// CHECK:STDOUT: %.15: Core.BigInt = int_value 64 [template] // CHECK:STDOUT: %Float.type: type = fn_type @Float [template] // CHECK:STDOUT: %Float: %Float.type = struct_value () [template] // CHECK:STDOUT: %.16: type = array_type %.2, f64 [template] @@ -89,43 +89,43 @@ fn F() { // CHECK:STDOUT: fn @F() { // CHECK:STDOUT: !entry: // CHECK:STDOUT: %int.make_type_32: init type = call constants.%Int32() [template = i32] -// CHECK:STDOUT: %.loc14_19: i32 = int_literal 6 [template = constants.%.2] +// CHECK:STDOUT: %.loc14_19: i32 = int_value 6 [template = constants.%.2] // CHECK:STDOUT: %.loc14_14.1: type = value_of_initializer %int.make_type_32 [template = i32] // CHECK:STDOUT: %.loc14_14.2: type = converted %int.make_type_32, %.loc14_14.1 [template = i32] // CHECK:STDOUT: %.loc14_20: type = array_type %.loc14_19, i32 [template = constants.%.3] // CHECK:STDOUT: %ints.var: ref %.3 = var ints // CHECK:STDOUT: %ints: ref %.3 = bind_name ints, %ints.var -// CHECK:STDOUT: %.loc15: i32 = int_literal 8 [template = constants.%.5] -// CHECK:STDOUT: %.loc16: i32 = int_literal 9 [template = constants.%.6] -// CHECK:STDOUT: %.loc17: i32 = int_literal 8 [template = constants.%.5] -// CHECK:STDOUT: %.loc18: i32 = int_literal 8 [template = constants.%.5] -// CHECK:STDOUT: %.loc19: i32 = int_literal 2147483647 [template = constants.%.7] -// CHECK:STDOUT: %.loc20: i32 = int_literal 2147483647 [template = constants.%.7] +// CHECK:STDOUT: %.loc15: i32 = int_value 8 [template = constants.%.5] +// CHECK:STDOUT: %.loc16: i32 = int_value 9 [template = constants.%.6] +// CHECK:STDOUT: %.loc17: i32 = int_value 8 [template = constants.%.5] +// CHECK:STDOUT: %.loc18: i32 = int_value 8 [template = constants.%.5] +// CHECK:STDOUT: %.loc19: i32 = int_value 2147483647 [template = constants.%.7] +// CHECK:STDOUT: %.loc20: i32 = int_value 2147483647 [template = constants.%.7] // CHECK:STDOUT: %.loc21_3.1: %.8 = tuple_literal (%.loc15, %.loc16, %.loc17, %.loc18, %.loc19, %.loc20) -// CHECK:STDOUT: %.loc21_3.2: i32 = int_literal 0 [template = constants.%.9] +// CHECK:STDOUT: %.loc21_3.2: i32 = int_value 0 [template = constants.%.9] // CHECK:STDOUT: %.loc21_3.3: ref i32 = array_index %ints.var, %.loc21_3.2 // CHECK:STDOUT: %.loc21_3.4: init i32 = initialize_from %.loc15 to %.loc21_3.3 [template = constants.%.5] -// CHECK:STDOUT: %.loc21_3.5: i32 = int_literal 1 [template = constants.%.10] +// CHECK:STDOUT: %.loc21_3.5: i32 = int_value 1 [template = constants.%.10] // CHECK:STDOUT: %.loc21_3.6: ref i32 = array_index %ints.var, %.loc21_3.5 // CHECK:STDOUT: %.loc21_3.7: init i32 = initialize_from %.loc16 to %.loc21_3.6 [template = constants.%.6] -// CHECK:STDOUT: %.loc21_3.8: i32 = int_literal 2 [template = constants.%.11] +// CHECK:STDOUT: %.loc21_3.8: i32 = int_value 2 [template = constants.%.11] // CHECK:STDOUT: %.loc21_3.9: ref i32 = array_index %ints.var, %.loc21_3.8 // CHECK:STDOUT: %.loc21_3.10: init i32 = initialize_from %.loc17 to %.loc21_3.9 [template = constants.%.5] -// CHECK:STDOUT: %.loc21_3.11: i32 = int_literal 3 [template = constants.%.12] +// CHECK:STDOUT: %.loc21_3.11: i32 = int_value 3 [template = constants.%.12] // CHECK:STDOUT: %.loc21_3.12: ref i32 = array_index %ints.var, %.loc21_3.11 // CHECK:STDOUT: %.loc21_3.13: init i32 = initialize_from %.loc18 to %.loc21_3.12 [template = constants.%.5] -// CHECK:STDOUT: %.loc21_3.14: i32 = int_literal 4 [template = constants.%.13] +// CHECK:STDOUT: %.loc21_3.14: i32 = int_value 4 [template = constants.%.13] // CHECK:STDOUT: %.loc21_3.15: ref i32 = array_index %ints.var, %.loc21_3.14 // CHECK:STDOUT: %.loc21_3.16: init i32 = initialize_from %.loc19 to %.loc21_3.15 [template = constants.%.7] -// CHECK:STDOUT: %.loc21_3.17: i32 = int_literal 5 [template = constants.%.14] +// CHECK:STDOUT: %.loc21_3.17: i32 = int_value 5 [template = constants.%.14] // CHECK:STDOUT: %.loc21_3.18: ref i32 = array_index %ints.var, %.loc21_3.17 // CHECK:STDOUT: %.loc21_3.19: init i32 = initialize_from %.loc20 to %.loc21_3.18 [template = constants.%.7] // CHECK:STDOUT: %.loc21_3.20: init %.3 = array_init (%.loc21_3.4, %.loc21_3.7, %.loc21_3.10, %.loc21_3.13, %.loc21_3.16, %.loc21_3.19) to %ints.var [template = constants.%array.1] // CHECK:STDOUT: %.loc21_4: init %.3 = converted %.loc21_3.1, %.loc21_3.20 [template = constants.%array.1] // CHECK:STDOUT: assign %ints.var, %.loc21_4 -// CHECK:STDOUT: %.loc22_16.1: Core.BigInt = int_literal 64 [template = constants.%.15] +// CHECK:STDOUT: %.loc22_16.1: Core.BigInt = int_value 64 [template = constants.%.15] // CHECK:STDOUT: %float.make_type: init type = call constants.%Float(%.loc22_16.1) [template = f64] -// CHECK:STDOUT: %.loc22_21: i32 = int_literal 6 [template = constants.%.2] +// CHECK:STDOUT: %.loc22_21: i32 = int_value 6 [template = constants.%.2] // CHECK:STDOUT: %.loc22_16.2: type = value_of_initializer %float.make_type [template = f64] // CHECK:STDOUT: %.loc22_16.3: type = converted %float.make_type, %.loc22_16.2 [template = f64] // CHECK:STDOUT: %.loc22_22: type = array_type %.loc22_21, f64 [template = constants.%.16] @@ -138,22 +138,22 @@ fn F() { // CHECK:STDOUT: %.loc27: f64 = float_literal 1.0E+8 [template = constants.%.22] // CHECK:STDOUT: %.loc28: f64 = float_literal 1.0E-8 [template = constants.%.23] // CHECK:STDOUT: %.loc29_3.1: %.24 = tuple_literal (%.loc23, %.loc24, %.loc25, %.loc26, %.loc27, %.loc28) -// CHECK:STDOUT: %.loc29_3.2: i32 = int_literal 0 [template = constants.%.9] +// CHECK:STDOUT: %.loc29_3.2: i32 = int_value 0 [template = constants.%.9] // CHECK:STDOUT: %.loc29_3.3: ref f64 = array_index %floats.var, %.loc29_3.2 // CHECK:STDOUT: %.loc29_3.4: init f64 = initialize_from %.loc23 to %.loc29_3.3 [template = constants.%.18] -// CHECK:STDOUT: %.loc29_3.5: i32 = int_literal 1 [template = constants.%.10] +// CHECK:STDOUT: %.loc29_3.5: i32 = int_value 1 [template = constants.%.10] // CHECK:STDOUT: %.loc29_3.6: ref f64 = array_index %floats.var, %.loc29_3.5 // CHECK:STDOUT: %.loc29_3.7: init f64 = initialize_from %.loc24 to %.loc29_3.6 [template = constants.%.19] -// CHECK:STDOUT: %.loc29_3.8: i32 = int_literal 2 [template = constants.%.11] +// CHECK:STDOUT: %.loc29_3.8: i32 = int_value 2 [template = constants.%.11] // CHECK:STDOUT: %.loc29_3.9: ref f64 = array_index %floats.var, %.loc29_3.8 // CHECK:STDOUT: %.loc29_3.10: init f64 = initialize_from %.loc25 to %.loc29_3.9 [template = constants.%.20] -// CHECK:STDOUT: %.loc29_3.11: i32 = int_literal 3 [template = constants.%.12] +// CHECK:STDOUT: %.loc29_3.11: i32 = int_value 3 [template = constants.%.12] // CHECK:STDOUT: %.loc29_3.12: ref f64 = array_index %floats.var, %.loc29_3.11 // CHECK:STDOUT: %.loc29_3.13: init f64 = initialize_from %.loc26 to %.loc29_3.12 [template = constants.%.21] -// CHECK:STDOUT: %.loc29_3.14: i32 = int_literal 4 [template = constants.%.13] +// CHECK:STDOUT: %.loc29_3.14: i32 = int_value 4 [template = constants.%.13] // CHECK:STDOUT: %.loc29_3.15: ref f64 = array_index %floats.var, %.loc29_3.14 // CHECK:STDOUT: %.loc29_3.16: init f64 = initialize_from %.loc27 to %.loc29_3.15 [template = constants.%.22] -// CHECK:STDOUT: %.loc29_3.17: i32 = int_literal 5 [template = constants.%.14] +// CHECK:STDOUT: %.loc29_3.17: i32 = int_value 5 [template = constants.%.14] // CHECK:STDOUT: %.loc29_3.18: ref f64 = array_index %floats.var, %.loc29_3.17 // CHECK:STDOUT: %.loc29_3.19: init f64 = initialize_from %.loc28 to %.loc29_3.18 [template = constants.%.23] // CHECK:STDOUT: %.loc29_3.20: init %.16 = array_init (%.loc29_3.4, %.loc29_3.7, %.loc29_3.10, %.loc29_3.13, %.loc29_3.16, %.loc29_3.19) to %floats.var [template = constants.%array.2] diff --git a/toolchain/check/testdata/basics/parens.carbon b/toolchain/check/testdata/basics/parens.carbon index fd83a37e18a0e..16e0b5eb381e2 100644 --- a/toolchain/check/testdata/basics/parens.carbon +++ b/toolchain/check/testdata/basics/parens.carbon @@ -17,8 +17,8 @@ var b: i32 = ((2)); // CHECK:STDOUT: %Int32.type: type = fn_type @Int32 [template] // CHECK:STDOUT: %.1: type = tuple_type () [template] // CHECK:STDOUT: %Int32: %Int32.type = struct_value () [template] -// CHECK:STDOUT: %.2: i32 = int_literal 1 [template] -// CHECK:STDOUT: %.3: i32 = int_literal 2 [template] +// CHECK:STDOUT: %.2: i32 = int_value 1 [template] +// CHECK:STDOUT: %.3: i32 = int_value 2 [template] // CHECK:STDOUT: } // CHECK:STDOUT: // CHECK:STDOUT: imports { @@ -53,9 +53,9 @@ var b: i32 = ((2)); // CHECK:STDOUT: // CHECK:STDOUT: fn @__global_init() { // CHECK:STDOUT: !entry: -// CHECK:STDOUT: %.loc11: i32 = int_literal 1 [template = constants.%.2] +// CHECK:STDOUT: %.loc11: i32 = int_value 1 [template = constants.%.2] // CHECK:STDOUT: assign file.%a.var, %.loc11 -// CHECK:STDOUT: %.loc12: i32 = int_literal 2 [template = constants.%.3] +// CHECK:STDOUT: %.loc12: i32 = int_value 2 [template = constants.%.3] // CHECK:STDOUT: assign file.%b.var, %.loc12 // CHECK:STDOUT: return // CHECK:STDOUT: } diff --git a/toolchain/check/testdata/basics/run_i32.carbon b/toolchain/check/testdata/basics/run_i32.carbon index 130317383b1c5..09b1a1cbbb554 100644 --- a/toolchain/check/testdata/basics/run_i32.carbon +++ b/toolchain/check/testdata/basics/run_i32.carbon @@ -18,7 +18,7 @@ fn Run() -> i32 { return 0; } // CHECK:STDOUT: %Int32: %Int32.type = struct_value () [template] // CHECK:STDOUT: %Run.type: type = fn_type @Run [template] // CHECK:STDOUT: %Run: %Run.type = struct_value () [template] -// CHECK:STDOUT: %.2: i32 = int_literal 0 [template] +// CHECK:STDOUT: %.2: i32 = int_value 0 [template] // CHECK:STDOUT: } // CHECK:STDOUT: // CHECK:STDOUT: imports { @@ -52,7 +52,7 @@ fn Run() -> i32 { return 0; } // CHECK:STDOUT: // CHECK:STDOUT: fn @Run() -> i32 { // CHECK:STDOUT: !entry: -// CHECK:STDOUT: %.loc11_26: i32 = int_literal 0 [template = constants.%.2] +// CHECK:STDOUT: %.loc11_26: i32 = int_value 0 [template = constants.%.2] // CHECK:STDOUT: return %.loc11_26 // CHECK:STDOUT: } // CHECK:STDOUT: diff --git a/toolchain/check/testdata/basics/type_literals.carbon b/toolchain/check/testdata/basics/type_literals.carbon index 6dbb32fbe8d4c..bff9c274f5f2f 100644 --- a/toolchain/check/testdata/basics/type_literals.carbon +++ b/toolchain/check/testdata/basics/type_literals.carbon @@ -130,14 +130,14 @@ var test_f128: f128; // CHECK:STDOUT: --- iN.carbon // CHECK:STDOUT: // CHECK:STDOUT: constants { -// CHECK:STDOUT: %.1: Core.BigInt = int_literal 8 [template] +// CHECK:STDOUT: %.1: Core.BigInt = int_value 8 [template] // CHECK:STDOUT: %Int.type: type = fn_type @Int [template] // CHECK:STDOUT: %.2: type = tuple_type () [template] // CHECK:STDOUT: %Int: %Int.type = struct_value () [template] // CHECK:STDOUT: %.3: type = int_type signed, %.1 [template] -// CHECK:STDOUT: %.4: Core.BigInt = int_literal 16 [template] +// CHECK:STDOUT: %.4: Core.BigInt = int_value 16 [template] // CHECK:STDOUT: %.5: type = int_type signed, %.4 [template] -// CHECK:STDOUT: %.6: Core.BigInt = int_literal 64 [template] +// CHECK:STDOUT: %.6: Core.BigInt = int_value 64 [template] // CHECK:STDOUT: %.7: type = int_type signed, %.6 [template] // CHECK:STDOUT: } // CHECK:STDOUT: @@ -158,19 +158,19 @@ var test_f128: f128; // CHECK:STDOUT: .test_i64 = %test_i64 // CHECK:STDOUT: } // CHECK:STDOUT: %Core.import = import Core -// CHECK:STDOUT: %.loc3_14.1: Core.BigInt = int_literal 8 [template = constants.%.1] +// CHECK:STDOUT: %.loc3_14.1: Core.BigInt = int_value 8 [template = constants.%.1] // CHECK:STDOUT: %int.make_type_signed.loc3: init type = call constants.%Int(%.loc3_14.1) [template = constants.%.3] // CHECK:STDOUT: %.loc3_14.2: type = value_of_initializer %int.make_type_signed.loc3 [template = constants.%.3] // CHECK:STDOUT: %.loc3_14.3: type = converted %int.make_type_signed.loc3, %.loc3_14.2 [template = constants.%.3] // CHECK:STDOUT: %test_i8.var: ref %.3 = var test_i8 // CHECK:STDOUT: %test_i8: ref %.3 = bind_name test_i8, %test_i8.var -// CHECK:STDOUT: %.loc4_15.1: Core.BigInt = int_literal 16 [template = constants.%.4] +// CHECK:STDOUT: %.loc4_15.1: Core.BigInt = int_value 16 [template = constants.%.4] // CHECK:STDOUT: %int.make_type_signed.loc4: init type = call constants.%Int(%.loc4_15.1) [template = constants.%.5] // CHECK:STDOUT: %.loc4_15.2: type = value_of_initializer %int.make_type_signed.loc4 [template = constants.%.5] // CHECK:STDOUT: %.loc4_15.3: type = converted %int.make_type_signed.loc4, %.loc4_15.2 [template = constants.%.5] // CHECK:STDOUT: %test_i16.var: ref %.5 = var test_i16 // CHECK:STDOUT: %test_i16: ref %.5 = bind_name test_i16, %test_i16.var -// CHECK:STDOUT: %.loc5_15.1: Core.BigInt = int_literal 64 [template = constants.%.6] +// CHECK:STDOUT: %.loc5_15.1: Core.BigInt = int_value 64 [template = constants.%.6] // CHECK:STDOUT: %int.make_type_signed.loc5: init type = call constants.%Int(%.loc5_15.1) [template = constants.%.7] // CHECK:STDOUT: %.loc5_15.2: type = value_of_initializer %int.make_type_signed.loc5 [template = constants.%.7] // CHECK:STDOUT: %.loc5_15.3: type = converted %int.make_type_signed.loc5, %.loc5_15.2 [template = constants.%.7] @@ -183,14 +183,14 @@ var test_f128: f128; // CHECK:STDOUT: --- fail_iN_bad_width.carbon // CHECK:STDOUT: // CHECK:STDOUT: constants { -// CHECK:STDOUT: %.1: Core.BigInt = int_literal 1 [template] +// CHECK:STDOUT: %.1: Core.BigInt = int_value 1 [template] // CHECK:STDOUT: %Int.type: type = fn_type @Int [template] // CHECK:STDOUT: %.2: type = tuple_type () [template] // CHECK:STDOUT: %Int: %Int.type = struct_value () [template] // CHECK:STDOUT: %.3: type = int_type signed, %.1 [template] -// CHECK:STDOUT: %.4: Core.BigInt = int_literal 15 [template] +// CHECK:STDOUT: %.4: Core.BigInt = int_value 15 [template] // CHECK:STDOUT: %.5: type = int_type signed, %.4 [template] -// CHECK:STDOUT: %.6: Core.BigInt = int_literal 1000000000 [template] +// CHECK:STDOUT: %.6: Core.BigInt = int_value 1000000000 [template] // CHECK:STDOUT: } // CHECK:STDOUT: // CHECK:STDOUT: file {} @@ -200,14 +200,14 @@ var test_f128: f128; // CHECK:STDOUT: --- uN.carbon // CHECK:STDOUT: // CHECK:STDOUT: constants { -// CHECK:STDOUT: %.1: Core.BigInt = int_literal 8 [template] +// CHECK:STDOUT: %.1: Core.BigInt = int_value 8 [template] // CHECK:STDOUT: %UInt.type: type = fn_type @UInt [template] // CHECK:STDOUT: %.2: type = tuple_type () [template] // CHECK:STDOUT: %UInt: %UInt.type = struct_value () [template] // CHECK:STDOUT: %.3: type = int_type unsigned, %.1 [template] -// CHECK:STDOUT: %.4: Core.BigInt = int_literal 16 [template] +// CHECK:STDOUT: %.4: Core.BigInt = int_value 16 [template] // CHECK:STDOUT: %.5: type = int_type unsigned, %.4 [template] -// CHECK:STDOUT: %.6: Core.BigInt = int_literal 64 [template] +// CHECK:STDOUT: %.6: Core.BigInt = int_value 64 [template] // CHECK:STDOUT: %.7: type = int_type unsigned, %.6 [template] // CHECK:STDOUT: } // CHECK:STDOUT: @@ -228,19 +228,19 @@ var test_f128: f128; // CHECK:STDOUT: .test_u64 = %test_u64 // CHECK:STDOUT: } // CHECK:STDOUT: %Core.import = import Core -// CHECK:STDOUT: %.loc3_14.1: Core.BigInt = int_literal 8 [template = constants.%.1] +// CHECK:STDOUT: %.loc3_14.1: Core.BigInt = int_value 8 [template = constants.%.1] // CHECK:STDOUT: %int.make_type_unsigned.loc3: init type = call constants.%UInt(%.loc3_14.1) [template = constants.%.3] // CHECK:STDOUT: %.loc3_14.2: type = value_of_initializer %int.make_type_unsigned.loc3 [template = constants.%.3] // CHECK:STDOUT: %.loc3_14.3: type = converted %int.make_type_unsigned.loc3, %.loc3_14.2 [template = constants.%.3] // CHECK:STDOUT: %test_u8.var: ref %.3 = var test_u8 // CHECK:STDOUT: %test_u8: ref %.3 = bind_name test_u8, %test_u8.var -// CHECK:STDOUT: %.loc4_15.1: Core.BigInt = int_literal 16 [template = constants.%.4] +// CHECK:STDOUT: %.loc4_15.1: Core.BigInt = int_value 16 [template = constants.%.4] // CHECK:STDOUT: %int.make_type_unsigned.loc4: init type = call constants.%UInt(%.loc4_15.1) [template = constants.%.5] // CHECK:STDOUT: %.loc4_15.2: type = value_of_initializer %int.make_type_unsigned.loc4 [template = constants.%.5] // CHECK:STDOUT: %.loc4_15.3: type = converted %int.make_type_unsigned.loc4, %.loc4_15.2 [template = constants.%.5] // CHECK:STDOUT: %test_u16.var: ref %.5 = var test_u16 // CHECK:STDOUT: %test_u16: ref %.5 = bind_name test_u16, %test_u16.var -// CHECK:STDOUT: %.loc5_15.1: Core.BigInt = int_literal 64 [template = constants.%.6] +// CHECK:STDOUT: %.loc5_15.1: Core.BigInt = int_value 64 [template = constants.%.6] // CHECK:STDOUT: %int.make_type_unsigned.loc5: init type = call constants.%UInt(%.loc5_15.1) [template = constants.%.7] // CHECK:STDOUT: %.loc5_15.2: type = value_of_initializer %int.make_type_unsigned.loc5 [template = constants.%.7] // CHECK:STDOUT: %.loc5_15.3: type = converted %int.make_type_unsigned.loc5, %.loc5_15.2 [template = constants.%.7] @@ -253,14 +253,14 @@ var test_f128: f128; // CHECK:STDOUT: --- fail_uN_bad_width.carbon // CHECK:STDOUT: // CHECK:STDOUT: constants { -// CHECK:STDOUT: %.1: Core.BigInt = int_literal 1 [template] +// CHECK:STDOUT: %.1: Core.BigInt = int_value 1 [template] // CHECK:STDOUT: %UInt.type: type = fn_type @UInt [template] // CHECK:STDOUT: %.2: type = tuple_type () [template] // CHECK:STDOUT: %UInt: %UInt.type = struct_value () [template] // CHECK:STDOUT: %.3: type = int_type unsigned, %.1 [template] -// CHECK:STDOUT: %.4: Core.BigInt = int_literal 15 [template] +// CHECK:STDOUT: %.4: Core.BigInt = int_value 15 [template] // CHECK:STDOUT: %.5: type = int_type unsigned, %.4 [template] -// CHECK:STDOUT: %.6: Core.BigInt = int_literal 1000000000 [template] +// CHECK:STDOUT: %.6: Core.BigInt = int_value 1000000000 [template] // CHECK:STDOUT: } // CHECK:STDOUT: // CHECK:STDOUT: file {} diff --git a/toolchain/check/testdata/builtins/float/add.carbon b/toolchain/check/testdata/builtins/float/add.carbon index 6e84ac2187211..838f1ad29de94 100644 --- a/toolchain/check/testdata/builtins/float/add.carbon +++ b/toolchain/check/testdata/builtins/float/add.carbon @@ -53,7 +53,7 @@ fn RuntimeCallBadReturnType(a: f64, b: f64) -> bool { // CHECK:STDOUT: --- float_add.carbon // CHECK:STDOUT: // CHECK:STDOUT: constants { -// CHECK:STDOUT: %.1: Core.BigInt = int_literal 64 [template] +// CHECK:STDOUT: %.1: Core.BigInt = int_value 64 [template] // CHECK:STDOUT: %Float.type: type = fn_type @Float [template] // CHECK:STDOUT: %.2: type = tuple_type () [template] // CHECK:STDOUT: %Float: %Float.type = struct_value () [template] @@ -91,15 +91,15 @@ fn RuntimeCallBadReturnType(a: f64, b: f64) -> bool { // CHECK:STDOUT: %return.patt: f64 = return_slot_pattern // CHECK:STDOUT: %return.param_patt: f64 = out_param_pattern %return.patt, runtime_param2 // CHECK:STDOUT: } { -// CHECK:STDOUT: %.loc2_11.1: Core.BigInt = int_literal 64 [template = constants.%.1] +// CHECK:STDOUT: %.loc2_11.1: Core.BigInt = int_value 64 [template = constants.%.1] // CHECK:STDOUT: %float.make_type.loc2_11: init type = call constants.%Float(%.loc2_11.1) [template = f64] // CHECK:STDOUT: %.loc2_11.2: type = value_of_initializer %float.make_type.loc2_11 [template = f64] // CHECK:STDOUT: %.loc2_11.3: type = converted %float.make_type.loc2_11, %.loc2_11.2 [template = f64] -// CHECK:STDOUT: %.loc2_19.1: Core.BigInt = int_literal 64 [template = constants.%.1] +// CHECK:STDOUT: %.loc2_19.1: Core.BigInt = int_value 64 [template = constants.%.1] // CHECK:STDOUT: %float.make_type.loc2_19: init type = call constants.%Float(%.loc2_19.1) [template = f64] // CHECK:STDOUT: %.loc2_19.2: type = value_of_initializer %float.make_type.loc2_19 [template = f64] // CHECK:STDOUT: %.loc2_19.3: type = converted %float.make_type.loc2_19, %.loc2_19.2 [template = f64] -// CHECK:STDOUT: %.loc2_27.1: Core.BigInt = int_literal 64 [template = constants.%.1] +// CHECK:STDOUT: %.loc2_27.1: Core.BigInt = int_value 64 [template = constants.%.1] // CHECK:STDOUT: %float.make_type.loc2_27: init type = call constants.%Float(%.loc2_27.1) [template = f64] // CHECK:STDOUT: %.loc2_27.2: type = value_of_initializer %float.make_type.loc2_27 [template = f64] // CHECK:STDOUT: %.loc2_27.3: type = converted %float.make_type.loc2_27, %.loc2_27.2 [template = f64] @@ -118,15 +118,15 @@ fn RuntimeCallBadReturnType(a: f64, b: f64) -> bool { // CHECK:STDOUT: %return.patt: f64 = return_slot_pattern // CHECK:STDOUT: %return.param_patt: f64 = out_param_pattern %return.patt, runtime_param2 // CHECK:STDOUT: } { -// CHECK:STDOUT: %.loc4_19.1: Core.BigInt = int_literal 64 [template = constants.%.1] +// CHECK:STDOUT: %.loc4_19.1: Core.BigInt = int_value 64 [template = constants.%.1] // CHECK:STDOUT: %float.make_type.loc4_19: init type = call constants.%Float(%.loc4_19.1) [template = f64] // CHECK:STDOUT: %.loc4_19.2: type = value_of_initializer %float.make_type.loc4_19 [template = f64] // CHECK:STDOUT: %.loc4_19.3: type = converted %float.make_type.loc4_19, %.loc4_19.2 [template = f64] -// CHECK:STDOUT: %.loc4_27.1: Core.BigInt = int_literal 64 [template = constants.%.1] +// CHECK:STDOUT: %.loc4_27.1: Core.BigInt = int_value 64 [template = constants.%.1] // CHECK:STDOUT: %float.make_type.loc4_27: init type = call constants.%Float(%.loc4_27.1) [template = f64] // CHECK:STDOUT: %.loc4_27.2: type = value_of_initializer %float.make_type.loc4_27 [template = f64] // CHECK:STDOUT: %.loc4_27.3: type = converted %float.make_type.loc4_27, %.loc4_27.2 [template = f64] -// CHECK:STDOUT: %.loc4_35.1: Core.BigInt = int_literal 64 [template = constants.%.1] +// CHECK:STDOUT: %.loc4_35.1: Core.BigInt = int_value 64 [template = constants.%.1] // CHECK:STDOUT: %float.make_type.loc4_35: init type = call constants.%Float(%.loc4_35.1) [template = f64] // CHECK:STDOUT: %.loc4_35.2: type = value_of_initializer %float.make_type.loc4_35 [template = f64] // CHECK:STDOUT: %.loc4_35.3: type = converted %float.make_type.loc4_35, %.loc4_35.2 [template = f64] @@ -137,7 +137,7 @@ fn RuntimeCallBadReturnType(a: f64, b: f64) -> bool { // CHECK:STDOUT: %return.param: ref f64 = out_param runtime_param2 // CHECK:STDOUT: %return: ref f64 = return_slot %return.param // CHECK:STDOUT: } -// CHECK:STDOUT: %.loc8_8.1: Core.BigInt = int_literal 64 [template = constants.%.1] +// CHECK:STDOUT: %.loc8_8.1: Core.BigInt = int_value 64 [template = constants.%.1] // CHECK:STDOUT: %float.make_type: init type = call constants.%Float(%.loc8_8.1) [template = f64] // CHECK:STDOUT: %.loc8_8.2: type = value_of_initializer %float.make_type [template = f64] // CHECK:STDOUT: %.loc8_8.3: type = converted %float.make_type, %.loc8_8.2 [template = f64] @@ -173,7 +173,7 @@ fn RuntimeCallBadReturnType(a: f64, b: f64) -> bool { // CHECK:STDOUT: --- fail_bad_decl.carbon // CHECK:STDOUT: // CHECK:STDOUT: constants { -// CHECK:STDOUT: %.1: Core.BigInt = int_literal 64 [template] +// CHECK:STDOUT: %.1: Core.BigInt = int_value 64 [template] // CHECK:STDOUT: %Float.type: type = fn_type @Float [template] // CHECK:STDOUT: %.2: type = tuple_type () [template] // CHECK:STDOUT: %Float: %Float.type = struct_value () [template] @@ -224,11 +224,11 @@ fn RuntimeCallBadReturnType(a: f64, b: f64) -> bool { // CHECK:STDOUT: %return.patt: f64 = return_slot_pattern // CHECK:STDOUT: %return.param_patt: f64 = out_param_pattern %return.patt, runtime_param1 // CHECK:STDOUT: } { -// CHECK:STDOUT: %.loc8_14.1: Core.BigInt = int_literal 64 [template = constants.%.1] +// CHECK:STDOUT: %.loc8_14.1: Core.BigInt = int_value 64 [template = constants.%.1] // CHECK:STDOUT: %float.make_type.loc8_14: init type = call constants.%Float(%.loc8_14.1) [template = f64] // CHECK:STDOUT: %.loc8_14.2: type = value_of_initializer %float.make_type.loc8_14 [template = f64] // CHECK:STDOUT: %.loc8_14.3: type = converted %float.make_type.loc8_14, %.loc8_14.2 [template = f64] -// CHECK:STDOUT: %.loc8_22.1: Core.BigInt = int_literal 64 [template = constants.%.1] +// CHECK:STDOUT: %.loc8_22.1: Core.BigInt = int_value 64 [template = constants.%.1] // CHECK:STDOUT: %float.make_type.loc8_22: init type = call constants.%Float(%.loc8_22.1) [template = f64] // CHECK:STDOUT: %.loc8_22.2: type = value_of_initializer %float.make_type.loc8_22 [template = f64] // CHECK:STDOUT: %.loc8_22.3: type = converted %float.make_type.loc8_22, %.loc8_22.2 [template = f64] @@ -247,19 +247,19 @@ fn RuntimeCallBadReturnType(a: f64, b: f64) -> bool { // CHECK:STDOUT: %return.patt: f64 = return_slot_pattern // CHECK:STDOUT: %return.param_patt: f64 = out_param_pattern %return.patt, runtime_param3 // CHECK:STDOUT: } { -// CHECK:STDOUT: %.loc13_15.1: Core.BigInt = int_literal 64 [template = constants.%.1] +// CHECK:STDOUT: %.loc13_15.1: Core.BigInt = int_value 64 [template = constants.%.1] // CHECK:STDOUT: %float.make_type.loc13_15: init type = call constants.%Float(%.loc13_15.1) [template = f64] // CHECK:STDOUT: %.loc13_15.2: type = value_of_initializer %float.make_type.loc13_15 [template = f64] // CHECK:STDOUT: %.loc13_15.3: type = converted %float.make_type.loc13_15, %.loc13_15.2 [template = f64] -// CHECK:STDOUT: %.loc13_23.1: Core.BigInt = int_literal 64 [template = constants.%.1] +// CHECK:STDOUT: %.loc13_23.1: Core.BigInt = int_value 64 [template = constants.%.1] // CHECK:STDOUT: %float.make_type.loc13_23: init type = call constants.%Float(%.loc13_23.1) [template = f64] // CHECK:STDOUT: %.loc13_23.2: type = value_of_initializer %float.make_type.loc13_23 [template = f64] // CHECK:STDOUT: %.loc13_23.3: type = converted %float.make_type.loc13_23, %.loc13_23.2 [template = f64] -// CHECK:STDOUT: %.loc13_31.1: Core.BigInt = int_literal 64 [template = constants.%.1] +// CHECK:STDOUT: %.loc13_31.1: Core.BigInt = int_value 64 [template = constants.%.1] // CHECK:STDOUT: %float.make_type.loc13_31: init type = call constants.%Float(%.loc13_31.1) [template = f64] // CHECK:STDOUT: %.loc13_31.2: type = value_of_initializer %float.make_type.loc13_31 [template = f64] // CHECK:STDOUT: %.loc13_31.3: type = converted %float.make_type.loc13_31, %.loc13_31.2 [template = f64] -// CHECK:STDOUT: %.loc13_39.1: Core.BigInt = int_literal 64 [template = constants.%.1] +// CHECK:STDOUT: %.loc13_39.1: Core.BigInt = int_value 64 [template = constants.%.1] // CHECK:STDOUT: %float.make_type.loc13_39: init type = call constants.%Float(%.loc13_39.1) [template = f64] // CHECK:STDOUT: %.loc13_39.2: type = value_of_initializer %float.make_type.loc13_39 [template = f64] // CHECK:STDOUT: %.loc13_39.3: type = converted %float.make_type.loc13_39, %.loc13_39.2 [template = f64] @@ -280,11 +280,11 @@ fn RuntimeCallBadReturnType(a: f64, b: f64) -> bool { // CHECK:STDOUT: %return.patt: bool = return_slot_pattern // CHECK:STDOUT: %return.param_patt: bool = out_param_pattern %return.patt, runtime_param2 // CHECK:STDOUT: } { -// CHECK:STDOUT: %.loc17_21.1: Core.BigInt = int_literal 64 [template = constants.%.1] +// CHECK:STDOUT: %.loc17_21.1: Core.BigInt = int_value 64 [template = constants.%.1] // CHECK:STDOUT: %float.make_type.loc17_21: init type = call constants.%Float(%.loc17_21.1) [template = f64] // CHECK:STDOUT: %.loc17_21.2: type = value_of_initializer %float.make_type.loc17_21 [template = f64] // CHECK:STDOUT: %.loc17_21.3: type = converted %float.make_type.loc17_21, %.loc17_21.2 [template = f64] -// CHECK:STDOUT: %.loc17_29.1: Core.BigInt = int_literal 64 [template = constants.%.1] +// CHECK:STDOUT: %.loc17_29.1: Core.BigInt = int_value 64 [template = constants.%.1] // CHECK:STDOUT: %float.make_type.loc17_29: init type = call constants.%Float(%.loc17_29.1) [template = f64] // CHECK:STDOUT: %.loc17_29.2: type = value_of_initializer %float.make_type.loc17_29 [template = f64] // CHECK:STDOUT: %.loc17_29.3: type = converted %float.make_type.loc17_29, %.loc17_29.2 [template = f64] @@ -306,15 +306,15 @@ fn RuntimeCallBadReturnType(a: f64, b: f64) -> bool { // CHECK:STDOUT: %return.patt: f64 = return_slot_pattern // CHECK:STDOUT: %return.param_patt: f64 = out_param_pattern %return.patt, runtime_param2 // CHECK:STDOUT: } { -// CHECK:STDOUT: %.loc18_17.1: Core.BigInt = int_literal 64 [template = constants.%.1] +// CHECK:STDOUT: %.loc18_17.1: Core.BigInt = int_value 64 [template = constants.%.1] // CHECK:STDOUT: %float.make_type.loc18_17: init type = call constants.%Float(%.loc18_17.1) [template = f64] // CHECK:STDOUT: %.loc18_17.2: type = value_of_initializer %float.make_type.loc18_17 [template = f64] // CHECK:STDOUT: %.loc18_17.3: type = converted %float.make_type.loc18_17, %.loc18_17.2 [template = f64] -// CHECK:STDOUT: %.loc18_25.1: Core.BigInt = int_literal 64 [template = constants.%.1] +// CHECK:STDOUT: %.loc18_25.1: Core.BigInt = int_value 64 [template = constants.%.1] // CHECK:STDOUT: %float.make_type.loc18_25: init type = call constants.%Float(%.loc18_25.1) [template = f64] // CHECK:STDOUT: %.loc18_25.2: type = value_of_initializer %float.make_type.loc18_25 [template = f64] // CHECK:STDOUT: %.loc18_25.3: type = converted %float.make_type.loc18_25, %.loc18_25.2 [template = f64] -// CHECK:STDOUT: %.loc18_33.1: Core.BigInt = int_literal 64 [template = constants.%.1] +// CHECK:STDOUT: %.loc18_33.1: Core.BigInt = int_value 64 [template = constants.%.1] // CHECK:STDOUT: %float.make_type.loc18_33: init type = call constants.%Float(%.loc18_33.1) [template = f64] // CHECK:STDOUT: %.loc18_33.2: type = value_of_initializer %float.make_type.loc18_33 [template = f64] // CHECK:STDOUT: %.loc18_33.3: type = converted %float.make_type.loc18_33, %.loc18_33.2 [template = f64] @@ -331,11 +331,11 @@ fn RuntimeCallBadReturnType(a: f64, b: f64) -> bool { // CHECK:STDOUT: %return.patt: f64 = return_slot_pattern // CHECK:STDOUT: %return.param_patt: f64 = out_param_pattern %return.patt, runtime_param1 // CHECK:STDOUT: } { -// CHECK:STDOUT: %.loc20_25.1: Core.BigInt = int_literal 64 [template = constants.%.1] +// CHECK:STDOUT: %.loc20_25.1: Core.BigInt = int_value 64 [template = constants.%.1] // CHECK:STDOUT: %float.make_type.loc20_25: init type = call constants.%Float(%.loc20_25.1) [template = f64] // CHECK:STDOUT: %.loc20_25.2: type = value_of_initializer %float.make_type.loc20_25 [template = f64] // CHECK:STDOUT: %.loc20_25.3: type = converted %float.make_type.loc20_25, %.loc20_25.2 [template = f64] -// CHECK:STDOUT: %.loc20_33.1: Core.BigInt = int_literal 64 [template = constants.%.1] +// CHECK:STDOUT: %.loc20_33.1: Core.BigInt = int_value 64 [template = constants.%.1] // CHECK:STDOUT: %float.make_type.loc20_33: init type = call constants.%Float(%.loc20_33.1) [template = f64] // CHECK:STDOUT: %.loc20_33.2: type = value_of_initializer %float.make_type.loc20_33 [template = f64] // CHECK:STDOUT: %.loc20_33.3: type = converted %float.make_type.loc20_33, %.loc20_33.2 [template = f64] @@ -354,19 +354,19 @@ fn RuntimeCallBadReturnType(a: f64, b: f64) -> bool { // CHECK:STDOUT: %return.patt: f64 = return_slot_pattern // CHECK:STDOUT: %return.param_patt: f64 = out_param_pattern %return.patt, runtime_param3 // CHECK:STDOUT: } { -// CHECK:STDOUT: %.loc24_26.1: Core.BigInt = int_literal 64 [template = constants.%.1] +// CHECK:STDOUT: %.loc24_26.1: Core.BigInt = int_value 64 [template = constants.%.1] // CHECK:STDOUT: %float.make_type.loc24_26: init type = call constants.%Float(%.loc24_26.1) [template = f64] // CHECK:STDOUT: %.loc24_26.2: type = value_of_initializer %float.make_type.loc24_26 [template = f64] // CHECK:STDOUT: %.loc24_26.3: type = converted %float.make_type.loc24_26, %.loc24_26.2 [template = f64] -// CHECK:STDOUT: %.loc24_34.1: Core.BigInt = int_literal 64 [template = constants.%.1] +// CHECK:STDOUT: %.loc24_34.1: Core.BigInt = int_value 64 [template = constants.%.1] // CHECK:STDOUT: %float.make_type.loc24_34: init type = call constants.%Float(%.loc24_34.1) [template = f64] // CHECK:STDOUT: %.loc24_34.2: type = value_of_initializer %float.make_type.loc24_34 [template = f64] // CHECK:STDOUT: %.loc24_34.3: type = converted %float.make_type.loc24_34, %.loc24_34.2 [template = f64] -// CHECK:STDOUT: %.loc24_42.1: Core.BigInt = int_literal 64 [template = constants.%.1] +// CHECK:STDOUT: %.loc24_42.1: Core.BigInt = int_value 64 [template = constants.%.1] // CHECK:STDOUT: %float.make_type.loc24_42: init type = call constants.%Float(%.loc24_42.1) [template = f64] // CHECK:STDOUT: %.loc24_42.2: type = value_of_initializer %float.make_type.loc24_42 [template = f64] // CHECK:STDOUT: %.loc24_42.3: type = converted %float.make_type.loc24_42, %.loc24_42.2 [template = f64] -// CHECK:STDOUT: %.loc24_50.1: Core.BigInt = int_literal 64 [template = constants.%.1] +// CHECK:STDOUT: %.loc24_50.1: Core.BigInt = int_value 64 [template = constants.%.1] // CHECK:STDOUT: %float.make_type.loc24_50: init type = call constants.%Float(%.loc24_50.1) [template = f64] // CHECK:STDOUT: %.loc24_50.2: type = value_of_initializer %float.make_type.loc24_50 [template = f64] // CHECK:STDOUT: %.loc24_50.3: type = converted %float.make_type.loc24_50, %.loc24_50.2 [template = f64] @@ -387,11 +387,11 @@ fn RuntimeCallBadReturnType(a: f64, b: f64) -> bool { // CHECK:STDOUT: %return.patt: bool = return_slot_pattern // CHECK:STDOUT: %return.param_patt: bool = out_param_pattern %return.patt, runtime_param2 // CHECK:STDOUT: } { -// CHECK:STDOUT: %.loc28_32.1: Core.BigInt = int_literal 64 [template = constants.%.1] +// CHECK:STDOUT: %.loc28_32.1: Core.BigInt = int_value 64 [template = constants.%.1] // CHECK:STDOUT: %float.make_type.loc28_32: init type = call constants.%Float(%.loc28_32.1) [template = f64] // CHECK:STDOUT: %.loc28_32.2: type = value_of_initializer %float.make_type.loc28_32 [template = f64] // CHECK:STDOUT: %.loc28_32.3: type = converted %float.make_type.loc28_32, %.loc28_32.2 [template = f64] -// CHECK:STDOUT: %.loc28_40.1: Core.BigInt = int_literal 64 [template = constants.%.1] +// CHECK:STDOUT: %.loc28_40.1: Core.BigInt = int_value 64 [template = constants.%.1] // CHECK:STDOUT: %float.make_type.loc28_40: init type = call constants.%Float(%.loc28_40.1) [template = f64] // CHECK:STDOUT: %.loc28_40.2: type = value_of_initializer %float.make_type.loc28_40 [template = f64] // CHECK:STDOUT: %.loc28_40.3: type = converted %float.make_type.loc28_40, %.loc28_40.2 [template = f64] diff --git a/toolchain/check/testdata/builtins/float/div.carbon b/toolchain/check/testdata/builtins/float/div.carbon index dc39b64c0f1d3..8d46d971e6150 100644 --- a/toolchain/check/testdata/builtins/float/div.carbon +++ b/toolchain/check/testdata/builtins/float/div.carbon @@ -55,7 +55,7 @@ fn RuntimeCallBadReturnType(a: f64, b: f64) -> bool { // CHECK:STDOUT: --- float_div.carbon // CHECK:STDOUT: // CHECK:STDOUT: constants { -// CHECK:STDOUT: %.1: Core.BigInt = int_literal 64 [template] +// CHECK:STDOUT: %.1: Core.BigInt = int_value 64 [template] // CHECK:STDOUT: %Float.type: type = fn_type @Float [template] // CHECK:STDOUT: %.2: type = tuple_type () [template] // CHECK:STDOUT: %Float: %Float.type = struct_value () [template] @@ -99,15 +99,15 @@ fn RuntimeCallBadReturnType(a: f64, b: f64) -> bool { // CHECK:STDOUT: %return.patt: f64 = return_slot_pattern // CHECK:STDOUT: %return.param_patt: f64 = out_param_pattern %return.patt, runtime_param2 // CHECK:STDOUT: } { -// CHECK:STDOUT: %.loc2_11.1: Core.BigInt = int_literal 64 [template = constants.%.1] +// CHECK:STDOUT: %.loc2_11.1: Core.BigInt = int_value 64 [template = constants.%.1] // CHECK:STDOUT: %float.make_type.loc2_11: init type = call constants.%Float(%.loc2_11.1) [template = f64] // CHECK:STDOUT: %.loc2_11.2: type = value_of_initializer %float.make_type.loc2_11 [template = f64] // CHECK:STDOUT: %.loc2_11.3: type = converted %float.make_type.loc2_11, %.loc2_11.2 [template = f64] -// CHECK:STDOUT: %.loc2_19.1: Core.BigInt = int_literal 64 [template = constants.%.1] +// CHECK:STDOUT: %.loc2_19.1: Core.BigInt = int_value 64 [template = constants.%.1] // CHECK:STDOUT: %float.make_type.loc2_19: init type = call constants.%Float(%.loc2_19.1) [template = f64] // CHECK:STDOUT: %.loc2_19.2: type = value_of_initializer %float.make_type.loc2_19 [template = f64] // CHECK:STDOUT: %.loc2_19.3: type = converted %float.make_type.loc2_19, %.loc2_19.2 [template = f64] -// CHECK:STDOUT: %.loc2_27.1: Core.BigInt = int_literal 64 [template = constants.%.1] +// CHECK:STDOUT: %.loc2_27.1: Core.BigInt = int_value 64 [template = constants.%.1] // CHECK:STDOUT: %float.make_type.loc2_27: init type = call constants.%Float(%.loc2_27.1) [template = f64] // CHECK:STDOUT: %.loc2_27.2: type = value_of_initializer %float.make_type.loc2_27 [template = f64] // CHECK:STDOUT: %.loc2_27.3: type = converted %float.make_type.loc2_27, %.loc2_27.2 [template = f64] @@ -126,15 +126,15 @@ fn RuntimeCallBadReturnType(a: f64, b: f64) -> bool { // CHECK:STDOUT: %return.patt: f64 = return_slot_pattern // CHECK:STDOUT: %return.param_patt: f64 = out_param_pattern %return.patt, runtime_param2 // CHECK:STDOUT: } { -// CHECK:STDOUT: %.loc4_19.1: Core.BigInt = int_literal 64 [template = constants.%.1] +// CHECK:STDOUT: %.loc4_19.1: Core.BigInt = int_value 64 [template = constants.%.1] // CHECK:STDOUT: %float.make_type.loc4_19: init type = call constants.%Float(%.loc4_19.1) [template = f64] // CHECK:STDOUT: %.loc4_19.2: type = value_of_initializer %float.make_type.loc4_19 [template = f64] // CHECK:STDOUT: %.loc4_19.3: type = converted %float.make_type.loc4_19, %.loc4_19.2 [template = f64] -// CHECK:STDOUT: %.loc4_27.1: Core.BigInt = int_literal 64 [template = constants.%.1] +// CHECK:STDOUT: %.loc4_27.1: Core.BigInt = int_value 64 [template = constants.%.1] // CHECK:STDOUT: %float.make_type.loc4_27: init type = call constants.%Float(%.loc4_27.1) [template = f64] // CHECK:STDOUT: %.loc4_27.2: type = value_of_initializer %float.make_type.loc4_27 [template = f64] // CHECK:STDOUT: %.loc4_27.3: type = converted %float.make_type.loc4_27, %.loc4_27.2 [template = f64] -// CHECK:STDOUT: %.loc4_35.1: Core.BigInt = int_literal 64 [template = constants.%.1] +// CHECK:STDOUT: %.loc4_35.1: Core.BigInt = int_value 64 [template = constants.%.1] // CHECK:STDOUT: %float.make_type.loc4_35: init type = call constants.%Float(%.loc4_35.1) [template = f64] // CHECK:STDOUT: %.loc4_35.2: type = value_of_initializer %float.make_type.loc4_35 [template = f64] // CHECK:STDOUT: %.loc4_35.3: type = converted %float.make_type.loc4_35, %.loc4_35.2 [template = f64] @@ -145,17 +145,17 @@ fn RuntimeCallBadReturnType(a: f64, b: f64) -> bool { // CHECK:STDOUT: %return.param: ref f64 = out_param runtime_param2 // CHECK:STDOUT: %return: ref f64 = return_slot %return.param // CHECK:STDOUT: } -// CHECK:STDOUT: %.loc8_8.1: Core.BigInt = int_literal 64 [template = constants.%.1] +// CHECK:STDOUT: %.loc8_8.1: Core.BigInt = int_value 64 [template = constants.%.1] // CHECK:STDOUT: %float.make_type.loc8: init type = call constants.%Float(%.loc8_8.1) [template = f64] // CHECK:STDOUT: %.loc8_8.2: type = value_of_initializer %float.make_type.loc8 [template = f64] // CHECK:STDOUT: %.loc8_8.3: type = converted %float.make_type.loc8, %.loc8_8.2 [template = f64] // CHECK:STDOUT: %a.var: ref f64 = var a // CHECK:STDOUT: %a: ref f64 = bind_name a, %a.var -// CHECK:STDOUT: %.loc9_8.1: Core.BigInt = int_literal 64 [template = constants.%.1] +// CHECK:STDOUT: %.loc9_8.1: Core.BigInt = int_value 64 [template = constants.%.1] // CHECK:STDOUT: %float.make_type.loc9: init type = call constants.%Float(%.loc9_8.1) [template = f64] // CHECK:STDOUT: %.loc9_8.2: type = value_of_initializer %float.make_type.loc9 [template = f64] // CHECK:STDOUT: %.loc9_8.3: type = converted %float.make_type.loc9, %.loc9_8.2 [template = f64] -// CHECK:STDOUT: %.loc10_8.1: Core.BigInt = int_literal 64 [template = constants.%.1] +// CHECK:STDOUT: %.loc10_8.1: Core.BigInt = int_value 64 [template = constants.%.1] // CHECK:STDOUT: %float.make_type.loc10: init type = call constants.%Float(%.loc10_8.1) [template = f64] // CHECK:STDOUT: %.loc10_8.2: type = value_of_initializer %float.make_type.loc10 [template = f64] // CHECK:STDOUT: %.loc10_8.3: type = converted %float.make_type.loc10, %.loc10_8.2 [template = f64] @@ -203,7 +203,7 @@ fn RuntimeCallBadReturnType(a: f64, b: f64) -> bool { // CHECK:STDOUT: --- fail_bad_decl.carbon // CHECK:STDOUT: // CHECK:STDOUT: constants { -// CHECK:STDOUT: %.1: Core.BigInt = int_literal 64 [template] +// CHECK:STDOUT: %.1: Core.BigInt = int_value 64 [template] // CHECK:STDOUT: %Float.type: type = fn_type @Float [template] // CHECK:STDOUT: %.2: type = tuple_type () [template] // CHECK:STDOUT: %Float: %Float.type = struct_value () [template] @@ -254,11 +254,11 @@ fn RuntimeCallBadReturnType(a: f64, b: f64) -> bool { // CHECK:STDOUT: %return.patt: f64 = return_slot_pattern // CHECK:STDOUT: %return.param_patt: f64 = out_param_pattern %return.patt, runtime_param1 // CHECK:STDOUT: } { -// CHECK:STDOUT: %.loc8_14.1: Core.BigInt = int_literal 64 [template = constants.%.1] +// CHECK:STDOUT: %.loc8_14.1: Core.BigInt = int_value 64 [template = constants.%.1] // CHECK:STDOUT: %float.make_type.loc8_14: init type = call constants.%Float(%.loc8_14.1) [template = f64] // CHECK:STDOUT: %.loc8_14.2: type = value_of_initializer %float.make_type.loc8_14 [template = f64] // CHECK:STDOUT: %.loc8_14.3: type = converted %float.make_type.loc8_14, %.loc8_14.2 [template = f64] -// CHECK:STDOUT: %.loc8_22.1: Core.BigInt = int_literal 64 [template = constants.%.1] +// CHECK:STDOUT: %.loc8_22.1: Core.BigInt = int_value 64 [template = constants.%.1] // CHECK:STDOUT: %float.make_type.loc8_22: init type = call constants.%Float(%.loc8_22.1) [template = f64] // CHECK:STDOUT: %.loc8_22.2: type = value_of_initializer %float.make_type.loc8_22 [template = f64] // CHECK:STDOUT: %.loc8_22.3: type = converted %float.make_type.loc8_22, %.loc8_22.2 [template = f64] @@ -277,19 +277,19 @@ fn RuntimeCallBadReturnType(a: f64, b: f64) -> bool { // CHECK:STDOUT: %return.patt: f64 = return_slot_pattern // CHECK:STDOUT: %return.param_patt: f64 = out_param_pattern %return.patt, runtime_param3 // CHECK:STDOUT: } { -// CHECK:STDOUT: %.loc13_15.1: Core.BigInt = int_literal 64 [template = constants.%.1] +// CHECK:STDOUT: %.loc13_15.1: Core.BigInt = int_value 64 [template = constants.%.1] // CHECK:STDOUT: %float.make_type.loc13_15: init type = call constants.%Float(%.loc13_15.1) [template = f64] // CHECK:STDOUT: %.loc13_15.2: type = value_of_initializer %float.make_type.loc13_15 [template = f64] // CHECK:STDOUT: %.loc13_15.3: type = converted %float.make_type.loc13_15, %.loc13_15.2 [template = f64] -// CHECK:STDOUT: %.loc13_23.1: Core.BigInt = int_literal 64 [template = constants.%.1] +// CHECK:STDOUT: %.loc13_23.1: Core.BigInt = int_value 64 [template = constants.%.1] // CHECK:STDOUT: %float.make_type.loc13_23: init type = call constants.%Float(%.loc13_23.1) [template = f64] // CHECK:STDOUT: %.loc13_23.2: type = value_of_initializer %float.make_type.loc13_23 [template = f64] // CHECK:STDOUT: %.loc13_23.3: type = converted %float.make_type.loc13_23, %.loc13_23.2 [template = f64] -// CHECK:STDOUT: %.loc13_31.1: Core.BigInt = int_literal 64 [template = constants.%.1] +// CHECK:STDOUT: %.loc13_31.1: Core.BigInt = int_value 64 [template = constants.%.1] // CHECK:STDOUT: %float.make_type.loc13_31: init type = call constants.%Float(%.loc13_31.1) [template = f64] // CHECK:STDOUT: %.loc13_31.2: type = value_of_initializer %float.make_type.loc13_31 [template = f64] // CHECK:STDOUT: %.loc13_31.3: type = converted %float.make_type.loc13_31, %.loc13_31.2 [template = f64] -// CHECK:STDOUT: %.loc13_39.1: Core.BigInt = int_literal 64 [template = constants.%.1] +// CHECK:STDOUT: %.loc13_39.1: Core.BigInt = int_value 64 [template = constants.%.1] // CHECK:STDOUT: %float.make_type.loc13_39: init type = call constants.%Float(%.loc13_39.1) [template = f64] // CHECK:STDOUT: %.loc13_39.2: type = value_of_initializer %float.make_type.loc13_39 [template = f64] // CHECK:STDOUT: %.loc13_39.3: type = converted %float.make_type.loc13_39, %.loc13_39.2 [template = f64] @@ -310,11 +310,11 @@ fn RuntimeCallBadReturnType(a: f64, b: f64) -> bool { // CHECK:STDOUT: %return.patt: bool = return_slot_pattern // CHECK:STDOUT: %return.param_patt: bool = out_param_pattern %return.patt, runtime_param2 // CHECK:STDOUT: } { -// CHECK:STDOUT: %.loc17_21.1: Core.BigInt = int_literal 64 [template = constants.%.1] +// CHECK:STDOUT: %.loc17_21.1: Core.BigInt = int_value 64 [template = constants.%.1] // CHECK:STDOUT: %float.make_type.loc17_21: init type = call constants.%Float(%.loc17_21.1) [template = f64] // CHECK:STDOUT: %.loc17_21.2: type = value_of_initializer %float.make_type.loc17_21 [template = f64] // CHECK:STDOUT: %.loc17_21.3: type = converted %float.make_type.loc17_21, %.loc17_21.2 [template = f64] -// CHECK:STDOUT: %.loc17_29.1: Core.BigInt = int_literal 64 [template = constants.%.1] +// CHECK:STDOUT: %.loc17_29.1: Core.BigInt = int_value 64 [template = constants.%.1] // CHECK:STDOUT: %float.make_type.loc17_29: init type = call constants.%Float(%.loc17_29.1) [template = f64] // CHECK:STDOUT: %.loc17_29.2: type = value_of_initializer %float.make_type.loc17_29 [template = f64] // CHECK:STDOUT: %.loc17_29.3: type = converted %float.make_type.loc17_29, %.loc17_29.2 [template = f64] @@ -336,15 +336,15 @@ fn RuntimeCallBadReturnType(a: f64, b: f64) -> bool { // CHECK:STDOUT: %return.patt: f64 = return_slot_pattern // CHECK:STDOUT: %return.param_patt: f64 = out_param_pattern %return.patt, runtime_param2 // CHECK:STDOUT: } { -// CHECK:STDOUT: %.loc18_17.1: Core.BigInt = int_literal 64 [template = constants.%.1] +// CHECK:STDOUT: %.loc18_17.1: Core.BigInt = int_value 64 [template = constants.%.1] // CHECK:STDOUT: %float.make_type.loc18_17: init type = call constants.%Float(%.loc18_17.1) [template = f64] // CHECK:STDOUT: %.loc18_17.2: type = value_of_initializer %float.make_type.loc18_17 [template = f64] // CHECK:STDOUT: %.loc18_17.3: type = converted %float.make_type.loc18_17, %.loc18_17.2 [template = f64] -// CHECK:STDOUT: %.loc18_25.1: Core.BigInt = int_literal 64 [template = constants.%.1] +// CHECK:STDOUT: %.loc18_25.1: Core.BigInt = int_value 64 [template = constants.%.1] // CHECK:STDOUT: %float.make_type.loc18_25: init type = call constants.%Float(%.loc18_25.1) [template = f64] // CHECK:STDOUT: %.loc18_25.2: type = value_of_initializer %float.make_type.loc18_25 [template = f64] // CHECK:STDOUT: %.loc18_25.3: type = converted %float.make_type.loc18_25, %.loc18_25.2 [template = f64] -// CHECK:STDOUT: %.loc18_33.1: Core.BigInt = int_literal 64 [template = constants.%.1] +// CHECK:STDOUT: %.loc18_33.1: Core.BigInt = int_value 64 [template = constants.%.1] // CHECK:STDOUT: %float.make_type.loc18_33: init type = call constants.%Float(%.loc18_33.1) [template = f64] // CHECK:STDOUT: %.loc18_33.2: type = value_of_initializer %float.make_type.loc18_33 [template = f64] // CHECK:STDOUT: %.loc18_33.3: type = converted %float.make_type.loc18_33, %.loc18_33.2 [template = f64] @@ -361,11 +361,11 @@ fn RuntimeCallBadReturnType(a: f64, b: f64) -> bool { // CHECK:STDOUT: %return.patt: f64 = return_slot_pattern // CHECK:STDOUT: %return.param_patt: f64 = out_param_pattern %return.patt, runtime_param1 // CHECK:STDOUT: } { -// CHECK:STDOUT: %.loc20_25.1: Core.BigInt = int_literal 64 [template = constants.%.1] +// CHECK:STDOUT: %.loc20_25.1: Core.BigInt = int_value 64 [template = constants.%.1] // CHECK:STDOUT: %float.make_type.loc20_25: init type = call constants.%Float(%.loc20_25.1) [template = f64] // CHECK:STDOUT: %.loc20_25.2: type = value_of_initializer %float.make_type.loc20_25 [template = f64] // CHECK:STDOUT: %.loc20_25.3: type = converted %float.make_type.loc20_25, %.loc20_25.2 [template = f64] -// CHECK:STDOUT: %.loc20_33.1: Core.BigInt = int_literal 64 [template = constants.%.1] +// CHECK:STDOUT: %.loc20_33.1: Core.BigInt = int_value 64 [template = constants.%.1] // CHECK:STDOUT: %float.make_type.loc20_33: init type = call constants.%Float(%.loc20_33.1) [template = f64] // CHECK:STDOUT: %.loc20_33.2: type = value_of_initializer %float.make_type.loc20_33 [template = f64] // CHECK:STDOUT: %.loc20_33.3: type = converted %float.make_type.loc20_33, %.loc20_33.2 [template = f64] @@ -384,19 +384,19 @@ fn RuntimeCallBadReturnType(a: f64, b: f64) -> bool { // CHECK:STDOUT: %return.patt: f64 = return_slot_pattern // CHECK:STDOUT: %return.param_patt: f64 = out_param_pattern %return.patt, runtime_param3 // CHECK:STDOUT: } { -// CHECK:STDOUT: %.loc24_26.1: Core.BigInt = int_literal 64 [template = constants.%.1] +// CHECK:STDOUT: %.loc24_26.1: Core.BigInt = int_value 64 [template = constants.%.1] // CHECK:STDOUT: %float.make_type.loc24_26: init type = call constants.%Float(%.loc24_26.1) [template = f64] // CHECK:STDOUT: %.loc24_26.2: type = value_of_initializer %float.make_type.loc24_26 [template = f64] // CHECK:STDOUT: %.loc24_26.3: type = converted %float.make_type.loc24_26, %.loc24_26.2 [template = f64] -// CHECK:STDOUT: %.loc24_34.1: Core.BigInt = int_literal 64 [template = constants.%.1] +// CHECK:STDOUT: %.loc24_34.1: Core.BigInt = int_value 64 [template = constants.%.1] // CHECK:STDOUT: %float.make_type.loc24_34: init type = call constants.%Float(%.loc24_34.1) [template = f64] // CHECK:STDOUT: %.loc24_34.2: type = value_of_initializer %float.make_type.loc24_34 [template = f64] // CHECK:STDOUT: %.loc24_34.3: type = converted %float.make_type.loc24_34, %.loc24_34.2 [template = f64] -// CHECK:STDOUT: %.loc24_42.1: Core.BigInt = int_literal 64 [template = constants.%.1] +// CHECK:STDOUT: %.loc24_42.1: Core.BigInt = int_value 64 [template = constants.%.1] // CHECK:STDOUT: %float.make_type.loc24_42: init type = call constants.%Float(%.loc24_42.1) [template = f64] // CHECK:STDOUT: %.loc24_42.2: type = value_of_initializer %float.make_type.loc24_42 [template = f64] // CHECK:STDOUT: %.loc24_42.3: type = converted %float.make_type.loc24_42, %.loc24_42.2 [template = f64] -// CHECK:STDOUT: %.loc24_50.1: Core.BigInt = int_literal 64 [template = constants.%.1] +// CHECK:STDOUT: %.loc24_50.1: Core.BigInt = int_value 64 [template = constants.%.1] // CHECK:STDOUT: %float.make_type.loc24_50: init type = call constants.%Float(%.loc24_50.1) [template = f64] // CHECK:STDOUT: %.loc24_50.2: type = value_of_initializer %float.make_type.loc24_50 [template = f64] // CHECK:STDOUT: %.loc24_50.3: type = converted %float.make_type.loc24_50, %.loc24_50.2 [template = f64] @@ -417,11 +417,11 @@ fn RuntimeCallBadReturnType(a: f64, b: f64) -> bool { // CHECK:STDOUT: %return.patt: bool = return_slot_pattern // CHECK:STDOUT: %return.param_patt: bool = out_param_pattern %return.patt, runtime_param2 // CHECK:STDOUT: } { -// CHECK:STDOUT: %.loc28_32.1: Core.BigInt = int_literal 64 [template = constants.%.1] +// CHECK:STDOUT: %.loc28_32.1: Core.BigInt = int_value 64 [template = constants.%.1] // CHECK:STDOUT: %float.make_type.loc28_32: init type = call constants.%Float(%.loc28_32.1) [template = f64] // CHECK:STDOUT: %.loc28_32.2: type = value_of_initializer %float.make_type.loc28_32 [template = f64] // CHECK:STDOUT: %.loc28_32.3: type = converted %float.make_type.loc28_32, %.loc28_32.2 [template = f64] -// CHECK:STDOUT: %.loc28_40.1: Core.BigInt = int_literal 64 [template = constants.%.1] +// CHECK:STDOUT: %.loc28_40.1: Core.BigInt = int_value 64 [template = constants.%.1] // CHECK:STDOUT: %float.make_type.loc28_40: init type = call constants.%Float(%.loc28_40.1) [template = f64] // CHECK:STDOUT: %.loc28_40.2: type = value_of_initializer %float.make_type.loc28_40 [template = f64] // CHECK:STDOUT: %.loc28_40.3: type = converted %float.make_type.loc28_40, %.loc28_40.2 [template = f64] diff --git a/toolchain/check/testdata/builtins/float/eq.carbon b/toolchain/check/testdata/builtins/float/eq.carbon index dd8bc5f1f52da..975cb6b47573d 100644 --- a/toolchain/check/testdata/builtins/float/eq.carbon +++ b/toolchain/check/testdata/builtins/float/eq.carbon @@ -36,7 +36,7 @@ fn WrongResult(a: f64, b: f64) -> f64 = "float.eq"; // CHECK:STDOUT: --- float_eq.carbon // CHECK:STDOUT: // CHECK:STDOUT: constants { -// CHECK:STDOUT: %.1: Core.BigInt = int_literal 64 [template] +// CHECK:STDOUT: %.1: Core.BigInt = int_value 64 [template] // CHECK:STDOUT: %Float.type: type = fn_type @Float [template] // CHECK:STDOUT: %.2: type = tuple_type () [template] // CHECK:STDOUT: %Float: %Float.type = struct_value () [template] @@ -88,11 +88,11 @@ fn WrongResult(a: f64, b: f64) -> f64 = "float.eq"; // CHECK:STDOUT: %return.patt: bool = return_slot_pattern // CHECK:STDOUT: %return.param_patt: bool = out_param_pattern %return.patt, runtime_param2 // CHECK:STDOUT: } { -// CHECK:STDOUT: %.loc2_10.1: Core.BigInt = int_literal 64 [template = constants.%.1] +// CHECK:STDOUT: %.loc2_10.1: Core.BigInt = int_value 64 [template = constants.%.1] // CHECK:STDOUT: %float.make_type.loc2_10: init type = call constants.%Float(%.loc2_10.1) [template = f64] // CHECK:STDOUT: %.loc2_10.2: type = value_of_initializer %float.make_type.loc2_10 [template = f64] // CHECK:STDOUT: %.loc2_10.3: type = converted %float.make_type.loc2_10, %.loc2_10.2 [template = f64] -// CHECK:STDOUT: %.loc2_18.1: Core.BigInt = int_literal 64 [template = constants.%.1] +// CHECK:STDOUT: %.loc2_18.1: Core.BigInt = int_value 64 [template = constants.%.1] // CHECK:STDOUT: %float.make_type.loc2_18: init type = call constants.%Float(%.loc2_18.1) [template = f64] // CHECK:STDOUT: %.loc2_18.2: type = value_of_initializer %float.make_type.loc2_18 [template = f64] // CHECK:STDOUT: %.loc2_18.3: type = converted %float.make_type.loc2_18, %.loc2_18.2 [template = f64] @@ -129,11 +129,11 @@ fn WrongResult(a: f64, b: f64) -> f64 = "float.eq"; // CHECK:STDOUT: %return.patt: bool = return_slot_pattern // CHECK:STDOUT: %return.param_patt: bool = out_param_pattern %return.patt, runtime_param2 // CHECK:STDOUT: } { -// CHECK:STDOUT: %.loc12_19.1: Core.BigInt = int_literal 64 [template = constants.%.1] +// CHECK:STDOUT: %.loc12_19.1: Core.BigInt = int_value 64 [template = constants.%.1] // CHECK:STDOUT: %float.make_type.loc12_19: init type = call constants.%Float(%.loc12_19.1) [template = f64] // CHECK:STDOUT: %.loc12_19.2: type = value_of_initializer %float.make_type.loc12_19 [template = f64] // CHECK:STDOUT: %.loc12_19.3: type = converted %float.make_type.loc12_19, %.loc12_19.2 [template = f64] -// CHECK:STDOUT: %.loc12_27.1: Core.BigInt = int_literal 64 [template = constants.%.1] +// CHECK:STDOUT: %.loc12_27.1: Core.BigInt = int_value 64 [template = constants.%.1] // CHECK:STDOUT: %float.make_type.loc12_27: init type = call constants.%Float(%.loc12_27.1) [template = f64] // CHECK:STDOUT: %.loc12_27.2: type = value_of_initializer %float.make_type.loc12_27 [template = f64] // CHECK:STDOUT: %.loc12_27.3: type = converted %float.make_type.loc12_27, %.loc12_27.2 [template = f64] @@ -226,7 +226,7 @@ fn WrongResult(a: f64, b: f64) -> f64 = "float.eq"; // CHECK:STDOUT: --- fail_bad_decl.carbon // CHECK:STDOUT: // CHECK:STDOUT: constants { -// CHECK:STDOUT: %.1: Core.BigInt = int_literal 64 [template] +// CHECK:STDOUT: %.1: Core.BigInt = int_value 64 [template] // CHECK:STDOUT: %Float.type: type = fn_type @Float [template] // CHECK:STDOUT: %.2: type = tuple_type () [template] // CHECK:STDOUT: %Float: %Float.type = struct_value () [template] @@ -257,15 +257,15 @@ fn WrongResult(a: f64, b: f64) -> f64 = "float.eq"; // CHECK:STDOUT: %return.patt: f64 = return_slot_pattern // CHECK:STDOUT: %return.param_patt: f64 = out_param_pattern %return.patt, runtime_param2 // CHECK:STDOUT: } { -// CHECK:STDOUT: %.loc7_19.1: Core.BigInt = int_literal 64 [template = constants.%.1] +// CHECK:STDOUT: %.loc7_19.1: Core.BigInt = int_value 64 [template = constants.%.1] // CHECK:STDOUT: %float.make_type.loc7_19: init type = call constants.%Float(%.loc7_19.1) [template = f64] // CHECK:STDOUT: %.loc7_19.2: type = value_of_initializer %float.make_type.loc7_19 [template = f64] // CHECK:STDOUT: %.loc7_19.3: type = converted %float.make_type.loc7_19, %.loc7_19.2 [template = f64] -// CHECK:STDOUT: %.loc7_27.1: Core.BigInt = int_literal 64 [template = constants.%.1] +// CHECK:STDOUT: %.loc7_27.1: Core.BigInt = int_value 64 [template = constants.%.1] // CHECK:STDOUT: %float.make_type.loc7_27: init type = call constants.%Float(%.loc7_27.1) [template = f64] // CHECK:STDOUT: %.loc7_27.2: type = value_of_initializer %float.make_type.loc7_27 [template = f64] // CHECK:STDOUT: %.loc7_27.3: type = converted %float.make_type.loc7_27, %.loc7_27.2 [template = f64] -// CHECK:STDOUT: %.loc7_35.1: Core.BigInt = int_literal 64 [template = constants.%.1] +// CHECK:STDOUT: %.loc7_35.1: Core.BigInt = int_value 64 [template = constants.%.1] // CHECK:STDOUT: %float.make_type.loc7_35: init type = call constants.%Float(%.loc7_35.1) [template = f64] // CHECK:STDOUT: %.loc7_35.2: type = value_of_initializer %float.make_type.loc7_35 [template = f64] // CHECK:STDOUT: %.loc7_35.3: type = converted %float.make_type.loc7_35, %.loc7_35.2 [template = f64] diff --git a/toolchain/check/testdata/builtins/float/greater.carbon b/toolchain/check/testdata/builtins/float/greater.carbon index 015e85d632826..eadbdad6294a3 100644 --- a/toolchain/check/testdata/builtins/float/greater.carbon +++ b/toolchain/check/testdata/builtins/float/greater.carbon @@ -31,7 +31,7 @@ fn RuntimeCall(a: f64, b: f64) -> bool { // CHECK:STDOUT: --- float_greater.carbon // CHECK:STDOUT: // CHECK:STDOUT: constants { -// CHECK:STDOUT: %.1: Core.BigInt = int_literal 64 [template] +// CHECK:STDOUT: %.1: Core.BigInt = int_value 64 [template] // CHECK:STDOUT: %Float.type: type = fn_type @Float [template] // CHECK:STDOUT: %.2: type = tuple_type () [template] // CHECK:STDOUT: %Float: %Float.type = struct_value () [template] @@ -88,11 +88,11 @@ fn RuntimeCall(a: f64, b: f64) -> bool { // CHECK:STDOUT: %return.patt: bool = return_slot_pattern // CHECK:STDOUT: %return.param_patt: bool = out_param_pattern %return.patt, runtime_param2 // CHECK:STDOUT: } { -// CHECK:STDOUT: %.loc2_15.1: Core.BigInt = int_literal 64 [template = constants.%.1] +// CHECK:STDOUT: %.loc2_15.1: Core.BigInt = int_value 64 [template = constants.%.1] // CHECK:STDOUT: %float.make_type.loc2_15: init type = call constants.%Float(%.loc2_15.1) [template = f64] // CHECK:STDOUT: %.loc2_15.2: type = value_of_initializer %float.make_type.loc2_15 [template = f64] // CHECK:STDOUT: %.loc2_15.3: type = converted %float.make_type.loc2_15, %.loc2_15.2 [template = f64] -// CHECK:STDOUT: %.loc2_23.1: Core.BigInt = int_literal 64 [template = constants.%.1] +// CHECK:STDOUT: %.loc2_23.1: Core.BigInt = int_value 64 [template = constants.%.1] // CHECK:STDOUT: %float.make_type.loc2_23: init type = call constants.%Float(%.loc2_23.1) [template = f64] // CHECK:STDOUT: %.loc2_23.2: type = value_of_initializer %float.make_type.loc2_23 [template = f64] // CHECK:STDOUT: %.loc2_23.3: type = converted %float.make_type.loc2_23, %.loc2_23.2 [template = f64] @@ -112,11 +112,11 @@ fn RuntimeCall(a: f64, b: f64) -> bool { // CHECK:STDOUT: %return.patt: f64 = return_slot_pattern // CHECK:STDOUT: %return.param_patt: f64 = out_param_pattern %return.patt, runtime_param1 // CHECK:STDOUT: } { -// CHECK:STDOUT: %.loc3_14.1: Core.BigInt = int_literal 64 [template = constants.%.1] +// CHECK:STDOUT: %.loc3_14.1: Core.BigInt = int_value 64 [template = constants.%.1] // CHECK:STDOUT: %float.make_type.loc3_14: init type = call constants.%Float(%.loc3_14.1) [template = f64] // CHECK:STDOUT: %.loc3_14.2: type = value_of_initializer %float.make_type.loc3_14 [template = f64] // CHECK:STDOUT: %.loc3_14.3: type = converted %float.make_type.loc3_14, %.loc3_14.2 [template = f64] -// CHECK:STDOUT: %.loc3_22.1: Core.BigInt = int_literal 64 [template = constants.%.1] +// CHECK:STDOUT: %.loc3_22.1: Core.BigInt = int_value 64 [template = constants.%.1] // CHECK:STDOUT: %float.make_type.loc3_22: init type = call constants.%Float(%.loc3_22.1) [template = f64] // CHECK:STDOUT: %.loc3_22.2: type = value_of_initializer %float.make_type.loc3_22 [template = f64] // CHECK:STDOUT: %.loc3_22.3: type = converted %float.make_type.loc3_22, %.loc3_22.2 [template = f64] @@ -148,11 +148,11 @@ fn RuntimeCall(a: f64, b: f64) -> bool { // CHECK:STDOUT: %return.patt: bool = return_slot_pattern // CHECK:STDOUT: %return.param_patt: bool = out_param_pattern %return.patt, runtime_param2 // CHECK:STDOUT: } { -// CHECK:STDOUT: %.loc16_19.1: Core.BigInt = int_literal 64 [template = constants.%.1] +// CHECK:STDOUT: %.loc16_19.1: Core.BigInt = int_value 64 [template = constants.%.1] // CHECK:STDOUT: %float.make_type.loc16_19: init type = call constants.%Float(%.loc16_19.1) [template = f64] // CHECK:STDOUT: %.loc16_19.2: type = value_of_initializer %float.make_type.loc16_19 [template = f64] // CHECK:STDOUT: %.loc16_19.3: type = converted %float.make_type.loc16_19, %.loc16_19.2 [template = f64] -// CHECK:STDOUT: %.loc16_27.1: Core.BigInt = int_literal 64 [template = constants.%.1] +// CHECK:STDOUT: %.loc16_27.1: Core.BigInt = int_value 64 [template = constants.%.1] // CHECK:STDOUT: %float.make_type.loc16_27: init type = call constants.%Float(%.loc16_27.1) [template = f64] // CHECK:STDOUT: %.loc16_27.2: type = value_of_initializer %float.make_type.loc16_27 [template = f64] // CHECK:STDOUT: %.loc16_27.3: type = converted %float.make_type.loc16_27, %.loc16_27.2 [template = f64] diff --git a/toolchain/check/testdata/builtins/float/greater_eq.carbon b/toolchain/check/testdata/builtins/float/greater_eq.carbon index 101d1713ac374..a67f73614217d 100644 --- a/toolchain/check/testdata/builtins/float/greater_eq.carbon +++ b/toolchain/check/testdata/builtins/float/greater_eq.carbon @@ -31,7 +31,7 @@ fn RuntimeCall(a: f64, b: f64) -> bool { // CHECK:STDOUT: --- float_greater_eq.carbon // CHECK:STDOUT: // CHECK:STDOUT: constants { -// CHECK:STDOUT: %.1: Core.BigInt = int_literal 64 [template] +// CHECK:STDOUT: %.1: Core.BigInt = int_value 64 [template] // CHECK:STDOUT: %Float.type: type = fn_type @Float [template] // CHECK:STDOUT: %.2: type = tuple_type () [template] // CHECK:STDOUT: %Float: %Float.type = struct_value () [template] @@ -88,11 +88,11 @@ fn RuntimeCall(a: f64, b: f64) -> bool { // CHECK:STDOUT: %return.patt: bool = return_slot_pattern // CHECK:STDOUT: %return.param_patt: bool = out_param_pattern %return.patt, runtime_param2 // CHECK:STDOUT: } { -// CHECK:STDOUT: %.loc2_17.1: Core.BigInt = int_literal 64 [template = constants.%.1] +// CHECK:STDOUT: %.loc2_17.1: Core.BigInt = int_value 64 [template = constants.%.1] // CHECK:STDOUT: %float.make_type.loc2_17: init type = call constants.%Float(%.loc2_17.1) [template = f64] // CHECK:STDOUT: %.loc2_17.2: type = value_of_initializer %float.make_type.loc2_17 [template = f64] // CHECK:STDOUT: %.loc2_17.3: type = converted %float.make_type.loc2_17, %.loc2_17.2 [template = f64] -// CHECK:STDOUT: %.loc2_25.1: Core.BigInt = int_literal 64 [template = constants.%.1] +// CHECK:STDOUT: %.loc2_25.1: Core.BigInt = int_value 64 [template = constants.%.1] // CHECK:STDOUT: %float.make_type.loc2_25: init type = call constants.%Float(%.loc2_25.1) [template = f64] // CHECK:STDOUT: %.loc2_25.2: type = value_of_initializer %float.make_type.loc2_25 [template = f64] // CHECK:STDOUT: %.loc2_25.3: type = converted %float.make_type.loc2_25, %.loc2_25.2 [template = f64] @@ -112,11 +112,11 @@ fn RuntimeCall(a: f64, b: f64) -> bool { // CHECK:STDOUT: %return.patt: f64 = return_slot_pattern // CHECK:STDOUT: %return.param_patt: f64 = out_param_pattern %return.patt, runtime_param1 // CHECK:STDOUT: } { -// CHECK:STDOUT: %.loc3_14.1: Core.BigInt = int_literal 64 [template = constants.%.1] +// CHECK:STDOUT: %.loc3_14.1: Core.BigInt = int_value 64 [template = constants.%.1] // CHECK:STDOUT: %float.make_type.loc3_14: init type = call constants.%Float(%.loc3_14.1) [template = f64] // CHECK:STDOUT: %.loc3_14.2: type = value_of_initializer %float.make_type.loc3_14 [template = f64] // CHECK:STDOUT: %.loc3_14.3: type = converted %float.make_type.loc3_14, %.loc3_14.2 [template = f64] -// CHECK:STDOUT: %.loc3_22.1: Core.BigInt = int_literal 64 [template = constants.%.1] +// CHECK:STDOUT: %.loc3_22.1: Core.BigInt = int_value 64 [template = constants.%.1] // CHECK:STDOUT: %float.make_type.loc3_22: init type = call constants.%Float(%.loc3_22.1) [template = f64] // CHECK:STDOUT: %.loc3_22.2: type = value_of_initializer %float.make_type.loc3_22 [template = f64] // CHECK:STDOUT: %.loc3_22.3: type = converted %float.make_type.loc3_22, %.loc3_22.2 [template = f64] @@ -148,11 +148,11 @@ fn RuntimeCall(a: f64, b: f64) -> bool { // CHECK:STDOUT: %return.patt: bool = return_slot_pattern // CHECK:STDOUT: %return.param_patt: bool = out_param_pattern %return.patt, runtime_param2 // CHECK:STDOUT: } { -// CHECK:STDOUT: %.loc16_19.1: Core.BigInt = int_literal 64 [template = constants.%.1] +// CHECK:STDOUT: %.loc16_19.1: Core.BigInt = int_value 64 [template = constants.%.1] // CHECK:STDOUT: %float.make_type.loc16_19: init type = call constants.%Float(%.loc16_19.1) [template = f64] // CHECK:STDOUT: %.loc16_19.2: type = value_of_initializer %float.make_type.loc16_19 [template = f64] // CHECK:STDOUT: %.loc16_19.3: type = converted %float.make_type.loc16_19, %.loc16_19.2 [template = f64] -// CHECK:STDOUT: %.loc16_27.1: Core.BigInt = int_literal 64 [template = constants.%.1] +// CHECK:STDOUT: %.loc16_27.1: Core.BigInt = int_value 64 [template = constants.%.1] // CHECK:STDOUT: %float.make_type.loc16_27: init type = call constants.%Float(%.loc16_27.1) [template = f64] // CHECK:STDOUT: %.loc16_27.2: type = value_of_initializer %float.make_type.loc16_27 [template = f64] // CHECK:STDOUT: %.loc16_27.3: type = converted %float.make_type.loc16_27, %.loc16_27.2 [template = f64] diff --git a/toolchain/check/testdata/builtins/float/less.carbon b/toolchain/check/testdata/builtins/float/less.carbon index dd8a11b013cd8..f756c74a5dbc5 100644 --- a/toolchain/check/testdata/builtins/float/less.carbon +++ b/toolchain/check/testdata/builtins/float/less.carbon @@ -31,7 +31,7 @@ fn RuntimeCall(a: f64, b: f64) -> bool { // CHECK:STDOUT: --- float_less.carbon // CHECK:STDOUT: // CHECK:STDOUT: constants { -// CHECK:STDOUT: %.1: Core.BigInt = int_literal 64 [template] +// CHECK:STDOUT: %.1: Core.BigInt = int_value 64 [template] // CHECK:STDOUT: %Float.type: type = fn_type @Float [template] // CHECK:STDOUT: %.2: type = tuple_type () [template] // CHECK:STDOUT: %Float: %Float.type = struct_value () [template] @@ -88,11 +88,11 @@ fn RuntimeCall(a: f64, b: f64) -> bool { // CHECK:STDOUT: %return.patt: bool = return_slot_pattern // CHECK:STDOUT: %return.param_patt: bool = out_param_pattern %return.patt, runtime_param2 // CHECK:STDOUT: } { -// CHECK:STDOUT: %.loc2_12.1: Core.BigInt = int_literal 64 [template = constants.%.1] +// CHECK:STDOUT: %.loc2_12.1: Core.BigInt = int_value 64 [template = constants.%.1] // CHECK:STDOUT: %float.make_type.loc2_12: init type = call constants.%Float(%.loc2_12.1) [template = f64] // CHECK:STDOUT: %.loc2_12.2: type = value_of_initializer %float.make_type.loc2_12 [template = f64] // CHECK:STDOUT: %.loc2_12.3: type = converted %float.make_type.loc2_12, %.loc2_12.2 [template = f64] -// CHECK:STDOUT: %.loc2_20.1: Core.BigInt = int_literal 64 [template = constants.%.1] +// CHECK:STDOUT: %.loc2_20.1: Core.BigInt = int_value 64 [template = constants.%.1] // CHECK:STDOUT: %float.make_type.loc2_20: init type = call constants.%Float(%.loc2_20.1) [template = f64] // CHECK:STDOUT: %.loc2_20.2: type = value_of_initializer %float.make_type.loc2_20 [template = f64] // CHECK:STDOUT: %.loc2_20.3: type = converted %float.make_type.loc2_20, %.loc2_20.2 [template = f64] @@ -112,11 +112,11 @@ fn RuntimeCall(a: f64, b: f64) -> bool { // CHECK:STDOUT: %return.patt: f64 = return_slot_pattern // CHECK:STDOUT: %return.param_patt: f64 = out_param_pattern %return.patt, runtime_param1 // CHECK:STDOUT: } { -// CHECK:STDOUT: %.loc3_14.1: Core.BigInt = int_literal 64 [template = constants.%.1] +// CHECK:STDOUT: %.loc3_14.1: Core.BigInt = int_value 64 [template = constants.%.1] // CHECK:STDOUT: %float.make_type.loc3_14: init type = call constants.%Float(%.loc3_14.1) [template = f64] // CHECK:STDOUT: %.loc3_14.2: type = value_of_initializer %float.make_type.loc3_14 [template = f64] // CHECK:STDOUT: %.loc3_14.3: type = converted %float.make_type.loc3_14, %.loc3_14.2 [template = f64] -// CHECK:STDOUT: %.loc3_22.1: Core.BigInt = int_literal 64 [template = constants.%.1] +// CHECK:STDOUT: %.loc3_22.1: Core.BigInt = int_value 64 [template = constants.%.1] // CHECK:STDOUT: %float.make_type.loc3_22: init type = call constants.%Float(%.loc3_22.1) [template = f64] // CHECK:STDOUT: %.loc3_22.2: type = value_of_initializer %float.make_type.loc3_22 [template = f64] // CHECK:STDOUT: %.loc3_22.3: type = converted %float.make_type.loc3_22, %.loc3_22.2 [template = f64] @@ -148,11 +148,11 @@ fn RuntimeCall(a: f64, b: f64) -> bool { // CHECK:STDOUT: %return.patt: bool = return_slot_pattern // CHECK:STDOUT: %return.param_patt: bool = out_param_pattern %return.patt, runtime_param2 // CHECK:STDOUT: } { -// CHECK:STDOUT: %.loc16_19.1: Core.BigInt = int_literal 64 [template = constants.%.1] +// CHECK:STDOUT: %.loc16_19.1: Core.BigInt = int_value 64 [template = constants.%.1] // CHECK:STDOUT: %float.make_type.loc16_19: init type = call constants.%Float(%.loc16_19.1) [template = f64] // CHECK:STDOUT: %.loc16_19.2: type = value_of_initializer %float.make_type.loc16_19 [template = f64] // CHECK:STDOUT: %.loc16_19.3: type = converted %float.make_type.loc16_19, %.loc16_19.2 [template = f64] -// CHECK:STDOUT: %.loc16_27.1: Core.BigInt = int_literal 64 [template = constants.%.1] +// CHECK:STDOUT: %.loc16_27.1: Core.BigInt = int_value 64 [template = constants.%.1] // CHECK:STDOUT: %float.make_type.loc16_27: init type = call constants.%Float(%.loc16_27.1) [template = f64] // CHECK:STDOUT: %.loc16_27.2: type = value_of_initializer %float.make_type.loc16_27 [template = f64] // CHECK:STDOUT: %.loc16_27.3: type = converted %float.make_type.loc16_27, %.loc16_27.2 [template = f64] diff --git a/toolchain/check/testdata/builtins/float/less_eq.carbon b/toolchain/check/testdata/builtins/float/less_eq.carbon index 5549b485a38df..d6c495e6b33e1 100644 --- a/toolchain/check/testdata/builtins/float/less_eq.carbon +++ b/toolchain/check/testdata/builtins/float/less_eq.carbon @@ -31,7 +31,7 @@ fn RuntimeCall(a: f64, b: f64) -> bool { // CHECK:STDOUT: --- float_less_eq.carbon // CHECK:STDOUT: // CHECK:STDOUT: constants { -// CHECK:STDOUT: %.1: Core.BigInt = int_literal 64 [template] +// CHECK:STDOUT: %.1: Core.BigInt = int_value 64 [template] // CHECK:STDOUT: %Float.type: type = fn_type @Float [template] // CHECK:STDOUT: %.2: type = tuple_type () [template] // CHECK:STDOUT: %Float: %Float.type = struct_value () [template] @@ -88,11 +88,11 @@ fn RuntimeCall(a: f64, b: f64) -> bool { // CHECK:STDOUT: %return.patt: bool = return_slot_pattern // CHECK:STDOUT: %return.param_patt: bool = out_param_pattern %return.patt, runtime_param2 // CHECK:STDOUT: } { -// CHECK:STDOUT: %.loc2_14.1: Core.BigInt = int_literal 64 [template = constants.%.1] +// CHECK:STDOUT: %.loc2_14.1: Core.BigInt = int_value 64 [template = constants.%.1] // CHECK:STDOUT: %float.make_type.loc2_14: init type = call constants.%Float(%.loc2_14.1) [template = f64] // CHECK:STDOUT: %.loc2_14.2: type = value_of_initializer %float.make_type.loc2_14 [template = f64] // CHECK:STDOUT: %.loc2_14.3: type = converted %float.make_type.loc2_14, %.loc2_14.2 [template = f64] -// CHECK:STDOUT: %.loc2_22.1: Core.BigInt = int_literal 64 [template = constants.%.1] +// CHECK:STDOUT: %.loc2_22.1: Core.BigInt = int_value 64 [template = constants.%.1] // CHECK:STDOUT: %float.make_type.loc2_22: init type = call constants.%Float(%.loc2_22.1) [template = f64] // CHECK:STDOUT: %.loc2_22.2: type = value_of_initializer %float.make_type.loc2_22 [template = f64] // CHECK:STDOUT: %.loc2_22.3: type = converted %float.make_type.loc2_22, %.loc2_22.2 [template = f64] @@ -112,11 +112,11 @@ fn RuntimeCall(a: f64, b: f64) -> bool { // CHECK:STDOUT: %return.patt: f64 = return_slot_pattern // CHECK:STDOUT: %return.param_patt: f64 = out_param_pattern %return.patt, runtime_param1 // CHECK:STDOUT: } { -// CHECK:STDOUT: %.loc3_14.1: Core.BigInt = int_literal 64 [template = constants.%.1] +// CHECK:STDOUT: %.loc3_14.1: Core.BigInt = int_value 64 [template = constants.%.1] // CHECK:STDOUT: %float.make_type.loc3_14: init type = call constants.%Float(%.loc3_14.1) [template = f64] // CHECK:STDOUT: %.loc3_14.2: type = value_of_initializer %float.make_type.loc3_14 [template = f64] // CHECK:STDOUT: %.loc3_14.3: type = converted %float.make_type.loc3_14, %.loc3_14.2 [template = f64] -// CHECK:STDOUT: %.loc3_22.1: Core.BigInt = int_literal 64 [template = constants.%.1] +// CHECK:STDOUT: %.loc3_22.1: Core.BigInt = int_value 64 [template = constants.%.1] // CHECK:STDOUT: %float.make_type.loc3_22: init type = call constants.%Float(%.loc3_22.1) [template = f64] // CHECK:STDOUT: %.loc3_22.2: type = value_of_initializer %float.make_type.loc3_22 [template = f64] // CHECK:STDOUT: %.loc3_22.3: type = converted %float.make_type.loc3_22, %.loc3_22.2 [template = f64] @@ -148,11 +148,11 @@ fn RuntimeCall(a: f64, b: f64) -> bool { // CHECK:STDOUT: %return.patt: bool = return_slot_pattern // CHECK:STDOUT: %return.param_patt: bool = out_param_pattern %return.patt, runtime_param2 // CHECK:STDOUT: } { -// CHECK:STDOUT: %.loc16_19.1: Core.BigInt = int_literal 64 [template = constants.%.1] +// CHECK:STDOUT: %.loc16_19.1: Core.BigInt = int_value 64 [template = constants.%.1] // CHECK:STDOUT: %float.make_type.loc16_19: init type = call constants.%Float(%.loc16_19.1) [template = f64] // CHECK:STDOUT: %.loc16_19.2: type = value_of_initializer %float.make_type.loc16_19 [template = f64] // CHECK:STDOUT: %.loc16_19.3: type = converted %float.make_type.loc16_19, %.loc16_19.2 [template = f64] -// CHECK:STDOUT: %.loc16_27.1: Core.BigInt = int_literal 64 [template = constants.%.1] +// CHECK:STDOUT: %.loc16_27.1: Core.BigInt = int_value 64 [template = constants.%.1] // CHECK:STDOUT: %float.make_type.loc16_27: init type = call constants.%Float(%.loc16_27.1) [template = f64] // CHECK:STDOUT: %.loc16_27.2: type = value_of_initializer %float.make_type.loc16_27 [template = f64] // CHECK:STDOUT: %.loc16_27.3: type = converted %float.make_type.loc16_27, %.loc16_27.2 [template = f64] diff --git a/toolchain/check/testdata/builtins/float/make_type.carbon b/toolchain/check/testdata/builtins/float/make_type.carbon index 160087390ecb6..9a55c4a3cd90a 100644 --- a/toolchain/check/testdata/builtins/float/make_type.carbon +++ b/toolchain/check/testdata/builtins/float/make_type.carbon @@ -95,7 +95,7 @@ var dyn: Float(dyn_size); // CHECK:STDOUT: %Float.type: type = fn_type @Float [template] // CHECK:STDOUT: %.1: type = tuple_type () [template] // CHECK:STDOUT: %Float: %Float.type = struct_value () [template] -// CHECK:STDOUT: %.2: i32 = int_literal 64 [template] +// CHECK:STDOUT: %.2: i32 = int_value 64 [template] // CHECK:STDOUT: %.3: f64 = float_literal 0 [template] // CHECK:STDOUT: %Int32.type: type = fn_type @Int32 [template] // CHECK:STDOUT: %Int32: %Int32.type = struct_value () [template] @@ -123,7 +123,7 @@ var dyn: Float(dyn_size); // CHECK:STDOUT: %Core.import = import Core // CHECK:STDOUT: %default.import = import // CHECK:STDOUT: %Float.ref: %Float.type = name_ref Float, imports.%import_ref.1 [template = constants.%Float] -// CHECK:STDOUT: %.loc6_14: i32 = int_literal 64 [template = constants.%.2] +// CHECK:STDOUT: %.loc6_14: i32 = int_value 64 [template = constants.%.2] // CHECK:STDOUT: %float.make_type: init type = call %Float.ref(%.loc6_14) [template = f64] // CHECK:STDOUT: %.loc6_16.1: type = value_of_initializer %float.make_type [template = f64] // CHECK:STDOUT: %.loc6_16.2: type = converted %float.make_type, %.loc6_16.1 [template = f64] @@ -172,10 +172,10 @@ var dyn: Float(dyn_size); // CHECK:STDOUT: %Float.type: type = fn_type @Float [template] // CHECK:STDOUT: %.1: type = tuple_type () [template] // CHECK:STDOUT: %Float: %Float.type = struct_value () [template] -// CHECK:STDOUT: %.2: i32 = int_literal 32 [template] +// CHECK:STDOUT: %.2: i32 = int_value 32 [template] // CHECK:STDOUT: %Int32.type: type = fn_type @Int32 [template] // CHECK:STDOUT: %Int32: %Int32.type = struct_value () [template] -// CHECK:STDOUT: %.3: i32 = int_literal 64 [template] +// CHECK:STDOUT: %.3: i32 = int_value 64 [template] // CHECK:STDOUT: } // CHECK:STDOUT: // CHECK:STDOUT: imports { @@ -199,7 +199,7 @@ var dyn: Float(dyn_size); // CHECK:STDOUT: %Core.import = import Core // CHECK:STDOUT: %default.import = import // CHECK:STDOUT: %Float.ref.loc10: %Float.type = name_ref Float, imports.%import_ref.1 [template = constants.%Float] -// CHECK:STDOUT: %.loc10_26: i32 = int_literal 32 [template = constants.%.2] +// CHECK:STDOUT: %.loc10_26: i32 = int_value 32 [template = constants.%.2] // CHECK:STDOUT: %float.make_type.loc10: init type = call %Float.ref.loc10(%.loc10_26) [template = ] // CHECK:STDOUT: %.loc10_28.1: type = value_of_initializer %float.make_type.loc10 [template = ] // CHECK:STDOUT: %.loc10_28.2: type = converted %float.make_type.loc10, %.loc10_28.1 [template = ] @@ -226,7 +226,7 @@ var dyn: Float(dyn_size); // CHECK:STDOUT: // CHECK:STDOUT: fn @__global_init() { // CHECK:STDOUT: !entry: -// CHECK:STDOUT: %.loc12: i32 = int_literal 64 [template = constants.%.3] +// CHECK:STDOUT: %.loc12: i32 = int_value 64 [template = constants.%.3] // CHECK:STDOUT: assign file.%dyn_size.var, %.loc12 // CHECK:STDOUT: return // CHECK:STDOUT: } diff --git a/toolchain/check/testdata/builtins/float/mul.carbon b/toolchain/check/testdata/builtins/float/mul.carbon index 52765bace3fc8..9d5f1620c0374 100644 --- a/toolchain/check/testdata/builtins/float/mul.carbon +++ b/toolchain/check/testdata/builtins/float/mul.carbon @@ -53,7 +53,7 @@ fn RuntimeCallBadReturnType(a: f64, b: f64) -> bool { // CHECK:STDOUT: --- mul_sub.carbon // CHECK:STDOUT: // CHECK:STDOUT: constants { -// CHECK:STDOUT: %.1: Core.BigInt = int_literal 64 [template] +// CHECK:STDOUT: %.1: Core.BigInt = int_value 64 [template] // CHECK:STDOUT: %Float.type: type = fn_type @Float [template] // CHECK:STDOUT: %.2: type = tuple_type () [template] // CHECK:STDOUT: %Float: %Float.type = struct_value () [template] @@ -91,15 +91,15 @@ fn RuntimeCallBadReturnType(a: f64, b: f64) -> bool { // CHECK:STDOUT: %return.patt: f64 = return_slot_pattern // CHECK:STDOUT: %return.param_patt: f64 = out_param_pattern %return.patt, runtime_param2 // CHECK:STDOUT: } { -// CHECK:STDOUT: %.loc2_11.1: Core.BigInt = int_literal 64 [template = constants.%.1] +// CHECK:STDOUT: %.loc2_11.1: Core.BigInt = int_value 64 [template = constants.%.1] // CHECK:STDOUT: %float.make_type.loc2_11: init type = call constants.%Float(%.loc2_11.1) [template = f64] // CHECK:STDOUT: %.loc2_11.2: type = value_of_initializer %float.make_type.loc2_11 [template = f64] // CHECK:STDOUT: %.loc2_11.3: type = converted %float.make_type.loc2_11, %.loc2_11.2 [template = f64] -// CHECK:STDOUT: %.loc2_19.1: Core.BigInt = int_literal 64 [template = constants.%.1] +// CHECK:STDOUT: %.loc2_19.1: Core.BigInt = int_value 64 [template = constants.%.1] // CHECK:STDOUT: %float.make_type.loc2_19: init type = call constants.%Float(%.loc2_19.1) [template = f64] // CHECK:STDOUT: %.loc2_19.2: type = value_of_initializer %float.make_type.loc2_19 [template = f64] // CHECK:STDOUT: %.loc2_19.3: type = converted %float.make_type.loc2_19, %.loc2_19.2 [template = f64] -// CHECK:STDOUT: %.loc2_27.1: Core.BigInt = int_literal 64 [template = constants.%.1] +// CHECK:STDOUT: %.loc2_27.1: Core.BigInt = int_value 64 [template = constants.%.1] // CHECK:STDOUT: %float.make_type.loc2_27: init type = call constants.%Float(%.loc2_27.1) [template = f64] // CHECK:STDOUT: %.loc2_27.2: type = value_of_initializer %float.make_type.loc2_27 [template = f64] // CHECK:STDOUT: %.loc2_27.3: type = converted %float.make_type.loc2_27, %.loc2_27.2 [template = f64] @@ -118,15 +118,15 @@ fn RuntimeCallBadReturnType(a: f64, b: f64) -> bool { // CHECK:STDOUT: %return.patt: f64 = return_slot_pattern // CHECK:STDOUT: %return.param_patt: f64 = out_param_pattern %return.patt, runtime_param2 // CHECK:STDOUT: } { -// CHECK:STDOUT: %.loc4_19.1: Core.BigInt = int_literal 64 [template = constants.%.1] +// CHECK:STDOUT: %.loc4_19.1: Core.BigInt = int_value 64 [template = constants.%.1] // CHECK:STDOUT: %float.make_type.loc4_19: init type = call constants.%Float(%.loc4_19.1) [template = f64] // CHECK:STDOUT: %.loc4_19.2: type = value_of_initializer %float.make_type.loc4_19 [template = f64] // CHECK:STDOUT: %.loc4_19.3: type = converted %float.make_type.loc4_19, %.loc4_19.2 [template = f64] -// CHECK:STDOUT: %.loc4_27.1: Core.BigInt = int_literal 64 [template = constants.%.1] +// CHECK:STDOUT: %.loc4_27.1: Core.BigInt = int_value 64 [template = constants.%.1] // CHECK:STDOUT: %float.make_type.loc4_27: init type = call constants.%Float(%.loc4_27.1) [template = f64] // CHECK:STDOUT: %.loc4_27.2: type = value_of_initializer %float.make_type.loc4_27 [template = f64] // CHECK:STDOUT: %.loc4_27.3: type = converted %float.make_type.loc4_27, %.loc4_27.2 [template = f64] -// CHECK:STDOUT: %.loc4_35.1: Core.BigInt = int_literal 64 [template = constants.%.1] +// CHECK:STDOUT: %.loc4_35.1: Core.BigInt = int_value 64 [template = constants.%.1] // CHECK:STDOUT: %float.make_type.loc4_35: init type = call constants.%Float(%.loc4_35.1) [template = f64] // CHECK:STDOUT: %.loc4_35.2: type = value_of_initializer %float.make_type.loc4_35 [template = f64] // CHECK:STDOUT: %.loc4_35.3: type = converted %float.make_type.loc4_35, %.loc4_35.2 [template = f64] @@ -137,7 +137,7 @@ fn RuntimeCallBadReturnType(a: f64, b: f64) -> bool { // CHECK:STDOUT: %return.param: ref f64 = out_param runtime_param2 // CHECK:STDOUT: %return: ref f64 = return_slot %return.param // CHECK:STDOUT: } -// CHECK:STDOUT: %.loc8_8.1: Core.BigInt = int_literal 64 [template = constants.%.1] +// CHECK:STDOUT: %.loc8_8.1: Core.BigInt = int_value 64 [template = constants.%.1] // CHECK:STDOUT: %float.make_type: init type = call constants.%Float(%.loc8_8.1) [template = f64] // CHECK:STDOUT: %.loc8_8.2: type = value_of_initializer %float.make_type [template = f64] // CHECK:STDOUT: %.loc8_8.3: type = converted %float.make_type, %.loc8_8.2 [template = f64] @@ -173,7 +173,7 @@ fn RuntimeCallBadReturnType(a: f64, b: f64) -> bool { // CHECK:STDOUT: --- fail_bad_decl.carbon // CHECK:STDOUT: // CHECK:STDOUT: constants { -// CHECK:STDOUT: %.1: Core.BigInt = int_literal 64 [template] +// CHECK:STDOUT: %.1: Core.BigInt = int_value 64 [template] // CHECK:STDOUT: %Float.type: type = fn_type @Float [template] // CHECK:STDOUT: %.2: type = tuple_type () [template] // CHECK:STDOUT: %Float: %Float.type = struct_value () [template] @@ -224,11 +224,11 @@ fn RuntimeCallBadReturnType(a: f64, b: f64) -> bool { // CHECK:STDOUT: %return.patt: f64 = return_slot_pattern // CHECK:STDOUT: %return.param_patt: f64 = out_param_pattern %return.patt, runtime_param1 // CHECK:STDOUT: } { -// CHECK:STDOUT: %.loc8_14.1: Core.BigInt = int_literal 64 [template = constants.%.1] +// CHECK:STDOUT: %.loc8_14.1: Core.BigInt = int_value 64 [template = constants.%.1] // CHECK:STDOUT: %float.make_type.loc8_14: init type = call constants.%Float(%.loc8_14.1) [template = f64] // CHECK:STDOUT: %.loc8_14.2: type = value_of_initializer %float.make_type.loc8_14 [template = f64] // CHECK:STDOUT: %.loc8_14.3: type = converted %float.make_type.loc8_14, %.loc8_14.2 [template = f64] -// CHECK:STDOUT: %.loc8_22.1: Core.BigInt = int_literal 64 [template = constants.%.1] +// CHECK:STDOUT: %.loc8_22.1: Core.BigInt = int_value 64 [template = constants.%.1] // CHECK:STDOUT: %float.make_type.loc8_22: init type = call constants.%Float(%.loc8_22.1) [template = f64] // CHECK:STDOUT: %.loc8_22.2: type = value_of_initializer %float.make_type.loc8_22 [template = f64] // CHECK:STDOUT: %.loc8_22.3: type = converted %float.make_type.loc8_22, %.loc8_22.2 [template = f64] @@ -247,19 +247,19 @@ fn RuntimeCallBadReturnType(a: f64, b: f64) -> bool { // CHECK:STDOUT: %return.patt: f64 = return_slot_pattern // CHECK:STDOUT: %return.param_patt: f64 = out_param_pattern %return.patt, runtime_param3 // CHECK:STDOUT: } { -// CHECK:STDOUT: %.loc13_15.1: Core.BigInt = int_literal 64 [template = constants.%.1] +// CHECK:STDOUT: %.loc13_15.1: Core.BigInt = int_value 64 [template = constants.%.1] // CHECK:STDOUT: %float.make_type.loc13_15: init type = call constants.%Float(%.loc13_15.1) [template = f64] // CHECK:STDOUT: %.loc13_15.2: type = value_of_initializer %float.make_type.loc13_15 [template = f64] // CHECK:STDOUT: %.loc13_15.3: type = converted %float.make_type.loc13_15, %.loc13_15.2 [template = f64] -// CHECK:STDOUT: %.loc13_23.1: Core.BigInt = int_literal 64 [template = constants.%.1] +// CHECK:STDOUT: %.loc13_23.1: Core.BigInt = int_value 64 [template = constants.%.1] // CHECK:STDOUT: %float.make_type.loc13_23: init type = call constants.%Float(%.loc13_23.1) [template = f64] // CHECK:STDOUT: %.loc13_23.2: type = value_of_initializer %float.make_type.loc13_23 [template = f64] // CHECK:STDOUT: %.loc13_23.3: type = converted %float.make_type.loc13_23, %.loc13_23.2 [template = f64] -// CHECK:STDOUT: %.loc13_31.1: Core.BigInt = int_literal 64 [template = constants.%.1] +// CHECK:STDOUT: %.loc13_31.1: Core.BigInt = int_value 64 [template = constants.%.1] // CHECK:STDOUT: %float.make_type.loc13_31: init type = call constants.%Float(%.loc13_31.1) [template = f64] // CHECK:STDOUT: %.loc13_31.2: type = value_of_initializer %float.make_type.loc13_31 [template = f64] // CHECK:STDOUT: %.loc13_31.3: type = converted %float.make_type.loc13_31, %.loc13_31.2 [template = f64] -// CHECK:STDOUT: %.loc13_39.1: Core.BigInt = int_literal 64 [template = constants.%.1] +// CHECK:STDOUT: %.loc13_39.1: Core.BigInt = int_value 64 [template = constants.%.1] // CHECK:STDOUT: %float.make_type.loc13_39: init type = call constants.%Float(%.loc13_39.1) [template = f64] // CHECK:STDOUT: %.loc13_39.2: type = value_of_initializer %float.make_type.loc13_39 [template = f64] // CHECK:STDOUT: %.loc13_39.3: type = converted %float.make_type.loc13_39, %.loc13_39.2 [template = f64] @@ -280,11 +280,11 @@ fn RuntimeCallBadReturnType(a: f64, b: f64) -> bool { // CHECK:STDOUT: %return.patt: bool = return_slot_pattern // CHECK:STDOUT: %return.param_patt: bool = out_param_pattern %return.patt, runtime_param2 // CHECK:STDOUT: } { -// CHECK:STDOUT: %.loc17_21.1: Core.BigInt = int_literal 64 [template = constants.%.1] +// CHECK:STDOUT: %.loc17_21.1: Core.BigInt = int_value 64 [template = constants.%.1] // CHECK:STDOUT: %float.make_type.loc17_21: init type = call constants.%Float(%.loc17_21.1) [template = f64] // CHECK:STDOUT: %.loc17_21.2: type = value_of_initializer %float.make_type.loc17_21 [template = f64] // CHECK:STDOUT: %.loc17_21.3: type = converted %float.make_type.loc17_21, %.loc17_21.2 [template = f64] -// CHECK:STDOUT: %.loc17_29.1: Core.BigInt = int_literal 64 [template = constants.%.1] +// CHECK:STDOUT: %.loc17_29.1: Core.BigInt = int_value 64 [template = constants.%.1] // CHECK:STDOUT: %float.make_type.loc17_29: init type = call constants.%Float(%.loc17_29.1) [template = f64] // CHECK:STDOUT: %.loc17_29.2: type = value_of_initializer %float.make_type.loc17_29 [template = f64] // CHECK:STDOUT: %.loc17_29.3: type = converted %float.make_type.loc17_29, %.loc17_29.2 [template = f64] @@ -306,15 +306,15 @@ fn RuntimeCallBadReturnType(a: f64, b: f64) -> bool { // CHECK:STDOUT: %return.patt: f64 = return_slot_pattern // CHECK:STDOUT: %return.param_patt: f64 = out_param_pattern %return.patt, runtime_param2 // CHECK:STDOUT: } { -// CHECK:STDOUT: %.loc18_17.1: Core.BigInt = int_literal 64 [template = constants.%.1] +// CHECK:STDOUT: %.loc18_17.1: Core.BigInt = int_value 64 [template = constants.%.1] // CHECK:STDOUT: %float.make_type.loc18_17: init type = call constants.%Float(%.loc18_17.1) [template = f64] // CHECK:STDOUT: %.loc18_17.2: type = value_of_initializer %float.make_type.loc18_17 [template = f64] // CHECK:STDOUT: %.loc18_17.3: type = converted %float.make_type.loc18_17, %.loc18_17.2 [template = f64] -// CHECK:STDOUT: %.loc18_25.1: Core.BigInt = int_literal 64 [template = constants.%.1] +// CHECK:STDOUT: %.loc18_25.1: Core.BigInt = int_value 64 [template = constants.%.1] // CHECK:STDOUT: %float.make_type.loc18_25: init type = call constants.%Float(%.loc18_25.1) [template = f64] // CHECK:STDOUT: %.loc18_25.2: type = value_of_initializer %float.make_type.loc18_25 [template = f64] // CHECK:STDOUT: %.loc18_25.3: type = converted %float.make_type.loc18_25, %.loc18_25.2 [template = f64] -// CHECK:STDOUT: %.loc18_33.1: Core.BigInt = int_literal 64 [template = constants.%.1] +// CHECK:STDOUT: %.loc18_33.1: Core.BigInt = int_value 64 [template = constants.%.1] // CHECK:STDOUT: %float.make_type.loc18_33: init type = call constants.%Float(%.loc18_33.1) [template = f64] // CHECK:STDOUT: %.loc18_33.2: type = value_of_initializer %float.make_type.loc18_33 [template = f64] // CHECK:STDOUT: %.loc18_33.3: type = converted %float.make_type.loc18_33, %.loc18_33.2 [template = f64] @@ -331,11 +331,11 @@ fn RuntimeCallBadReturnType(a: f64, b: f64) -> bool { // CHECK:STDOUT: %return.patt: f64 = return_slot_pattern // CHECK:STDOUT: %return.param_patt: f64 = out_param_pattern %return.patt, runtime_param1 // CHECK:STDOUT: } { -// CHECK:STDOUT: %.loc20_25.1: Core.BigInt = int_literal 64 [template = constants.%.1] +// CHECK:STDOUT: %.loc20_25.1: Core.BigInt = int_value 64 [template = constants.%.1] // CHECK:STDOUT: %float.make_type.loc20_25: init type = call constants.%Float(%.loc20_25.1) [template = f64] // CHECK:STDOUT: %.loc20_25.2: type = value_of_initializer %float.make_type.loc20_25 [template = f64] // CHECK:STDOUT: %.loc20_25.3: type = converted %float.make_type.loc20_25, %.loc20_25.2 [template = f64] -// CHECK:STDOUT: %.loc20_33.1: Core.BigInt = int_literal 64 [template = constants.%.1] +// CHECK:STDOUT: %.loc20_33.1: Core.BigInt = int_value 64 [template = constants.%.1] // CHECK:STDOUT: %float.make_type.loc20_33: init type = call constants.%Float(%.loc20_33.1) [template = f64] // CHECK:STDOUT: %.loc20_33.2: type = value_of_initializer %float.make_type.loc20_33 [template = f64] // CHECK:STDOUT: %.loc20_33.3: type = converted %float.make_type.loc20_33, %.loc20_33.2 [template = f64] @@ -354,19 +354,19 @@ fn RuntimeCallBadReturnType(a: f64, b: f64) -> bool { // CHECK:STDOUT: %return.patt: f64 = return_slot_pattern // CHECK:STDOUT: %return.param_patt: f64 = out_param_pattern %return.patt, runtime_param3 // CHECK:STDOUT: } { -// CHECK:STDOUT: %.loc24_26.1: Core.BigInt = int_literal 64 [template = constants.%.1] +// CHECK:STDOUT: %.loc24_26.1: Core.BigInt = int_value 64 [template = constants.%.1] // CHECK:STDOUT: %float.make_type.loc24_26: init type = call constants.%Float(%.loc24_26.1) [template = f64] // CHECK:STDOUT: %.loc24_26.2: type = value_of_initializer %float.make_type.loc24_26 [template = f64] // CHECK:STDOUT: %.loc24_26.3: type = converted %float.make_type.loc24_26, %.loc24_26.2 [template = f64] -// CHECK:STDOUT: %.loc24_34.1: Core.BigInt = int_literal 64 [template = constants.%.1] +// CHECK:STDOUT: %.loc24_34.1: Core.BigInt = int_value 64 [template = constants.%.1] // CHECK:STDOUT: %float.make_type.loc24_34: init type = call constants.%Float(%.loc24_34.1) [template = f64] // CHECK:STDOUT: %.loc24_34.2: type = value_of_initializer %float.make_type.loc24_34 [template = f64] // CHECK:STDOUT: %.loc24_34.3: type = converted %float.make_type.loc24_34, %.loc24_34.2 [template = f64] -// CHECK:STDOUT: %.loc24_42.1: Core.BigInt = int_literal 64 [template = constants.%.1] +// CHECK:STDOUT: %.loc24_42.1: Core.BigInt = int_value 64 [template = constants.%.1] // CHECK:STDOUT: %float.make_type.loc24_42: init type = call constants.%Float(%.loc24_42.1) [template = f64] // CHECK:STDOUT: %.loc24_42.2: type = value_of_initializer %float.make_type.loc24_42 [template = f64] // CHECK:STDOUT: %.loc24_42.3: type = converted %float.make_type.loc24_42, %.loc24_42.2 [template = f64] -// CHECK:STDOUT: %.loc24_50.1: Core.BigInt = int_literal 64 [template = constants.%.1] +// CHECK:STDOUT: %.loc24_50.1: Core.BigInt = int_value 64 [template = constants.%.1] // CHECK:STDOUT: %float.make_type.loc24_50: init type = call constants.%Float(%.loc24_50.1) [template = f64] // CHECK:STDOUT: %.loc24_50.2: type = value_of_initializer %float.make_type.loc24_50 [template = f64] // CHECK:STDOUT: %.loc24_50.3: type = converted %float.make_type.loc24_50, %.loc24_50.2 [template = f64] @@ -387,11 +387,11 @@ fn RuntimeCallBadReturnType(a: f64, b: f64) -> bool { // CHECK:STDOUT: %return.patt: bool = return_slot_pattern // CHECK:STDOUT: %return.param_patt: bool = out_param_pattern %return.patt, runtime_param2 // CHECK:STDOUT: } { -// CHECK:STDOUT: %.loc28_32.1: Core.BigInt = int_literal 64 [template = constants.%.1] +// CHECK:STDOUT: %.loc28_32.1: Core.BigInt = int_value 64 [template = constants.%.1] // CHECK:STDOUT: %float.make_type.loc28_32: init type = call constants.%Float(%.loc28_32.1) [template = f64] // CHECK:STDOUT: %.loc28_32.2: type = value_of_initializer %float.make_type.loc28_32 [template = f64] // CHECK:STDOUT: %.loc28_32.3: type = converted %float.make_type.loc28_32, %.loc28_32.2 [template = f64] -// CHECK:STDOUT: %.loc28_40.1: Core.BigInt = int_literal 64 [template = constants.%.1] +// CHECK:STDOUT: %.loc28_40.1: Core.BigInt = int_value 64 [template = constants.%.1] // CHECK:STDOUT: %float.make_type.loc28_40: init type = call constants.%Float(%.loc28_40.1) [template = f64] // CHECK:STDOUT: %.loc28_40.2: type = value_of_initializer %float.make_type.loc28_40 [template = f64] // CHECK:STDOUT: %.loc28_40.3: type = converted %float.make_type.loc28_40, %.loc28_40.2 [template = f64] diff --git a/toolchain/check/testdata/builtins/float/negate.carbon b/toolchain/check/testdata/builtins/float/negate.carbon index 6c61ff5214f78..226da881aa9c5 100644 --- a/toolchain/check/testdata/builtins/float/negate.carbon +++ b/toolchain/check/testdata/builtins/float/negate.carbon @@ -74,7 +74,7 @@ fn RuntimeCallBadReturnType(a: f64, b: f64) -> bool { // CHECK:STDOUT: --- float_negate.carbon // CHECK:STDOUT: // CHECK:STDOUT: constants { -// CHECK:STDOUT: %.1: Core.BigInt = int_literal 64 [template] +// CHECK:STDOUT: %.1: Core.BigInt = int_value 64 [template] // CHECK:STDOUT: %Float.type: type = fn_type @Float [template] // CHECK:STDOUT: %.2: type = tuple_type () [template] // CHECK:STDOUT: %Float: %Float.type = struct_value () [template] @@ -109,11 +109,11 @@ fn RuntimeCallBadReturnType(a: f64, b: f64) -> bool { // CHECK:STDOUT: %return.patt: f64 = return_slot_pattern // CHECK:STDOUT: %return.param_patt: f64 = out_param_pattern %return.patt, runtime_param1 // CHECK:STDOUT: } { -// CHECK:STDOUT: %.loc2_14.1: Core.BigInt = int_literal 64 [template = constants.%.1] +// CHECK:STDOUT: %.loc2_14.1: Core.BigInt = int_value 64 [template = constants.%.1] // CHECK:STDOUT: %float.make_type.loc2_14: init type = call constants.%Float(%.loc2_14.1) [template = f64] // CHECK:STDOUT: %.loc2_14.2: type = value_of_initializer %float.make_type.loc2_14 [template = f64] // CHECK:STDOUT: %.loc2_14.3: type = converted %float.make_type.loc2_14, %.loc2_14.2 [template = f64] -// CHECK:STDOUT: %.loc2_22.1: Core.BigInt = int_literal 64 [template = constants.%.1] +// CHECK:STDOUT: %.loc2_22.1: Core.BigInt = int_value 64 [template = constants.%.1] // CHECK:STDOUT: %float.make_type.loc2_22: init type = call constants.%Float(%.loc2_22.1) [template = f64] // CHECK:STDOUT: %.loc2_22.2: type = value_of_initializer %float.make_type.loc2_22 [template = f64] // CHECK:STDOUT: %.loc2_22.3: type = converted %float.make_type.loc2_22, %.loc2_22.2 [template = f64] @@ -130,15 +130,15 @@ fn RuntimeCallBadReturnType(a: f64, b: f64) -> bool { // CHECK:STDOUT: %return.patt: f64 = return_slot_pattern // CHECK:STDOUT: %return.param_patt: f64 = out_param_pattern %return.patt, runtime_param2 // CHECK:STDOUT: } { -// CHECK:STDOUT: %.loc4_19.1: Core.BigInt = int_literal 64 [template = constants.%.1] +// CHECK:STDOUT: %.loc4_19.1: Core.BigInt = int_value 64 [template = constants.%.1] // CHECK:STDOUT: %float.make_type.loc4_19: init type = call constants.%Float(%.loc4_19.1) [template = f64] // CHECK:STDOUT: %.loc4_19.2: type = value_of_initializer %float.make_type.loc4_19 [template = f64] // CHECK:STDOUT: %.loc4_19.3: type = converted %float.make_type.loc4_19, %.loc4_19.2 [template = f64] -// CHECK:STDOUT: %.loc4_27.1: Core.BigInt = int_literal 64 [template = constants.%.1] +// CHECK:STDOUT: %.loc4_27.1: Core.BigInt = int_value 64 [template = constants.%.1] // CHECK:STDOUT: %float.make_type.loc4_27: init type = call constants.%Float(%.loc4_27.1) [template = f64] // CHECK:STDOUT: %.loc4_27.2: type = value_of_initializer %float.make_type.loc4_27 [template = f64] // CHECK:STDOUT: %.loc4_27.3: type = converted %float.make_type.loc4_27, %.loc4_27.2 [template = f64] -// CHECK:STDOUT: %.loc4_35.1: Core.BigInt = int_literal 64 [template = constants.%.1] +// CHECK:STDOUT: %.loc4_35.1: Core.BigInt = int_value 64 [template = constants.%.1] // CHECK:STDOUT: %float.make_type.loc4_35: init type = call constants.%Float(%.loc4_35.1) [template = f64] // CHECK:STDOUT: %.loc4_35.2: type = value_of_initializer %float.make_type.loc4_35 [template = f64] // CHECK:STDOUT: %.loc4_35.3: type = converted %float.make_type.loc4_35, %.loc4_35.2 [template = f64] @@ -149,7 +149,7 @@ fn RuntimeCallBadReturnType(a: f64, b: f64) -> bool { // CHECK:STDOUT: %return.param: ref f64 = out_param runtime_param2 // CHECK:STDOUT: %return: ref f64 = return_slot %return.param // CHECK:STDOUT: } -// CHECK:STDOUT: %.loc8_8.1: Core.BigInt = int_literal 64 [template = constants.%.1] +// CHECK:STDOUT: %.loc8_8.1: Core.BigInt = int_value 64 [template = constants.%.1] // CHECK:STDOUT: %float.make_type: init type = call constants.%Float(%.loc8_8.1) [template = f64] // CHECK:STDOUT: %.loc8_8.2: type = value_of_initializer %float.make_type [template = f64] // CHECK:STDOUT: %.loc8_8.3: type = converted %float.make_type, %.loc8_8.2 [template = f64] @@ -183,7 +183,7 @@ fn RuntimeCallBadReturnType(a: f64, b: f64) -> bool { // CHECK:STDOUT: --- fail_bad_decl.carbon // CHECK:STDOUT: // CHECK:STDOUT: constants { -// CHECK:STDOUT: %.1: Core.BigInt = int_literal 64 [template] +// CHECK:STDOUT: %.1: Core.BigInt = int_value 64 [template] // CHECK:STDOUT: %Float.type: type = fn_type @Float [template] // CHECK:STDOUT: %.2: type = tuple_type () [template] // CHECK:STDOUT: %Float: %Float.type = struct_value () [template] @@ -232,7 +232,7 @@ fn RuntimeCallBadReturnType(a: f64, b: f64) -> bool { // CHECK:STDOUT: %return.patt: f64 = return_slot_pattern // CHECK:STDOUT: %return.param_patt: f64 = out_param_pattern %return.patt, runtime_param0 // CHECK:STDOUT: } { -// CHECK:STDOUT: %.loc8_16.1: Core.BigInt = int_literal 64 [template = constants.%.1] +// CHECK:STDOUT: %.loc8_16.1: Core.BigInt = int_value 64 [template = constants.%.1] // CHECK:STDOUT: %float.make_type: init type = call constants.%Float(%.loc8_16.1) [template = f64] // CHECK:STDOUT: %.loc8_16.2: type = value_of_initializer %float.make_type [template = f64] // CHECK:STDOUT: %.loc8_16.3: type = converted %float.make_type, %.loc8_16.2 [template = f64] @@ -247,15 +247,15 @@ fn RuntimeCallBadReturnType(a: f64, b: f64) -> bool { // CHECK:STDOUT: %return.patt: f64 = return_slot_pattern // CHECK:STDOUT: %return.param_patt: f64 = out_param_pattern %return.patt, runtime_param2 // CHECK:STDOUT: } { -// CHECK:STDOUT: %.loc13_15.1: Core.BigInt = int_literal 64 [template = constants.%.1] +// CHECK:STDOUT: %.loc13_15.1: Core.BigInt = int_value 64 [template = constants.%.1] // CHECK:STDOUT: %float.make_type.loc13_15: init type = call constants.%Float(%.loc13_15.1) [template = f64] // CHECK:STDOUT: %.loc13_15.2: type = value_of_initializer %float.make_type.loc13_15 [template = f64] // CHECK:STDOUT: %.loc13_15.3: type = converted %float.make_type.loc13_15, %.loc13_15.2 [template = f64] -// CHECK:STDOUT: %.loc13_23.1: Core.BigInt = int_literal 64 [template = constants.%.1] +// CHECK:STDOUT: %.loc13_23.1: Core.BigInt = int_value 64 [template = constants.%.1] // CHECK:STDOUT: %float.make_type.loc13_23: init type = call constants.%Float(%.loc13_23.1) [template = f64] // CHECK:STDOUT: %.loc13_23.2: type = value_of_initializer %float.make_type.loc13_23 [template = f64] // CHECK:STDOUT: %.loc13_23.3: type = converted %float.make_type.loc13_23, %.loc13_23.2 [template = f64] -// CHECK:STDOUT: %.loc13_31.1: Core.BigInt = int_literal 64 [template = constants.%.1] +// CHECK:STDOUT: %.loc13_31.1: Core.BigInt = int_value 64 [template = constants.%.1] // CHECK:STDOUT: %float.make_type.loc13_31: init type = call constants.%Float(%.loc13_31.1) [template = f64] // CHECK:STDOUT: %.loc13_31.2: type = value_of_initializer %float.make_type.loc13_31 [template = f64] // CHECK:STDOUT: %.loc13_31.3: type = converted %float.make_type.loc13_31, %.loc13_31.2 [template = f64] @@ -272,7 +272,7 @@ fn RuntimeCallBadReturnType(a: f64, b: f64) -> bool { // CHECK:STDOUT: %return.patt: bool = return_slot_pattern // CHECK:STDOUT: %return.param_patt: bool = out_param_pattern %return.patt, runtime_param1 // CHECK:STDOUT: } { -// CHECK:STDOUT: %.loc18_21.1: Core.BigInt = int_literal 64 [template = constants.%.1] +// CHECK:STDOUT: %.loc18_21.1: Core.BigInt = int_value 64 [template = constants.%.1] // CHECK:STDOUT: %float.make_type: init type = call constants.%Float(%.loc18_21.1) [template = f64] // CHECK:STDOUT: %.loc18_21.2: type = value_of_initializer %float.make_type [template = f64] // CHECK:STDOUT: %.loc18_21.3: type = converted %float.make_type, %.loc18_21.2 [template = f64] @@ -290,11 +290,11 @@ fn RuntimeCallBadReturnType(a: f64, b: f64) -> bool { // CHECK:STDOUT: %return.patt: f64 = return_slot_pattern // CHECK:STDOUT: %return.param_patt: f64 = out_param_pattern %return.patt, runtime_param1 // CHECK:STDOUT: } { -// CHECK:STDOUT: %.loc19_17.1: Core.BigInt = int_literal 64 [template = constants.%.1] +// CHECK:STDOUT: %.loc19_17.1: Core.BigInt = int_value 64 [template = constants.%.1] // CHECK:STDOUT: %float.make_type.loc19_17: init type = call constants.%Float(%.loc19_17.1) [template = f64] // CHECK:STDOUT: %.loc19_17.2: type = value_of_initializer %float.make_type.loc19_17 [template = f64] // CHECK:STDOUT: %.loc19_17.3: type = converted %float.make_type.loc19_17, %.loc19_17.2 [template = f64] -// CHECK:STDOUT: %.loc19_25.1: Core.BigInt = int_literal 64 [template = constants.%.1] +// CHECK:STDOUT: %.loc19_25.1: Core.BigInt = int_value 64 [template = constants.%.1] // CHECK:STDOUT: %float.make_type.loc19_25: init type = call constants.%Float(%.loc19_25.1) [template = f64] // CHECK:STDOUT: %.loc19_25.2: type = value_of_initializer %float.make_type.loc19_25 [template = f64] // CHECK:STDOUT: %.loc19_25.3: type = converted %float.make_type.loc19_25, %.loc19_25.2 [template = f64] @@ -309,11 +309,11 @@ fn RuntimeCallBadReturnType(a: f64, b: f64) -> bool { // CHECK:STDOUT: %return.patt: f64 = return_slot_pattern // CHECK:STDOUT: %return.param_patt: f64 = out_param_pattern %return.patt, runtime_param1 // CHECK:STDOUT: } { -// CHECK:STDOUT: %.loc21_25.1: Core.BigInt = int_literal 64 [template = constants.%.1] +// CHECK:STDOUT: %.loc21_25.1: Core.BigInt = int_value 64 [template = constants.%.1] // CHECK:STDOUT: %float.make_type.loc21_25: init type = call constants.%Float(%.loc21_25.1) [template = f64] // CHECK:STDOUT: %.loc21_25.2: type = value_of_initializer %float.make_type.loc21_25 [template = f64] // CHECK:STDOUT: %.loc21_25.3: type = converted %float.make_type.loc21_25, %.loc21_25.2 [template = f64] -// CHECK:STDOUT: %.loc21_33.1: Core.BigInt = int_literal 64 [template = constants.%.1] +// CHECK:STDOUT: %.loc21_33.1: Core.BigInt = int_value 64 [template = constants.%.1] // CHECK:STDOUT: %float.make_type.loc21_33: init type = call constants.%Float(%.loc21_33.1) [template = f64] // CHECK:STDOUT: %.loc21_33.2: type = value_of_initializer %float.make_type.loc21_33 [template = f64] // CHECK:STDOUT: %.loc21_33.3: type = converted %float.make_type.loc21_33, %.loc21_33.2 [template = f64] @@ -332,19 +332,19 @@ fn RuntimeCallBadReturnType(a: f64, b: f64) -> bool { // CHECK:STDOUT: %return.patt: f64 = return_slot_pattern // CHECK:STDOUT: %return.param_patt: f64 = out_param_pattern %return.patt, runtime_param3 // CHECK:STDOUT: } { -// CHECK:STDOUT: %.loc32_26.1: Core.BigInt = int_literal 64 [template = constants.%.1] +// CHECK:STDOUT: %.loc32_26.1: Core.BigInt = int_value 64 [template = constants.%.1] // CHECK:STDOUT: %float.make_type.loc32_26: init type = call constants.%Float(%.loc32_26.1) [template = f64] // CHECK:STDOUT: %.loc32_26.2: type = value_of_initializer %float.make_type.loc32_26 [template = f64] // CHECK:STDOUT: %.loc32_26.3: type = converted %float.make_type.loc32_26, %.loc32_26.2 [template = f64] -// CHECK:STDOUT: %.loc32_34.1: Core.BigInt = int_literal 64 [template = constants.%.1] +// CHECK:STDOUT: %.loc32_34.1: Core.BigInt = int_value 64 [template = constants.%.1] // CHECK:STDOUT: %float.make_type.loc32_34: init type = call constants.%Float(%.loc32_34.1) [template = f64] // CHECK:STDOUT: %.loc32_34.2: type = value_of_initializer %float.make_type.loc32_34 [template = f64] // CHECK:STDOUT: %.loc32_34.3: type = converted %float.make_type.loc32_34, %.loc32_34.2 [template = f64] -// CHECK:STDOUT: %.loc32_42.1: Core.BigInt = int_literal 64 [template = constants.%.1] +// CHECK:STDOUT: %.loc32_42.1: Core.BigInt = int_value 64 [template = constants.%.1] // CHECK:STDOUT: %float.make_type.loc32_42: init type = call constants.%Float(%.loc32_42.1) [template = f64] // CHECK:STDOUT: %.loc32_42.2: type = value_of_initializer %float.make_type.loc32_42 [template = f64] // CHECK:STDOUT: %.loc32_42.3: type = converted %float.make_type.loc32_42, %.loc32_42.2 [template = f64] -// CHECK:STDOUT: %.loc32_50.1: Core.BigInt = int_literal 64 [template = constants.%.1] +// CHECK:STDOUT: %.loc32_50.1: Core.BigInt = int_value 64 [template = constants.%.1] // CHECK:STDOUT: %float.make_type.loc32_50: init type = call constants.%Float(%.loc32_50.1) [template = f64] // CHECK:STDOUT: %.loc32_50.2: type = value_of_initializer %float.make_type.loc32_50 [template = f64] // CHECK:STDOUT: %.loc32_50.3: type = converted %float.make_type.loc32_50, %.loc32_50.2 [template = f64] @@ -365,11 +365,11 @@ fn RuntimeCallBadReturnType(a: f64, b: f64) -> bool { // CHECK:STDOUT: %return.patt: bool = return_slot_pattern // CHECK:STDOUT: %return.param_patt: bool = out_param_pattern %return.patt, runtime_param2 // CHECK:STDOUT: } { -// CHECK:STDOUT: %.loc43_32.1: Core.BigInt = int_literal 64 [template = constants.%.1] +// CHECK:STDOUT: %.loc43_32.1: Core.BigInt = int_value 64 [template = constants.%.1] // CHECK:STDOUT: %float.make_type.loc43_32: init type = call constants.%Float(%.loc43_32.1) [template = f64] // CHECK:STDOUT: %.loc43_32.2: type = value_of_initializer %float.make_type.loc43_32 [template = f64] // CHECK:STDOUT: %.loc43_32.3: type = converted %float.make_type.loc43_32, %.loc43_32.2 [template = f64] -// CHECK:STDOUT: %.loc43_40.1: Core.BigInt = int_literal 64 [template = constants.%.1] +// CHECK:STDOUT: %.loc43_40.1: Core.BigInt = int_value 64 [template = constants.%.1] // CHECK:STDOUT: %float.make_type.loc43_40: init type = call constants.%Float(%.loc43_40.1) [template = f64] // CHECK:STDOUT: %.loc43_40.2: type = value_of_initializer %float.make_type.loc43_40 [template = f64] // CHECK:STDOUT: %.loc43_40.3: type = converted %float.make_type.loc43_40, %.loc43_40.2 [template = f64] diff --git a/toolchain/check/testdata/builtins/float/neq.carbon b/toolchain/check/testdata/builtins/float/neq.carbon index 2128f6769da0c..930da0034a72f 100644 --- a/toolchain/check/testdata/builtins/float/neq.carbon +++ b/toolchain/check/testdata/builtins/float/neq.carbon @@ -36,7 +36,7 @@ fn WrongResult(a: f64, b: f64) -> f64 = "float.neq"; // CHECK:STDOUT: --- float_neq.carbon // CHECK:STDOUT: // CHECK:STDOUT: constants { -// CHECK:STDOUT: %.1: Core.BigInt = int_literal 64 [template] +// CHECK:STDOUT: %.1: Core.BigInt = int_value 64 [template] // CHECK:STDOUT: %Float.type: type = fn_type @Float [template] // CHECK:STDOUT: %.2: type = tuple_type () [template] // CHECK:STDOUT: %Float: %Float.type = struct_value () [template] @@ -88,11 +88,11 @@ fn WrongResult(a: f64, b: f64) -> f64 = "float.neq"; // CHECK:STDOUT: %return.patt: bool = return_slot_pattern // CHECK:STDOUT: %return.param_patt: bool = out_param_pattern %return.patt, runtime_param2 // CHECK:STDOUT: } { -// CHECK:STDOUT: %.loc2_11.1: Core.BigInt = int_literal 64 [template = constants.%.1] +// CHECK:STDOUT: %.loc2_11.1: Core.BigInt = int_value 64 [template = constants.%.1] // CHECK:STDOUT: %float.make_type.loc2_11: init type = call constants.%Float(%.loc2_11.1) [template = f64] // CHECK:STDOUT: %.loc2_11.2: type = value_of_initializer %float.make_type.loc2_11 [template = f64] // CHECK:STDOUT: %.loc2_11.3: type = converted %float.make_type.loc2_11, %.loc2_11.2 [template = f64] -// CHECK:STDOUT: %.loc2_19.1: Core.BigInt = int_literal 64 [template = constants.%.1] +// CHECK:STDOUT: %.loc2_19.1: Core.BigInt = int_value 64 [template = constants.%.1] // CHECK:STDOUT: %float.make_type.loc2_19: init type = call constants.%Float(%.loc2_19.1) [template = f64] // CHECK:STDOUT: %.loc2_19.2: type = value_of_initializer %float.make_type.loc2_19 [template = f64] // CHECK:STDOUT: %.loc2_19.3: type = converted %float.make_type.loc2_19, %.loc2_19.2 [template = f64] @@ -129,11 +129,11 @@ fn WrongResult(a: f64, b: f64) -> f64 = "float.neq"; // CHECK:STDOUT: %return.patt: bool = return_slot_pattern // CHECK:STDOUT: %return.param_patt: bool = out_param_pattern %return.patt, runtime_param2 // CHECK:STDOUT: } { -// CHECK:STDOUT: %.loc12_19.1: Core.BigInt = int_literal 64 [template = constants.%.1] +// CHECK:STDOUT: %.loc12_19.1: Core.BigInt = int_value 64 [template = constants.%.1] // CHECK:STDOUT: %float.make_type.loc12_19: init type = call constants.%Float(%.loc12_19.1) [template = f64] // CHECK:STDOUT: %.loc12_19.2: type = value_of_initializer %float.make_type.loc12_19 [template = f64] // CHECK:STDOUT: %.loc12_19.3: type = converted %float.make_type.loc12_19, %.loc12_19.2 [template = f64] -// CHECK:STDOUT: %.loc12_27.1: Core.BigInt = int_literal 64 [template = constants.%.1] +// CHECK:STDOUT: %.loc12_27.1: Core.BigInt = int_value 64 [template = constants.%.1] // CHECK:STDOUT: %float.make_type.loc12_27: init type = call constants.%Float(%.loc12_27.1) [template = f64] // CHECK:STDOUT: %.loc12_27.2: type = value_of_initializer %float.make_type.loc12_27 [template = f64] // CHECK:STDOUT: %.loc12_27.3: type = converted %float.make_type.loc12_27, %.loc12_27.2 [template = f64] @@ -226,7 +226,7 @@ fn WrongResult(a: f64, b: f64) -> f64 = "float.neq"; // CHECK:STDOUT: --- fail_bad_decl.carbon // CHECK:STDOUT: // CHECK:STDOUT: constants { -// CHECK:STDOUT: %.1: Core.BigInt = int_literal 64 [template] +// CHECK:STDOUT: %.1: Core.BigInt = int_value 64 [template] // CHECK:STDOUT: %Float.type: type = fn_type @Float [template] // CHECK:STDOUT: %.2: type = tuple_type () [template] // CHECK:STDOUT: %Float: %Float.type = struct_value () [template] @@ -257,15 +257,15 @@ fn WrongResult(a: f64, b: f64) -> f64 = "float.neq"; // CHECK:STDOUT: %return.patt: f64 = return_slot_pattern // CHECK:STDOUT: %return.param_patt: f64 = out_param_pattern %return.patt, runtime_param2 // CHECK:STDOUT: } { -// CHECK:STDOUT: %.loc7_19.1: Core.BigInt = int_literal 64 [template = constants.%.1] +// CHECK:STDOUT: %.loc7_19.1: Core.BigInt = int_value 64 [template = constants.%.1] // CHECK:STDOUT: %float.make_type.loc7_19: init type = call constants.%Float(%.loc7_19.1) [template = f64] // CHECK:STDOUT: %.loc7_19.2: type = value_of_initializer %float.make_type.loc7_19 [template = f64] // CHECK:STDOUT: %.loc7_19.3: type = converted %float.make_type.loc7_19, %.loc7_19.2 [template = f64] -// CHECK:STDOUT: %.loc7_27.1: Core.BigInt = int_literal 64 [template = constants.%.1] +// CHECK:STDOUT: %.loc7_27.1: Core.BigInt = int_value 64 [template = constants.%.1] // CHECK:STDOUT: %float.make_type.loc7_27: init type = call constants.%Float(%.loc7_27.1) [template = f64] // CHECK:STDOUT: %.loc7_27.2: type = value_of_initializer %float.make_type.loc7_27 [template = f64] // CHECK:STDOUT: %.loc7_27.3: type = converted %float.make_type.loc7_27, %.loc7_27.2 [template = f64] -// CHECK:STDOUT: %.loc7_35.1: Core.BigInt = int_literal 64 [template = constants.%.1] +// CHECK:STDOUT: %.loc7_35.1: Core.BigInt = int_value 64 [template = constants.%.1] // CHECK:STDOUT: %float.make_type.loc7_35: init type = call constants.%Float(%.loc7_35.1) [template = f64] // CHECK:STDOUT: %.loc7_35.2: type = value_of_initializer %float.make_type.loc7_35 [template = f64] // CHECK:STDOUT: %.loc7_35.3: type = converted %float.make_type.loc7_35, %.loc7_35.2 [template = f64] diff --git a/toolchain/check/testdata/builtins/float/sub.carbon b/toolchain/check/testdata/builtins/float/sub.carbon index ab84d2dfad39c..33d0b8058f695 100644 --- a/toolchain/check/testdata/builtins/float/sub.carbon +++ b/toolchain/check/testdata/builtins/float/sub.carbon @@ -53,7 +53,7 @@ fn RuntimeCallBadReturnType(a: f64, b: f64) -> bool { // CHECK:STDOUT: --- float_sub.carbon // CHECK:STDOUT: // CHECK:STDOUT: constants { -// CHECK:STDOUT: %.1: Core.BigInt = int_literal 64 [template] +// CHECK:STDOUT: %.1: Core.BigInt = int_value 64 [template] // CHECK:STDOUT: %Float.type: type = fn_type @Float [template] // CHECK:STDOUT: %.2: type = tuple_type () [template] // CHECK:STDOUT: %Float: %Float.type = struct_value () [template] @@ -91,15 +91,15 @@ fn RuntimeCallBadReturnType(a: f64, b: f64) -> bool { // CHECK:STDOUT: %return.patt: f64 = return_slot_pattern // CHECK:STDOUT: %return.param_patt: f64 = out_param_pattern %return.patt, runtime_param2 // CHECK:STDOUT: } { -// CHECK:STDOUT: %.loc2_11.1: Core.BigInt = int_literal 64 [template = constants.%.1] +// CHECK:STDOUT: %.loc2_11.1: Core.BigInt = int_value 64 [template = constants.%.1] // CHECK:STDOUT: %float.make_type.loc2_11: init type = call constants.%Float(%.loc2_11.1) [template = f64] // CHECK:STDOUT: %.loc2_11.2: type = value_of_initializer %float.make_type.loc2_11 [template = f64] // CHECK:STDOUT: %.loc2_11.3: type = converted %float.make_type.loc2_11, %.loc2_11.2 [template = f64] -// CHECK:STDOUT: %.loc2_19.1: Core.BigInt = int_literal 64 [template = constants.%.1] +// CHECK:STDOUT: %.loc2_19.1: Core.BigInt = int_value 64 [template = constants.%.1] // CHECK:STDOUT: %float.make_type.loc2_19: init type = call constants.%Float(%.loc2_19.1) [template = f64] // CHECK:STDOUT: %.loc2_19.2: type = value_of_initializer %float.make_type.loc2_19 [template = f64] // CHECK:STDOUT: %.loc2_19.3: type = converted %float.make_type.loc2_19, %.loc2_19.2 [template = f64] -// CHECK:STDOUT: %.loc2_27.1: Core.BigInt = int_literal 64 [template = constants.%.1] +// CHECK:STDOUT: %.loc2_27.1: Core.BigInt = int_value 64 [template = constants.%.1] // CHECK:STDOUT: %float.make_type.loc2_27: init type = call constants.%Float(%.loc2_27.1) [template = f64] // CHECK:STDOUT: %.loc2_27.2: type = value_of_initializer %float.make_type.loc2_27 [template = f64] // CHECK:STDOUT: %.loc2_27.3: type = converted %float.make_type.loc2_27, %.loc2_27.2 [template = f64] @@ -118,15 +118,15 @@ fn RuntimeCallBadReturnType(a: f64, b: f64) -> bool { // CHECK:STDOUT: %return.patt: f64 = return_slot_pattern // CHECK:STDOUT: %return.param_patt: f64 = out_param_pattern %return.patt, runtime_param2 // CHECK:STDOUT: } { -// CHECK:STDOUT: %.loc4_19.1: Core.BigInt = int_literal 64 [template = constants.%.1] +// CHECK:STDOUT: %.loc4_19.1: Core.BigInt = int_value 64 [template = constants.%.1] // CHECK:STDOUT: %float.make_type.loc4_19: init type = call constants.%Float(%.loc4_19.1) [template = f64] // CHECK:STDOUT: %.loc4_19.2: type = value_of_initializer %float.make_type.loc4_19 [template = f64] // CHECK:STDOUT: %.loc4_19.3: type = converted %float.make_type.loc4_19, %.loc4_19.2 [template = f64] -// CHECK:STDOUT: %.loc4_27.1: Core.BigInt = int_literal 64 [template = constants.%.1] +// CHECK:STDOUT: %.loc4_27.1: Core.BigInt = int_value 64 [template = constants.%.1] // CHECK:STDOUT: %float.make_type.loc4_27: init type = call constants.%Float(%.loc4_27.1) [template = f64] // CHECK:STDOUT: %.loc4_27.2: type = value_of_initializer %float.make_type.loc4_27 [template = f64] // CHECK:STDOUT: %.loc4_27.3: type = converted %float.make_type.loc4_27, %.loc4_27.2 [template = f64] -// CHECK:STDOUT: %.loc4_35.1: Core.BigInt = int_literal 64 [template = constants.%.1] +// CHECK:STDOUT: %.loc4_35.1: Core.BigInt = int_value 64 [template = constants.%.1] // CHECK:STDOUT: %float.make_type.loc4_35: init type = call constants.%Float(%.loc4_35.1) [template = f64] // CHECK:STDOUT: %.loc4_35.2: type = value_of_initializer %float.make_type.loc4_35 [template = f64] // CHECK:STDOUT: %.loc4_35.3: type = converted %float.make_type.loc4_35, %.loc4_35.2 [template = f64] @@ -137,7 +137,7 @@ fn RuntimeCallBadReturnType(a: f64, b: f64) -> bool { // CHECK:STDOUT: %return.param: ref f64 = out_param runtime_param2 // CHECK:STDOUT: %return: ref f64 = return_slot %return.param // CHECK:STDOUT: } -// CHECK:STDOUT: %.loc8_8.1: Core.BigInt = int_literal 64 [template = constants.%.1] +// CHECK:STDOUT: %.loc8_8.1: Core.BigInt = int_value 64 [template = constants.%.1] // CHECK:STDOUT: %float.make_type: init type = call constants.%Float(%.loc8_8.1) [template = f64] // CHECK:STDOUT: %.loc8_8.2: type = value_of_initializer %float.make_type [template = f64] // CHECK:STDOUT: %.loc8_8.3: type = converted %float.make_type, %.loc8_8.2 [template = f64] @@ -173,7 +173,7 @@ fn RuntimeCallBadReturnType(a: f64, b: f64) -> bool { // CHECK:STDOUT: --- fail_bad_decl.carbon // CHECK:STDOUT: // CHECK:STDOUT: constants { -// CHECK:STDOUT: %.1: Core.BigInt = int_literal 64 [template] +// CHECK:STDOUT: %.1: Core.BigInt = int_value 64 [template] // CHECK:STDOUT: %Float.type: type = fn_type @Float [template] // CHECK:STDOUT: %.2: type = tuple_type () [template] // CHECK:STDOUT: %Float: %Float.type = struct_value () [template] @@ -224,11 +224,11 @@ fn RuntimeCallBadReturnType(a: f64, b: f64) -> bool { // CHECK:STDOUT: %return.patt: f64 = return_slot_pattern // CHECK:STDOUT: %return.param_patt: f64 = out_param_pattern %return.patt, runtime_param1 // CHECK:STDOUT: } { -// CHECK:STDOUT: %.loc8_14.1: Core.BigInt = int_literal 64 [template = constants.%.1] +// CHECK:STDOUT: %.loc8_14.1: Core.BigInt = int_value 64 [template = constants.%.1] // CHECK:STDOUT: %float.make_type.loc8_14: init type = call constants.%Float(%.loc8_14.1) [template = f64] // CHECK:STDOUT: %.loc8_14.2: type = value_of_initializer %float.make_type.loc8_14 [template = f64] // CHECK:STDOUT: %.loc8_14.3: type = converted %float.make_type.loc8_14, %.loc8_14.2 [template = f64] -// CHECK:STDOUT: %.loc8_22.1: Core.BigInt = int_literal 64 [template = constants.%.1] +// CHECK:STDOUT: %.loc8_22.1: Core.BigInt = int_value 64 [template = constants.%.1] // CHECK:STDOUT: %float.make_type.loc8_22: init type = call constants.%Float(%.loc8_22.1) [template = f64] // CHECK:STDOUT: %.loc8_22.2: type = value_of_initializer %float.make_type.loc8_22 [template = f64] // CHECK:STDOUT: %.loc8_22.3: type = converted %float.make_type.loc8_22, %.loc8_22.2 [template = f64] @@ -247,19 +247,19 @@ fn RuntimeCallBadReturnType(a: f64, b: f64) -> bool { // CHECK:STDOUT: %return.patt: f64 = return_slot_pattern // CHECK:STDOUT: %return.param_patt: f64 = out_param_pattern %return.patt, runtime_param3 // CHECK:STDOUT: } { -// CHECK:STDOUT: %.loc13_15.1: Core.BigInt = int_literal 64 [template = constants.%.1] +// CHECK:STDOUT: %.loc13_15.1: Core.BigInt = int_value 64 [template = constants.%.1] // CHECK:STDOUT: %float.make_type.loc13_15: init type = call constants.%Float(%.loc13_15.1) [template = f64] // CHECK:STDOUT: %.loc13_15.2: type = value_of_initializer %float.make_type.loc13_15 [template = f64] // CHECK:STDOUT: %.loc13_15.3: type = converted %float.make_type.loc13_15, %.loc13_15.2 [template = f64] -// CHECK:STDOUT: %.loc13_23.1: Core.BigInt = int_literal 64 [template = constants.%.1] +// CHECK:STDOUT: %.loc13_23.1: Core.BigInt = int_value 64 [template = constants.%.1] // CHECK:STDOUT: %float.make_type.loc13_23: init type = call constants.%Float(%.loc13_23.1) [template = f64] // CHECK:STDOUT: %.loc13_23.2: type = value_of_initializer %float.make_type.loc13_23 [template = f64] // CHECK:STDOUT: %.loc13_23.3: type = converted %float.make_type.loc13_23, %.loc13_23.2 [template = f64] -// CHECK:STDOUT: %.loc13_31.1: Core.BigInt = int_literal 64 [template = constants.%.1] +// CHECK:STDOUT: %.loc13_31.1: Core.BigInt = int_value 64 [template = constants.%.1] // CHECK:STDOUT: %float.make_type.loc13_31: init type = call constants.%Float(%.loc13_31.1) [template = f64] // CHECK:STDOUT: %.loc13_31.2: type = value_of_initializer %float.make_type.loc13_31 [template = f64] // CHECK:STDOUT: %.loc13_31.3: type = converted %float.make_type.loc13_31, %.loc13_31.2 [template = f64] -// CHECK:STDOUT: %.loc13_39.1: Core.BigInt = int_literal 64 [template = constants.%.1] +// CHECK:STDOUT: %.loc13_39.1: Core.BigInt = int_value 64 [template = constants.%.1] // CHECK:STDOUT: %float.make_type.loc13_39: init type = call constants.%Float(%.loc13_39.1) [template = f64] // CHECK:STDOUT: %.loc13_39.2: type = value_of_initializer %float.make_type.loc13_39 [template = f64] // CHECK:STDOUT: %.loc13_39.3: type = converted %float.make_type.loc13_39, %.loc13_39.2 [template = f64] @@ -280,11 +280,11 @@ fn RuntimeCallBadReturnType(a: f64, b: f64) -> bool { // CHECK:STDOUT: %return.patt: bool = return_slot_pattern // CHECK:STDOUT: %return.param_patt: bool = out_param_pattern %return.patt, runtime_param2 // CHECK:STDOUT: } { -// CHECK:STDOUT: %.loc17_21.1: Core.BigInt = int_literal 64 [template = constants.%.1] +// CHECK:STDOUT: %.loc17_21.1: Core.BigInt = int_value 64 [template = constants.%.1] // CHECK:STDOUT: %float.make_type.loc17_21: init type = call constants.%Float(%.loc17_21.1) [template = f64] // CHECK:STDOUT: %.loc17_21.2: type = value_of_initializer %float.make_type.loc17_21 [template = f64] // CHECK:STDOUT: %.loc17_21.3: type = converted %float.make_type.loc17_21, %.loc17_21.2 [template = f64] -// CHECK:STDOUT: %.loc17_29.1: Core.BigInt = int_literal 64 [template = constants.%.1] +// CHECK:STDOUT: %.loc17_29.1: Core.BigInt = int_value 64 [template = constants.%.1] // CHECK:STDOUT: %float.make_type.loc17_29: init type = call constants.%Float(%.loc17_29.1) [template = f64] // CHECK:STDOUT: %.loc17_29.2: type = value_of_initializer %float.make_type.loc17_29 [template = f64] // CHECK:STDOUT: %.loc17_29.3: type = converted %float.make_type.loc17_29, %.loc17_29.2 [template = f64] @@ -306,15 +306,15 @@ fn RuntimeCallBadReturnType(a: f64, b: f64) -> bool { // CHECK:STDOUT: %return.patt: f64 = return_slot_pattern // CHECK:STDOUT: %return.param_patt: f64 = out_param_pattern %return.patt, runtime_param2 // CHECK:STDOUT: } { -// CHECK:STDOUT: %.loc18_17.1: Core.BigInt = int_literal 64 [template = constants.%.1] +// CHECK:STDOUT: %.loc18_17.1: Core.BigInt = int_value 64 [template = constants.%.1] // CHECK:STDOUT: %float.make_type.loc18_17: init type = call constants.%Float(%.loc18_17.1) [template = f64] // CHECK:STDOUT: %.loc18_17.2: type = value_of_initializer %float.make_type.loc18_17 [template = f64] // CHECK:STDOUT: %.loc18_17.3: type = converted %float.make_type.loc18_17, %.loc18_17.2 [template = f64] -// CHECK:STDOUT: %.loc18_25.1: Core.BigInt = int_literal 64 [template = constants.%.1] +// CHECK:STDOUT: %.loc18_25.1: Core.BigInt = int_value 64 [template = constants.%.1] // CHECK:STDOUT: %float.make_type.loc18_25: init type = call constants.%Float(%.loc18_25.1) [template = f64] // CHECK:STDOUT: %.loc18_25.2: type = value_of_initializer %float.make_type.loc18_25 [template = f64] // CHECK:STDOUT: %.loc18_25.3: type = converted %float.make_type.loc18_25, %.loc18_25.2 [template = f64] -// CHECK:STDOUT: %.loc18_33.1: Core.BigInt = int_literal 64 [template = constants.%.1] +// CHECK:STDOUT: %.loc18_33.1: Core.BigInt = int_value 64 [template = constants.%.1] // CHECK:STDOUT: %float.make_type.loc18_33: init type = call constants.%Float(%.loc18_33.1) [template = f64] // CHECK:STDOUT: %.loc18_33.2: type = value_of_initializer %float.make_type.loc18_33 [template = f64] // CHECK:STDOUT: %.loc18_33.3: type = converted %float.make_type.loc18_33, %.loc18_33.2 [template = f64] @@ -331,11 +331,11 @@ fn RuntimeCallBadReturnType(a: f64, b: f64) -> bool { // CHECK:STDOUT: %return.patt: f64 = return_slot_pattern // CHECK:STDOUT: %return.param_patt: f64 = out_param_pattern %return.patt, runtime_param1 // CHECK:STDOUT: } { -// CHECK:STDOUT: %.loc20_25.1: Core.BigInt = int_literal 64 [template = constants.%.1] +// CHECK:STDOUT: %.loc20_25.1: Core.BigInt = int_value 64 [template = constants.%.1] // CHECK:STDOUT: %float.make_type.loc20_25: init type = call constants.%Float(%.loc20_25.1) [template = f64] // CHECK:STDOUT: %.loc20_25.2: type = value_of_initializer %float.make_type.loc20_25 [template = f64] // CHECK:STDOUT: %.loc20_25.3: type = converted %float.make_type.loc20_25, %.loc20_25.2 [template = f64] -// CHECK:STDOUT: %.loc20_33.1: Core.BigInt = int_literal 64 [template = constants.%.1] +// CHECK:STDOUT: %.loc20_33.1: Core.BigInt = int_value 64 [template = constants.%.1] // CHECK:STDOUT: %float.make_type.loc20_33: init type = call constants.%Float(%.loc20_33.1) [template = f64] // CHECK:STDOUT: %.loc20_33.2: type = value_of_initializer %float.make_type.loc20_33 [template = f64] // CHECK:STDOUT: %.loc20_33.3: type = converted %float.make_type.loc20_33, %.loc20_33.2 [template = f64] @@ -354,19 +354,19 @@ fn RuntimeCallBadReturnType(a: f64, b: f64) -> bool { // CHECK:STDOUT: %return.patt: f64 = return_slot_pattern // CHECK:STDOUT: %return.param_patt: f64 = out_param_pattern %return.patt, runtime_param3 // CHECK:STDOUT: } { -// CHECK:STDOUT: %.loc24_26.1: Core.BigInt = int_literal 64 [template = constants.%.1] +// CHECK:STDOUT: %.loc24_26.1: Core.BigInt = int_value 64 [template = constants.%.1] // CHECK:STDOUT: %float.make_type.loc24_26: init type = call constants.%Float(%.loc24_26.1) [template = f64] // CHECK:STDOUT: %.loc24_26.2: type = value_of_initializer %float.make_type.loc24_26 [template = f64] // CHECK:STDOUT: %.loc24_26.3: type = converted %float.make_type.loc24_26, %.loc24_26.2 [template = f64] -// CHECK:STDOUT: %.loc24_34.1: Core.BigInt = int_literal 64 [template = constants.%.1] +// CHECK:STDOUT: %.loc24_34.1: Core.BigInt = int_value 64 [template = constants.%.1] // CHECK:STDOUT: %float.make_type.loc24_34: init type = call constants.%Float(%.loc24_34.1) [template = f64] // CHECK:STDOUT: %.loc24_34.2: type = value_of_initializer %float.make_type.loc24_34 [template = f64] // CHECK:STDOUT: %.loc24_34.3: type = converted %float.make_type.loc24_34, %.loc24_34.2 [template = f64] -// CHECK:STDOUT: %.loc24_42.1: Core.BigInt = int_literal 64 [template = constants.%.1] +// CHECK:STDOUT: %.loc24_42.1: Core.BigInt = int_value 64 [template = constants.%.1] // CHECK:STDOUT: %float.make_type.loc24_42: init type = call constants.%Float(%.loc24_42.1) [template = f64] // CHECK:STDOUT: %.loc24_42.2: type = value_of_initializer %float.make_type.loc24_42 [template = f64] // CHECK:STDOUT: %.loc24_42.3: type = converted %float.make_type.loc24_42, %.loc24_42.2 [template = f64] -// CHECK:STDOUT: %.loc24_50.1: Core.BigInt = int_literal 64 [template = constants.%.1] +// CHECK:STDOUT: %.loc24_50.1: Core.BigInt = int_value 64 [template = constants.%.1] // CHECK:STDOUT: %float.make_type.loc24_50: init type = call constants.%Float(%.loc24_50.1) [template = f64] // CHECK:STDOUT: %.loc24_50.2: type = value_of_initializer %float.make_type.loc24_50 [template = f64] // CHECK:STDOUT: %.loc24_50.3: type = converted %float.make_type.loc24_50, %.loc24_50.2 [template = f64] @@ -387,11 +387,11 @@ fn RuntimeCallBadReturnType(a: f64, b: f64) -> bool { // CHECK:STDOUT: %return.patt: bool = return_slot_pattern // CHECK:STDOUT: %return.param_patt: bool = out_param_pattern %return.patt, runtime_param2 // CHECK:STDOUT: } { -// CHECK:STDOUT: %.loc28_32.1: Core.BigInt = int_literal 64 [template = constants.%.1] +// CHECK:STDOUT: %.loc28_32.1: Core.BigInt = int_value 64 [template = constants.%.1] // CHECK:STDOUT: %float.make_type.loc28_32: init type = call constants.%Float(%.loc28_32.1) [template = f64] // CHECK:STDOUT: %.loc28_32.2: type = value_of_initializer %float.make_type.loc28_32 [template = f64] // CHECK:STDOUT: %.loc28_32.3: type = converted %float.make_type.loc28_32, %.loc28_32.2 [template = f64] -// CHECK:STDOUT: %.loc28_40.1: Core.BigInt = int_literal 64 [template = constants.%.1] +// CHECK:STDOUT: %.loc28_40.1: Core.BigInt = int_value 64 [template = constants.%.1] // CHECK:STDOUT: %float.make_type.loc28_40: init type = call constants.%Float(%.loc28_40.1) [template = f64] // CHECK:STDOUT: %.loc28_40.2: type = value_of_initializer %float.make_type.loc28_40 [template = f64] // CHECK:STDOUT: %.loc28_40.3: type = converted %float.make_type.loc28_40, %.loc28_40.2 [template = f64] diff --git a/toolchain/check/testdata/builtins/int/and.carbon b/toolchain/check/testdata/builtins/int/and.carbon index 27e9debeab38f..7c489df14b245 100644 --- a/toolchain/check/testdata/builtins/int/and.carbon +++ b/toolchain/check/testdata/builtins/int/and.carbon @@ -27,9 +27,9 @@ fn RuntimeCall(a: i32, b: i32) -> i32 { // CHECK:STDOUT: %Int32: %Int32.type = struct_value () [template] // CHECK:STDOUT: %And.type: type = fn_type @And [template] // CHECK:STDOUT: %And: %And.type = struct_value () [template] -// CHECK:STDOUT: %.2: i32 = int_literal 12 [template] -// CHECK:STDOUT: %.3: i32 = int_literal 10 [template] -// CHECK:STDOUT: %.4: i32 = int_literal 8 [template] +// CHECK:STDOUT: %.2: i32 = int_value 12 [template] +// CHECK:STDOUT: %.3: i32 = int_value 10 [template] +// CHECK:STDOUT: %.4: i32 = int_value 8 [template] // CHECK:STDOUT: %.5: type = array_type %.4, i32 [template] // CHECK:STDOUT: %.6: type = ptr_type %.5 [template] // CHECK:STDOUT: %RuntimeCall.type: type = fn_type @RuntimeCall [template] @@ -80,8 +80,8 @@ fn RuntimeCall(a: i32, b: i32) -> i32 { // CHECK:STDOUT: } // CHECK:STDOUT: %int.make_type_32.loc4: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %And.ref: %And.type = name_ref And, %And.decl [template = constants.%And] -// CHECK:STDOUT: %.loc4_20: i32 = int_literal 12 [template = constants.%.2] -// CHECK:STDOUT: %.loc4_24: i32 = int_literal 10 [template = constants.%.3] +// CHECK:STDOUT: %.loc4_20: i32 = int_value 12 [template = constants.%.2] +// CHECK:STDOUT: %.loc4_24: i32 = int_value 10 [template = constants.%.3] // CHECK:STDOUT: %int.and: init i32 = call %And.ref(%.loc4_20, %.loc4_24) [template = constants.%.4] // CHECK:STDOUT: %.loc4_11.1: type = value_of_initializer %int.make_type_32.loc4 [template = i32] // CHECK:STDOUT: %.loc4_11.2: type = converted %int.make_type_32.loc4, %.loc4_11.1 [template = i32] @@ -89,7 +89,7 @@ fn RuntimeCall(a: i32, b: i32) -> i32 { // CHECK:STDOUT: %arr.var: ref %.5 = var arr // CHECK:STDOUT: %arr: ref %.5 = bind_name arr, %arr.var // CHECK:STDOUT: %int.make_type_32.loc5: init type = call constants.%Int32() [template = i32] -// CHECK:STDOUT: %.loc5_18: i32 = int_literal 8 [template = constants.%.4] +// CHECK:STDOUT: %.loc5_18: i32 = int_value 8 [template = constants.%.4] // CHECK:STDOUT: %.loc5_13.1: type = value_of_initializer %int.make_type_32.loc5 [template = i32] // CHECK:STDOUT: %.loc5_13.2: type = converted %int.make_type_32.loc5, %.loc5_13.1 [template = i32] // CHECK:STDOUT: %.loc5_19: type = array_type %.loc5_18, i32 [template = constants.%.5] diff --git a/toolchain/check/testdata/builtins/int/complement.carbon b/toolchain/check/testdata/builtins/int/complement.carbon index 0d2e2c5780beb..dfa996fa81dfe 100644 --- a/toolchain/check/testdata/builtins/int/complement.carbon +++ b/toolchain/check/testdata/builtins/int/complement.carbon @@ -30,10 +30,10 @@ fn RuntimeCall(a: i32) -> i32 { // CHECK:STDOUT: %Complement: %Complement.type = struct_value () [template] // CHECK:STDOUT: %And.type: type = fn_type @And [template] // CHECK:STDOUT: %And: %And.type = struct_value () [template] -// CHECK:STDOUT: %.2: i32 = int_literal 1193046 [template] -// CHECK:STDOUT: %.3: i32 = int_literal -1193047 [template] -// CHECK:STDOUT: %.4: i32 = int_literal 16777215 [template] -// CHECK:STDOUT: %.5: i32 = int_literal 15584169 [template] +// CHECK:STDOUT: %.2: i32 = int_value 1193046 [template] +// CHECK:STDOUT: %.3: i32 = int_value -1193047 [template] +// CHECK:STDOUT: %.4: i32 = int_value 16777215 [template] +// CHECK:STDOUT: %.5: i32 = int_value 15584169 [template] // CHECK:STDOUT: %.6: type = array_type %.5, i32 [template] // CHECK:STDOUT: %.7: type = ptr_type %.6 [template] // CHECK:STDOUT: %RuntimeCall.type: type = fn_type @RuntimeCall [template] @@ -103,9 +103,9 @@ fn RuntimeCall(a: i32) -> i32 { // CHECK:STDOUT: %int.make_type_32.loc5: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %And.ref: %And.type = name_ref And, %And.decl [template = constants.%And] // CHECK:STDOUT: %Complement.ref: %Complement.type = name_ref Complement, %Complement.decl [template = constants.%Complement] -// CHECK:STDOUT: %.loc5_31: i32 = int_literal 1193046 [template = constants.%.2] +// CHECK:STDOUT: %.loc5_31: i32 = int_value 1193046 [template = constants.%.2] // CHECK:STDOUT: %int.complement: init i32 = call %Complement.ref(%.loc5_31) [template = constants.%.3] -// CHECK:STDOUT: %.loc5_42: i32 = int_literal 16777215 [template = constants.%.4] +// CHECK:STDOUT: %.loc5_42: i32 = int_value 16777215 [template = constants.%.4] // CHECK:STDOUT: %.loc5_30.1: i32 = value_of_initializer %int.complement [template = constants.%.3] // CHECK:STDOUT: %.loc5_30.2: i32 = converted %int.complement, %.loc5_30.1 [template = constants.%.3] // CHECK:STDOUT: %int.and: init i32 = call %And.ref(%.loc5_30.2, %.loc5_42) [template = constants.%.5] @@ -115,7 +115,7 @@ fn RuntimeCall(a: i32) -> i32 { // CHECK:STDOUT: %arr.var: ref %.6 = var arr // CHECK:STDOUT: %arr: ref %.6 = bind_name arr, %arr.var // CHECK:STDOUT: %int.make_type_32.loc6: init type = call constants.%Int32() [template = i32] -// CHECK:STDOUT: %.loc6_18: i32 = int_literal 15584169 [template = constants.%.5] +// CHECK:STDOUT: %.loc6_18: i32 = int_value 15584169 [template = constants.%.5] // CHECK:STDOUT: %.loc6_13.1: type = value_of_initializer %int.make_type_32.loc6 [template = i32] // CHECK:STDOUT: %.loc6_13.2: type = converted %int.make_type_32.loc6, %.loc6_13.1 [template = i32] // CHECK:STDOUT: %.loc6_26: type = array_type %.loc6_18, i32 [template = constants.%.6] diff --git a/toolchain/check/testdata/builtins/int/eq.carbon b/toolchain/check/testdata/builtins/int/eq.carbon index 40dc6a3a39bd0..521c5ab7ae3e0 100644 --- a/toolchain/check/testdata/builtins/int/eq.carbon +++ b/toolchain/check/testdata/builtins/int/eq.carbon @@ -50,9 +50,9 @@ fn WrongResult(a: i32, b: i32) -> i32 = "int.eq"; // CHECK:STDOUT: %F.type: type = fn_type @F [template] // CHECK:STDOUT: %F: %F.type = struct_value () [template] // CHECK:STDOUT: %.4: type = ptr_type %.2 [template] -// CHECK:STDOUT: %.5: i32 = int_literal 1 [template] +// CHECK:STDOUT: %.5: i32 = int_value 1 [template] // CHECK:STDOUT: %.6: bool = bool_literal true [template] -// CHECK:STDOUT: %.7: i32 = int_literal 2 [template] +// CHECK:STDOUT: %.7: i32 = int_value 2 [template] // CHECK:STDOUT: %.8: bool = bool_literal false [template] // CHECK:STDOUT: %RuntimeCall.type: type = fn_type @RuntimeCall [template] // CHECK:STDOUT: %RuntimeCall: %RuntimeCall.type = struct_value () [template] @@ -168,8 +168,8 @@ fn WrongResult(a: i32, b: i32) -> i32 = "int.eq"; // CHECK:STDOUT: !entry: // CHECK:STDOUT: %true_.ref: %True = name_ref true_, %true_ // CHECK:STDOUT: %Eq.ref.loc8: %Eq.type = name_ref Eq, file.%Eq.decl [template = constants.%Eq] -// CHECK:STDOUT: %.loc8_19: i32 = int_literal 1 [template = constants.%.5] -// CHECK:STDOUT: %.loc8_22: i32 = int_literal 1 [template = constants.%.5] +// CHECK:STDOUT: %.loc8_19: i32 = int_value 1 [template = constants.%.5] +// CHECK:STDOUT: %.loc8_22: i32 = int_value 1 [template = constants.%.5] // CHECK:STDOUT: %int.eq.loc8: init bool = call %Eq.ref.loc8(%.loc8_19, %.loc8_22) [template = constants.%.6] // CHECK:STDOUT: %.loc8_13.1: bool = value_of_initializer %int.eq.loc8 [template = constants.%.6] // CHECK:STDOUT: %.loc8_13.2: bool = converted %int.eq.loc8, %.loc8_13.1 [template = constants.%.6] @@ -187,8 +187,8 @@ fn WrongResult(a: i32, b: i32) -> i32 = "int.eq"; // CHECK:STDOUT: %.loc8_13.3: type = block_arg !if.expr.result.loc8 [template = constants.%True] // CHECK:STDOUT: %false_.ref: %False = name_ref false_, %false_ // CHECK:STDOUT: %Eq.ref.loc9: %Eq.type = name_ref Eq, file.%Eq.decl [template = constants.%Eq] -// CHECK:STDOUT: %.loc9_20: i32 = int_literal 1 [template = constants.%.5] -// CHECK:STDOUT: %.loc9_23: i32 = int_literal 2 [template = constants.%.7] +// CHECK:STDOUT: %.loc9_20: i32 = int_value 1 [template = constants.%.5] +// CHECK:STDOUT: %.loc9_23: i32 = int_value 2 [template = constants.%.7] // CHECK:STDOUT: %int.eq.loc9: init bool = call %Eq.ref.loc9(%.loc9_20, %.loc9_23) [template = constants.%.8] // CHECK:STDOUT: %.loc9_14.1: bool = value_of_initializer %int.eq.loc9 [template = constants.%.8] // CHECK:STDOUT: %.loc9_14.2: bool = converted %int.eq.loc9, %.loc9_14.1 [template = constants.%.8] diff --git a/toolchain/check/testdata/builtins/int/greater.carbon b/toolchain/check/testdata/builtins/int/greater.carbon index f142946b76145..9fa86a6dc7bbe 100644 --- a/toolchain/check/testdata/builtins/int/greater.carbon +++ b/toolchain/check/testdata/builtins/int/greater.carbon @@ -47,12 +47,12 @@ fn RuntimeCall(a: i32, b: i32) -> bool { // CHECK:STDOUT: %F.type: type = fn_type @F [template] // CHECK:STDOUT: %F: %F.type = struct_value () [template] // CHECK:STDOUT: %.4: type = ptr_type %.2 [template] -// CHECK:STDOUT: %.5: i32 = int_literal 1 [template] -// CHECK:STDOUT: %.6: i32 = int_literal 2 [template] +// CHECK:STDOUT: %.5: i32 = int_value 1 [template] +// CHECK:STDOUT: %.6: i32 = int_value 2 [template] // CHECK:STDOUT: %.7: bool = bool_literal false [template] -// CHECK:STDOUT: %.8: i32 = int_literal 0 [template] +// CHECK:STDOUT: %.8: i32 = int_value 0 [template] // CHECK:STDOUT: %.9: bool = bool_literal true [template] -// CHECK:STDOUT: %.10: i32 = int_literal -1 [template] +// CHECK:STDOUT: %.10: i32 = int_value -1 [template] // CHECK:STDOUT: %RuntimeCall.type: type = fn_type @RuntimeCall [template] // CHECK:STDOUT: %RuntimeCall: %RuntimeCall.type = struct_value () [template] // CHECK:STDOUT: } @@ -187,8 +187,8 @@ fn RuntimeCall(a: i32, b: i32) -> bool { // CHECK:STDOUT: !entry: // CHECK:STDOUT: %false_.ref.loc9: %False = name_ref false_, %false_ // CHECK:STDOUT: %Greater.ref.loc9: %Greater.type = name_ref Greater, file.%Greater.decl [template = constants.%Greater] -// CHECK:STDOUT: %.loc9_25: i32 = int_literal 1 [template = constants.%.5] -// CHECK:STDOUT: %.loc9_28: i32 = int_literal 2 [template = constants.%.6] +// CHECK:STDOUT: %.loc9_25: i32 = int_value 1 [template = constants.%.5] +// CHECK:STDOUT: %.loc9_28: i32 = int_value 2 [template = constants.%.6] // CHECK:STDOUT: %int.greater.loc9: init bool = call %Greater.ref.loc9(%.loc9_25, %.loc9_28) [template = constants.%.7] // CHECK:STDOUT: %.loc9_14.1: bool = value_of_initializer %int.greater.loc9 [template = constants.%.7] // CHECK:STDOUT: %.loc9_14.2: bool = converted %int.greater.loc9, %.loc9_14.1 [template = constants.%.7] @@ -206,8 +206,8 @@ fn RuntimeCall(a: i32, b: i32) -> bool { // CHECK:STDOUT: %.loc9_14.3: type = block_arg !if.expr.result.loc9 [template = constants.%False] // CHECK:STDOUT: %false_.ref.loc10: %False = name_ref false_, %false_ // CHECK:STDOUT: %Greater.ref.loc10: %Greater.type = name_ref Greater, file.%Greater.decl [template = constants.%Greater] -// CHECK:STDOUT: %.loc10_25: i32 = int_literal 1 [template = constants.%.5] -// CHECK:STDOUT: %.loc10_28: i32 = int_literal 1 [template = constants.%.5] +// CHECK:STDOUT: %.loc10_25: i32 = int_value 1 [template = constants.%.5] +// CHECK:STDOUT: %.loc10_28: i32 = int_value 1 [template = constants.%.5] // CHECK:STDOUT: %int.greater.loc10: init bool = call %Greater.ref.loc10(%.loc10_25, %.loc10_28) [template = constants.%.7] // CHECK:STDOUT: %.loc10_14.1: bool = value_of_initializer %int.greater.loc10 [template = constants.%.7] // CHECK:STDOUT: %.loc10_14.2: bool = converted %int.greater.loc10, %.loc10_14.1 [template = constants.%.7] @@ -225,8 +225,8 @@ fn RuntimeCall(a: i32, b: i32) -> bool { // CHECK:STDOUT: %.loc10_14.3: type = block_arg !if.expr.result.loc10 [template = constants.%False] // CHECK:STDOUT: %true_.ref.loc11: %True = name_ref true_, %true_ // CHECK:STDOUT: %Greater.ref.loc11: %Greater.type = name_ref Greater, file.%Greater.decl [template = constants.%Greater] -// CHECK:STDOUT: %.loc11_24: i32 = int_literal 1 [template = constants.%.5] -// CHECK:STDOUT: %.loc11_27: i32 = int_literal 0 [template = constants.%.8] +// CHECK:STDOUT: %.loc11_24: i32 = int_value 1 [template = constants.%.5] +// CHECK:STDOUT: %.loc11_27: i32 = int_value 0 [template = constants.%.8] // CHECK:STDOUT: %int.greater.loc11: init bool = call %Greater.ref.loc11(%.loc11_24, %.loc11_27) [template = constants.%.9] // CHECK:STDOUT: %.loc11_13.1: bool = value_of_initializer %int.greater.loc11 [template = constants.%.9] // CHECK:STDOUT: %.loc11_13.2: bool = converted %int.greater.loc11, %.loc11_13.1 [template = constants.%.9] @@ -245,9 +245,9 @@ fn RuntimeCall(a: i32, b: i32) -> bool { // CHECK:STDOUT: %false_.ref.loc12: %False = name_ref false_, %false_ // CHECK:STDOUT: %Greater.ref.loc12: %Greater.type = name_ref Greater, file.%Greater.decl [template = constants.%Greater] // CHECK:STDOUT: %Negate.ref.loc12: %Negate.type = name_ref Negate, file.%Negate.decl [template = constants.%Negate] -// CHECK:STDOUT: %.loc12_32: i32 = int_literal 1 [template = constants.%.5] +// CHECK:STDOUT: %.loc12_32: i32 = int_value 1 [template = constants.%.5] // CHECK:STDOUT: %int.snegate.loc12: init i32 = call %Negate.ref.loc12(%.loc12_32) [template = constants.%.10] -// CHECK:STDOUT: %.loc12_36: i32 = int_literal 0 [template = constants.%.8] +// CHECK:STDOUT: %.loc12_36: i32 = int_value 0 [template = constants.%.8] // CHECK:STDOUT: %.loc12_31.1: i32 = value_of_initializer %int.snegate.loc12 [template = constants.%.10] // CHECK:STDOUT: %.loc12_31.2: i32 = converted %int.snegate.loc12, %.loc12_31.1 [template = constants.%.10] // CHECK:STDOUT: %int.greater.loc12: init bool = call %Greater.ref.loc12(%.loc12_31.2, %.loc12_36) [template = constants.%.7] @@ -267,9 +267,9 @@ fn RuntimeCall(a: i32, b: i32) -> bool { // CHECK:STDOUT: %.loc12_14.3: type = block_arg !if.expr.result.loc12 [template = constants.%False] // CHECK:STDOUT: %true_.ref.loc13: %True = name_ref true_, %true_ // CHECK:STDOUT: %Greater.ref.loc13: %Greater.type = name_ref Greater, file.%Greater.decl [template = constants.%Greater] -// CHECK:STDOUT: %.loc13_24: i32 = int_literal 0 [template = constants.%.8] +// CHECK:STDOUT: %.loc13_24: i32 = int_value 0 [template = constants.%.8] // CHECK:STDOUT: %Negate.ref.loc13: %Negate.type = name_ref Negate, file.%Negate.decl [template = constants.%Negate] -// CHECK:STDOUT: %.loc13_34: i32 = int_literal 1 [template = constants.%.5] +// CHECK:STDOUT: %.loc13_34: i32 = int_value 1 [template = constants.%.5] // CHECK:STDOUT: %int.snegate.loc13: init i32 = call %Negate.ref.loc13(%.loc13_34) [template = constants.%.10] // CHECK:STDOUT: %.loc13_33.1: i32 = value_of_initializer %int.snegate.loc13 [template = constants.%.10] // CHECK:STDOUT: %.loc13_33.2: i32 = converted %int.snegate.loc13, %.loc13_33.1 [template = constants.%.10] diff --git a/toolchain/check/testdata/builtins/int/greater_eq.carbon b/toolchain/check/testdata/builtins/int/greater_eq.carbon index 36ea5b64733ff..bc91c01525d59 100644 --- a/toolchain/check/testdata/builtins/int/greater_eq.carbon +++ b/toolchain/check/testdata/builtins/int/greater_eq.carbon @@ -47,12 +47,12 @@ fn RuntimeCall(a: i32, b: i32) -> bool { // CHECK:STDOUT: %F.type: type = fn_type @F [template] // CHECK:STDOUT: %F: %F.type = struct_value () [template] // CHECK:STDOUT: %.4: type = ptr_type %.2 [template] -// CHECK:STDOUT: %.5: i32 = int_literal 1 [template] -// CHECK:STDOUT: %.6: i32 = int_literal 2 [template] +// CHECK:STDOUT: %.5: i32 = int_value 1 [template] +// CHECK:STDOUT: %.6: i32 = int_value 2 [template] // CHECK:STDOUT: %.7: bool = bool_literal false [template] // CHECK:STDOUT: %.8: bool = bool_literal true [template] -// CHECK:STDOUT: %.9: i32 = int_literal 0 [template] -// CHECK:STDOUT: %.10: i32 = int_literal -1 [template] +// CHECK:STDOUT: %.9: i32 = int_value 0 [template] +// CHECK:STDOUT: %.10: i32 = int_value -1 [template] // CHECK:STDOUT: %RuntimeCall.type: type = fn_type @RuntimeCall [template] // CHECK:STDOUT: %RuntimeCall: %RuntimeCall.type = struct_value () [template] // CHECK:STDOUT: } @@ -187,8 +187,8 @@ fn RuntimeCall(a: i32, b: i32) -> bool { // CHECK:STDOUT: !entry: // CHECK:STDOUT: %false_.ref.loc9: %False = name_ref false_, %false_ // CHECK:STDOUT: %GreaterEq.ref.loc9: %GreaterEq.type = name_ref GreaterEq, file.%GreaterEq.decl [template = constants.%GreaterEq] -// CHECK:STDOUT: %.loc9_27: i32 = int_literal 1 [template = constants.%.5] -// CHECK:STDOUT: %.loc9_30: i32 = int_literal 2 [template = constants.%.6] +// CHECK:STDOUT: %.loc9_27: i32 = int_value 1 [template = constants.%.5] +// CHECK:STDOUT: %.loc9_30: i32 = int_value 2 [template = constants.%.6] // CHECK:STDOUT: %int.greater_eq.loc9: init bool = call %GreaterEq.ref.loc9(%.loc9_27, %.loc9_30) [template = constants.%.7] // CHECK:STDOUT: %.loc9_14.1: bool = value_of_initializer %int.greater_eq.loc9 [template = constants.%.7] // CHECK:STDOUT: %.loc9_14.2: bool = converted %int.greater_eq.loc9, %.loc9_14.1 [template = constants.%.7] @@ -206,8 +206,8 @@ fn RuntimeCall(a: i32, b: i32) -> bool { // CHECK:STDOUT: %.loc9_14.3: type = block_arg !if.expr.result.loc9 [template = constants.%False] // CHECK:STDOUT: %true_.ref.loc10: %True = name_ref true_, %true_ // CHECK:STDOUT: %GreaterEq.ref.loc10: %GreaterEq.type = name_ref GreaterEq, file.%GreaterEq.decl [template = constants.%GreaterEq] -// CHECK:STDOUT: %.loc10_26: i32 = int_literal 1 [template = constants.%.5] -// CHECK:STDOUT: %.loc10_29: i32 = int_literal 1 [template = constants.%.5] +// CHECK:STDOUT: %.loc10_26: i32 = int_value 1 [template = constants.%.5] +// CHECK:STDOUT: %.loc10_29: i32 = int_value 1 [template = constants.%.5] // CHECK:STDOUT: %int.greater_eq.loc10: init bool = call %GreaterEq.ref.loc10(%.loc10_26, %.loc10_29) [template = constants.%.8] // CHECK:STDOUT: %.loc10_13.1: bool = value_of_initializer %int.greater_eq.loc10 [template = constants.%.8] // CHECK:STDOUT: %.loc10_13.2: bool = converted %int.greater_eq.loc10, %.loc10_13.1 [template = constants.%.8] @@ -225,8 +225,8 @@ fn RuntimeCall(a: i32, b: i32) -> bool { // CHECK:STDOUT: %.loc10_13.3: type = block_arg !if.expr.result.loc10 [template = constants.%True] // CHECK:STDOUT: %true_.ref.loc11: %True = name_ref true_, %true_ // CHECK:STDOUT: %GreaterEq.ref.loc11: %GreaterEq.type = name_ref GreaterEq, file.%GreaterEq.decl [template = constants.%GreaterEq] -// CHECK:STDOUT: %.loc11_26: i32 = int_literal 1 [template = constants.%.5] -// CHECK:STDOUT: %.loc11_29: i32 = int_literal 0 [template = constants.%.9] +// CHECK:STDOUT: %.loc11_26: i32 = int_value 1 [template = constants.%.5] +// CHECK:STDOUT: %.loc11_29: i32 = int_value 0 [template = constants.%.9] // CHECK:STDOUT: %int.greater_eq.loc11: init bool = call %GreaterEq.ref.loc11(%.loc11_26, %.loc11_29) [template = constants.%.8] // CHECK:STDOUT: %.loc11_13.1: bool = value_of_initializer %int.greater_eq.loc11 [template = constants.%.8] // CHECK:STDOUT: %.loc11_13.2: bool = converted %int.greater_eq.loc11, %.loc11_13.1 [template = constants.%.8] @@ -245,9 +245,9 @@ fn RuntimeCall(a: i32, b: i32) -> bool { // CHECK:STDOUT: %false_.ref.loc12: %False = name_ref false_, %false_ // CHECK:STDOUT: %GreaterEq.ref.loc12: %GreaterEq.type = name_ref GreaterEq, file.%GreaterEq.decl [template = constants.%GreaterEq] // CHECK:STDOUT: %Negate.ref.loc12: %Negate.type = name_ref Negate, file.%Negate.decl [template = constants.%Negate] -// CHECK:STDOUT: %.loc12_34: i32 = int_literal 1 [template = constants.%.5] +// CHECK:STDOUT: %.loc12_34: i32 = int_value 1 [template = constants.%.5] // CHECK:STDOUT: %int.snegate.loc12: init i32 = call %Negate.ref.loc12(%.loc12_34) [template = constants.%.10] -// CHECK:STDOUT: %.loc12_38: i32 = int_literal 0 [template = constants.%.9] +// CHECK:STDOUT: %.loc12_38: i32 = int_value 0 [template = constants.%.9] // CHECK:STDOUT: %.loc12_33.1: i32 = value_of_initializer %int.snegate.loc12 [template = constants.%.10] // CHECK:STDOUT: %.loc12_33.2: i32 = converted %int.snegate.loc12, %.loc12_33.1 [template = constants.%.10] // CHECK:STDOUT: %int.greater_eq.loc12: init bool = call %GreaterEq.ref.loc12(%.loc12_33.2, %.loc12_38) [template = constants.%.7] @@ -267,9 +267,9 @@ fn RuntimeCall(a: i32, b: i32) -> bool { // CHECK:STDOUT: %.loc12_14.3: type = block_arg !if.expr.result.loc12 [template = constants.%False] // CHECK:STDOUT: %true_.ref.loc13: %True = name_ref true_, %true_ // CHECK:STDOUT: %GreaterEq.ref.loc13: %GreaterEq.type = name_ref GreaterEq, file.%GreaterEq.decl [template = constants.%GreaterEq] -// CHECK:STDOUT: %.loc13_26: i32 = int_literal 0 [template = constants.%.9] +// CHECK:STDOUT: %.loc13_26: i32 = int_value 0 [template = constants.%.9] // CHECK:STDOUT: %Negate.ref.loc13: %Negate.type = name_ref Negate, file.%Negate.decl [template = constants.%Negate] -// CHECK:STDOUT: %.loc13_36: i32 = int_literal 1 [template = constants.%.5] +// CHECK:STDOUT: %.loc13_36: i32 = int_value 1 [template = constants.%.5] // CHECK:STDOUT: %int.snegate.loc13: init i32 = call %Negate.ref.loc13(%.loc13_36) [template = constants.%.10] // CHECK:STDOUT: %.loc13_35.1: i32 = value_of_initializer %int.snegate.loc13 [template = constants.%.10] // CHECK:STDOUT: %.loc13_35.2: i32 = converted %int.snegate.loc13, %.loc13_35.1 [template = constants.%.10] diff --git a/toolchain/check/testdata/builtins/int/left_shift.carbon b/toolchain/check/testdata/builtins/int/left_shift.carbon index 9da60f0c38b06..18000dc5e669a 100644 --- a/toolchain/check/testdata/builtins/int/left_shift.carbon +++ b/toolchain/check/testdata/builtins/int/left_shift.carbon @@ -71,9 +71,9 @@ let negative: i32 = LeftShift(1, Negate(1)); // CHECK:STDOUT: %Int32: %Int32.type = struct_value () [template] // CHECK:STDOUT: %LeftShift.type: type = fn_type @LeftShift [template] // CHECK:STDOUT: %LeftShift: %LeftShift.type = struct_value () [template] -// CHECK:STDOUT: %.2: i32 = int_literal 5 [template] -// CHECK:STDOUT: %.3: i32 = int_literal 2 [template] -// CHECK:STDOUT: %.4: i32 = int_literal 20 [template] +// CHECK:STDOUT: %.2: i32 = int_value 5 [template] +// CHECK:STDOUT: %.3: i32 = int_value 2 [template] +// CHECK:STDOUT: %.4: i32 = int_value 20 [template] // CHECK:STDOUT: %.5: type = array_type %.4, i32 [template] // CHECK:STDOUT: %.6: type = ptr_type %.5 [template] // CHECK:STDOUT: %RuntimeCall.type: type = fn_type @RuntimeCall [template] @@ -124,8 +124,8 @@ let negative: i32 = LeftShift(1, Negate(1)); // CHECK:STDOUT: } // CHECK:STDOUT: %int.make_type_32.loc4: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %LeftShift.ref: %LeftShift.type = name_ref LeftShift, %LeftShift.decl [template = constants.%LeftShift] -// CHECK:STDOUT: %.loc4_26: i32 = int_literal 5 [template = constants.%.2] -// CHECK:STDOUT: %.loc4_29: i32 = int_literal 2 [template = constants.%.3] +// CHECK:STDOUT: %.loc4_26: i32 = int_value 5 [template = constants.%.2] +// CHECK:STDOUT: %.loc4_29: i32 = int_value 2 [template = constants.%.3] // CHECK:STDOUT: %int.left_shift: init i32 = call %LeftShift.ref(%.loc4_26, %.loc4_29) [template = constants.%.4] // CHECK:STDOUT: %.loc4_11.1: type = value_of_initializer %int.make_type_32.loc4 [template = i32] // CHECK:STDOUT: %.loc4_11.2: type = converted %int.make_type_32.loc4, %.loc4_11.1 [template = i32] @@ -133,7 +133,7 @@ let negative: i32 = LeftShift(1, Negate(1)); // CHECK:STDOUT: %arr.var: ref %.5 = var arr // CHECK:STDOUT: %arr: ref %.5 = bind_name arr, %arr.var // CHECK:STDOUT: %int.make_type_32.loc5: init type = call constants.%Int32() [template = i32] -// CHECK:STDOUT: %.loc5_18: i32 = int_literal 20 [template = constants.%.4] +// CHECK:STDOUT: %.loc5_18: i32 = int_value 20 [template = constants.%.4] // CHECK:STDOUT: %.loc5_13.1: type = value_of_initializer %int.make_type_32.loc5 [template = i32] // CHECK:STDOUT: %.loc5_13.2: type = converted %int.make_type_32.loc5, %.loc5_13.1 [template = i32] // CHECK:STDOUT: %.loc5_20: type = array_type %.loc5_18, i32 [template = constants.%.5] @@ -197,14 +197,14 @@ let negative: i32 = LeftShift(1, Negate(1)); // CHECK:STDOUT: %LeftShift: %LeftShift.type = struct_value () [template] // CHECK:STDOUT: %Negate.type: type = fn_type @Negate [template] // CHECK:STDOUT: %Negate: %Negate.type = struct_value () [template] -// CHECK:STDOUT: %.2: i32 = int_literal 1 [template] -// CHECK:STDOUT: %.3: i32 = int_literal 31 [template] -// CHECK:STDOUT: %.4: i32 = int_literal -2147483648 [template] -// CHECK:STDOUT: %.5: i32 = int_literal 32 [template] -// CHECK:STDOUT: %.6: i32 = int_literal 33 [template] -// CHECK:STDOUT: %.7: i32 = int_literal 1000 [template] -// CHECK:STDOUT: %.8: i32 = int_literal 0 [template] -// CHECK:STDOUT: %.9: i32 = int_literal -1 [template] +// CHECK:STDOUT: %.2: i32 = int_value 1 [template] +// CHECK:STDOUT: %.3: i32 = int_value 31 [template] +// CHECK:STDOUT: %.4: i32 = int_value -2147483648 [template] +// CHECK:STDOUT: %.5: i32 = int_value 32 [template] +// CHECK:STDOUT: %.6: i32 = int_value 33 [template] +// CHECK:STDOUT: %.7: i32 = int_value 1000 [template] +// CHECK:STDOUT: %.8: i32 = int_value 0 [template] +// CHECK:STDOUT: %.9: i32 = int_value -1 [template] // CHECK:STDOUT: } // CHECK:STDOUT: // CHECK:STDOUT: imports { @@ -307,58 +307,58 @@ let negative: i32 = LeftShift(1, Negate(1)); // CHECK:STDOUT: fn @__global_init() { // CHECK:STDOUT: !entry: // CHECK:STDOUT: %LeftShift.ref.loc8: %LeftShift.type = name_ref LeftShift, file.%LeftShift.decl [template = constants.%LeftShift] -// CHECK:STDOUT: %.loc8_29: i32 = int_literal 1 [template = constants.%.2] -// CHECK:STDOUT: %.loc8_32: i32 = int_literal 31 [template = constants.%.3] +// CHECK:STDOUT: %.loc8_29: i32 = int_value 1 [template = constants.%.2] +// CHECK:STDOUT: %.loc8_32: i32 = int_value 31 [template = constants.%.3] // CHECK:STDOUT: %int.left_shift.loc8: init i32 = call %LeftShift.ref.loc8(%.loc8_29, %.loc8_32) [template = constants.%.4] // CHECK:STDOUT: %.loc8_35.1: i32 = value_of_initializer %int.left_shift.loc8 [template = constants.%.4] // CHECK:STDOUT: %.loc8_35.2: i32 = converted %int.left_shift.loc8, %.loc8_35.1 [template = constants.%.4] // CHECK:STDOUT: %size_1: i32 = bind_name size_1, %.loc8_35.2 // CHECK:STDOUT: %LeftShift.ref.loc13: %LeftShift.type = name_ref LeftShift, file.%LeftShift.decl [template = constants.%LeftShift] -// CHECK:STDOUT: %.loc13_29: i32 = int_literal 1 [template = constants.%.2] -// CHECK:STDOUT: %.loc13_32: i32 = int_literal 32 [template = constants.%.5] +// CHECK:STDOUT: %.loc13_29: i32 = int_value 1 [template = constants.%.2] +// CHECK:STDOUT: %.loc13_32: i32 = int_value 32 [template = constants.%.5] // CHECK:STDOUT: %int.left_shift.loc13: init i32 = call %LeftShift.ref.loc13(%.loc13_29, %.loc13_32) [template = ] // CHECK:STDOUT: %.loc13_35.1: i32 = value_of_initializer %int.left_shift.loc13 [template = ] // CHECK:STDOUT: %.loc13_35.2: i32 = converted %int.left_shift.loc13, %.loc13_35.1 [template = ] // CHECK:STDOUT: %size_2: i32 = bind_name size_2, %.loc13_35.2 // CHECK:STDOUT: %LeftShift.ref.loc18: %LeftShift.type = name_ref LeftShift, file.%LeftShift.decl [template = constants.%LeftShift] -// CHECK:STDOUT: %.loc18_29: i32 = int_literal 1 [template = constants.%.2] -// CHECK:STDOUT: %.loc18_32: i32 = int_literal 33 [template = constants.%.6] +// CHECK:STDOUT: %.loc18_29: i32 = int_value 1 [template = constants.%.2] +// CHECK:STDOUT: %.loc18_32: i32 = int_value 33 [template = constants.%.6] // CHECK:STDOUT: %int.left_shift.loc18: init i32 = call %LeftShift.ref.loc18(%.loc18_29, %.loc18_32) [template = ] // CHECK:STDOUT: %.loc18_35.1: i32 = value_of_initializer %int.left_shift.loc18 [template = ] // CHECK:STDOUT: %.loc18_35.2: i32 = converted %int.left_shift.loc18, %.loc18_35.1 [template = ] // CHECK:STDOUT: %size_3: i32 = bind_name size_3, %.loc18_35.2 // CHECK:STDOUT: %LeftShift.ref.loc21: %LeftShift.type = name_ref LeftShift, file.%LeftShift.decl [template = constants.%LeftShift] -// CHECK:STDOUT: %.loc21_33: i32 = int_literal 1000 [template = constants.%.7] -// CHECK:STDOUT: %.loc21_39: i32 = int_literal 31 [template = constants.%.3] +// CHECK:STDOUT: %.loc21_33: i32 = int_value 1000 [template = constants.%.7] +// CHECK:STDOUT: %.loc21_39: i32 = int_value 31 [template = constants.%.3] // CHECK:STDOUT: %int.left_shift.loc21: init i32 = call %LeftShift.ref.loc21(%.loc21_33, %.loc21_39) [template = constants.%.8] // CHECK:STDOUT: %.loc21_42.1: i32 = value_of_initializer %int.left_shift.loc21 [template = constants.%.8] // CHECK:STDOUT: %.loc21_42.2: i32 = converted %int.left_shift.loc21, %.loc21_42.1 [template = constants.%.8] // CHECK:STDOUT: %overflow_1: i32 = bind_name overflow_1, %.loc21_42.2 // CHECK:STDOUT: %LeftShift.ref.loc26: %LeftShift.type = name_ref LeftShift, file.%LeftShift.decl [template = constants.%LeftShift] -// CHECK:STDOUT: %.loc26_33: i32 = int_literal 1000 [template = constants.%.7] -// CHECK:STDOUT: %.loc26_39: i32 = int_literal 32 [template = constants.%.5] +// CHECK:STDOUT: %.loc26_33: i32 = int_value 1000 [template = constants.%.7] +// CHECK:STDOUT: %.loc26_39: i32 = int_value 32 [template = constants.%.5] // CHECK:STDOUT: %int.left_shift.loc26: init i32 = call %LeftShift.ref.loc26(%.loc26_33, %.loc26_39) [template = ] // CHECK:STDOUT: %.loc26_42.1: i32 = value_of_initializer %int.left_shift.loc26 [template = ] // CHECK:STDOUT: %.loc26_42.2: i32 = converted %int.left_shift.loc26, %.loc26_42.1 [template = ] // CHECK:STDOUT: %overflow_2: i32 = bind_name overflow_2, %.loc26_42.2 // CHECK:STDOUT: %LeftShift.ref.loc29: %LeftShift.type = name_ref LeftShift, file.%LeftShift.decl [template = constants.%LeftShift] -// CHECK:STDOUT: %.loc29_36: i32 = int_literal 0 [template = constants.%.8] -// CHECK:STDOUT: %.loc29_39: i32 = int_literal 31 [template = constants.%.3] +// CHECK:STDOUT: %.loc29_36: i32 = int_value 0 [template = constants.%.8] +// CHECK:STDOUT: %.loc29_39: i32 = int_value 31 [template = constants.%.3] // CHECK:STDOUT: %int.left_shift.loc29: init i32 = call %LeftShift.ref.loc29(%.loc29_36, %.loc29_39) [template = constants.%.8] // CHECK:STDOUT: %.loc29_42.1: i32 = value_of_initializer %int.left_shift.loc29 [template = constants.%.8] // CHECK:STDOUT: %.loc29_42.2: i32 = converted %int.left_shift.loc29, %.loc29_42.1 [template = constants.%.8] // CHECK:STDOUT: %no_overflow_1: i32 = bind_name no_overflow_1, %.loc29_42.2 // CHECK:STDOUT: %LeftShift.ref.loc34: %LeftShift.type = name_ref LeftShift, file.%LeftShift.decl [template = constants.%LeftShift] -// CHECK:STDOUT: %.loc34_36: i32 = int_literal 0 [template = constants.%.8] -// CHECK:STDOUT: %.loc34_39: i32 = int_literal 32 [template = constants.%.5] +// CHECK:STDOUT: %.loc34_36: i32 = int_value 0 [template = constants.%.8] +// CHECK:STDOUT: %.loc34_39: i32 = int_value 32 [template = constants.%.5] // CHECK:STDOUT: %int.left_shift.loc34: init i32 = call %LeftShift.ref.loc34(%.loc34_36, %.loc34_39) [template = ] // CHECK:STDOUT: %.loc34_42.1: i32 = value_of_initializer %int.left_shift.loc34 [template = ] // CHECK:STDOUT: %.loc34_42.2: i32 = converted %int.left_shift.loc34, %.loc34_42.1 [template = ] // CHECK:STDOUT: %no_overflow_2: i32 = bind_name no_overflow_2, %.loc34_42.2 // CHECK:STDOUT: %LeftShift.ref.loc40: %LeftShift.type = name_ref LeftShift, file.%LeftShift.decl [template = constants.%LeftShift] -// CHECK:STDOUT: %.loc40_31: i32 = int_literal 1 [template = constants.%.2] +// CHECK:STDOUT: %.loc40_31: i32 = int_value 1 [template = constants.%.2] // CHECK:STDOUT: %Negate.ref: %Negate.type = name_ref Negate, file.%Negate.decl [template = constants.%Negate] -// CHECK:STDOUT: %.loc40_41: i32 = int_literal 1 [template = constants.%.2] +// CHECK:STDOUT: %.loc40_41: i32 = int_value 1 [template = constants.%.2] // CHECK:STDOUT: %int.snegate: init i32 = call %Negate.ref(%.loc40_41) [template = constants.%.9] // CHECK:STDOUT: %.loc40_40.1: i32 = value_of_initializer %int.snegate [template = constants.%.9] // CHECK:STDOUT: %.loc40_40.2: i32 = converted %int.snegate, %.loc40_40.1 [template = constants.%.9] diff --git a/toolchain/check/testdata/builtins/int/less.carbon b/toolchain/check/testdata/builtins/int/less.carbon index 6fa13b603a55e..b506057503190 100644 --- a/toolchain/check/testdata/builtins/int/less.carbon +++ b/toolchain/check/testdata/builtins/int/less.carbon @@ -47,12 +47,12 @@ fn RuntimeCall(a: i32, b: i32) -> bool { // CHECK:STDOUT: %F.type: type = fn_type @F [template] // CHECK:STDOUT: %F: %F.type = struct_value () [template] // CHECK:STDOUT: %.4: type = ptr_type %.2 [template] -// CHECK:STDOUT: %.5: i32 = int_literal 1 [template] -// CHECK:STDOUT: %.6: i32 = int_literal 2 [template] +// CHECK:STDOUT: %.5: i32 = int_value 1 [template] +// CHECK:STDOUT: %.6: i32 = int_value 2 [template] // CHECK:STDOUT: %.7: bool = bool_literal true [template] // CHECK:STDOUT: %.8: bool = bool_literal false [template] -// CHECK:STDOUT: %.9: i32 = int_literal 0 [template] -// CHECK:STDOUT: %.10: i32 = int_literal -1 [template] +// CHECK:STDOUT: %.9: i32 = int_value 0 [template] +// CHECK:STDOUT: %.10: i32 = int_value -1 [template] // CHECK:STDOUT: %RuntimeCall.type: type = fn_type @RuntimeCall [template] // CHECK:STDOUT: %RuntimeCall: %RuntimeCall.type = struct_value () [template] // CHECK:STDOUT: } @@ -187,8 +187,8 @@ fn RuntimeCall(a: i32, b: i32) -> bool { // CHECK:STDOUT: !entry: // CHECK:STDOUT: %true_.ref.loc9: %True = name_ref true_, %true_ // CHECK:STDOUT: %Less.ref.loc9: %Less.type = name_ref Less, file.%Less.decl [template = constants.%Less] -// CHECK:STDOUT: %.loc9_21: i32 = int_literal 1 [template = constants.%.5] -// CHECK:STDOUT: %.loc9_24: i32 = int_literal 2 [template = constants.%.6] +// CHECK:STDOUT: %.loc9_21: i32 = int_value 1 [template = constants.%.5] +// CHECK:STDOUT: %.loc9_24: i32 = int_value 2 [template = constants.%.6] // CHECK:STDOUT: %int.less.loc9: init bool = call %Less.ref.loc9(%.loc9_21, %.loc9_24) [template = constants.%.7] // CHECK:STDOUT: %.loc9_13.1: bool = value_of_initializer %int.less.loc9 [template = constants.%.7] // CHECK:STDOUT: %.loc9_13.2: bool = converted %int.less.loc9, %.loc9_13.1 [template = constants.%.7] @@ -206,8 +206,8 @@ fn RuntimeCall(a: i32, b: i32) -> bool { // CHECK:STDOUT: %.loc9_13.3: type = block_arg !if.expr.result.loc9 [template = constants.%True] // CHECK:STDOUT: %false_.ref.loc10: %False = name_ref false_, %false_ // CHECK:STDOUT: %Less.ref.loc10: %Less.type = name_ref Less, file.%Less.decl [template = constants.%Less] -// CHECK:STDOUT: %.loc10_22: i32 = int_literal 1 [template = constants.%.5] -// CHECK:STDOUT: %.loc10_25: i32 = int_literal 1 [template = constants.%.5] +// CHECK:STDOUT: %.loc10_22: i32 = int_value 1 [template = constants.%.5] +// CHECK:STDOUT: %.loc10_25: i32 = int_value 1 [template = constants.%.5] // CHECK:STDOUT: %int.less.loc10: init bool = call %Less.ref.loc10(%.loc10_22, %.loc10_25) [template = constants.%.8] // CHECK:STDOUT: %.loc10_14.1: bool = value_of_initializer %int.less.loc10 [template = constants.%.8] // CHECK:STDOUT: %.loc10_14.2: bool = converted %int.less.loc10, %.loc10_14.1 [template = constants.%.8] @@ -225,8 +225,8 @@ fn RuntimeCall(a: i32, b: i32) -> bool { // CHECK:STDOUT: %.loc10_14.3: type = block_arg !if.expr.result.loc10 [template = constants.%False] // CHECK:STDOUT: %false_.ref.loc11: %False = name_ref false_, %false_ // CHECK:STDOUT: %Less.ref.loc11: %Less.type = name_ref Less, file.%Less.decl [template = constants.%Less] -// CHECK:STDOUT: %.loc11_22: i32 = int_literal 1 [template = constants.%.5] -// CHECK:STDOUT: %.loc11_25: i32 = int_literal 0 [template = constants.%.9] +// CHECK:STDOUT: %.loc11_22: i32 = int_value 1 [template = constants.%.5] +// CHECK:STDOUT: %.loc11_25: i32 = int_value 0 [template = constants.%.9] // CHECK:STDOUT: %int.less.loc11: init bool = call %Less.ref.loc11(%.loc11_22, %.loc11_25) [template = constants.%.8] // CHECK:STDOUT: %.loc11_14.1: bool = value_of_initializer %int.less.loc11 [template = constants.%.8] // CHECK:STDOUT: %.loc11_14.2: bool = converted %int.less.loc11, %.loc11_14.1 [template = constants.%.8] @@ -245,9 +245,9 @@ fn RuntimeCall(a: i32, b: i32) -> bool { // CHECK:STDOUT: %true_.ref.loc12: %True = name_ref true_, %true_ // CHECK:STDOUT: %Less.ref.loc12: %Less.type = name_ref Less, file.%Less.decl [template = constants.%Less] // CHECK:STDOUT: %Negate.ref.loc12: %Negate.type = name_ref Negate, file.%Negate.decl [template = constants.%Negate] -// CHECK:STDOUT: %.loc12_28: i32 = int_literal 1 [template = constants.%.5] +// CHECK:STDOUT: %.loc12_28: i32 = int_value 1 [template = constants.%.5] // CHECK:STDOUT: %int.snegate.loc12: init i32 = call %Negate.ref.loc12(%.loc12_28) [template = constants.%.10] -// CHECK:STDOUT: %.loc12_32: i32 = int_literal 0 [template = constants.%.9] +// CHECK:STDOUT: %.loc12_32: i32 = int_value 0 [template = constants.%.9] // CHECK:STDOUT: %.loc12_27.1: i32 = value_of_initializer %int.snegate.loc12 [template = constants.%.10] // CHECK:STDOUT: %.loc12_27.2: i32 = converted %int.snegate.loc12, %.loc12_27.1 [template = constants.%.10] // CHECK:STDOUT: %int.less.loc12: init bool = call %Less.ref.loc12(%.loc12_27.2, %.loc12_32) [template = constants.%.7] @@ -267,9 +267,9 @@ fn RuntimeCall(a: i32, b: i32) -> bool { // CHECK:STDOUT: %.loc12_13.3: type = block_arg !if.expr.result.loc12 [template = constants.%True] // CHECK:STDOUT: %false_.ref.loc13: %False = name_ref false_, %false_ // CHECK:STDOUT: %Less.ref.loc13: %Less.type = name_ref Less, file.%Less.decl [template = constants.%Less] -// CHECK:STDOUT: %.loc13_22: i32 = int_literal 0 [template = constants.%.9] +// CHECK:STDOUT: %.loc13_22: i32 = int_value 0 [template = constants.%.9] // CHECK:STDOUT: %Negate.ref.loc13: %Negate.type = name_ref Negate, file.%Negate.decl [template = constants.%Negate] -// CHECK:STDOUT: %.loc13_32: i32 = int_literal 1 [template = constants.%.5] +// CHECK:STDOUT: %.loc13_32: i32 = int_value 1 [template = constants.%.5] // CHECK:STDOUT: %int.snegate.loc13: init i32 = call %Negate.ref.loc13(%.loc13_32) [template = constants.%.10] // CHECK:STDOUT: %.loc13_31.1: i32 = value_of_initializer %int.snegate.loc13 [template = constants.%.10] // CHECK:STDOUT: %.loc13_31.2: i32 = converted %int.snegate.loc13, %.loc13_31.1 [template = constants.%.10] diff --git a/toolchain/check/testdata/builtins/int/less_eq.carbon b/toolchain/check/testdata/builtins/int/less_eq.carbon index cbe8db04bdce4..13e0193c0a17f 100644 --- a/toolchain/check/testdata/builtins/int/less_eq.carbon +++ b/toolchain/check/testdata/builtins/int/less_eq.carbon @@ -47,12 +47,12 @@ fn RuntimeCall(a: i32, b: i32) -> bool { // CHECK:STDOUT: %F.type: type = fn_type @F [template] // CHECK:STDOUT: %F: %F.type = struct_value () [template] // CHECK:STDOUT: %.4: type = ptr_type %.2 [template] -// CHECK:STDOUT: %.5: i32 = int_literal 1 [template] -// CHECK:STDOUT: %.6: i32 = int_literal 2 [template] +// CHECK:STDOUT: %.5: i32 = int_value 1 [template] +// CHECK:STDOUT: %.6: i32 = int_value 2 [template] // CHECK:STDOUT: %.7: bool = bool_literal true [template] -// CHECK:STDOUT: %.8: i32 = int_literal 0 [template] +// CHECK:STDOUT: %.8: i32 = int_value 0 [template] // CHECK:STDOUT: %.9: bool = bool_literal false [template] -// CHECK:STDOUT: %.10: i32 = int_literal -1 [template] +// CHECK:STDOUT: %.10: i32 = int_value -1 [template] // CHECK:STDOUT: %RuntimeCall.type: type = fn_type @RuntimeCall [template] // CHECK:STDOUT: %RuntimeCall: %RuntimeCall.type = struct_value () [template] // CHECK:STDOUT: } @@ -187,8 +187,8 @@ fn RuntimeCall(a: i32, b: i32) -> bool { // CHECK:STDOUT: !entry: // CHECK:STDOUT: %true_.ref.loc9: %True = name_ref true_, %true_ // CHECK:STDOUT: %LessEq.ref.loc9: %LessEq.type = name_ref LessEq, file.%LessEq.decl [template = constants.%LessEq] -// CHECK:STDOUT: %.loc9_23: i32 = int_literal 1 [template = constants.%.5] -// CHECK:STDOUT: %.loc9_26: i32 = int_literal 2 [template = constants.%.6] +// CHECK:STDOUT: %.loc9_23: i32 = int_value 1 [template = constants.%.5] +// CHECK:STDOUT: %.loc9_26: i32 = int_value 2 [template = constants.%.6] // CHECK:STDOUT: %int.less_eq.loc9: init bool = call %LessEq.ref.loc9(%.loc9_23, %.loc9_26) [template = constants.%.7] // CHECK:STDOUT: %.loc9_13.1: bool = value_of_initializer %int.less_eq.loc9 [template = constants.%.7] // CHECK:STDOUT: %.loc9_13.2: bool = converted %int.less_eq.loc9, %.loc9_13.1 [template = constants.%.7] @@ -206,8 +206,8 @@ fn RuntimeCall(a: i32, b: i32) -> bool { // CHECK:STDOUT: %.loc9_13.3: type = block_arg !if.expr.result.loc9 [template = constants.%True] // CHECK:STDOUT: %true_.ref.loc10: %True = name_ref true_, %true_ // CHECK:STDOUT: %LessEq.ref.loc10: %LessEq.type = name_ref LessEq, file.%LessEq.decl [template = constants.%LessEq] -// CHECK:STDOUT: %.loc10_23: i32 = int_literal 1 [template = constants.%.5] -// CHECK:STDOUT: %.loc10_26: i32 = int_literal 1 [template = constants.%.5] +// CHECK:STDOUT: %.loc10_23: i32 = int_value 1 [template = constants.%.5] +// CHECK:STDOUT: %.loc10_26: i32 = int_value 1 [template = constants.%.5] // CHECK:STDOUT: %int.less_eq.loc10: init bool = call %LessEq.ref.loc10(%.loc10_23, %.loc10_26) [template = constants.%.7] // CHECK:STDOUT: %.loc10_13.1: bool = value_of_initializer %int.less_eq.loc10 [template = constants.%.7] // CHECK:STDOUT: %.loc10_13.2: bool = converted %int.less_eq.loc10, %.loc10_13.1 [template = constants.%.7] @@ -225,8 +225,8 @@ fn RuntimeCall(a: i32, b: i32) -> bool { // CHECK:STDOUT: %.loc10_13.3: type = block_arg !if.expr.result.loc10 [template = constants.%True] // CHECK:STDOUT: %false_.ref.loc11: %False = name_ref false_, %false_ // CHECK:STDOUT: %LessEq.ref.loc11: %LessEq.type = name_ref LessEq, file.%LessEq.decl [template = constants.%LessEq] -// CHECK:STDOUT: %.loc11_24: i32 = int_literal 1 [template = constants.%.5] -// CHECK:STDOUT: %.loc11_27: i32 = int_literal 0 [template = constants.%.8] +// CHECK:STDOUT: %.loc11_24: i32 = int_value 1 [template = constants.%.5] +// CHECK:STDOUT: %.loc11_27: i32 = int_value 0 [template = constants.%.8] // CHECK:STDOUT: %int.less_eq.loc11: init bool = call %LessEq.ref.loc11(%.loc11_24, %.loc11_27) [template = constants.%.9] // CHECK:STDOUT: %.loc11_14.1: bool = value_of_initializer %int.less_eq.loc11 [template = constants.%.9] // CHECK:STDOUT: %.loc11_14.2: bool = converted %int.less_eq.loc11, %.loc11_14.1 [template = constants.%.9] @@ -245,9 +245,9 @@ fn RuntimeCall(a: i32, b: i32) -> bool { // CHECK:STDOUT: %true_.ref.loc12: %True = name_ref true_, %true_ // CHECK:STDOUT: %LessEq.ref.loc12: %LessEq.type = name_ref LessEq, file.%LessEq.decl [template = constants.%LessEq] // CHECK:STDOUT: %Negate.ref.loc12: %Negate.type = name_ref Negate, file.%Negate.decl [template = constants.%Negate] -// CHECK:STDOUT: %.loc12_30: i32 = int_literal 1 [template = constants.%.5] +// CHECK:STDOUT: %.loc12_30: i32 = int_value 1 [template = constants.%.5] // CHECK:STDOUT: %int.snegate.loc12: init i32 = call %Negate.ref.loc12(%.loc12_30) [template = constants.%.10] -// CHECK:STDOUT: %.loc12_34: i32 = int_literal 0 [template = constants.%.8] +// CHECK:STDOUT: %.loc12_34: i32 = int_value 0 [template = constants.%.8] // CHECK:STDOUT: %.loc12_29.1: i32 = value_of_initializer %int.snegate.loc12 [template = constants.%.10] // CHECK:STDOUT: %.loc12_29.2: i32 = converted %int.snegate.loc12, %.loc12_29.1 [template = constants.%.10] // CHECK:STDOUT: %int.less_eq.loc12: init bool = call %LessEq.ref.loc12(%.loc12_29.2, %.loc12_34) [template = constants.%.7] @@ -267,9 +267,9 @@ fn RuntimeCall(a: i32, b: i32) -> bool { // CHECK:STDOUT: %.loc12_13.3: type = block_arg !if.expr.result.loc12 [template = constants.%True] // CHECK:STDOUT: %false_.ref.loc13: %False = name_ref false_, %false_ // CHECK:STDOUT: %LessEq.ref.loc13: %LessEq.type = name_ref LessEq, file.%LessEq.decl [template = constants.%LessEq] -// CHECK:STDOUT: %.loc13_24: i32 = int_literal 0 [template = constants.%.8] +// CHECK:STDOUT: %.loc13_24: i32 = int_value 0 [template = constants.%.8] // CHECK:STDOUT: %Negate.ref.loc13: %Negate.type = name_ref Negate, file.%Negate.decl [template = constants.%Negate] -// CHECK:STDOUT: %.loc13_34: i32 = int_literal 1 [template = constants.%.5] +// CHECK:STDOUT: %.loc13_34: i32 = int_value 1 [template = constants.%.5] // CHECK:STDOUT: %int.snegate.loc13: init i32 = call %Negate.ref.loc13(%.loc13_34) [template = constants.%.10] // CHECK:STDOUT: %.loc13_33.1: i32 = value_of_initializer %int.snegate.loc13 [template = constants.%.10] // CHECK:STDOUT: %.loc13_33.2: i32 = converted %int.snegate.loc13, %.loc13_33.1 [template = constants.%.10] diff --git a/toolchain/check/testdata/builtins/int/make_type_32.carbon b/toolchain/check/testdata/builtins/int/make_type_32.carbon index cceb187431027..e5fb311788212 100644 --- a/toolchain/check/testdata/builtins/int/make_type_32.carbon +++ b/toolchain/check/testdata/builtins/int/make_type_32.carbon @@ -60,7 +60,7 @@ var i: Int() = 0; // CHECK:STDOUT: %Int.type: type = fn_type @Int [template] // CHECK:STDOUT: %.1: type = tuple_type () [template] // CHECK:STDOUT: %Int: %Int.type = struct_value () [template] -// CHECK:STDOUT: %.2: i32 = int_literal 0 [template] +// CHECK:STDOUT: %.2: i32 = int_value 0 [template] // CHECK:STDOUT: } // CHECK:STDOUT: // CHECK:STDOUT: imports { @@ -91,7 +91,7 @@ var i: Int() = 0; // CHECK:STDOUT: // CHECK:STDOUT: fn @__global_init() { // CHECK:STDOUT: !entry: -// CHECK:STDOUT: %.loc6: i32 = int_literal 0 [template = constants.%.2] +// CHECK:STDOUT: %.loc6: i32 = int_value 0 [template = constants.%.2] // CHECK:STDOUT: assign file.%i.var, %.loc6 // CHECK:STDOUT: return // CHECK:STDOUT: } diff --git a/toolchain/check/testdata/builtins/int/make_type_signed.carbon b/toolchain/check/testdata/builtins/int/make_type_signed.carbon index 88ec3be2a610b..31233454ce7cf 100644 --- a/toolchain/check/testdata/builtins/int/make_type_signed.carbon +++ b/toolchain/check/testdata/builtins/int/make_type_signed.carbon @@ -139,11 +139,11 @@ var m: Int(1000000000); // CHECK:STDOUT: %Int.type: type = fn_type @Int [template] // CHECK:STDOUT: %.1: type = tuple_type () [template] // CHECK:STDOUT: %Int: %Int.type = struct_value () [template] -// CHECK:STDOUT: %.2: i32 = int_literal 64 [template] +// CHECK:STDOUT: %.2: i32 = int_value 64 [template] // CHECK:STDOUT: %.3: type = int_type signed, %.2 [template] // CHECK:STDOUT: %F.type: type = fn_type @F [template] // CHECK:STDOUT: %F: %F.type = struct_value () [template] -// CHECK:STDOUT: %.4: i32 = int_literal 13 [template] +// CHECK:STDOUT: %.4: i32 = int_value 13 [template] // CHECK:STDOUT: %.5: type = int_type signed, %.4 [template] // CHECK:STDOUT: %G.type: type = fn_type @G [template] // CHECK:STDOUT: %G: %G.type = struct_value () [template] @@ -183,12 +183,12 @@ var m: Int(1000000000); // CHECK:STDOUT: %return.param_patt: %.3 = out_param_pattern %return.patt, runtime_param1 // CHECK:STDOUT: } { // CHECK:STDOUT: %Int.ref.loc6_9: %Int.type = name_ref Int, imports.%import_ref.1 [template = constants.%Int] -// CHECK:STDOUT: %.loc6_13: i32 = int_literal 64 [template = constants.%.2] +// CHECK:STDOUT: %.loc6_13: i32 = int_value 64 [template = constants.%.2] // CHECK:STDOUT: %int.make_type_signed.loc6_12: init type = call %Int.ref.loc6_9(%.loc6_13) [template = constants.%.3] // CHECK:STDOUT: %.loc6_15.1: type = value_of_initializer %int.make_type_signed.loc6_12 [template = constants.%.3] // CHECK:STDOUT: %.loc6_15.2: type = converted %int.make_type_signed.loc6_12, %.loc6_15.1 [template = constants.%.3] // CHECK:STDOUT: %Int.ref.loc6_21: %Int.type = name_ref Int, imports.%import_ref.1 [template = constants.%Int] -// CHECK:STDOUT: %.loc6_25: i32 = int_literal 64 [template = constants.%.2] +// CHECK:STDOUT: %.loc6_25: i32 = int_value 64 [template = constants.%.2] // CHECK:STDOUT: %int.make_type_signed.loc6_24: init type = call %Int.ref.loc6_21(%.loc6_25) [template = constants.%.3] // CHECK:STDOUT: %.loc6_27.1: type = value_of_initializer %int.make_type_signed.loc6_24 [template = constants.%.3] // CHECK:STDOUT: %.loc6_27.2: type = converted %int.make_type_signed.loc6_24, %.loc6_27.1 [template = constants.%.3] @@ -204,12 +204,12 @@ var m: Int(1000000000); // CHECK:STDOUT: %return.param_patt: %.5 = out_param_pattern %return.patt, runtime_param1 // CHECK:STDOUT: } { // CHECK:STDOUT: %Int.ref.loc10_9: %Int.type = name_ref Int, imports.%import_ref.1 [template = constants.%Int] -// CHECK:STDOUT: %.loc10_13: i32 = int_literal 13 [template = constants.%.4] +// CHECK:STDOUT: %.loc10_13: i32 = int_value 13 [template = constants.%.4] // CHECK:STDOUT: %int.make_type_signed.loc10_12: init type = call %Int.ref.loc10_9(%.loc10_13) [template = constants.%.5] // CHECK:STDOUT: %.loc10_15.1: type = value_of_initializer %int.make_type_signed.loc10_12 [template = constants.%.5] // CHECK:STDOUT: %.loc10_15.2: type = converted %int.make_type_signed.loc10_12, %.loc10_15.1 [template = constants.%.5] // CHECK:STDOUT: %Int.ref.loc10_21: %Int.type = name_ref Int, imports.%import_ref.1 [template = constants.%Int] -// CHECK:STDOUT: %.loc10_25: i32 = int_literal 13 [template = constants.%.4] +// CHECK:STDOUT: %.loc10_25: i32 = int_value 13 [template = constants.%.4] // CHECK:STDOUT: %int.make_type_signed.loc10_24: init type = call %Int.ref.loc10_21(%.loc10_25) [template = constants.%.5] // CHECK:STDOUT: %.loc10_27.1: type = value_of_initializer %int.make_type_signed.loc10_24 [template = constants.%.5] // CHECK:STDOUT: %.loc10_27.2: type = converted %int.make_type_signed.loc10_24, %.loc10_27.1 [template = constants.%.5] @@ -290,19 +290,19 @@ var m: Int(1000000000); // CHECK:STDOUT: %Int.type: type = fn_type @Int [template] // CHECK:STDOUT: %.1: type = tuple_type () [template] // CHECK:STDOUT: %Int: %Int.type = struct_value () [template] -// CHECK:STDOUT: %.2: i32 = int_literal 64 [template] +// CHECK:STDOUT: %.2: i32 = int_value 64 [template] // CHECK:STDOUT: %.3: type = int_type signed, %.2 [template] // CHECK:STDOUT: %UseF.type: type = fn_type @UseF [template] // CHECK:STDOUT: %UseF: %UseF.type = struct_value () [template] // CHECK:STDOUT: %F.type: type = fn_type @F [template] // CHECK:STDOUT: %F: %F.type = struct_value () [template] -// CHECK:STDOUT: %.4: i32 = int_literal 13 [template] +// CHECK:STDOUT: %.4: i32 = int_value 13 [template] // CHECK:STDOUT: %.5: type = int_type signed, %.4 [template] // CHECK:STDOUT: %UseG.type: type = fn_type @UseG [template] // CHECK:STDOUT: %UseG: %UseG.type = struct_value () [template] // CHECK:STDOUT: %G.type: type = fn_type @G [template] // CHECK:STDOUT: %G: %G.type = struct_value () [template] -// CHECK:STDOUT: %.6: i32 = int_literal 24 [template] +// CHECK:STDOUT: %.6: i32 = int_value 24 [template] // CHECK:STDOUT: %.7: type = int_type signed, %.6 [template] // CHECK:STDOUT: %UseSymbolic.type: type = fn_type @UseSymbolic [template] // CHECK:STDOUT: %UseSymbolic: %UseSymbolic.type = struct_value () [template] @@ -345,12 +345,12 @@ var m: Int(1000000000); // CHECK:STDOUT: %return.param_patt: %.3 = out_param_pattern %return.patt, runtime_param1 // CHECK:STDOUT: } { // CHECK:STDOUT: %Int.ref.loc7_12: %Int.type = name_ref Int, imports.%import_ref.1 [template = constants.%Int] -// CHECK:STDOUT: %.loc7_16: i32 = int_literal 64 [template = constants.%.2] +// CHECK:STDOUT: %.loc7_16: i32 = int_value 64 [template = constants.%.2] // CHECK:STDOUT: %int.make_type_signed.loc7_15: init type = call %Int.ref.loc7_12(%.loc7_16) [template = constants.%.3] // CHECK:STDOUT: %.loc7_18.1: type = value_of_initializer %int.make_type_signed.loc7_15 [template = constants.%.3] // CHECK:STDOUT: %.loc7_18.2: type = converted %int.make_type_signed.loc7_15, %.loc7_18.1 [template = constants.%.3] // CHECK:STDOUT: %Int.ref.loc7_24: %Int.type = name_ref Int, imports.%import_ref.1 [template = constants.%Int] -// CHECK:STDOUT: %.loc7_28: i32 = int_literal 64 [template = constants.%.2] +// CHECK:STDOUT: %.loc7_28: i32 = int_value 64 [template = constants.%.2] // CHECK:STDOUT: %int.make_type_signed.loc7_27: init type = call %Int.ref.loc7_24(%.loc7_28) [template = constants.%.3] // CHECK:STDOUT: %.loc7_30.1: type = value_of_initializer %int.make_type_signed.loc7_27 [template = constants.%.3] // CHECK:STDOUT: %.loc7_30.2: type = converted %int.make_type_signed.loc7_27, %.loc7_30.1 [template = constants.%.3] @@ -366,12 +366,12 @@ var m: Int(1000000000); // CHECK:STDOUT: %return.param_patt: %.5 = out_param_pattern %return.patt, runtime_param1 // CHECK:STDOUT: } { // CHECK:STDOUT: %Int.ref.loc11_12: %Int.type = name_ref Int, imports.%import_ref.1 [template = constants.%Int] -// CHECK:STDOUT: %.loc11_16: i32 = int_literal 13 [template = constants.%.4] +// CHECK:STDOUT: %.loc11_16: i32 = int_value 13 [template = constants.%.4] // CHECK:STDOUT: %int.make_type_signed.loc11_15: init type = call %Int.ref.loc11_12(%.loc11_16) [template = constants.%.5] // CHECK:STDOUT: %.loc11_18.1: type = value_of_initializer %int.make_type_signed.loc11_15 [template = constants.%.5] // CHECK:STDOUT: %.loc11_18.2: type = converted %int.make_type_signed.loc11_15, %.loc11_18.1 [template = constants.%.5] // CHECK:STDOUT: %Int.ref.loc11_24: %Int.type = name_ref Int, imports.%import_ref.1 [template = constants.%Int] -// CHECK:STDOUT: %.loc11_28: i32 = int_literal 13 [template = constants.%.4] +// CHECK:STDOUT: %.loc11_28: i32 = int_value 13 [template = constants.%.4] // CHECK:STDOUT: %int.make_type_signed.loc11_27: init type = call %Int.ref.loc11_24(%.loc11_28) [template = constants.%.5] // CHECK:STDOUT: %.loc11_30.1: type = value_of_initializer %int.make_type_signed.loc11_27 [template = constants.%.5] // CHECK:STDOUT: %.loc11_30.2: type = converted %int.make_type_signed.loc11_27, %.loc11_30.1 [template = constants.%.5] @@ -387,12 +387,12 @@ var m: Int(1000000000); // CHECK:STDOUT: %return.param_patt: %.7 = out_param_pattern %return.patt, runtime_param1 // CHECK:STDOUT: } { // CHECK:STDOUT: %Int.ref.loc15_19: %Int.type = name_ref Int, imports.%import_ref.1 [template = constants.%Int] -// CHECK:STDOUT: %.loc15_23: i32 = int_literal 24 [template = constants.%.6] +// CHECK:STDOUT: %.loc15_23: i32 = int_value 24 [template = constants.%.6] // CHECK:STDOUT: %int.make_type_signed.loc15_22: init type = call %Int.ref.loc15_19(%.loc15_23) [template = constants.%.7] // CHECK:STDOUT: %.loc15_25.1: type = value_of_initializer %int.make_type_signed.loc15_22 [template = constants.%.7] // CHECK:STDOUT: %.loc15_25.2: type = converted %int.make_type_signed.loc15_22, %.loc15_25.1 [template = constants.%.7] // CHECK:STDOUT: %Int.ref.loc15_31: %Int.type = name_ref Int, imports.%import_ref.1 [template = constants.%Int] -// CHECK:STDOUT: %.loc15_35: i32 = int_literal 24 [template = constants.%.6] +// CHECK:STDOUT: %.loc15_35: i32 = int_value 24 [template = constants.%.6] // CHECK:STDOUT: %int.make_type_signed.loc15_34: init type = call %Int.ref.loc15_31(%.loc15_35) [template = constants.%.7] // CHECK:STDOUT: %.loc15_37.1: type = value_of_initializer %int.make_type_signed.loc15_34 [template = constants.%.7] // CHECK:STDOUT: %.loc15_37.2: type = converted %int.make_type_signed.loc15_34, %.loc15_37.1 [template = constants.%.7] @@ -432,7 +432,7 @@ var m: Int(1000000000); // CHECK:STDOUT: fn @UseSymbolic(%n.param_patt: %.7) -> %.7 { // CHECK:STDOUT: !entry: // CHECK:STDOUT: %Symbolic.ref: %Symbolic.type = name_ref Symbolic, imports.%import_ref.4 [template = constants.%Symbolic] -// CHECK:STDOUT: %.loc16_19: i32 = int_literal 24 [template = constants.%.6] +// CHECK:STDOUT: %.loc16_19: i32 = int_value 24 [template = constants.%.6] // CHECK:STDOUT: %n.ref: %.7 = name_ref n, %n // CHECK:STDOUT: %.loc16_10: = specific_function %Symbolic.ref, @Symbolic(constants.%.6) [template = constants.%.9] // CHECK:STDOUT: %Symbolic.call: init %.7 = call %.loc16_10(%n.ref) @@ -471,7 +471,7 @@ var m: Int(1000000000); // CHECK:STDOUT: %Int.type: type = fn_type @Int [template] // CHECK:STDOUT: %.1: type = tuple_type () [template] // CHECK:STDOUT: %Int: %Int.type = struct_value () [template] -// CHECK:STDOUT: %.2: i32 = int_literal 0 [template] +// CHECK:STDOUT: %.2: i32 = int_value 0 [template] // CHECK:STDOUT: } // CHECK:STDOUT: // CHECK:STDOUT: imports { @@ -491,7 +491,7 @@ var m: Int(1000000000); // CHECK:STDOUT: %Core.import = import Core // CHECK:STDOUT: %default.import = import // CHECK:STDOUT: %Int.ref: %Int.type = name_ref Int, imports.%import_ref [template = constants.%Int] -// CHECK:STDOUT: %.loc10_12: i32 = int_literal 0 [template = constants.%.2] +// CHECK:STDOUT: %.loc10_12: i32 = int_value 0 [template = constants.%.2] // CHECK:STDOUT: %int.make_type_signed: init type = call %Int.ref(%.loc10_12) [template = ] // CHECK:STDOUT: %.loc10_13.1: type = value_of_initializer %int.make_type_signed [template = ] // CHECK:STDOUT: %.loc10_13.2: type = converted %int.make_type_signed, %.loc10_13.1 [template = ] @@ -511,8 +511,8 @@ var m: Int(1000000000); // CHECK:STDOUT: %Negate: %Negate.type = struct_value () [template] // CHECK:STDOUT: %Int.type: type = fn_type @Int [template] // CHECK:STDOUT: %Int: %Int.type = struct_value () [template] -// CHECK:STDOUT: %.2: i32 = int_literal 1 [template] -// CHECK:STDOUT: %.3: i32 = int_literal -1 [template] +// CHECK:STDOUT: %.2: i32 = int_value 1 [template] +// CHECK:STDOUT: %.3: i32 = int_value -1 [template] // CHECK:STDOUT: } // CHECK:STDOUT: // CHECK:STDOUT: imports { @@ -553,7 +553,7 @@ var m: Int(1000000000); // CHECK:STDOUT: } // CHECK:STDOUT: %Int.ref: %Int.type = name_ref Int, imports.%import_ref.1 [template = constants.%Int] // CHECK:STDOUT: %Negate.ref: %Negate.type = name_ref Negate, %Negate.decl [template = constants.%Negate] -// CHECK:STDOUT: %.loc12_19: i32 = int_literal 1 [template = constants.%.2] +// CHECK:STDOUT: %.loc12_19: i32 = int_value 1 [template = constants.%.2] // CHECK:STDOUT: %int.snegate: init i32 = call %Negate.ref(%.loc12_19) [template = constants.%.3] // CHECK:STDOUT: %.loc12_18.1: i32 = value_of_initializer %int.snegate [template = constants.%.3] // CHECK:STDOUT: %.loc12_18.2: i32 = converted %int.snegate, %.loc12_18.1 [template = constants.%.3] @@ -576,7 +576,7 @@ var m: Int(1000000000); // CHECK:STDOUT: %Int.type: type = fn_type @Int [template] // CHECK:STDOUT: %.1: type = tuple_type () [template] // CHECK:STDOUT: %Int: %Int.type = struct_value () [template] -// CHECK:STDOUT: %.2: i32 = int_literal 1000000000 [template] +// CHECK:STDOUT: %.2: i32 = int_value 1000000000 [template] // CHECK:STDOUT: } // CHECK:STDOUT: // CHECK:STDOUT: imports { @@ -596,7 +596,7 @@ var m: Int(1000000000); // CHECK:STDOUT: %Core.import = import Core // CHECK:STDOUT: %default.import = import // CHECK:STDOUT: %Int.ref: %Int.type = name_ref Int, imports.%import_ref [template = constants.%Int] -// CHECK:STDOUT: %.loc9_12: i32 = int_literal 1000000000 [template = constants.%.2] +// CHECK:STDOUT: %.loc9_12: i32 = int_value 1000000000 [template = constants.%.2] // CHECK:STDOUT: %int.make_type_signed: init type = call %Int.ref(%.loc9_12) [template = ] // CHECK:STDOUT: %.loc9_22.1: type = value_of_initializer %int.make_type_signed [template = ] // CHECK:STDOUT: %.loc9_22.2: type = converted %int.make_type_signed, %.loc9_22.1 [template = ] diff --git a/toolchain/check/testdata/builtins/int/make_type_unsigned.carbon b/toolchain/check/testdata/builtins/int/make_type_unsigned.carbon index b768958f6de9e..aa08c61988122 100644 --- a/toolchain/check/testdata/builtins/int/make_type_unsigned.carbon +++ b/toolchain/check/testdata/builtins/int/make_type_unsigned.carbon @@ -120,11 +120,11 @@ var m: UInt(1000000000); // CHECK:STDOUT: %UInt.type: type = fn_type @UInt [template] // CHECK:STDOUT: %.1: type = tuple_type () [template] // CHECK:STDOUT: %UInt: %UInt.type = struct_value () [template] -// CHECK:STDOUT: %.2: i32 = int_literal 64 [template] +// CHECK:STDOUT: %.2: i32 = int_value 64 [template] // CHECK:STDOUT: %.3: type = int_type unsigned, %.2 [template] // CHECK:STDOUT: %F.type: type = fn_type @F [template] // CHECK:STDOUT: %F: %F.type = struct_value () [template] -// CHECK:STDOUT: %.4: i32 = int_literal 13 [template] +// CHECK:STDOUT: %.4: i32 = int_value 13 [template] // CHECK:STDOUT: %.5: type = int_type unsigned, %.4 [template] // CHECK:STDOUT: %G.type: type = fn_type @G [template] // CHECK:STDOUT: %G: %G.type = struct_value () [template] @@ -164,12 +164,12 @@ var m: UInt(1000000000); // CHECK:STDOUT: %return.param_patt: %.3 = out_param_pattern %return.patt, runtime_param1 // CHECK:STDOUT: } { // CHECK:STDOUT: %UInt.ref.loc6_9: %UInt.type = name_ref UInt, imports.%import_ref.1 [template = constants.%UInt] -// CHECK:STDOUT: %.loc6_14: i32 = int_literal 64 [template = constants.%.2] +// CHECK:STDOUT: %.loc6_14: i32 = int_value 64 [template = constants.%.2] // CHECK:STDOUT: %int.make_type_unsigned.loc6_13: init type = call %UInt.ref.loc6_9(%.loc6_14) [template = constants.%.3] // CHECK:STDOUT: %.loc6_16.1: type = value_of_initializer %int.make_type_unsigned.loc6_13 [template = constants.%.3] // CHECK:STDOUT: %.loc6_16.2: type = converted %int.make_type_unsigned.loc6_13, %.loc6_16.1 [template = constants.%.3] // CHECK:STDOUT: %UInt.ref.loc6_22: %UInt.type = name_ref UInt, imports.%import_ref.1 [template = constants.%UInt] -// CHECK:STDOUT: %.loc6_27: i32 = int_literal 64 [template = constants.%.2] +// CHECK:STDOUT: %.loc6_27: i32 = int_value 64 [template = constants.%.2] // CHECK:STDOUT: %int.make_type_unsigned.loc6_26: init type = call %UInt.ref.loc6_22(%.loc6_27) [template = constants.%.3] // CHECK:STDOUT: %.loc6_29.1: type = value_of_initializer %int.make_type_unsigned.loc6_26 [template = constants.%.3] // CHECK:STDOUT: %.loc6_29.2: type = converted %int.make_type_unsigned.loc6_26, %.loc6_29.1 [template = constants.%.3] @@ -185,12 +185,12 @@ var m: UInt(1000000000); // CHECK:STDOUT: %return.param_patt: %.5 = out_param_pattern %return.patt, runtime_param1 // CHECK:STDOUT: } { // CHECK:STDOUT: %UInt.ref.loc10_9: %UInt.type = name_ref UInt, imports.%import_ref.1 [template = constants.%UInt] -// CHECK:STDOUT: %.loc10_14: i32 = int_literal 13 [template = constants.%.4] +// CHECK:STDOUT: %.loc10_14: i32 = int_value 13 [template = constants.%.4] // CHECK:STDOUT: %int.make_type_unsigned.loc10_13: init type = call %UInt.ref.loc10_9(%.loc10_14) [template = constants.%.5] // CHECK:STDOUT: %.loc10_16.1: type = value_of_initializer %int.make_type_unsigned.loc10_13 [template = constants.%.5] // CHECK:STDOUT: %.loc10_16.2: type = converted %int.make_type_unsigned.loc10_13, %.loc10_16.1 [template = constants.%.5] // CHECK:STDOUT: %UInt.ref.loc10_22: %UInt.type = name_ref UInt, imports.%import_ref.1 [template = constants.%UInt] -// CHECK:STDOUT: %.loc10_27: i32 = int_literal 13 [template = constants.%.4] +// CHECK:STDOUT: %.loc10_27: i32 = int_value 13 [template = constants.%.4] // CHECK:STDOUT: %int.make_type_unsigned.loc10_26: init type = call %UInt.ref.loc10_22(%.loc10_27) [template = constants.%.5] // CHECK:STDOUT: %.loc10_29.1: type = value_of_initializer %int.make_type_unsigned.loc10_26 [template = constants.%.5] // CHECK:STDOUT: %.loc10_29.2: type = converted %int.make_type_unsigned.loc10_26, %.loc10_29.1 [template = constants.%.5] @@ -271,7 +271,7 @@ var m: UInt(1000000000); // CHECK:STDOUT: %UInt.type: type = fn_type @UInt [template] // CHECK:STDOUT: %.1: type = tuple_type () [template] // CHECK:STDOUT: %UInt: %UInt.type = struct_value () [template] -// CHECK:STDOUT: %.2: i32 = int_literal 0 [template] +// CHECK:STDOUT: %.2: i32 = int_value 0 [template] // CHECK:STDOUT: } // CHECK:STDOUT: // CHECK:STDOUT: imports { @@ -291,7 +291,7 @@ var m: UInt(1000000000); // CHECK:STDOUT: %Core.import = import Core // CHECK:STDOUT: %default.import = import // CHECK:STDOUT: %UInt.ref: %UInt.type = name_ref UInt, imports.%import_ref [template = constants.%UInt] -// CHECK:STDOUT: %.loc10_13: i32 = int_literal 0 [template = constants.%.2] +// CHECK:STDOUT: %.loc10_13: i32 = int_value 0 [template = constants.%.2] // CHECK:STDOUT: %int.make_type_unsigned: init type = call %UInt.ref(%.loc10_13) [template = ] // CHECK:STDOUT: %.loc10_14.1: type = value_of_initializer %int.make_type_unsigned [template = ] // CHECK:STDOUT: %.loc10_14.2: type = converted %int.make_type_unsigned, %.loc10_14.1 [template = ] @@ -311,8 +311,8 @@ var m: UInt(1000000000); // CHECK:STDOUT: %Negate: %Negate.type = struct_value () [template] // CHECK:STDOUT: %UInt.type: type = fn_type @UInt [template] // CHECK:STDOUT: %UInt: %UInt.type = struct_value () [template] -// CHECK:STDOUT: %.2: i32 = int_literal 1 [template] -// CHECK:STDOUT: %.3: i32 = int_literal -1 [template] +// CHECK:STDOUT: %.2: i32 = int_value 1 [template] +// CHECK:STDOUT: %.3: i32 = int_value -1 [template] // CHECK:STDOUT: } // CHECK:STDOUT: // CHECK:STDOUT: imports { @@ -353,7 +353,7 @@ var m: UInt(1000000000); // CHECK:STDOUT: } // CHECK:STDOUT: %UInt.ref: %UInt.type = name_ref UInt, imports.%import_ref.1 [template = constants.%UInt] // CHECK:STDOUT: %Negate.ref: %Negate.type = name_ref Negate, %Negate.decl [template = constants.%Negate] -// CHECK:STDOUT: %.loc12_20: i32 = int_literal 1 [template = constants.%.2] +// CHECK:STDOUT: %.loc12_20: i32 = int_value 1 [template = constants.%.2] // CHECK:STDOUT: %int.snegate: init i32 = call %Negate.ref(%.loc12_20) [template = constants.%.3] // CHECK:STDOUT: %.loc12_19.1: i32 = value_of_initializer %int.snegate [template = constants.%.3] // CHECK:STDOUT: %.loc12_19.2: i32 = converted %int.snegate, %.loc12_19.1 [template = constants.%.3] @@ -376,7 +376,7 @@ var m: UInt(1000000000); // CHECK:STDOUT: %UInt.type: type = fn_type @UInt [template] // CHECK:STDOUT: %.1: type = tuple_type () [template] // CHECK:STDOUT: %UInt: %UInt.type = struct_value () [template] -// CHECK:STDOUT: %.2: i32 = int_literal 1000000000 [template] +// CHECK:STDOUT: %.2: i32 = int_value 1000000000 [template] // CHECK:STDOUT: } // CHECK:STDOUT: // CHECK:STDOUT: imports { @@ -396,7 +396,7 @@ var m: UInt(1000000000); // CHECK:STDOUT: %Core.import = import Core // CHECK:STDOUT: %default.import = import // CHECK:STDOUT: %UInt.ref: %UInt.type = name_ref UInt, imports.%import_ref [template = constants.%UInt] -// CHECK:STDOUT: %.loc9_13: i32 = int_literal 1000000000 [template = constants.%.2] +// CHECK:STDOUT: %.loc9_13: i32 = int_value 1000000000 [template = constants.%.2] // CHECK:STDOUT: %int.make_type_unsigned: init type = call %UInt.ref(%.loc9_13) [template = ] // CHECK:STDOUT: %.loc9_23.1: type = value_of_initializer %int.make_type_unsigned [template = ] // CHECK:STDOUT: %.loc9_23.2: type = converted %int.make_type_unsigned, %.loc9_23.1 [template = ] diff --git a/toolchain/check/testdata/builtins/int/neq.carbon b/toolchain/check/testdata/builtins/int/neq.carbon index b34aed462a0cb..95c3ddd552c05 100644 --- a/toolchain/check/testdata/builtins/int/neq.carbon +++ b/toolchain/check/testdata/builtins/int/neq.carbon @@ -41,9 +41,9 @@ fn RuntimeCall(a: i32, b: i32) -> bool { // CHECK:STDOUT: %F.type: type = fn_type @F [template] // CHECK:STDOUT: %F: %F.type = struct_value () [template] // CHECK:STDOUT: %.4: type = ptr_type %.2 [template] -// CHECK:STDOUT: %.5: i32 = int_literal 1 [template] +// CHECK:STDOUT: %.5: i32 = int_value 1 [template] // CHECK:STDOUT: %.6: bool = bool_literal false [template] -// CHECK:STDOUT: %.7: i32 = int_literal 2 [template] +// CHECK:STDOUT: %.7: i32 = int_value 2 [template] // CHECK:STDOUT: %.8: bool = bool_literal true [template] // CHECK:STDOUT: %RuntimeCall.type: type = fn_type @RuntimeCall [template] // CHECK:STDOUT: %RuntimeCall: %RuntimeCall.type = struct_value () [template] @@ -159,8 +159,8 @@ fn RuntimeCall(a: i32, b: i32) -> bool { // CHECK:STDOUT: !entry: // CHECK:STDOUT: %false_.ref: %False = name_ref false_, %false_ // CHECK:STDOUT: %Neq.ref.loc8: %Neq.type = name_ref Neq, file.%Neq.decl [template = constants.%Neq] -// CHECK:STDOUT: %.loc8_21: i32 = int_literal 1 [template = constants.%.5] -// CHECK:STDOUT: %.loc8_24: i32 = int_literal 1 [template = constants.%.5] +// CHECK:STDOUT: %.loc8_21: i32 = int_value 1 [template = constants.%.5] +// CHECK:STDOUT: %.loc8_24: i32 = int_value 1 [template = constants.%.5] // CHECK:STDOUT: %int.neq.loc8: init bool = call %Neq.ref.loc8(%.loc8_21, %.loc8_24) [template = constants.%.6] // CHECK:STDOUT: %.loc8_14.1: bool = value_of_initializer %int.neq.loc8 [template = constants.%.6] // CHECK:STDOUT: %.loc8_14.2: bool = converted %int.neq.loc8, %.loc8_14.1 [template = constants.%.6] @@ -178,8 +178,8 @@ fn RuntimeCall(a: i32, b: i32) -> bool { // CHECK:STDOUT: %.loc8_14.3: type = block_arg !if.expr.result.loc8 [template = constants.%False] // CHECK:STDOUT: %true_.ref: %True = name_ref true_, %true_ // CHECK:STDOUT: %Neq.ref.loc9: %Neq.type = name_ref Neq, file.%Neq.decl [template = constants.%Neq] -// CHECK:STDOUT: %.loc9_20: i32 = int_literal 1 [template = constants.%.5] -// CHECK:STDOUT: %.loc9_23: i32 = int_literal 2 [template = constants.%.7] +// CHECK:STDOUT: %.loc9_20: i32 = int_value 1 [template = constants.%.5] +// CHECK:STDOUT: %.loc9_23: i32 = int_value 2 [template = constants.%.7] // CHECK:STDOUT: %int.neq.loc9: init bool = call %Neq.ref.loc9(%.loc9_20, %.loc9_23) [template = constants.%.8] // CHECK:STDOUT: %.loc9_13.1: bool = value_of_initializer %int.neq.loc9 [template = constants.%.8] // CHECK:STDOUT: %.loc9_13.2: bool = converted %int.neq.loc9, %.loc9_13.1 [template = constants.%.8] diff --git a/toolchain/check/testdata/builtins/int/or.carbon b/toolchain/check/testdata/builtins/int/or.carbon index 01d3caff54a68..fc5cbf8c3cda4 100644 --- a/toolchain/check/testdata/builtins/int/or.carbon +++ b/toolchain/check/testdata/builtins/int/or.carbon @@ -27,9 +27,9 @@ fn RuntimeCall(a: i32, b: i32) -> i32 { // CHECK:STDOUT: %Int32: %Int32.type = struct_value () [template] // CHECK:STDOUT: %Or.type: type = fn_type @Or [template] // CHECK:STDOUT: %Or: %Or.type = struct_value () [template] -// CHECK:STDOUT: %.2: i32 = int_literal 12 [template] -// CHECK:STDOUT: %.3: i32 = int_literal 10 [template] -// CHECK:STDOUT: %.4: i32 = int_literal 14 [template] +// CHECK:STDOUT: %.2: i32 = int_value 12 [template] +// CHECK:STDOUT: %.3: i32 = int_value 10 [template] +// CHECK:STDOUT: %.4: i32 = int_value 14 [template] // CHECK:STDOUT: %.5: type = array_type %.4, i32 [template] // CHECK:STDOUT: %.6: type = ptr_type %.5 [template] // CHECK:STDOUT: %RuntimeCall.type: type = fn_type @RuntimeCall [template] @@ -80,8 +80,8 @@ fn RuntimeCall(a: i32, b: i32) -> i32 { // CHECK:STDOUT: } // CHECK:STDOUT: %int.make_type_32.loc4: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %Or.ref: %Or.type = name_ref Or, %Or.decl [template = constants.%Or] -// CHECK:STDOUT: %.loc4_19: i32 = int_literal 12 [template = constants.%.2] -// CHECK:STDOUT: %.loc4_23: i32 = int_literal 10 [template = constants.%.3] +// CHECK:STDOUT: %.loc4_19: i32 = int_value 12 [template = constants.%.2] +// CHECK:STDOUT: %.loc4_23: i32 = int_value 10 [template = constants.%.3] // CHECK:STDOUT: %int.or: init i32 = call %Or.ref(%.loc4_19, %.loc4_23) [template = constants.%.4] // CHECK:STDOUT: %.loc4_11.1: type = value_of_initializer %int.make_type_32.loc4 [template = i32] // CHECK:STDOUT: %.loc4_11.2: type = converted %int.make_type_32.loc4, %.loc4_11.1 [template = i32] @@ -89,7 +89,7 @@ fn RuntimeCall(a: i32, b: i32) -> i32 { // CHECK:STDOUT: %arr.var: ref %.5 = var arr // CHECK:STDOUT: %arr: ref %.5 = bind_name arr, %arr.var // CHECK:STDOUT: %int.make_type_32.loc5: init type = call constants.%Int32() [template = i32] -// CHECK:STDOUT: %.loc5_18: i32 = int_literal 14 [template = constants.%.4] +// CHECK:STDOUT: %.loc5_18: i32 = int_value 14 [template = constants.%.4] // CHECK:STDOUT: %.loc5_13.1: type = value_of_initializer %int.make_type_32.loc5 [template = i32] // CHECK:STDOUT: %.loc5_13.2: type = converted %int.make_type_32.loc5, %.loc5_13.1 [template = i32] // CHECK:STDOUT: %.loc5_20: type = array_type %.loc5_18, i32 [template = constants.%.5] diff --git a/toolchain/check/testdata/builtins/int/right_shift.carbon b/toolchain/check/testdata/builtins/int/right_shift.carbon index 17c89f6f06a16..b9aab91b1bab0 100644 --- a/toolchain/check/testdata/builtins/int/right_shift.carbon +++ b/toolchain/check/testdata/builtins/int/right_shift.carbon @@ -72,9 +72,9 @@ let negative: i32 = RightShift(1, Negate(1)); // CHECK:STDOUT: %Int32: %Int32.type = struct_value () [template] // CHECK:STDOUT: %RightShift.type: type = fn_type @RightShift [template] // CHECK:STDOUT: %RightShift: %RightShift.type = struct_value () [template] -// CHECK:STDOUT: %.2: i32 = int_literal 22 [template] -// CHECK:STDOUT: %.3: i32 = int_literal 2 [template] -// CHECK:STDOUT: %.4: i32 = int_literal 5 [template] +// CHECK:STDOUT: %.2: i32 = int_value 22 [template] +// CHECK:STDOUT: %.3: i32 = int_value 2 [template] +// CHECK:STDOUT: %.4: i32 = int_value 5 [template] // CHECK:STDOUT: %.5: type = array_type %.4, i32 [template] // CHECK:STDOUT: %.6: type = ptr_type %.5 [template] // CHECK:STDOUT: %RuntimeCall.type: type = fn_type @RuntimeCall [template] @@ -125,8 +125,8 @@ let negative: i32 = RightShift(1, Negate(1)); // CHECK:STDOUT: } // CHECK:STDOUT: %int.make_type_32.loc4: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %RightShift.ref: %RightShift.type = name_ref RightShift, %RightShift.decl [template = constants.%RightShift] -// CHECK:STDOUT: %.loc4_27: i32 = int_literal 22 [template = constants.%.2] -// CHECK:STDOUT: %.loc4_31: i32 = int_literal 2 [template = constants.%.3] +// CHECK:STDOUT: %.loc4_27: i32 = int_value 22 [template = constants.%.2] +// CHECK:STDOUT: %.loc4_31: i32 = int_value 2 [template = constants.%.3] // CHECK:STDOUT: %int.right_shift: init i32 = call %RightShift.ref(%.loc4_27, %.loc4_31) [template = constants.%.4] // CHECK:STDOUT: %.loc4_11.1: type = value_of_initializer %int.make_type_32.loc4 [template = i32] // CHECK:STDOUT: %.loc4_11.2: type = converted %int.make_type_32.loc4, %.loc4_11.1 [template = i32] @@ -134,7 +134,7 @@ let negative: i32 = RightShift(1, Negate(1)); // CHECK:STDOUT: %arr.var: ref %.5 = var arr // CHECK:STDOUT: %arr: ref %.5 = bind_name arr, %arr.var // CHECK:STDOUT: %int.make_type_32.loc5: init type = call constants.%Int32() [template = i32] -// CHECK:STDOUT: %.loc5_18: i32 = int_literal 5 [template = constants.%.4] +// CHECK:STDOUT: %.loc5_18: i32 = int_value 5 [template = constants.%.4] // CHECK:STDOUT: %.loc5_13.1: type = value_of_initializer %int.make_type_32.loc5 [template = i32] // CHECK:STDOUT: %.loc5_13.2: type = converted %int.make_type_32.loc5, %.loc5_13.1 [template = i32] // CHECK:STDOUT: %.loc5_19: type = array_type %.loc5_18, i32 [template = constants.%.5] @@ -198,15 +198,15 @@ let negative: i32 = RightShift(1, Negate(1)); // CHECK:STDOUT: %RightShift: %RightShift.type = struct_value () [template] // CHECK:STDOUT: %Negate.type: type = fn_type @Negate [template] // CHECK:STDOUT: %Negate: %Negate.type = struct_value () [template] -// CHECK:STDOUT: %.2: i32 = int_literal 1 [template] -// CHECK:STDOUT: %.3: i32 = int_literal -1 [template] +// CHECK:STDOUT: %.2: i32 = int_value 1 [template] +// CHECK:STDOUT: %.3: i32 = int_value -1 [template] // CHECK:STDOUT: %.4: type = array_type %.2, i32 [template] // CHECK:STDOUT: %.5: type = ptr_type %.4 [template] -// CHECK:STDOUT: %.6: i32 = int_literal 10 [template] -// CHECK:STDOUT: %.7: i32 = int_literal -10 [template] -// CHECK:STDOUT: %.8: i32 = int_literal 2 [template] -// CHECK:STDOUT: %.9: i32 = int_literal -3 [template] -// CHECK:STDOUT: %.10: i32 = int_literal 3 [template] +// CHECK:STDOUT: %.6: i32 = int_value 10 [template] +// CHECK:STDOUT: %.7: i32 = int_value -10 [template] +// CHECK:STDOUT: %.8: i32 = int_value 2 [template] +// CHECK:STDOUT: %.9: i32 = int_value -3 [template] +// CHECK:STDOUT: %.10: i32 = int_value 3 [template] // CHECK:STDOUT: %.11: type = array_type %.10, i32 [template] // CHECK:STDOUT: %.12: type = ptr_type %.11 [template] // CHECK:STDOUT: } @@ -276,9 +276,9 @@ let negative: i32 = RightShift(1, Negate(1)); // CHECK:STDOUT: %Negate.ref.loc10_17: %Negate.type = name_ref Negate, %Negate.decl [template = constants.%Negate] // CHECK:STDOUT: %RightShift.ref.loc10: %RightShift.type = name_ref RightShift, %RightShift.decl [template = constants.%RightShift] // CHECK:STDOUT: %Negate.ref.loc10_35: %Negate.type = name_ref Negate, %Negate.decl [template = constants.%Negate] -// CHECK:STDOUT: %.loc10_42: i32 = int_literal 1 [template = constants.%.2] +// CHECK:STDOUT: %.loc10_42: i32 = int_value 1 [template = constants.%.2] // CHECK:STDOUT: %int.snegate.loc10_41: init i32 = call %Negate.ref.loc10_35(%.loc10_42) [template = constants.%.3] -// CHECK:STDOUT: %.loc10_46: i32 = int_literal 1 [template = constants.%.2] +// CHECK:STDOUT: %.loc10_46: i32 = int_value 1 [template = constants.%.2] // CHECK:STDOUT: %.loc10_41.1: i32 = value_of_initializer %int.snegate.loc10_41 [template = constants.%.3] // CHECK:STDOUT: %.loc10_41.2: i32 = converted %int.snegate.loc10_41, %.loc10_41.1 [template = constants.%.3] // CHECK:STDOUT: %int.right_shift.loc10: init i32 = call %RightShift.ref.loc10(%.loc10_41.2, %.loc10_46) [template = constants.%.3] @@ -291,7 +291,7 @@ let negative: i32 = RightShift(1, Negate(1)); // CHECK:STDOUT: %arr1.var: ref %.4 = var arr1 // CHECK:STDOUT: %arr1: ref %.4 = bind_name arr1, %arr1.var // CHECK:STDOUT: %int.make_type_32.loc11: init type = call constants.%Int32() [template = i32] -// CHECK:STDOUT: %.loc11_19: i32 = int_literal 1 [template = constants.%.2] +// CHECK:STDOUT: %.loc11_19: i32 = int_value 1 [template = constants.%.2] // CHECK:STDOUT: %.loc11_14.1: type = value_of_initializer %int.make_type_32.loc11 [template = i32] // CHECK:STDOUT: %.loc11_14.2: type = converted %int.make_type_32.loc11, %.loc11_14.1 [template = i32] // CHECK:STDOUT: %.loc11_20: type = array_type %.loc11_19, i32 [template = constants.%.4] @@ -300,9 +300,9 @@ let negative: i32 = RightShift(1, Negate(1)); // CHECK:STDOUT: %Negate.ref.loc14_17: %Negate.type = name_ref Negate, %Negate.decl [template = constants.%Negate] // CHECK:STDOUT: %RightShift.ref.loc14: %RightShift.type = name_ref RightShift, %RightShift.decl [template = constants.%RightShift] // CHECK:STDOUT: %Negate.ref.loc14_35: %Negate.type = name_ref Negate, %Negate.decl [template = constants.%Negate] -// CHECK:STDOUT: %.loc14_42: i32 = int_literal 10 [template = constants.%.6] +// CHECK:STDOUT: %.loc14_42: i32 = int_value 10 [template = constants.%.6] // CHECK:STDOUT: %int.snegate.loc14_41: init i32 = call %Negate.ref.loc14_35(%.loc14_42) [template = constants.%.7] -// CHECK:STDOUT: %.loc14_47: i32 = int_literal 2 [template = constants.%.8] +// CHECK:STDOUT: %.loc14_47: i32 = int_value 2 [template = constants.%.8] // CHECK:STDOUT: %.loc14_41.1: i32 = value_of_initializer %int.snegate.loc14_41 [template = constants.%.7] // CHECK:STDOUT: %.loc14_41.2: i32 = converted %int.snegate.loc14_41, %.loc14_41.1 [template = constants.%.7] // CHECK:STDOUT: %int.right_shift.loc14: init i32 = call %RightShift.ref.loc14(%.loc14_41.2, %.loc14_47) [template = constants.%.9] @@ -315,7 +315,7 @@ let negative: i32 = RightShift(1, Negate(1)); // CHECK:STDOUT: %arr2.var: ref %.11 = var arr2 // CHECK:STDOUT: %arr2: ref %.11 = bind_name arr2, %arr2.var // CHECK:STDOUT: %int.make_type_32.loc15: init type = call constants.%Int32() [template = i32] -// CHECK:STDOUT: %.loc15_19: i32 = int_literal 3 [template = constants.%.10] +// CHECK:STDOUT: %.loc15_19: i32 = int_value 3 [template = constants.%.10] // CHECK:STDOUT: %.loc15_14.1: type = value_of_initializer %int.make_type_32.loc15 [template = i32] // CHECK:STDOUT: %.loc15_14.2: type = converted %int.make_type_32.loc15, %.loc15_14.1 [template = i32] // CHECK:STDOUT: %.loc15_20: type = array_type %.loc15_19, i32 [template = constants.%.11] @@ -349,12 +349,12 @@ let negative: i32 = RightShift(1, Negate(1)); // CHECK:STDOUT: %RightShift: %RightShift.type = struct_value () [template] // CHECK:STDOUT: %Negate.type: type = fn_type @Negate [template] // CHECK:STDOUT: %Negate: %Negate.type = struct_value () [template] -// CHECK:STDOUT: %.2: i32 = int_literal 1 [template] -// CHECK:STDOUT: %.3: i32 = int_literal 31 [template] -// CHECK:STDOUT: %.4: i32 = int_literal 0 [template] -// CHECK:STDOUT: %.5: i32 = int_literal 32 [template] -// CHECK:STDOUT: %.6: i32 = int_literal 33 [template] -// CHECK:STDOUT: %.7: i32 = int_literal -1 [template] +// CHECK:STDOUT: %.2: i32 = int_value 1 [template] +// CHECK:STDOUT: %.3: i32 = int_value 31 [template] +// CHECK:STDOUT: %.4: i32 = int_value 0 [template] +// CHECK:STDOUT: %.5: i32 = int_value 32 [template] +// CHECK:STDOUT: %.6: i32 = int_value 33 [template] +// CHECK:STDOUT: %.7: i32 = int_value -1 [template] // CHECK:STDOUT: } // CHECK:STDOUT: // CHECK:STDOUT: imports { @@ -441,30 +441,30 @@ let negative: i32 = RightShift(1, Negate(1)); // CHECK:STDOUT: fn @__global_init() { // CHECK:STDOUT: !entry: // CHECK:STDOUT: %RightShift.ref.loc8: %RightShift.type = name_ref RightShift, file.%RightShift.decl [template = constants.%RightShift] -// CHECK:STDOUT: %.loc8_30: i32 = int_literal 1 [template = constants.%.2] -// CHECK:STDOUT: %.loc8_33: i32 = int_literal 31 [template = constants.%.3] +// CHECK:STDOUT: %.loc8_30: i32 = int_value 1 [template = constants.%.2] +// CHECK:STDOUT: %.loc8_33: i32 = int_value 31 [template = constants.%.3] // CHECK:STDOUT: %int.right_shift.loc8: init i32 = call %RightShift.ref.loc8(%.loc8_30, %.loc8_33) [template = constants.%.4] // CHECK:STDOUT: %.loc8_36.1: i32 = value_of_initializer %int.right_shift.loc8 [template = constants.%.4] // CHECK:STDOUT: %.loc8_36.2: i32 = converted %int.right_shift.loc8, %.loc8_36.1 [template = constants.%.4] // CHECK:STDOUT: %size_1: i32 = bind_name size_1, %.loc8_36.2 // CHECK:STDOUT: %RightShift.ref.loc13: %RightShift.type = name_ref RightShift, file.%RightShift.decl [template = constants.%RightShift] -// CHECK:STDOUT: %.loc13_30: i32 = int_literal 1 [template = constants.%.2] -// CHECK:STDOUT: %.loc13_33: i32 = int_literal 32 [template = constants.%.5] +// CHECK:STDOUT: %.loc13_30: i32 = int_value 1 [template = constants.%.2] +// CHECK:STDOUT: %.loc13_33: i32 = int_value 32 [template = constants.%.5] // CHECK:STDOUT: %int.right_shift.loc13: init i32 = call %RightShift.ref.loc13(%.loc13_30, %.loc13_33) [template = ] // CHECK:STDOUT: %.loc13_36.1: i32 = value_of_initializer %int.right_shift.loc13 [template = ] // CHECK:STDOUT: %.loc13_36.2: i32 = converted %int.right_shift.loc13, %.loc13_36.1 [template = ] // CHECK:STDOUT: %size_2: i32 = bind_name size_2, %.loc13_36.2 // CHECK:STDOUT: %RightShift.ref.loc18: %RightShift.type = name_ref RightShift, file.%RightShift.decl [template = constants.%RightShift] -// CHECK:STDOUT: %.loc18_30: i32 = int_literal 1 [template = constants.%.2] -// CHECK:STDOUT: %.loc18_33: i32 = int_literal 33 [template = constants.%.6] +// CHECK:STDOUT: %.loc18_30: i32 = int_value 1 [template = constants.%.2] +// CHECK:STDOUT: %.loc18_33: i32 = int_value 33 [template = constants.%.6] // CHECK:STDOUT: %int.right_shift.loc18: init i32 = call %RightShift.ref.loc18(%.loc18_30, %.loc18_33) [template = ] // CHECK:STDOUT: %.loc18_36.1: i32 = value_of_initializer %int.right_shift.loc18 [template = ] // CHECK:STDOUT: %.loc18_36.2: i32 = converted %int.right_shift.loc18, %.loc18_36.1 [template = ] // CHECK:STDOUT: %size_3: i32 = bind_name size_3, %.loc18_36.2 // CHECK:STDOUT: %RightShift.ref.loc24: %RightShift.type = name_ref RightShift, file.%RightShift.decl [template = constants.%RightShift] -// CHECK:STDOUT: %.loc24_32: i32 = int_literal 1 [template = constants.%.2] +// CHECK:STDOUT: %.loc24_32: i32 = int_value 1 [template = constants.%.2] // CHECK:STDOUT: %Negate.ref: %Negate.type = name_ref Negate, file.%Negate.decl [template = constants.%Negate] -// CHECK:STDOUT: %.loc24_42: i32 = int_literal 1 [template = constants.%.2] +// CHECK:STDOUT: %.loc24_42: i32 = int_value 1 [template = constants.%.2] // CHECK:STDOUT: %int.snegate: init i32 = call %Negate.ref(%.loc24_42) [template = constants.%.7] // CHECK:STDOUT: %.loc24_41.1: i32 = value_of_initializer %int.snegate [template = constants.%.7] // CHECK:STDOUT: %.loc24_41.2: i32 = converted %int.snegate, %.loc24_41.1 [template = constants.%.7] diff --git a/toolchain/check/testdata/builtins/int/sadd.carbon b/toolchain/check/testdata/builtins/int/sadd.carbon index 97e5f76dafd66..d1b2df57e4781 100644 --- a/toolchain/check/testdata/builtins/int/sadd.carbon +++ b/toolchain/check/testdata/builtins/int/sadd.carbon @@ -97,9 +97,9 @@ let b: i32 = Add(0x7FFFFFFF, 1); // CHECK:STDOUT: %Int32: %Int32.type = struct_value () [template] // CHECK:STDOUT: %Add.type: type = fn_type @Add [template] // CHECK:STDOUT: %Add: %Add.type = struct_value () [template] -// CHECK:STDOUT: %.2: i32 = int_literal 1 [template] -// CHECK:STDOUT: %.3: i32 = int_literal 2 [template] -// CHECK:STDOUT: %.4: i32 = int_literal 3 [template] +// CHECK:STDOUT: %.2: i32 = int_value 1 [template] +// CHECK:STDOUT: %.3: i32 = int_value 2 [template] +// CHECK:STDOUT: %.4: i32 = int_value 3 [template] // CHECK:STDOUT: %.5: type = array_type %.4, i32 [template] // CHECK:STDOUT: %.6: type = ptr_type %.5 [template] // CHECK:STDOUT: %RuntimeCall.type: type = fn_type @RuntimeCall [template] @@ -150,8 +150,8 @@ let b: i32 = Add(0x7FFFFFFF, 1); // CHECK:STDOUT: } // CHECK:STDOUT: %int.make_type_32.loc4: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %Add.ref: %Add.type = name_ref Add, %Add.decl [template = constants.%Add] -// CHECK:STDOUT: %.loc4_20: i32 = int_literal 1 [template = constants.%.2] -// CHECK:STDOUT: %.loc4_23: i32 = int_literal 2 [template = constants.%.3] +// CHECK:STDOUT: %.loc4_20: i32 = int_value 1 [template = constants.%.2] +// CHECK:STDOUT: %.loc4_23: i32 = int_value 2 [template = constants.%.3] // CHECK:STDOUT: %int.sadd: init i32 = call %Add.ref(%.loc4_20, %.loc4_23) [template = constants.%.4] // CHECK:STDOUT: %.loc4_11.1: type = value_of_initializer %int.make_type_32.loc4 [template = i32] // CHECK:STDOUT: %.loc4_11.2: type = converted %int.make_type_32.loc4, %.loc4_11.1 [template = i32] @@ -159,7 +159,7 @@ let b: i32 = Add(0x7FFFFFFF, 1); // CHECK:STDOUT: %arr.var: ref %.5 = var arr // CHECK:STDOUT: %arr: ref %.5 = bind_name arr, %arr.var // CHECK:STDOUT: %int.make_type_32.loc5: init type = call constants.%Int32() [template = i32] -// CHECK:STDOUT: %.loc5_18: i32 = int_literal 3 [template = constants.%.4] +// CHECK:STDOUT: %.loc5_18: i32 = int_value 3 [template = constants.%.4] // CHECK:STDOUT: %.loc5_13.1: type = value_of_initializer %int.make_type_32.loc5 [template = i32] // CHECK:STDOUT: %.loc5_13.2: type = converted %int.make_type_32.loc5, %.loc5_13.1 [template = i32] // CHECK:STDOUT: %.loc5_19: type = array_type %.loc5_18, i32 [template = constants.%.5] @@ -229,9 +229,9 @@ let b: i32 = Add(0x7FFFFFFF, 1); // CHECK:STDOUT: %BadReturnType: %BadReturnType.type = struct_value () [template] // CHECK:STDOUT: %JustRight.type: type = fn_type @JustRight [template] // CHECK:STDOUT: %JustRight: %JustRight.type = struct_value () [template] -// CHECK:STDOUT: %.2: i32 = int_literal 1 [template] -// CHECK:STDOUT: %.3: i32 = int_literal 2 [template] -// CHECK:STDOUT: %.4: i32 = int_literal 3 [template] +// CHECK:STDOUT: %.2: i32 = int_value 1 [template] +// CHECK:STDOUT: %.3: i32 = int_value 2 [template] +// CHECK:STDOUT: %.4: i32 = int_value 3 [template] // CHECK:STDOUT: %RuntimeCallTooFew.type: type = fn_type @RuntimeCallTooFew [template] // CHECK:STDOUT: %RuntimeCallTooFew: %RuntimeCallTooFew.type = struct_value () [template] // CHECK:STDOUT: %RuntimeCallTooMany.type: type = fn_type @RuntimeCallTooMany [template] @@ -365,30 +365,30 @@ let b: i32 = Add(0x7FFFFFFF, 1); // CHECK:STDOUT: } // CHECK:STDOUT: %int.make_type_32.loc25: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %TooFew.ref: %TooFew.type = name_ref TooFew, %TooFew.decl [template = constants.%TooFew] -// CHECK:STDOUT: %.loc25: i32 = int_literal 1 [template = constants.%.2] +// CHECK:STDOUT: %.loc25: i32 = int_value 1 [template = constants.%.2] // CHECK:STDOUT: %TooFew.call: init i32 = call %TooFew.ref(%.loc25) // CHECK:STDOUT: %too_few.var: ref = var too_few // CHECK:STDOUT: %too_few: ref = bind_name too_few, %too_few.var // CHECK:STDOUT: %int.make_type_32.loc30: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %TooMany.ref: %TooMany.type = name_ref TooMany, %TooMany.decl [template = constants.%TooMany] -// CHECK:STDOUT: %.loc30_29: i32 = int_literal 1 [template = constants.%.2] -// CHECK:STDOUT: %.loc30_32: i32 = int_literal 2 [template = constants.%.3] -// CHECK:STDOUT: %.loc30_35: i32 = int_literal 3 [template = constants.%.4] +// CHECK:STDOUT: %.loc30_29: i32 = int_value 1 [template = constants.%.2] +// CHECK:STDOUT: %.loc30_32: i32 = int_value 2 [template = constants.%.3] +// CHECK:STDOUT: %.loc30_35: i32 = int_value 3 [template = constants.%.4] // CHECK:STDOUT: %TooMany.call: init i32 = call %TooMany.ref(%.loc30_29, %.loc30_32, %.loc30_35) // CHECK:STDOUT: %too_many.var: ref = var too_many // CHECK:STDOUT: %too_many: ref = bind_name too_many, %too_many.var // CHECK:STDOUT: %int.make_type_32.loc35: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %BadReturnType.ref: %BadReturnType.type = name_ref BadReturnType, %BadReturnType.decl [template = constants.%BadReturnType] -// CHECK:STDOUT: %.loc35_42: i32 = int_literal 1 [template = constants.%.2] -// CHECK:STDOUT: %.loc35_45: i32 = int_literal 2 [template = constants.%.3] +// CHECK:STDOUT: %.loc35_42: i32 = int_value 1 [template = constants.%.2] +// CHECK:STDOUT: %.loc35_45: i32 = int_value 2 [template = constants.%.3] // CHECK:STDOUT: %BadReturnType.call: init bool = call %BadReturnType.ref(%.loc35_42, %.loc35_45) // CHECK:STDOUT: %bad_return_type.var: ref = var bad_return_type // CHECK:STDOUT: %bad_return_type: ref = bind_name bad_return_type, %bad_return_type.var // CHECK:STDOUT: %int.make_type_32.loc44: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %JustRight.ref: %JustRight.type = name_ref JustRight, %JustRight.decl [template = constants.%JustRight] -// CHECK:STDOUT: %.loc44_31: i32 = int_literal 1 [template = constants.%.2] -// CHECK:STDOUT: %.loc44_34: i32 = int_literal 2 [template = constants.%.3] -// CHECK:STDOUT: %.loc44_37: i32 = int_literal 3 [template = constants.%.4] +// CHECK:STDOUT: %.loc44_31: i32 = int_value 1 [template = constants.%.2] +// CHECK:STDOUT: %.loc44_34: i32 = int_value 2 [template = constants.%.3] +// CHECK:STDOUT: %.loc44_37: i32 = int_value 3 [template = constants.%.4] // CHECK:STDOUT: %.loc44_16.1: type = value_of_initializer %int.make_type_32.loc44 [template = i32] // CHECK:STDOUT: %.loc44_16.2: type = converted %int.make_type_32.loc44, %.loc44_16.1 [template = i32] // CHECK:STDOUT: %.loc44_39: type = array_type , i32 [template = ] @@ -521,10 +521,10 @@ let b: i32 = Add(0x7FFFFFFF, 1); // CHECK:STDOUT: %Int32: %Int32.type = struct_value () [template] // CHECK:STDOUT: %Add.type: type = fn_type @Add [template] // CHECK:STDOUT: %Add: %Add.type = struct_value () [template] -// CHECK:STDOUT: %.2: i32 = int_literal 2147483647 [template] -// CHECK:STDOUT: %.3: i32 = int_literal 0 [template] -// CHECK:STDOUT: %.4: i32 = int_literal 1 [template] -// CHECK:STDOUT: %.5: i32 = int_literal -2147483648 [template] +// CHECK:STDOUT: %.2: i32 = int_value 2147483647 [template] +// CHECK:STDOUT: %.3: i32 = int_value 0 [template] +// CHECK:STDOUT: %.4: i32 = int_value 1 [template] +// CHECK:STDOUT: %.5: i32 = int_value -2147483648 [template] // CHECK:STDOUT: } // CHECK:STDOUT: // CHECK:STDOUT: imports { @@ -583,15 +583,15 @@ let b: i32 = Add(0x7FFFFFFF, 1); // CHECK:STDOUT: fn @__global_init() { // CHECK:STDOUT: !entry: // CHECK:STDOUT: %Add.ref.loc6: %Add.type = name_ref Add, file.%Add.decl [template = constants.%Add] -// CHECK:STDOUT: %.loc6_18: i32 = int_literal 2147483647 [template = constants.%.2] -// CHECK:STDOUT: %.loc6_30: i32 = int_literal 0 [template = constants.%.3] +// CHECK:STDOUT: %.loc6_18: i32 = int_value 2147483647 [template = constants.%.2] +// CHECK:STDOUT: %.loc6_30: i32 = int_value 0 [template = constants.%.3] // CHECK:STDOUT: %int.sadd.loc6: init i32 = call %Add.ref.loc6(%.loc6_18, %.loc6_30) [template = constants.%.2] // CHECK:STDOUT: %.loc6_32.1: i32 = value_of_initializer %int.sadd.loc6 [template = constants.%.2] // CHECK:STDOUT: %.loc6_32.2: i32 = converted %int.sadd.loc6, %.loc6_32.1 [template = constants.%.2] // CHECK:STDOUT: %a: i32 = bind_name a, %.loc6_32.2 // CHECK:STDOUT: %Add.ref.loc10: %Add.type = name_ref Add, file.%Add.decl [template = constants.%Add] -// CHECK:STDOUT: %.loc10_18: i32 = int_literal 2147483647 [template = constants.%.2] -// CHECK:STDOUT: %.loc10_30: i32 = int_literal 1 [template = constants.%.4] +// CHECK:STDOUT: %.loc10_18: i32 = int_value 2147483647 [template = constants.%.2] +// CHECK:STDOUT: %.loc10_30: i32 = int_value 1 [template = constants.%.4] // CHECK:STDOUT: %int.sadd.loc10: init i32 = call %Add.ref.loc10(%.loc10_18, %.loc10_30) [template = constants.%.5] // CHECK:STDOUT: %.loc10_32.1: i32 = value_of_initializer %int.sadd.loc10 [template = constants.%.5] // CHECK:STDOUT: %.loc10_32.2: i32 = converted %int.sadd.loc10, %.loc10_32.1 [template = constants.%.5] diff --git a/toolchain/check/testdata/builtins/int/sdiv.carbon b/toolchain/check/testdata/builtins/int/sdiv.carbon index 4b6154198ed87..466cee7138bdc 100644 --- a/toolchain/check/testdata/builtins/int/sdiv.carbon +++ b/toolchain/check/testdata/builtins/int/sdiv.carbon @@ -65,9 +65,9 @@ let b: i32 = Div(0, 0); // CHECK:STDOUT: %Int32: %Int32.type = struct_value () [template] // CHECK:STDOUT: %Div.type: type = fn_type @Div [template] // CHECK:STDOUT: %Div: %Div.type = struct_value () [template] -// CHECK:STDOUT: %.2: i32 = int_literal 3 [template] -// CHECK:STDOUT: %.3: i32 = int_literal 2 [template] -// CHECK:STDOUT: %.4: i32 = int_literal 1 [template] +// CHECK:STDOUT: %.2: i32 = int_value 3 [template] +// CHECK:STDOUT: %.3: i32 = int_value 2 [template] +// CHECK:STDOUT: %.4: i32 = int_value 1 [template] // CHECK:STDOUT: %.5: type = array_type %.4, i32 [template] // CHECK:STDOUT: %.6: type = ptr_type %.5 [template] // CHECK:STDOUT: %RuntimeCall.type: type = fn_type @RuntimeCall [template] @@ -118,8 +118,8 @@ let b: i32 = Div(0, 0); // CHECK:STDOUT: } // CHECK:STDOUT: %int.make_type_32.loc4: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %Div.ref: %Div.type = name_ref Div, %Div.decl [template = constants.%Div] -// CHECK:STDOUT: %.loc4_20: i32 = int_literal 3 [template = constants.%.2] -// CHECK:STDOUT: %.loc4_23: i32 = int_literal 2 [template = constants.%.3] +// CHECK:STDOUT: %.loc4_20: i32 = int_value 3 [template = constants.%.2] +// CHECK:STDOUT: %.loc4_23: i32 = int_value 2 [template = constants.%.3] // CHECK:STDOUT: %int.sdiv: init i32 = call %Div.ref(%.loc4_20, %.loc4_23) [template = constants.%.4] // CHECK:STDOUT: %.loc4_11.1: type = value_of_initializer %int.make_type_32.loc4 [template = i32] // CHECK:STDOUT: %.loc4_11.2: type = converted %int.make_type_32.loc4, %.loc4_11.1 [template = i32] @@ -127,7 +127,7 @@ let b: i32 = Div(0, 0); // CHECK:STDOUT: %arr.var: ref %.5 = var arr // CHECK:STDOUT: %arr: ref %.5 = bind_name arr, %arr.var // CHECK:STDOUT: %int.make_type_32.loc5: init type = call constants.%Int32() [template = i32] -// CHECK:STDOUT: %.loc5_18: i32 = int_literal 1 [template = constants.%.4] +// CHECK:STDOUT: %.loc5_18: i32 = int_value 1 [template = constants.%.4] // CHECK:STDOUT: %.loc5_13.1: type = value_of_initializer %int.make_type_32.loc5 [template = i32] // CHECK:STDOUT: %.loc5_13.2: type = converted %int.make_type_32.loc5, %.loc5_13.1 [template = i32] // CHECK:STDOUT: %.loc5_19: type = array_type %.loc5_18, i32 [template = constants.%.5] @@ -193,11 +193,11 @@ let b: i32 = Div(0, 0); // CHECK:STDOUT: %Sub: %Sub.type = struct_value () [template] // CHECK:STDOUT: %Negate.type: type = fn_type @Negate [template] // CHECK:STDOUT: %Negate: %Negate.type = struct_value () [template] -// CHECK:STDOUT: %.2: i32 = int_literal 2147483647 [template] -// CHECK:STDOUT: %.3: i32 = int_literal -2147483647 [template] -// CHECK:STDOUT: %.4: i32 = int_literal 1 [template] -// CHECK:STDOUT: %.5: i32 = int_literal -1 [template] -// CHECK:STDOUT: %.6: i32 = int_literal -2147483648 [template] +// CHECK:STDOUT: %.2: i32 = int_value 2147483647 [template] +// CHECK:STDOUT: %.3: i32 = int_value -2147483647 [template] +// CHECK:STDOUT: %.4: i32 = int_value 1 [template] +// CHECK:STDOUT: %.5: i32 = int_value -1 [template] +// CHECK:STDOUT: %.6: i32 = int_value -2147483648 [template] // CHECK:STDOUT: } // CHECK:STDOUT: // CHECK:STDOUT: imports { @@ -308,10 +308,10 @@ let b: i32 = Div(0, 0); // CHECK:STDOUT: !entry: // CHECK:STDOUT: %Div.ref.loc9: %Div.type = name_ref Div, file.%Div.decl [template = constants.%Div] // CHECK:STDOUT: %Negate.ref.loc9_18: %Negate.type = name_ref Negate, file.%Negate.decl [template = constants.%Negate] -// CHECK:STDOUT: %.loc9_25: i32 = int_literal 2147483647 [template = constants.%.2] +// CHECK:STDOUT: %.loc9_25: i32 = int_value 2147483647 [template = constants.%.2] // CHECK:STDOUT: %int.snegate.loc9_24: init i32 = call %Negate.ref.loc9_18(%.loc9_25) [template = constants.%.3] // CHECK:STDOUT: %Negate.ref.loc9_39: %Negate.type = name_ref Negate, file.%Negate.decl [template = constants.%Negate] -// CHECK:STDOUT: %.loc9_46: i32 = int_literal 1 [template = constants.%.4] +// CHECK:STDOUT: %.loc9_46: i32 = int_value 1 [template = constants.%.4] // CHECK:STDOUT: %int.snegate.loc9_45: init i32 = call %Negate.ref.loc9_39(%.loc9_46) [template = constants.%.5] // CHECK:STDOUT: %.loc9_24.1: i32 = value_of_initializer %int.snegate.loc9_24 [template = constants.%.3] // CHECK:STDOUT: %.loc9_24.2: i32 = converted %int.snegate.loc9_24, %.loc9_24.1 [template = constants.%.3] @@ -324,13 +324,13 @@ let b: i32 = Div(0, 0); // CHECK:STDOUT: %Div.ref.loc12: %Div.type = name_ref Div, file.%Div.decl [template = constants.%Div] // CHECK:STDOUT: %Sub.ref.loc12: %Sub.type = name_ref Sub, file.%Sub.decl [template = constants.%Sub] // CHECK:STDOUT: %Negate.ref.loc12: %Negate.type = name_ref Negate, file.%Negate.decl [template = constants.%Negate] -// CHECK:STDOUT: %.loc12_29: i32 = int_literal 2147483647 [template = constants.%.2] +// CHECK:STDOUT: %.loc12_29: i32 = int_value 2147483647 [template = constants.%.2] // CHECK:STDOUT: %int.snegate.loc12: init i32 = call %Negate.ref.loc12(%.loc12_29) [template = constants.%.3] -// CHECK:STDOUT: %.loc12_43: i32 = int_literal 1 [template = constants.%.4] +// CHECK:STDOUT: %.loc12_43: i32 = int_value 1 [template = constants.%.4] // CHECK:STDOUT: %.loc12_28.1: i32 = value_of_initializer %int.snegate.loc12 [template = constants.%.3] // CHECK:STDOUT: %.loc12_28.2: i32 = converted %int.snegate.loc12, %.loc12_28.1 [template = constants.%.3] // CHECK:STDOUT: %int.ssub.loc12: init i32 = call %Sub.ref.loc12(%.loc12_28.2, %.loc12_43) [template = constants.%.6] -// CHECK:STDOUT: %.loc12_47: i32 = int_literal 1 [template = constants.%.4] +// CHECK:STDOUT: %.loc12_47: i32 = int_value 1 [template = constants.%.4] // CHECK:STDOUT: %.loc12_21.1: i32 = value_of_initializer %int.ssub.loc12 [template = constants.%.6] // CHECK:STDOUT: %.loc12_21.2: i32 = converted %int.ssub.loc12, %.loc12_21.1 [template = constants.%.6] // CHECK:STDOUT: %int.sdiv.loc12: init i32 = call %Div.ref.loc12(%.loc12_21.2, %.loc12_47) [template = constants.%.6] @@ -340,14 +340,14 @@ let b: i32 = Div(0, 0); // CHECK:STDOUT: %Div.ref.loc19: %Div.type = name_ref Div, file.%Div.decl [template = constants.%Div] // CHECK:STDOUT: %Sub.ref.loc19: %Sub.type = name_ref Sub, file.%Sub.decl [template = constants.%Sub] // CHECK:STDOUT: %Negate.ref.loc19_22: %Negate.type = name_ref Negate, file.%Negate.decl [template = constants.%Negate] -// CHECK:STDOUT: %.loc19_29: i32 = int_literal 2147483647 [template = constants.%.2] +// CHECK:STDOUT: %.loc19_29: i32 = int_value 2147483647 [template = constants.%.2] // CHECK:STDOUT: %int.snegate.loc19_28: init i32 = call %Negate.ref.loc19_22(%.loc19_29) [template = constants.%.3] -// CHECK:STDOUT: %.loc19_43: i32 = int_literal 1 [template = constants.%.4] +// CHECK:STDOUT: %.loc19_43: i32 = int_value 1 [template = constants.%.4] // CHECK:STDOUT: %.loc19_28.1: i32 = value_of_initializer %int.snegate.loc19_28 [template = constants.%.3] // CHECK:STDOUT: %.loc19_28.2: i32 = converted %int.snegate.loc19_28, %.loc19_28.1 [template = constants.%.3] // CHECK:STDOUT: %int.ssub.loc19: init i32 = call %Sub.ref.loc19(%.loc19_28.2, %.loc19_43) [template = constants.%.6] // CHECK:STDOUT: %Negate.ref.loc19_47: %Negate.type = name_ref Negate, file.%Negate.decl [template = constants.%Negate] -// CHECK:STDOUT: %.loc19_54: i32 = int_literal 1 [template = constants.%.4] +// CHECK:STDOUT: %.loc19_54: i32 = int_value 1 [template = constants.%.4] // CHECK:STDOUT: %int.snegate.loc19_53: init i32 = call %Negate.ref.loc19_47(%.loc19_54) [template = constants.%.5] // CHECK:STDOUT: %.loc19_21.1: i32 = value_of_initializer %int.ssub.loc19 [template = constants.%.6] // CHECK:STDOUT: %.loc19_21.2: i32 = converted %int.ssub.loc19, %.loc19_21.1 [template = constants.%.6] @@ -368,8 +368,8 @@ let b: i32 = Div(0, 0); // CHECK:STDOUT: %Int32: %Int32.type = struct_value () [template] // CHECK:STDOUT: %Div.type: type = fn_type @Div [template] // CHECK:STDOUT: %Div: %Div.type = struct_value () [template] -// CHECK:STDOUT: %.2: i32 = int_literal 1 [template] -// CHECK:STDOUT: %.3: i32 = int_literal 0 [template] +// CHECK:STDOUT: %.2: i32 = int_value 1 [template] +// CHECK:STDOUT: %.3: i32 = int_value 0 [template] // CHECK:STDOUT: } // CHECK:STDOUT: // CHECK:STDOUT: imports { @@ -428,15 +428,15 @@ let b: i32 = Div(0, 0); // CHECK:STDOUT: fn @__global_init() { // CHECK:STDOUT: !entry: // CHECK:STDOUT: %Div.ref.loc10: %Div.type = name_ref Div, file.%Div.decl [template = constants.%Div] -// CHECK:STDOUT: %.loc10_18: i32 = int_literal 1 [template = constants.%.2] -// CHECK:STDOUT: %.loc10_21: i32 = int_literal 0 [template = constants.%.3] +// CHECK:STDOUT: %.loc10_18: i32 = int_value 1 [template = constants.%.2] +// CHECK:STDOUT: %.loc10_21: i32 = int_value 0 [template = constants.%.3] // CHECK:STDOUT: %int.sdiv.loc10: init i32 = call %Div.ref.loc10(%.loc10_18, %.loc10_21) [template = ] // CHECK:STDOUT: %.loc10_23.1: i32 = value_of_initializer %int.sdiv.loc10 [template = ] // CHECK:STDOUT: %.loc10_23.2: i32 = converted %int.sdiv.loc10, %.loc10_23.1 [template = ] // CHECK:STDOUT: %a: i32 = bind_name a, %.loc10_23.2 // CHECK:STDOUT: %Div.ref.loc15: %Div.type = name_ref Div, file.%Div.decl [template = constants.%Div] -// CHECK:STDOUT: %.loc15_18: i32 = int_literal 0 [template = constants.%.3] -// CHECK:STDOUT: %.loc15_21: i32 = int_literal 0 [template = constants.%.3] +// CHECK:STDOUT: %.loc15_18: i32 = int_value 0 [template = constants.%.3] +// CHECK:STDOUT: %.loc15_21: i32 = int_value 0 [template = constants.%.3] // CHECK:STDOUT: %int.sdiv.loc15: init i32 = call %Div.ref.loc15(%.loc15_18, %.loc15_21) [template = ] // CHECK:STDOUT: %.loc15_23.1: i32 = value_of_initializer %int.sdiv.loc15 [template = ] // CHECK:STDOUT: %.loc15_23.2: i32 = converted %int.sdiv.loc15, %.loc15_23.1 [template = ] diff --git a/toolchain/check/testdata/builtins/int/smod.carbon b/toolchain/check/testdata/builtins/int/smod.carbon index 7abb04ebffa05..c5f0f35d61a72 100644 --- a/toolchain/check/testdata/builtins/int/smod.carbon +++ b/toolchain/check/testdata/builtins/int/smod.carbon @@ -68,9 +68,9 @@ let b: i32 = Mod(0, 0); // CHECK:STDOUT: %Int32: %Int32.type = struct_value () [template] // CHECK:STDOUT: %Mod.type: type = fn_type @Mod [template] // CHECK:STDOUT: %Mod: %Mod.type = struct_value () [template] -// CHECK:STDOUT: %.2: i32 = int_literal 5 [template] -// CHECK:STDOUT: %.3: i32 = int_literal 3 [template] -// CHECK:STDOUT: %.4: i32 = int_literal 2 [template] +// CHECK:STDOUT: %.2: i32 = int_value 5 [template] +// CHECK:STDOUT: %.3: i32 = int_value 3 [template] +// CHECK:STDOUT: %.4: i32 = int_value 2 [template] // CHECK:STDOUT: %.5: type = array_type %.4, i32 [template] // CHECK:STDOUT: %.6: type = ptr_type %.5 [template] // CHECK:STDOUT: %RuntimeCall.type: type = fn_type @RuntimeCall [template] @@ -121,8 +121,8 @@ let b: i32 = Mod(0, 0); // CHECK:STDOUT: } // CHECK:STDOUT: %int.make_type_32.loc4: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %Mod.ref: %Mod.type = name_ref Mod, %Mod.decl [template = constants.%Mod] -// CHECK:STDOUT: %.loc4_20: i32 = int_literal 5 [template = constants.%.2] -// CHECK:STDOUT: %.loc4_23: i32 = int_literal 3 [template = constants.%.3] +// CHECK:STDOUT: %.loc4_20: i32 = int_value 5 [template = constants.%.2] +// CHECK:STDOUT: %.loc4_23: i32 = int_value 3 [template = constants.%.3] // CHECK:STDOUT: %int.smod: init i32 = call %Mod.ref(%.loc4_20, %.loc4_23) [template = constants.%.4] // CHECK:STDOUT: %.loc4_11.1: type = value_of_initializer %int.make_type_32.loc4 [template = i32] // CHECK:STDOUT: %.loc4_11.2: type = converted %int.make_type_32.loc4, %.loc4_11.1 [template = i32] @@ -130,7 +130,7 @@ let b: i32 = Mod(0, 0); // CHECK:STDOUT: %arr.var: ref %.5 = var arr // CHECK:STDOUT: %arr: ref %.5 = bind_name arr, %arr.var // CHECK:STDOUT: %int.make_type_32.loc5: init type = call constants.%Int32() [template = i32] -// CHECK:STDOUT: %.loc5_18: i32 = int_literal 2 [template = constants.%.4] +// CHECK:STDOUT: %.loc5_18: i32 = int_value 2 [template = constants.%.4] // CHECK:STDOUT: %.loc5_13.1: type = value_of_initializer %int.make_type_32.loc5 [template = i32] // CHECK:STDOUT: %.loc5_13.2: type = converted %int.make_type_32.loc5, %.loc5_13.1 [template = i32] // CHECK:STDOUT: %.loc5_19: type = array_type %.loc5_18, i32 [template = constants.%.5] @@ -196,12 +196,12 @@ let b: i32 = Mod(0, 0); // CHECK:STDOUT: %Sub: %Sub.type = struct_value () [template] // CHECK:STDOUT: %Negate.type: type = fn_type @Negate [template] // CHECK:STDOUT: %Negate: %Negate.type = struct_value () [template] -// CHECK:STDOUT: %.2: i32 = int_literal 2147483647 [template] -// CHECK:STDOUT: %.3: i32 = int_literal -2147483647 [template] -// CHECK:STDOUT: %.4: i32 = int_literal 1 [template] -// CHECK:STDOUT: %.5: i32 = int_literal -1 [template] -// CHECK:STDOUT: %.6: i32 = int_literal 0 [template] -// CHECK:STDOUT: %.7: i32 = int_literal -2147483648 [template] +// CHECK:STDOUT: %.2: i32 = int_value 2147483647 [template] +// CHECK:STDOUT: %.3: i32 = int_value -2147483647 [template] +// CHECK:STDOUT: %.4: i32 = int_value 1 [template] +// CHECK:STDOUT: %.5: i32 = int_value -1 [template] +// CHECK:STDOUT: %.6: i32 = int_value 0 [template] +// CHECK:STDOUT: %.7: i32 = int_value -2147483648 [template] // CHECK:STDOUT: } // CHECK:STDOUT: // CHECK:STDOUT: imports { @@ -312,10 +312,10 @@ let b: i32 = Mod(0, 0); // CHECK:STDOUT: !entry: // CHECK:STDOUT: %Mod.ref.loc9: %Mod.type = name_ref Mod, file.%Mod.decl [template = constants.%Mod] // CHECK:STDOUT: %Negate.ref.loc9_18: %Negate.type = name_ref Negate, file.%Negate.decl [template = constants.%Negate] -// CHECK:STDOUT: %.loc9_25: i32 = int_literal 2147483647 [template = constants.%.2] +// CHECK:STDOUT: %.loc9_25: i32 = int_value 2147483647 [template = constants.%.2] // CHECK:STDOUT: %int.snegate.loc9_24: init i32 = call %Negate.ref.loc9_18(%.loc9_25) [template = constants.%.3] // CHECK:STDOUT: %Negate.ref.loc9_39: %Negate.type = name_ref Negate, file.%Negate.decl [template = constants.%Negate] -// CHECK:STDOUT: %.loc9_46: i32 = int_literal 1 [template = constants.%.4] +// CHECK:STDOUT: %.loc9_46: i32 = int_value 1 [template = constants.%.4] // CHECK:STDOUT: %int.snegate.loc9_45: init i32 = call %Negate.ref.loc9_39(%.loc9_46) [template = constants.%.5] // CHECK:STDOUT: %.loc9_24.1: i32 = value_of_initializer %int.snegate.loc9_24 [template = constants.%.3] // CHECK:STDOUT: %.loc9_24.2: i32 = converted %int.snegate.loc9_24, %.loc9_24.1 [template = constants.%.3] @@ -328,13 +328,13 @@ let b: i32 = Mod(0, 0); // CHECK:STDOUT: %Mod.ref.loc12: %Mod.type = name_ref Mod, file.%Mod.decl [template = constants.%Mod] // CHECK:STDOUT: %Sub.ref.loc12: %Sub.type = name_ref Sub, file.%Sub.decl [template = constants.%Sub] // CHECK:STDOUT: %Negate.ref.loc12: %Negate.type = name_ref Negate, file.%Negate.decl [template = constants.%Negate] -// CHECK:STDOUT: %.loc12_29: i32 = int_literal 2147483647 [template = constants.%.2] +// CHECK:STDOUT: %.loc12_29: i32 = int_value 2147483647 [template = constants.%.2] // CHECK:STDOUT: %int.snegate.loc12: init i32 = call %Negate.ref.loc12(%.loc12_29) [template = constants.%.3] -// CHECK:STDOUT: %.loc12_43: i32 = int_literal 1 [template = constants.%.4] +// CHECK:STDOUT: %.loc12_43: i32 = int_value 1 [template = constants.%.4] // CHECK:STDOUT: %.loc12_28.1: i32 = value_of_initializer %int.snegate.loc12 [template = constants.%.3] // CHECK:STDOUT: %.loc12_28.2: i32 = converted %int.snegate.loc12, %.loc12_28.1 [template = constants.%.3] // CHECK:STDOUT: %int.ssub.loc12: init i32 = call %Sub.ref.loc12(%.loc12_28.2, %.loc12_43) [template = constants.%.7] -// CHECK:STDOUT: %.loc12_47: i32 = int_literal 1 [template = constants.%.4] +// CHECK:STDOUT: %.loc12_47: i32 = int_value 1 [template = constants.%.4] // CHECK:STDOUT: %.loc12_21.1: i32 = value_of_initializer %int.ssub.loc12 [template = constants.%.7] // CHECK:STDOUT: %.loc12_21.2: i32 = converted %int.ssub.loc12, %.loc12_21.1 [template = constants.%.7] // CHECK:STDOUT: %int.smod.loc12: init i32 = call %Mod.ref.loc12(%.loc12_21.2, %.loc12_47) [template = constants.%.6] @@ -344,14 +344,14 @@ let b: i32 = Mod(0, 0); // CHECK:STDOUT: %Mod.ref.loc20: %Mod.type = name_ref Mod, file.%Mod.decl [template = constants.%Mod] // CHECK:STDOUT: %Sub.ref.loc20: %Sub.type = name_ref Sub, file.%Sub.decl [template = constants.%Sub] // CHECK:STDOUT: %Negate.ref.loc20_22: %Negate.type = name_ref Negate, file.%Negate.decl [template = constants.%Negate] -// CHECK:STDOUT: %.loc20_29: i32 = int_literal 2147483647 [template = constants.%.2] +// CHECK:STDOUT: %.loc20_29: i32 = int_value 2147483647 [template = constants.%.2] // CHECK:STDOUT: %int.snegate.loc20_28: init i32 = call %Negate.ref.loc20_22(%.loc20_29) [template = constants.%.3] -// CHECK:STDOUT: %.loc20_43: i32 = int_literal 1 [template = constants.%.4] +// CHECK:STDOUT: %.loc20_43: i32 = int_value 1 [template = constants.%.4] // CHECK:STDOUT: %.loc20_28.1: i32 = value_of_initializer %int.snegate.loc20_28 [template = constants.%.3] // CHECK:STDOUT: %.loc20_28.2: i32 = converted %int.snegate.loc20_28, %.loc20_28.1 [template = constants.%.3] // CHECK:STDOUT: %int.ssub.loc20: init i32 = call %Sub.ref.loc20(%.loc20_28.2, %.loc20_43) [template = constants.%.7] // CHECK:STDOUT: %Negate.ref.loc20_47: %Negate.type = name_ref Negate, file.%Negate.decl [template = constants.%Negate] -// CHECK:STDOUT: %.loc20_54: i32 = int_literal 1 [template = constants.%.4] +// CHECK:STDOUT: %.loc20_54: i32 = int_value 1 [template = constants.%.4] // CHECK:STDOUT: %int.snegate.loc20_53: init i32 = call %Negate.ref.loc20_47(%.loc20_54) [template = constants.%.5] // CHECK:STDOUT: %.loc20_21.1: i32 = value_of_initializer %int.ssub.loc20 [template = constants.%.7] // CHECK:STDOUT: %.loc20_21.2: i32 = converted %int.ssub.loc20, %.loc20_21.1 [template = constants.%.7] @@ -372,8 +372,8 @@ let b: i32 = Mod(0, 0); // CHECK:STDOUT: %Int32: %Int32.type = struct_value () [template] // CHECK:STDOUT: %Mod.type: type = fn_type @Mod [template] // CHECK:STDOUT: %Mod: %Mod.type = struct_value () [template] -// CHECK:STDOUT: %.2: i32 = int_literal 1 [template] -// CHECK:STDOUT: %.3: i32 = int_literal 0 [template] +// CHECK:STDOUT: %.2: i32 = int_value 1 [template] +// CHECK:STDOUT: %.3: i32 = int_value 0 [template] // CHECK:STDOUT: } // CHECK:STDOUT: // CHECK:STDOUT: imports { @@ -432,15 +432,15 @@ let b: i32 = Mod(0, 0); // CHECK:STDOUT: fn @__global_init() { // CHECK:STDOUT: !entry: // CHECK:STDOUT: %Mod.ref.loc12: %Mod.type = name_ref Mod, file.%Mod.decl [template = constants.%Mod] -// CHECK:STDOUT: %.loc12_18: i32 = int_literal 1 [template = constants.%.2] -// CHECK:STDOUT: %.loc12_21: i32 = int_literal 0 [template = constants.%.3] +// CHECK:STDOUT: %.loc12_18: i32 = int_value 1 [template = constants.%.2] +// CHECK:STDOUT: %.loc12_21: i32 = int_value 0 [template = constants.%.3] // CHECK:STDOUT: %int.smod.loc12: init i32 = call %Mod.ref.loc12(%.loc12_18, %.loc12_21) [template = ] // CHECK:STDOUT: %.loc12_23.1: i32 = value_of_initializer %int.smod.loc12 [template = ] // CHECK:STDOUT: %.loc12_23.2: i32 = converted %int.smod.loc12, %.loc12_23.1 [template = ] // CHECK:STDOUT: %a: i32 = bind_name a, %.loc12_23.2 // CHECK:STDOUT: %Mod.ref.loc17: %Mod.type = name_ref Mod, file.%Mod.decl [template = constants.%Mod] -// CHECK:STDOUT: %.loc17_18: i32 = int_literal 0 [template = constants.%.3] -// CHECK:STDOUT: %.loc17_21: i32 = int_literal 0 [template = constants.%.3] +// CHECK:STDOUT: %.loc17_18: i32 = int_value 0 [template = constants.%.3] +// CHECK:STDOUT: %.loc17_21: i32 = int_value 0 [template = constants.%.3] // CHECK:STDOUT: %int.smod.loc17: init i32 = call %Mod.ref.loc17(%.loc17_18, %.loc17_21) [template = ] // CHECK:STDOUT: %.loc17_23.1: i32 = value_of_initializer %int.smod.loc17 [template = ] // CHECK:STDOUT: %.loc17_23.2: i32 = converted %int.smod.loc17, %.loc17_23.1 [template = ] diff --git a/toolchain/check/testdata/builtins/int/smul.carbon b/toolchain/check/testdata/builtins/int/smul.carbon index adf26966ed316..a8367c734a057 100644 --- a/toolchain/check/testdata/builtins/int/smul.carbon +++ b/toolchain/check/testdata/builtins/int/smul.carbon @@ -39,9 +39,9 @@ let b: i32 = Mul(0x8000, 0x10000); // CHECK:STDOUT: %Int32: %Int32.type = struct_value () [template] // CHECK:STDOUT: %Mul.type: type = fn_type @Mul [template] // CHECK:STDOUT: %Mul: %Mul.type = struct_value () [template] -// CHECK:STDOUT: %.2: i32 = int_literal 3 [template] -// CHECK:STDOUT: %.3: i32 = int_literal 2 [template] -// CHECK:STDOUT: %.4: i32 = int_literal 6 [template] +// CHECK:STDOUT: %.2: i32 = int_value 3 [template] +// CHECK:STDOUT: %.3: i32 = int_value 2 [template] +// CHECK:STDOUT: %.4: i32 = int_value 6 [template] // CHECK:STDOUT: %.5: type = array_type %.4, i32 [template] // CHECK:STDOUT: %.6: type = ptr_type %.5 [template] // CHECK:STDOUT: %RuntimeCall.type: type = fn_type @RuntimeCall [template] @@ -92,8 +92,8 @@ let b: i32 = Mul(0x8000, 0x10000); // CHECK:STDOUT: } // CHECK:STDOUT: %int.make_type_32.loc4: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %Mul.ref: %Mul.type = name_ref Mul, %Mul.decl [template = constants.%Mul] -// CHECK:STDOUT: %.loc4_20: i32 = int_literal 3 [template = constants.%.2] -// CHECK:STDOUT: %.loc4_23: i32 = int_literal 2 [template = constants.%.3] +// CHECK:STDOUT: %.loc4_20: i32 = int_value 3 [template = constants.%.2] +// CHECK:STDOUT: %.loc4_23: i32 = int_value 2 [template = constants.%.3] // CHECK:STDOUT: %int.smul: init i32 = call %Mul.ref(%.loc4_20, %.loc4_23) [template = constants.%.4] // CHECK:STDOUT: %.loc4_11.1: type = value_of_initializer %int.make_type_32.loc4 [template = i32] // CHECK:STDOUT: %.loc4_11.2: type = converted %int.make_type_32.loc4, %.loc4_11.1 [template = i32] @@ -101,7 +101,7 @@ let b: i32 = Mul(0x8000, 0x10000); // CHECK:STDOUT: %arr.var: ref %.5 = var arr // CHECK:STDOUT: %arr: ref %.5 = bind_name arr, %arr.var // CHECK:STDOUT: %int.make_type_32.loc5: init type = call constants.%Int32() [template = i32] -// CHECK:STDOUT: %.loc5_18: i32 = int_literal 6 [template = constants.%.4] +// CHECK:STDOUT: %.loc5_18: i32 = int_value 6 [template = constants.%.4] // CHECK:STDOUT: %.loc5_13.1: type = value_of_initializer %int.make_type_32.loc5 [template = i32] // CHECK:STDOUT: %.loc5_13.2: type = converted %int.make_type_32.loc5, %.loc5_13.1 [template = i32] // CHECK:STDOUT: %.loc5_19: type = array_type %.loc5_18, i32 [template = constants.%.5] @@ -163,11 +163,11 @@ let b: i32 = Mul(0x8000, 0x10000); // CHECK:STDOUT: %Int32: %Int32.type = struct_value () [template] // CHECK:STDOUT: %Mul.type: type = fn_type @Mul [template] // CHECK:STDOUT: %Mul: %Mul.type = struct_value () [template] -// CHECK:STDOUT: %.2: i32 = int_literal 32767 [template] -// CHECK:STDOUT: %.3: i32 = int_literal 65536 [template] -// CHECK:STDOUT: %.4: i32 = int_literal 2147418112 [template] -// CHECK:STDOUT: %.5: i32 = int_literal 32768 [template] -// CHECK:STDOUT: %.6: i32 = int_literal -2147483648 [template] +// CHECK:STDOUT: %.2: i32 = int_value 32767 [template] +// CHECK:STDOUT: %.3: i32 = int_value 65536 [template] +// CHECK:STDOUT: %.4: i32 = int_value 2147418112 [template] +// CHECK:STDOUT: %.5: i32 = int_value 32768 [template] +// CHECK:STDOUT: %.6: i32 = int_value -2147483648 [template] // CHECK:STDOUT: } // CHECK:STDOUT: // CHECK:STDOUT: imports { @@ -226,15 +226,15 @@ let b: i32 = Mul(0x8000, 0x10000); // CHECK:STDOUT: fn @__global_init() { // CHECK:STDOUT: !entry: // CHECK:STDOUT: %Mul.ref.loc6: %Mul.type = name_ref Mul, file.%Mul.decl [template = constants.%Mul] -// CHECK:STDOUT: %.loc6_18: i32 = int_literal 32767 [template = constants.%.2] -// CHECK:STDOUT: %.loc6_26: i32 = int_literal 65536 [template = constants.%.3] +// CHECK:STDOUT: %.loc6_18: i32 = int_value 32767 [template = constants.%.2] +// CHECK:STDOUT: %.loc6_26: i32 = int_value 65536 [template = constants.%.3] // CHECK:STDOUT: %int.smul.loc6: init i32 = call %Mul.ref.loc6(%.loc6_18, %.loc6_26) [template = constants.%.4] // CHECK:STDOUT: %.loc6_34.1: i32 = value_of_initializer %int.smul.loc6 [template = constants.%.4] // CHECK:STDOUT: %.loc6_34.2: i32 = converted %int.smul.loc6, %.loc6_34.1 [template = constants.%.4] // CHECK:STDOUT: %a: i32 = bind_name a, %.loc6_34.2 // CHECK:STDOUT: %Mul.ref.loc10: %Mul.type = name_ref Mul, file.%Mul.decl [template = constants.%Mul] -// CHECK:STDOUT: %.loc10_18: i32 = int_literal 32768 [template = constants.%.5] -// CHECK:STDOUT: %.loc10_26: i32 = int_literal 65536 [template = constants.%.3] +// CHECK:STDOUT: %.loc10_18: i32 = int_value 32768 [template = constants.%.5] +// CHECK:STDOUT: %.loc10_26: i32 = int_value 65536 [template = constants.%.3] // CHECK:STDOUT: %int.smul.loc10: init i32 = call %Mul.ref.loc10(%.loc10_18, %.loc10_26) [template = constants.%.6] // CHECK:STDOUT: %.loc10_34.1: i32 = value_of_initializer %int.smul.loc10 [template = constants.%.6] // CHECK:STDOUT: %.loc10_34.2: i32 = converted %int.smul.loc10, %.loc10_34.1 [template = constants.%.6] diff --git a/toolchain/check/testdata/builtins/int/snegate.carbon b/toolchain/check/testdata/builtins/int/snegate.carbon index 58a8b43ab920b..683bd593a67fe 100644 --- a/toolchain/check/testdata/builtins/int/snegate.carbon +++ b/toolchain/check/testdata/builtins/int/snegate.carbon @@ -124,12 +124,12 @@ let b: i32 = Negate(Sub(Negate(0x7FFFFFFF), 1)); // CHECK:STDOUT: %Int32: %Int32.type = struct_value () [template] // CHECK:STDOUT: %Negate.type: type = fn_type @Negate [template] // CHECK:STDOUT: %Negate: %Negate.type = struct_value () [template] -// CHECK:STDOUT: %.2: i32 = int_literal 123 [template] -// CHECK:STDOUT: %.3: i32 = int_literal -123 [template] +// CHECK:STDOUT: %.2: i32 = int_value 123 [template] +// CHECK:STDOUT: %.3: i32 = int_value -123 [template] // CHECK:STDOUT: %.4: type = array_type %.2, i32 [template] // CHECK:STDOUT: %.5: type = ptr_type %.4 [template] -// CHECK:STDOUT: %.6: i32 = int_literal 1 [template] -// CHECK:STDOUT: %.7: i32 = int_literal -1 [template] +// CHECK:STDOUT: %.6: i32 = int_value 1 [template] +// CHECK:STDOUT: %.7: i32 = int_value -1 [template] // CHECK:STDOUT: %RuntimeCall.type: type = fn_type @RuntimeCall [template] // CHECK:STDOUT: %RuntimeCall: %RuntimeCall.type = struct_value () [template] // CHECK:STDOUT: } @@ -173,7 +173,7 @@ let b: i32 = Negate(Sub(Negate(0x7FFFFFFF), 1)); // CHECK:STDOUT: %int.make_type_32.loc4: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %Negate.ref.loc4_16: %Negate.type = name_ref Negate, %Negate.decl [template = constants.%Negate] // CHECK:STDOUT: %Negate.ref.loc4_23: %Negate.type = name_ref Negate, %Negate.decl [template = constants.%Negate] -// CHECK:STDOUT: %.loc4_30: i32 = int_literal 123 [template = constants.%.2] +// CHECK:STDOUT: %.loc4_30: i32 = int_value 123 [template = constants.%.2] // CHECK:STDOUT: %int.snegate.loc4_29: init i32 = call %Negate.ref.loc4_23(%.loc4_30) [template = constants.%.3] // CHECK:STDOUT: %.loc4_29.1: i32 = value_of_initializer %int.snegate.loc4_29 [template = constants.%.3] // CHECK:STDOUT: %.loc4_29.2: i32 = converted %int.snegate.loc4_29, %.loc4_29.1 [template = constants.%.3] @@ -184,7 +184,7 @@ let b: i32 = Negate(Sub(Negate(0x7FFFFFFF), 1)); // CHECK:STDOUT: %arr.var: ref %.4 = var arr // CHECK:STDOUT: %arr: ref %.4 = bind_name arr, %arr.var // CHECK:STDOUT: %int.make_type_32.loc5: init type = call constants.%Int32() [template = i32] -// CHECK:STDOUT: %.loc5_18: i32 = int_literal 123 [template = constants.%.2] +// CHECK:STDOUT: %.loc5_18: i32 = int_value 123 [template = constants.%.2] // CHECK:STDOUT: %.loc5_13.1: type = value_of_initializer %int.make_type_32.loc5 [template = i32] // CHECK:STDOUT: %.loc5_13.2: type = converted %int.make_type_32.loc5, %.loc5_13.1 [template = i32] // CHECK:STDOUT: %.loc5_21: type = array_type %.loc5_18, i32 [template = constants.%.4] @@ -238,7 +238,7 @@ let b: i32 = Negate(Sub(Negate(0x7FFFFFFF), 1)); // CHECK:STDOUT: %.loc5: %.5 = addr_of %arr.ref // CHECK:STDOUT: %arr_p: %.5 = bind_name arr_p, %.loc5 // CHECK:STDOUT: %Negate.ref: %Negate.type = name_ref Negate, file.%Negate.decl [template = constants.%Negate] -// CHECK:STDOUT: %.loc7_21: i32 = int_literal 1 [template = constants.%.6] +// CHECK:STDOUT: %.loc7_21: i32 = int_value 1 [template = constants.%.6] // CHECK:STDOUT: %int.snegate: init i32 = call %Negate.ref(%.loc7_21) [template = constants.%.7] // CHECK:STDOUT: %.loc7_23.1: i32 = value_of_initializer %int.snegate [template = constants.%.7] // CHECK:STDOUT: %.loc7_23.2: i32 = converted %int.snegate, %.loc7_23.1 [template = constants.%.7] @@ -262,8 +262,8 @@ let b: i32 = Negate(Sub(Negate(0x7FFFFFFF), 1)); // CHECK:STDOUT: %BadReturnType: %BadReturnType.type = struct_value () [template] // CHECK:STDOUT: %JustRight.type: type = fn_type @JustRight [template] // CHECK:STDOUT: %JustRight: %JustRight.type = struct_value () [template] -// CHECK:STDOUT: %.2: i32 = int_literal 1 [template] -// CHECK:STDOUT: %.3: i32 = int_literal 2 [template] +// CHECK:STDOUT: %.2: i32 = int_value 1 [template] +// CHECK:STDOUT: %.3: i32 = int_value 2 [template] // CHECK:STDOUT: %RuntimeCallTooFew.type: type = fn_type @RuntimeCallTooFew [template] // CHECK:STDOUT: %RuntimeCallTooFew: %RuntimeCallTooFew.type = struct_value () [template] // CHECK:STDOUT: %RuntimeCallTooMany.type: type = fn_type @RuntimeCallTooMany [template] @@ -374,21 +374,21 @@ let b: i32 = Negate(Sub(Negate(0x7FFFFFFF), 1)); // CHECK:STDOUT: %too_few: ref = bind_name too_few, %too_few.var // CHECK:STDOUT: %int.make_type_32.loc30: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %TooMany.ref: %TooMany.type = name_ref TooMany, %TooMany.decl [template = constants.%TooMany] -// CHECK:STDOUT: %.loc30_29: i32 = int_literal 1 [template = constants.%.2] -// CHECK:STDOUT: %.loc30_32: i32 = int_literal 2 [template = constants.%.3] +// CHECK:STDOUT: %.loc30_29: i32 = int_value 1 [template = constants.%.2] +// CHECK:STDOUT: %.loc30_32: i32 = int_value 2 [template = constants.%.3] // CHECK:STDOUT: %TooMany.call: init i32 = call %TooMany.ref(%.loc30_29, %.loc30_32) // CHECK:STDOUT: %too_many.var: ref = var too_many // CHECK:STDOUT: %too_many: ref = bind_name too_many, %too_many.var // CHECK:STDOUT: %int.make_type_32.loc35: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %BadReturnType.ref: %BadReturnType.type = name_ref BadReturnType, %BadReturnType.decl [template = constants.%BadReturnType] -// CHECK:STDOUT: %.loc35: i32 = int_literal 1 [template = constants.%.2] +// CHECK:STDOUT: %.loc35: i32 = int_value 1 [template = constants.%.2] // CHECK:STDOUT: %BadReturnType.call: init bool = call %BadReturnType.ref(%.loc35) // CHECK:STDOUT: %bad_return_type.var: ref = var bad_return_type // CHECK:STDOUT: %bad_return_type: ref = bind_name bad_return_type, %bad_return_type.var // CHECK:STDOUT: %int.make_type_32.loc44: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %JustRight.ref: %JustRight.type = name_ref JustRight, %JustRight.decl [template = constants.%JustRight] -// CHECK:STDOUT: %.loc44_31: i32 = int_literal 1 [template = constants.%.2] -// CHECK:STDOUT: %.loc44_34: i32 = int_literal 2 [template = constants.%.3] +// CHECK:STDOUT: %.loc44_31: i32 = int_value 1 [template = constants.%.2] +// CHECK:STDOUT: %.loc44_34: i32 = int_value 2 [template = constants.%.3] // CHECK:STDOUT: %.loc44_16.1: type = value_of_initializer %int.make_type_32.loc44 [template = i32] // CHECK:STDOUT: %.loc44_16.2: type = converted %int.make_type_32.loc44, %.loc44_16.1 [template = i32] // CHECK:STDOUT: %.loc44_36: type = array_type , i32 [template = ] @@ -514,10 +514,10 @@ let b: i32 = Negate(Sub(Negate(0x7FFFFFFF), 1)); // CHECK:STDOUT: %Negate: %Negate.type = struct_value () [template] // CHECK:STDOUT: %Sub.type: type = fn_type @Sub [template] // CHECK:STDOUT: %Sub: %Sub.type = struct_value () [template] -// CHECK:STDOUT: %.2: i32 = int_literal 2147483647 [template] -// CHECK:STDOUT: %.3: i32 = int_literal -2147483647 [template] -// CHECK:STDOUT: %.4: i32 = int_literal 1 [template] -// CHECK:STDOUT: %.5: i32 = int_literal -2147483648 [template] +// CHECK:STDOUT: %.2: i32 = int_value 2147483647 [template] +// CHECK:STDOUT: %.3: i32 = int_value -2147483647 [template] +// CHECK:STDOUT: %.4: i32 = int_value 1 [template] +// CHECK:STDOUT: %.5: i32 = int_value -2147483648 [template] // CHECK:STDOUT: } // CHECK:STDOUT: // CHECK:STDOUT: imports { @@ -597,7 +597,7 @@ let b: i32 = Negate(Sub(Negate(0x7FFFFFFF), 1)); // CHECK:STDOUT: !entry: // CHECK:STDOUT: %Negate.ref.loc8_14: %Negate.type = name_ref Negate, file.%Negate.decl [template = constants.%Negate] // CHECK:STDOUT: %Negate.ref.loc8_21: %Negate.type = name_ref Negate, file.%Negate.decl [template = constants.%Negate] -// CHECK:STDOUT: %.loc8_28: i32 = int_literal 2147483647 [template = constants.%.2] +// CHECK:STDOUT: %.loc8_28: i32 = int_value 2147483647 [template = constants.%.2] // CHECK:STDOUT: %int.snegate.loc8_27: init i32 = call %Negate.ref.loc8_21(%.loc8_28) [template = constants.%.3] // CHECK:STDOUT: %.loc8_27.1: i32 = value_of_initializer %int.snegate.loc8_27 [template = constants.%.3] // CHECK:STDOUT: %.loc8_27.2: i32 = converted %int.snegate.loc8_27, %.loc8_27.1 [template = constants.%.3] @@ -608,9 +608,9 @@ let b: i32 = Negate(Sub(Negate(0x7FFFFFFF), 1)); // CHECK:STDOUT: %Negate.ref.loc14_14: %Negate.type = name_ref Negate, file.%Negate.decl [template = constants.%Negate] // CHECK:STDOUT: %Sub.ref: %Sub.type = name_ref Sub, file.%Sub.decl [template = constants.%Sub] // CHECK:STDOUT: %Negate.ref.loc14_25: %Negate.type = name_ref Negate, file.%Negate.decl [template = constants.%Negate] -// CHECK:STDOUT: %.loc14_32: i32 = int_literal 2147483647 [template = constants.%.2] +// CHECK:STDOUT: %.loc14_32: i32 = int_value 2147483647 [template = constants.%.2] // CHECK:STDOUT: %int.snegate.loc14_31: init i32 = call %Negate.ref.loc14_25(%.loc14_32) [template = constants.%.3] -// CHECK:STDOUT: %.loc14_45: i32 = int_literal 1 [template = constants.%.4] +// CHECK:STDOUT: %.loc14_45: i32 = int_value 1 [template = constants.%.4] // CHECK:STDOUT: %.loc14_31.1: i32 = value_of_initializer %int.snegate.loc14_31 [template = constants.%.3] // CHECK:STDOUT: %.loc14_31.2: i32 = converted %int.snegate.loc14_31, %.loc14_31.1 [template = constants.%.3] // CHECK:STDOUT: %int.ssub: init i32 = call %Sub.ref(%.loc14_31.2, %.loc14_45) [template = constants.%.5] diff --git a/toolchain/check/testdata/builtins/int/ssub.carbon b/toolchain/check/testdata/builtins/int/ssub.carbon index 3c780e4e851ed..5ad30b6d9759b 100644 --- a/toolchain/check/testdata/builtins/int/ssub.carbon +++ b/toolchain/check/testdata/builtins/int/ssub.carbon @@ -40,9 +40,9 @@ let c: i32 = Sub(Sub(0, 0x7FFFFFFF), 2); // CHECK:STDOUT: %Int32: %Int32.type = struct_value () [template] // CHECK:STDOUT: %Sub.type: type = fn_type @Sub [template] // CHECK:STDOUT: %Sub: %Sub.type = struct_value () [template] -// CHECK:STDOUT: %.2: i32 = int_literal 3 [template] -// CHECK:STDOUT: %.3: i32 = int_literal 2 [template] -// CHECK:STDOUT: %.4: i32 = int_literal 1 [template] +// CHECK:STDOUT: %.2: i32 = int_value 3 [template] +// CHECK:STDOUT: %.3: i32 = int_value 2 [template] +// CHECK:STDOUT: %.4: i32 = int_value 1 [template] // CHECK:STDOUT: %.5: type = array_type %.4, i32 [template] // CHECK:STDOUT: %.6: type = ptr_type %.5 [template] // CHECK:STDOUT: %RuntimeCall.type: type = fn_type @RuntimeCall [template] @@ -93,8 +93,8 @@ let c: i32 = Sub(Sub(0, 0x7FFFFFFF), 2); // CHECK:STDOUT: } // CHECK:STDOUT: %int.make_type_32.loc4: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %Sub.ref: %Sub.type = name_ref Sub, %Sub.decl [template = constants.%Sub] -// CHECK:STDOUT: %.loc4_20: i32 = int_literal 3 [template = constants.%.2] -// CHECK:STDOUT: %.loc4_23: i32 = int_literal 2 [template = constants.%.3] +// CHECK:STDOUT: %.loc4_20: i32 = int_value 3 [template = constants.%.2] +// CHECK:STDOUT: %.loc4_23: i32 = int_value 2 [template = constants.%.3] // CHECK:STDOUT: %int.ssub: init i32 = call %Sub.ref(%.loc4_20, %.loc4_23) [template = constants.%.4] // CHECK:STDOUT: %.loc4_11.1: type = value_of_initializer %int.make_type_32.loc4 [template = i32] // CHECK:STDOUT: %.loc4_11.2: type = converted %int.make_type_32.loc4, %.loc4_11.1 [template = i32] @@ -102,7 +102,7 @@ let c: i32 = Sub(Sub(0, 0x7FFFFFFF), 2); // CHECK:STDOUT: %arr.var: ref %.5 = var arr // CHECK:STDOUT: %arr: ref %.5 = bind_name arr, %arr.var // CHECK:STDOUT: %int.make_type_32.loc5: init type = call constants.%Int32() [template = i32] -// CHECK:STDOUT: %.loc5_18: i32 = int_literal 1 [template = constants.%.4] +// CHECK:STDOUT: %.loc5_18: i32 = int_value 1 [template = constants.%.4] // CHECK:STDOUT: %.loc5_13.1: type = value_of_initializer %int.make_type_32.loc5 [template = i32] // CHECK:STDOUT: %.loc5_13.2: type = converted %int.make_type_32.loc5, %.loc5_13.1 [template = i32] // CHECK:STDOUT: %.loc5_19: type = array_type %.loc5_18, i32 [template = constants.%.5] @@ -164,12 +164,12 @@ let c: i32 = Sub(Sub(0, 0x7FFFFFFF), 2); // CHECK:STDOUT: %Int32: %Int32.type = struct_value () [template] // CHECK:STDOUT: %Sub.type: type = fn_type @Sub [template] // CHECK:STDOUT: %Sub: %Sub.type = struct_value () [template] -// CHECK:STDOUT: %.2: i32 = int_literal 0 [template] -// CHECK:STDOUT: %.3: i32 = int_literal 2147483647 [template] -// CHECK:STDOUT: %.4: i32 = int_literal -2147483647 [template] -// CHECK:STDOUT: %.5: i32 = int_literal 1 [template] -// CHECK:STDOUT: %.6: i32 = int_literal -2147483648 [template] -// CHECK:STDOUT: %.7: i32 = int_literal 2 [template] +// CHECK:STDOUT: %.2: i32 = int_value 0 [template] +// CHECK:STDOUT: %.3: i32 = int_value 2147483647 [template] +// CHECK:STDOUT: %.4: i32 = int_value -2147483647 [template] +// CHECK:STDOUT: %.5: i32 = int_value 1 [template] +// CHECK:STDOUT: %.6: i32 = int_value -2147483648 [template] +// CHECK:STDOUT: %.7: i32 = int_value 2 [template] // CHECK:STDOUT: } // CHECK:STDOUT: // CHECK:STDOUT: imports { @@ -232,18 +232,18 @@ let c: i32 = Sub(Sub(0, 0x7FFFFFFF), 2); // CHECK:STDOUT: fn @__global_init() { // CHECK:STDOUT: !entry: // CHECK:STDOUT: %Sub.ref.loc6: %Sub.type = name_ref Sub, file.%Sub.decl [template = constants.%Sub] -// CHECK:STDOUT: %.loc6_18: i32 = int_literal 0 [template = constants.%.2] -// CHECK:STDOUT: %.loc6_21: i32 = int_literal 2147483647 [template = constants.%.3] +// CHECK:STDOUT: %.loc6_18: i32 = int_value 0 [template = constants.%.2] +// CHECK:STDOUT: %.loc6_21: i32 = int_value 2147483647 [template = constants.%.3] // CHECK:STDOUT: %int.ssub.loc6: init i32 = call %Sub.ref.loc6(%.loc6_18, %.loc6_21) [template = constants.%.4] // CHECK:STDOUT: %.loc6_32.1: i32 = value_of_initializer %int.ssub.loc6 [template = constants.%.4] // CHECK:STDOUT: %.loc6_32.2: i32 = converted %int.ssub.loc6, %.loc6_32.1 [template = constants.%.4] // CHECK:STDOUT: %a: i32 = bind_name a, %.loc6_32.2 // CHECK:STDOUT: %Sub.ref.loc7_14: %Sub.type = name_ref Sub, file.%Sub.decl [template = constants.%Sub] // CHECK:STDOUT: %Sub.ref.loc7_18: %Sub.type = name_ref Sub, file.%Sub.decl [template = constants.%Sub] -// CHECK:STDOUT: %.loc7_22: i32 = int_literal 0 [template = constants.%.2] -// CHECK:STDOUT: %.loc7_25: i32 = int_literal 2147483647 [template = constants.%.3] +// CHECK:STDOUT: %.loc7_22: i32 = int_value 0 [template = constants.%.2] +// CHECK:STDOUT: %.loc7_25: i32 = int_value 2147483647 [template = constants.%.3] // CHECK:STDOUT: %int.ssub.loc7_21: init i32 = call %Sub.ref.loc7_18(%.loc7_22, %.loc7_25) [template = constants.%.4] -// CHECK:STDOUT: %.loc7_38: i32 = int_literal 1 [template = constants.%.5] +// CHECK:STDOUT: %.loc7_38: i32 = int_value 1 [template = constants.%.5] // CHECK:STDOUT: %.loc7_21.1: i32 = value_of_initializer %int.ssub.loc7_21 [template = constants.%.4] // CHECK:STDOUT: %.loc7_21.2: i32 = converted %int.ssub.loc7_21, %.loc7_21.1 [template = constants.%.4] // CHECK:STDOUT: %int.ssub.loc7_17: init i32 = call %Sub.ref.loc7_14(%.loc7_21.2, %.loc7_38) [template = constants.%.6] @@ -252,10 +252,10 @@ let c: i32 = Sub(Sub(0, 0x7FFFFFFF), 2); // CHECK:STDOUT: %b: i32 = bind_name b, %.loc7_40.2 // CHECK:STDOUT: %Sub.ref.loc11_14: %Sub.type = name_ref Sub, file.%Sub.decl [template = constants.%Sub] // CHECK:STDOUT: %Sub.ref.loc11_18: %Sub.type = name_ref Sub, file.%Sub.decl [template = constants.%Sub] -// CHECK:STDOUT: %.loc11_22: i32 = int_literal 0 [template = constants.%.2] -// CHECK:STDOUT: %.loc11_25: i32 = int_literal 2147483647 [template = constants.%.3] +// CHECK:STDOUT: %.loc11_22: i32 = int_value 0 [template = constants.%.2] +// CHECK:STDOUT: %.loc11_25: i32 = int_value 2147483647 [template = constants.%.3] // CHECK:STDOUT: %int.ssub.loc11_21: init i32 = call %Sub.ref.loc11_18(%.loc11_22, %.loc11_25) [template = constants.%.4] -// CHECK:STDOUT: %.loc11_38: i32 = int_literal 2 [template = constants.%.7] +// CHECK:STDOUT: %.loc11_38: i32 = int_value 2 [template = constants.%.7] // CHECK:STDOUT: %.loc11_21.1: i32 = value_of_initializer %int.ssub.loc11_21 [template = constants.%.4] // CHECK:STDOUT: %.loc11_21.2: i32 = converted %int.ssub.loc11_21, %.loc11_21.1 [template = constants.%.4] // CHECK:STDOUT: %int.ssub.loc11_17: init i32 = call %Sub.ref.loc11_14(%.loc11_21.2, %.loc11_38) [template = constants.%.3] diff --git a/toolchain/check/testdata/builtins/int/uadd.carbon b/toolchain/check/testdata/builtins/int/uadd.carbon index 596b989bf12c8..e5ec2b4ac2d74 100644 --- a/toolchain/check/testdata/builtins/int/uadd.carbon +++ b/toolchain/check/testdata/builtins/int/uadd.carbon @@ -94,9 +94,9 @@ let b: i32 = Add(0x7FFFFFFF, 1); // CHECK:STDOUT: %Int32: %Int32.type = struct_value () [template] // CHECK:STDOUT: %Add.type: type = fn_type @Add [template] // CHECK:STDOUT: %Add: %Add.type = struct_value () [template] -// CHECK:STDOUT: %.2: i32 = int_literal 1 [template] -// CHECK:STDOUT: %.3: i32 = int_literal 2 [template] -// CHECK:STDOUT: %.4: i32 = int_literal 3 [template] +// CHECK:STDOUT: %.2: i32 = int_value 1 [template] +// CHECK:STDOUT: %.3: i32 = int_value 2 [template] +// CHECK:STDOUT: %.4: i32 = int_value 3 [template] // CHECK:STDOUT: %.5: type = array_type %.4, i32 [template] // CHECK:STDOUT: %.6: type = ptr_type %.5 [template] // CHECK:STDOUT: %RuntimeCall.type: type = fn_type @RuntimeCall [template] @@ -147,8 +147,8 @@ let b: i32 = Add(0x7FFFFFFF, 1); // CHECK:STDOUT: } // CHECK:STDOUT: %int.make_type_32.loc4: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %Add.ref: %Add.type = name_ref Add, %Add.decl [template = constants.%Add] -// CHECK:STDOUT: %.loc4_20: i32 = int_literal 1 [template = constants.%.2] -// CHECK:STDOUT: %.loc4_23: i32 = int_literal 2 [template = constants.%.3] +// CHECK:STDOUT: %.loc4_20: i32 = int_value 1 [template = constants.%.2] +// CHECK:STDOUT: %.loc4_23: i32 = int_value 2 [template = constants.%.3] // CHECK:STDOUT: %int.uadd: init i32 = call %Add.ref(%.loc4_20, %.loc4_23) [template = constants.%.4] // CHECK:STDOUT: %.loc4_11.1: type = value_of_initializer %int.make_type_32.loc4 [template = i32] // CHECK:STDOUT: %.loc4_11.2: type = converted %int.make_type_32.loc4, %.loc4_11.1 [template = i32] @@ -156,7 +156,7 @@ let b: i32 = Add(0x7FFFFFFF, 1); // CHECK:STDOUT: %arr.var: ref %.5 = var arr // CHECK:STDOUT: %arr: ref %.5 = bind_name arr, %arr.var // CHECK:STDOUT: %int.make_type_32.loc5: init type = call constants.%Int32() [template = i32] -// CHECK:STDOUT: %.loc5_18: i32 = int_literal 3 [template = constants.%.4] +// CHECK:STDOUT: %.loc5_18: i32 = int_value 3 [template = constants.%.4] // CHECK:STDOUT: %.loc5_13.1: type = value_of_initializer %int.make_type_32.loc5 [template = i32] // CHECK:STDOUT: %.loc5_13.2: type = converted %int.make_type_32.loc5, %.loc5_13.1 [template = i32] // CHECK:STDOUT: %.loc5_19: type = array_type %.loc5_18, i32 [template = constants.%.5] @@ -226,9 +226,9 @@ let b: i32 = Add(0x7FFFFFFF, 1); // CHECK:STDOUT: %BadReturnType: %BadReturnType.type = struct_value () [template] // CHECK:STDOUT: %JustRight.type: type = fn_type @JustRight [template] // CHECK:STDOUT: %JustRight: %JustRight.type = struct_value () [template] -// CHECK:STDOUT: %.2: i32 = int_literal 1 [template] -// CHECK:STDOUT: %.3: i32 = int_literal 2 [template] -// CHECK:STDOUT: %.4: i32 = int_literal 3 [template] +// CHECK:STDOUT: %.2: i32 = int_value 1 [template] +// CHECK:STDOUT: %.3: i32 = int_value 2 [template] +// CHECK:STDOUT: %.4: i32 = int_value 3 [template] // CHECK:STDOUT: %RuntimeCallTooFew.type: type = fn_type @RuntimeCallTooFew [template] // CHECK:STDOUT: %RuntimeCallTooFew: %RuntimeCallTooFew.type = struct_value () [template] // CHECK:STDOUT: %RuntimeCallTooMany.type: type = fn_type @RuntimeCallTooMany [template] @@ -362,30 +362,30 @@ let b: i32 = Add(0x7FFFFFFF, 1); // CHECK:STDOUT: } // CHECK:STDOUT: %int.make_type_32.loc25: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %TooFew.ref: %TooFew.type = name_ref TooFew, %TooFew.decl [template = constants.%TooFew] -// CHECK:STDOUT: %.loc25: i32 = int_literal 1 [template = constants.%.2] +// CHECK:STDOUT: %.loc25: i32 = int_value 1 [template = constants.%.2] // CHECK:STDOUT: %TooFew.call: init i32 = call %TooFew.ref(%.loc25) // CHECK:STDOUT: %too_few.var: ref = var too_few // CHECK:STDOUT: %too_few: ref = bind_name too_few, %too_few.var // CHECK:STDOUT: %int.make_type_32.loc30: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %TooMany.ref: %TooMany.type = name_ref TooMany, %TooMany.decl [template = constants.%TooMany] -// CHECK:STDOUT: %.loc30_29: i32 = int_literal 1 [template = constants.%.2] -// CHECK:STDOUT: %.loc30_32: i32 = int_literal 2 [template = constants.%.3] -// CHECK:STDOUT: %.loc30_35: i32 = int_literal 3 [template = constants.%.4] +// CHECK:STDOUT: %.loc30_29: i32 = int_value 1 [template = constants.%.2] +// CHECK:STDOUT: %.loc30_32: i32 = int_value 2 [template = constants.%.3] +// CHECK:STDOUT: %.loc30_35: i32 = int_value 3 [template = constants.%.4] // CHECK:STDOUT: %TooMany.call: init i32 = call %TooMany.ref(%.loc30_29, %.loc30_32, %.loc30_35) // CHECK:STDOUT: %too_many.var: ref = var too_many // CHECK:STDOUT: %too_many: ref = bind_name too_many, %too_many.var // CHECK:STDOUT: %int.make_type_32.loc35: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %BadReturnType.ref: %BadReturnType.type = name_ref BadReturnType, %BadReturnType.decl [template = constants.%BadReturnType] -// CHECK:STDOUT: %.loc35_42: i32 = int_literal 1 [template = constants.%.2] -// CHECK:STDOUT: %.loc35_45: i32 = int_literal 2 [template = constants.%.3] +// CHECK:STDOUT: %.loc35_42: i32 = int_value 1 [template = constants.%.2] +// CHECK:STDOUT: %.loc35_45: i32 = int_value 2 [template = constants.%.3] // CHECK:STDOUT: %BadReturnType.call: init bool = call %BadReturnType.ref(%.loc35_42, %.loc35_45) // CHECK:STDOUT: %bad_return_type.var: ref = var bad_return_type // CHECK:STDOUT: %bad_return_type: ref = bind_name bad_return_type, %bad_return_type.var // CHECK:STDOUT: %int.make_type_32.loc43: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %JustRight.ref: %JustRight.type = name_ref JustRight, %JustRight.decl [template = constants.%JustRight] -// CHECK:STDOUT: %.loc43_31: i32 = int_literal 1 [template = constants.%.2] -// CHECK:STDOUT: %.loc43_34: i32 = int_literal 2 [template = constants.%.3] -// CHECK:STDOUT: %.loc43_37: i32 = int_literal 3 [template = constants.%.4] +// CHECK:STDOUT: %.loc43_31: i32 = int_value 1 [template = constants.%.2] +// CHECK:STDOUT: %.loc43_34: i32 = int_value 2 [template = constants.%.3] +// CHECK:STDOUT: %.loc43_37: i32 = int_value 3 [template = constants.%.4] // CHECK:STDOUT: %.loc43_16.1: type = value_of_initializer %int.make_type_32.loc43 [template = i32] // CHECK:STDOUT: %.loc43_16.2: type = converted %int.make_type_32.loc43, %.loc43_16.1 [template = i32] // CHECK:STDOUT: %.loc43_39: type = array_type , i32 [template = ] @@ -518,10 +518,10 @@ let b: i32 = Add(0x7FFFFFFF, 1); // CHECK:STDOUT: %Int32: %Int32.type = struct_value () [template] // CHECK:STDOUT: %Add.type: type = fn_type @Add [template] // CHECK:STDOUT: %Add: %Add.type = struct_value () [template] -// CHECK:STDOUT: %.2: i32 = int_literal 2147483647 [template] -// CHECK:STDOUT: %.3: i32 = int_literal 0 [template] -// CHECK:STDOUT: %.4: i32 = int_literal 1 [template] -// CHECK:STDOUT: %.5: i32 = int_literal -2147483648 [template] +// CHECK:STDOUT: %.2: i32 = int_value 2147483647 [template] +// CHECK:STDOUT: %.3: i32 = int_value 0 [template] +// CHECK:STDOUT: %.4: i32 = int_value 1 [template] +// CHECK:STDOUT: %.5: i32 = int_value -2147483648 [template] // CHECK:STDOUT: } // CHECK:STDOUT: // CHECK:STDOUT: imports { @@ -580,15 +580,15 @@ let b: i32 = Add(0x7FFFFFFF, 1); // CHECK:STDOUT: fn @__global_init() { // CHECK:STDOUT: !entry: // CHECK:STDOUT: %Add.ref.loc7: %Add.type = name_ref Add, file.%Add.decl [template = constants.%Add] -// CHECK:STDOUT: %.loc7_18: i32 = int_literal 2147483647 [template = constants.%.2] -// CHECK:STDOUT: %.loc7_30: i32 = int_literal 0 [template = constants.%.3] +// CHECK:STDOUT: %.loc7_18: i32 = int_value 2147483647 [template = constants.%.2] +// CHECK:STDOUT: %.loc7_30: i32 = int_value 0 [template = constants.%.3] // CHECK:STDOUT: %int.uadd.loc7: init i32 = call %Add.ref.loc7(%.loc7_18, %.loc7_30) [template = constants.%.2] // CHECK:STDOUT: %.loc7_32.1: i32 = value_of_initializer %int.uadd.loc7 [template = constants.%.2] // CHECK:STDOUT: %.loc7_32.2: i32 = converted %int.uadd.loc7, %.loc7_32.1 [template = constants.%.2] // CHECK:STDOUT: %a: i32 = bind_name a, %.loc7_32.2 // CHECK:STDOUT: %Add.ref.loc8: %Add.type = name_ref Add, file.%Add.decl [template = constants.%Add] -// CHECK:STDOUT: %.loc8_18: i32 = int_literal 2147483647 [template = constants.%.2] -// CHECK:STDOUT: %.loc8_30: i32 = int_literal 1 [template = constants.%.4] +// CHECK:STDOUT: %.loc8_18: i32 = int_value 2147483647 [template = constants.%.2] +// CHECK:STDOUT: %.loc8_30: i32 = int_value 1 [template = constants.%.4] // CHECK:STDOUT: %int.uadd.loc8: init i32 = call %Add.ref.loc8(%.loc8_18, %.loc8_30) [template = constants.%.5] // CHECK:STDOUT: %.loc8_32.1: i32 = value_of_initializer %int.uadd.loc8 [template = constants.%.5] // CHECK:STDOUT: %.loc8_32.2: i32 = converted %int.uadd.loc8, %.loc8_32.1 [template = constants.%.5] diff --git a/toolchain/check/testdata/builtins/int/udiv.carbon b/toolchain/check/testdata/builtins/int/udiv.carbon index d1d615ebfa3f4..d1f7fa300c831 100644 --- a/toolchain/check/testdata/builtins/int/udiv.carbon +++ b/toolchain/check/testdata/builtins/int/udiv.carbon @@ -61,9 +61,9 @@ let b: i32 = Div(0, 0); // CHECK:STDOUT: %Int32: %Int32.type = struct_value () [template] // CHECK:STDOUT: %Div.type: type = fn_type @Div [template] // CHECK:STDOUT: %Div: %Div.type = struct_value () [template] -// CHECK:STDOUT: %.2: i32 = int_literal 3 [template] -// CHECK:STDOUT: %.3: i32 = int_literal 2 [template] -// CHECK:STDOUT: %.4: i32 = int_literal 1 [template] +// CHECK:STDOUT: %.2: i32 = int_value 3 [template] +// CHECK:STDOUT: %.3: i32 = int_value 2 [template] +// CHECK:STDOUT: %.4: i32 = int_value 1 [template] // CHECK:STDOUT: %.5: type = array_type %.4, i32 [template] // CHECK:STDOUT: %.6: type = ptr_type %.5 [template] // CHECK:STDOUT: %RuntimeCall.type: type = fn_type @RuntimeCall [template] @@ -114,8 +114,8 @@ let b: i32 = Div(0, 0); // CHECK:STDOUT: } // CHECK:STDOUT: %int.make_type_32.loc4: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %Div.ref: %Div.type = name_ref Div, %Div.decl [template = constants.%Div] -// CHECK:STDOUT: %.loc4_20: i32 = int_literal 3 [template = constants.%.2] -// CHECK:STDOUT: %.loc4_23: i32 = int_literal 2 [template = constants.%.3] +// CHECK:STDOUT: %.loc4_20: i32 = int_value 3 [template = constants.%.2] +// CHECK:STDOUT: %.loc4_23: i32 = int_value 2 [template = constants.%.3] // CHECK:STDOUT: %int.udiv: init i32 = call %Div.ref(%.loc4_20, %.loc4_23) [template = constants.%.4] // CHECK:STDOUT: %.loc4_11.1: type = value_of_initializer %int.make_type_32.loc4 [template = i32] // CHECK:STDOUT: %.loc4_11.2: type = converted %int.make_type_32.loc4, %.loc4_11.1 [template = i32] @@ -123,7 +123,7 @@ let b: i32 = Div(0, 0); // CHECK:STDOUT: %arr.var: ref %.5 = var arr // CHECK:STDOUT: %arr: ref %.5 = bind_name arr, %arr.var // CHECK:STDOUT: %int.make_type_32.loc5: init type = call constants.%Int32() [template = i32] -// CHECK:STDOUT: %.loc5_18: i32 = int_literal 1 [template = constants.%.4] +// CHECK:STDOUT: %.loc5_18: i32 = int_value 1 [template = constants.%.4] // CHECK:STDOUT: %.loc5_13.1: type = value_of_initializer %int.make_type_32.loc5 [template = i32] // CHECK:STDOUT: %.loc5_13.2: type = converted %int.make_type_32.loc5, %.loc5_13.1 [template = i32] // CHECK:STDOUT: %.loc5_19: type = array_type %.loc5_18, i32 [template = constants.%.5] @@ -189,12 +189,12 @@ let b: i32 = Div(0, 0); // CHECK:STDOUT: %Sub: %Sub.type = struct_value () [template] // CHECK:STDOUT: %Negate.type: type = fn_type @Negate [template] // CHECK:STDOUT: %Negate: %Negate.type = struct_value () [template] -// CHECK:STDOUT: %.2: i32 = int_literal 2147483647 [template] -// CHECK:STDOUT: %.3: i32 = int_literal -2147483647 [template] -// CHECK:STDOUT: %.4: i32 = int_literal 1 [template] -// CHECK:STDOUT: %.5: i32 = int_literal -1 [template] -// CHECK:STDOUT: %.6: i32 = int_literal 0 [template] -// CHECK:STDOUT: %.7: i32 = int_literal -2147483648 [template] +// CHECK:STDOUT: %.2: i32 = int_value 2147483647 [template] +// CHECK:STDOUT: %.3: i32 = int_value -2147483647 [template] +// CHECK:STDOUT: %.4: i32 = int_value 1 [template] +// CHECK:STDOUT: %.5: i32 = int_value -1 [template] +// CHECK:STDOUT: %.6: i32 = int_value 0 [template] +// CHECK:STDOUT: %.7: i32 = int_value -2147483648 [template] // CHECK:STDOUT: } // CHECK:STDOUT: // CHECK:STDOUT: imports { @@ -305,10 +305,10 @@ let b: i32 = Div(0, 0); // CHECK:STDOUT: !entry: // CHECK:STDOUT: %Div.ref.loc9: %Div.type = name_ref Div, file.%Div.decl [template = constants.%Div] // CHECK:STDOUT: %Negate.ref.loc9_18: %Negate.type = name_ref Negate, file.%Negate.decl [template = constants.%Negate] -// CHECK:STDOUT: %.loc9_25: i32 = int_literal 2147483647 [template = constants.%.2] +// CHECK:STDOUT: %.loc9_25: i32 = int_value 2147483647 [template = constants.%.2] // CHECK:STDOUT: %int.unegate.loc9_24: init i32 = call %Negate.ref.loc9_18(%.loc9_25) [template = constants.%.3] // CHECK:STDOUT: %Negate.ref.loc9_39: %Negate.type = name_ref Negate, file.%Negate.decl [template = constants.%Negate] -// CHECK:STDOUT: %.loc9_46: i32 = int_literal 1 [template = constants.%.4] +// CHECK:STDOUT: %.loc9_46: i32 = int_value 1 [template = constants.%.4] // CHECK:STDOUT: %int.unegate.loc9_45: init i32 = call %Negate.ref.loc9_39(%.loc9_46) [template = constants.%.5] // CHECK:STDOUT: %.loc9_24.1: i32 = value_of_initializer %int.unegate.loc9_24 [template = constants.%.3] // CHECK:STDOUT: %.loc9_24.2: i32 = converted %int.unegate.loc9_24, %.loc9_24.1 [template = constants.%.3] @@ -321,13 +321,13 @@ let b: i32 = Div(0, 0); // CHECK:STDOUT: %Div.ref.loc12: %Div.type = name_ref Div, file.%Div.decl [template = constants.%Div] // CHECK:STDOUT: %Sub.ref.loc12: %Sub.type = name_ref Sub, file.%Sub.decl [template = constants.%Sub] // CHECK:STDOUT: %Negate.ref.loc12: %Negate.type = name_ref Negate, file.%Negate.decl [template = constants.%Negate] -// CHECK:STDOUT: %.loc12_29: i32 = int_literal 2147483647 [template = constants.%.2] +// CHECK:STDOUT: %.loc12_29: i32 = int_value 2147483647 [template = constants.%.2] // CHECK:STDOUT: %int.unegate.loc12: init i32 = call %Negate.ref.loc12(%.loc12_29) [template = constants.%.3] -// CHECK:STDOUT: %.loc12_43: i32 = int_literal 1 [template = constants.%.4] +// CHECK:STDOUT: %.loc12_43: i32 = int_value 1 [template = constants.%.4] // CHECK:STDOUT: %.loc12_28.1: i32 = value_of_initializer %int.unegate.loc12 [template = constants.%.3] // CHECK:STDOUT: %.loc12_28.2: i32 = converted %int.unegate.loc12, %.loc12_28.1 [template = constants.%.3] // CHECK:STDOUT: %int.usub.loc12: init i32 = call %Sub.ref.loc12(%.loc12_28.2, %.loc12_43) [template = constants.%.7] -// CHECK:STDOUT: %.loc12_47: i32 = int_literal 1 [template = constants.%.4] +// CHECK:STDOUT: %.loc12_47: i32 = int_value 1 [template = constants.%.4] // CHECK:STDOUT: %.loc12_21.1: i32 = value_of_initializer %int.usub.loc12 [template = constants.%.7] // CHECK:STDOUT: %.loc12_21.2: i32 = converted %int.usub.loc12, %.loc12_21.1 [template = constants.%.7] // CHECK:STDOUT: %int.udiv.loc12: init i32 = call %Div.ref.loc12(%.loc12_21.2, %.loc12_47) [template = constants.%.7] @@ -337,14 +337,14 @@ let b: i32 = Div(0, 0); // CHECK:STDOUT: %Div.ref.loc15: %Div.type = name_ref Div, file.%Div.decl [template = constants.%Div] // CHECK:STDOUT: %Sub.ref.loc15: %Sub.type = name_ref Sub, file.%Sub.decl [template = constants.%Sub] // CHECK:STDOUT: %Negate.ref.loc15_22: %Negate.type = name_ref Negate, file.%Negate.decl [template = constants.%Negate] -// CHECK:STDOUT: %.loc15_29: i32 = int_literal 2147483647 [template = constants.%.2] +// CHECK:STDOUT: %.loc15_29: i32 = int_value 2147483647 [template = constants.%.2] // CHECK:STDOUT: %int.unegate.loc15_28: init i32 = call %Negate.ref.loc15_22(%.loc15_29) [template = constants.%.3] -// CHECK:STDOUT: %.loc15_43: i32 = int_literal 1 [template = constants.%.4] +// CHECK:STDOUT: %.loc15_43: i32 = int_value 1 [template = constants.%.4] // CHECK:STDOUT: %.loc15_28.1: i32 = value_of_initializer %int.unegate.loc15_28 [template = constants.%.3] // CHECK:STDOUT: %.loc15_28.2: i32 = converted %int.unegate.loc15_28, %.loc15_28.1 [template = constants.%.3] // CHECK:STDOUT: %int.usub.loc15: init i32 = call %Sub.ref.loc15(%.loc15_28.2, %.loc15_43) [template = constants.%.7] // CHECK:STDOUT: %Negate.ref.loc15_47: %Negate.type = name_ref Negate, file.%Negate.decl [template = constants.%Negate] -// CHECK:STDOUT: %.loc15_54: i32 = int_literal 1 [template = constants.%.4] +// CHECK:STDOUT: %.loc15_54: i32 = int_value 1 [template = constants.%.4] // CHECK:STDOUT: %int.unegate.loc15_53: init i32 = call %Negate.ref.loc15_47(%.loc15_54) [template = constants.%.5] // CHECK:STDOUT: %.loc15_21.1: i32 = value_of_initializer %int.usub.loc15 [template = constants.%.7] // CHECK:STDOUT: %.loc15_21.2: i32 = converted %int.usub.loc15, %.loc15_21.1 [template = constants.%.7] @@ -365,8 +365,8 @@ let b: i32 = Div(0, 0); // CHECK:STDOUT: %Int32: %Int32.type = struct_value () [template] // CHECK:STDOUT: %Div.type: type = fn_type @Div [template] // CHECK:STDOUT: %Div: %Div.type = struct_value () [template] -// CHECK:STDOUT: %.2: i32 = int_literal 1 [template] -// CHECK:STDOUT: %.3: i32 = int_literal 0 [template] +// CHECK:STDOUT: %.2: i32 = int_value 1 [template] +// CHECK:STDOUT: %.3: i32 = int_value 0 [template] // CHECK:STDOUT: } // CHECK:STDOUT: // CHECK:STDOUT: imports { @@ -425,15 +425,15 @@ let b: i32 = Div(0, 0); // CHECK:STDOUT: fn @__global_init() { // CHECK:STDOUT: !entry: // CHECK:STDOUT: %Div.ref.loc10: %Div.type = name_ref Div, file.%Div.decl [template = constants.%Div] -// CHECK:STDOUT: %.loc10_18: i32 = int_literal 1 [template = constants.%.2] -// CHECK:STDOUT: %.loc10_21: i32 = int_literal 0 [template = constants.%.3] +// CHECK:STDOUT: %.loc10_18: i32 = int_value 1 [template = constants.%.2] +// CHECK:STDOUT: %.loc10_21: i32 = int_value 0 [template = constants.%.3] // CHECK:STDOUT: %int.udiv.loc10: init i32 = call %Div.ref.loc10(%.loc10_18, %.loc10_21) [template = ] // CHECK:STDOUT: %.loc10_23.1: i32 = value_of_initializer %int.udiv.loc10 [template = ] // CHECK:STDOUT: %.loc10_23.2: i32 = converted %int.udiv.loc10, %.loc10_23.1 [template = ] // CHECK:STDOUT: %a: i32 = bind_name a, %.loc10_23.2 // CHECK:STDOUT: %Div.ref.loc15: %Div.type = name_ref Div, file.%Div.decl [template = constants.%Div] -// CHECK:STDOUT: %.loc15_18: i32 = int_literal 0 [template = constants.%.3] -// CHECK:STDOUT: %.loc15_21: i32 = int_literal 0 [template = constants.%.3] +// CHECK:STDOUT: %.loc15_18: i32 = int_value 0 [template = constants.%.3] +// CHECK:STDOUT: %.loc15_21: i32 = int_value 0 [template = constants.%.3] // CHECK:STDOUT: %int.udiv.loc15: init i32 = call %Div.ref.loc15(%.loc15_18, %.loc15_21) [template = ] // CHECK:STDOUT: %.loc15_23.1: i32 = value_of_initializer %int.udiv.loc15 [template = ] // CHECK:STDOUT: %.loc15_23.2: i32 = converted %int.udiv.loc15, %.loc15_23.1 [template = ] diff --git a/toolchain/check/testdata/builtins/int/umod.carbon b/toolchain/check/testdata/builtins/int/umod.carbon index ee07f6a9a3c16..b5d74985370c3 100644 --- a/toolchain/check/testdata/builtins/int/umod.carbon +++ b/toolchain/check/testdata/builtins/int/umod.carbon @@ -63,9 +63,9 @@ let b: i32 = Mod(0, 0); // CHECK:STDOUT: %Int32: %Int32.type = struct_value () [template] // CHECK:STDOUT: %Mod.type: type = fn_type @Mod [template] // CHECK:STDOUT: %Mod: %Mod.type = struct_value () [template] -// CHECK:STDOUT: %.2: i32 = int_literal 5 [template] -// CHECK:STDOUT: %.3: i32 = int_literal 3 [template] -// CHECK:STDOUT: %.4: i32 = int_literal 2 [template] +// CHECK:STDOUT: %.2: i32 = int_value 5 [template] +// CHECK:STDOUT: %.3: i32 = int_value 3 [template] +// CHECK:STDOUT: %.4: i32 = int_value 2 [template] // CHECK:STDOUT: %.5: type = array_type %.4, i32 [template] // CHECK:STDOUT: %.6: type = ptr_type %.5 [template] // CHECK:STDOUT: %RuntimeCall.type: type = fn_type @RuntimeCall [template] @@ -116,8 +116,8 @@ let b: i32 = Mod(0, 0); // CHECK:STDOUT: } // CHECK:STDOUT: %int.make_type_32.loc4: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %Mod.ref: %Mod.type = name_ref Mod, %Mod.decl [template = constants.%Mod] -// CHECK:STDOUT: %.loc4_20: i32 = int_literal 5 [template = constants.%.2] -// CHECK:STDOUT: %.loc4_23: i32 = int_literal 3 [template = constants.%.3] +// CHECK:STDOUT: %.loc4_20: i32 = int_value 5 [template = constants.%.2] +// CHECK:STDOUT: %.loc4_23: i32 = int_value 3 [template = constants.%.3] // CHECK:STDOUT: %int.umod: init i32 = call %Mod.ref(%.loc4_20, %.loc4_23) [template = constants.%.4] // CHECK:STDOUT: %.loc4_11.1: type = value_of_initializer %int.make_type_32.loc4 [template = i32] // CHECK:STDOUT: %.loc4_11.2: type = converted %int.make_type_32.loc4, %.loc4_11.1 [template = i32] @@ -125,7 +125,7 @@ let b: i32 = Mod(0, 0); // CHECK:STDOUT: %arr.var: ref %.5 = var arr // CHECK:STDOUT: %arr: ref %.5 = bind_name arr, %arr.var // CHECK:STDOUT: %int.make_type_32.loc5: init type = call constants.%Int32() [template = i32] -// CHECK:STDOUT: %.loc5_18: i32 = int_literal 2 [template = constants.%.4] +// CHECK:STDOUT: %.loc5_18: i32 = int_value 2 [template = constants.%.4] // CHECK:STDOUT: %.loc5_13.1: type = value_of_initializer %int.make_type_32.loc5 [template = i32] // CHECK:STDOUT: %.loc5_13.2: type = converted %int.make_type_32.loc5, %.loc5_13.1 [template = i32] // CHECK:STDOUT: %.loc5_19: type = array_type %.loc5_18, i32 [template = constants.%.5] @@ -191,12 +191,12 @@ let b: i32 = Mod(0, 0); // CHECK:STDOUT: %Sub: %Sub.type = struct_value () [template] // CHECK:STDOUT: %Negate.type: type = fn_type @Negate [template] // CHECK:STDOUT: %Negate: %Negate.type = struct_value () [template] -// CHECK:STDOUT: %.2: i32 = int_literal 2147483647 [template] -// CHECK:STDOUT: %.3: i32 = int_literal -2147483647 [template] -// CHECK:STDOUT: %.4: i32 = int_literal 1 [template] -// CHECK:STDOUT: %.5: i32 = int_literal -1 [template] -// CHECK:STDOUT: %.6: i32 = int_literal -2147483648 [template] -// CHECK:STDOUT: %.7: i32 = int_literal 0 [template] +// CHECK:STDOUT: %.2: i32 = int_value 2147483647 [template] +// CHECK:STDOUT: %.3: i32 = int_value -2147483647 [template] +// CHECK:STDOUT: %.4: i32 = int_value 1 [template] +// CHECK:STDOUT: %.5: i32 = int_value -1 [template] +// CHECK:STDOUT: %.6: i32 = int_value -2147483648 [template] +// CHECK:STDOUT: %.7: i32 = int_value 0 [template] // CHECK:STDOUT: } // CHECK:STDOUT: // CHECK:STDOUT: imports { @@ -307,10 +307,10 @@ let b: i32 = Mod(0, 0); // CHECK:STDOUT: !entry: // CHECK:STDOUT: %Mod.ref.loc9: %Mod.type = name_ref Mod, file.%Mod.decl [template = constants.%Mod] // CHECK:STDOUT: %Negate.ref.loc9_18: %Negate.type = name_ref Negate, file.%Negate.decl [template = constants.%Negate] -// CHECK:STDOUT: %.loc9_25: i32 = int_literal 2147483647 [template = constants.%.2] +// CHECK:STDOUT: %.loc9_25: i32 = int_value 2147483647 [template = constants.%.2] // CHECK:STDOUT: %int.unegate.loc9_24: init i32 = call %Negate.ref.loc9_18(%.loc9_25) [template = constants.%.3] // CHECK:STDOUT: %Negate.ref.loc9_39: %Negate.type = name_ref Negate, file.%Negate.decl [template = constants.%Negate] -// CHECK:STDOUT: %.loc9_46: i32 = int_literal 1 [template = constants.%.4] +// CHECK:STDOUT: %.loc9_46: i32 = int_value 1 [template = constants.%.4] // CHECK:STDOUT: %int.unegate.loc9_45: init i32 = call %Negate.ref.loc9_39(%.loc9_46) [template = constants.%.5] // CHECK:STDOUT: %.loc9_24.1: i32 = value_of_initializer %int.unegate.loc9_24 [template = constants.%.3] // CHECK:STDOUT: %.loc9_24.2: i32 = converted %int.unegate.loc9_24, %.loc9_24.1 [template = constants.%.3] @@ -323,13 +323,13 @@ let b: i32 = Mod(0, 0); // CHECK:STDOUT: %Mod.ref.loc12: %Mod.type = name_ref Mod, file.%Mod.decl [template = constants.%Mod] // CHECK:STDOUT: %Sub.ref.loc12: %Sub.type = name_ref Sub, file.%Sub.decl [template = constants.%Sub] // CHECK:STDOUT: %Negate.ref.loc12: %Negate.type = name_ref Negate, file.%Negate.decl [template = constants.%Negate] -// CHECK:STDOUT: %.loc12_29: i32 = int_literal 2147483647 [template = constants.%.2] +// CHECK:STDOUT: %.loc12_29: i32 = int_value 2147483647 [template = constants.%.2] // CHECK:STDOUT: %int.unegate.loc12: init i32 = call %Negate.ref.loc12(%.loc12_29) [template = constants.%.3] -// CHECK:STDOUT: %.loc12_43: i32 = int_literal 1 [template = constants.%.4] +// CHECK:STDOUT: %.loc12_43: i32 = int_value 1 [template = constants.%.4] // CHECK:STDOUT: %.loc12_28.1: i32 = value_of_initializer %int.unegate.loc12 [template = constants.%.3] // CHECK:STDOUT: %.loc12_28.2: i32 = converted %int.unegate.loc12, %.loc12_28.1 [template = constants.%.3] // CHECK:STDOUT: %int.usub.loc12: init i32 = call %Sub.ref.loc12(%.loc12_28.2, %.loc12_43) [template = constants.%.6] -// CHECK:STDOUT: %.loc12_47: i32 = int_literal 1 [template = constants.%.4] +// CHECK:STDOUT: %.loc12_47: i32 = int_value 1 [template = constants.%.4] // CHECK:STDOUT: %.loc12_21.1: i32 = value_of_initializer %int.usub.loc12 [template = constants.%.6] // CHECK:STDOUT: %.loc12_21.2: i32 = converted %int.usub.loc12, %.loc12_21.1 [template = constants.%.6] // CHECK:STDOUT: %int.umod.loc12: init i32 = call %Mod.ref.loc12(%.loc12_21.2, %.loc12_47) [template = constants.%.7] @@ -339,14 +339,14 @@ let b: i32 = Mod(0, 0); // CHECK:STDOUT: %Mod.ref.loc15: %Mod.type = name_ref Mod, file.%Mod.decl [template = constants.%Mod] // CHECK:STDOUT: %Sub.ref.loc15: %Sub.type = name_ref Sub, file.%Sub.decl [template = constants.%Sub] // CHECK:STDOUT: %Negate.ref.loc15_22: %Negate.type = name_ref Negate, file.%Negate.decl [template = constants.%Negate] -// CHECK:STDOUT: %.loc15_29: i32 = int_literal 2147483647 [template = constants.%.2] +// CHECK:STDOUT: %.loc15_29: i32 = int_value 2147483647 [template = constants.%.2] // CHECK:STDOUT: %int.unegate.loc15_28: init i32 = call %Negate.ref.loc15_22(%.loc15_29) [template = constants.%.3] -// CHECK:STDOUT: %.loc15_43: i32 = int_literal 1 [template = constants.%.4] +// CHECK:STDOUT: %.loc15_43: i32 = int_value 1 [template = constants.%.4] // CHECK:STDOUT: %.loc15_28.1: i32 = value_of_initializer %int.unegate.loc15_28 [template = constants.%.3] // CHECK:STDOUT: %.loc15_28.2: i32 = converted %int.unegate.loc15_28, %.loc15_28.1 [template = constants.%.3] // CHECK:STDOUT: %int.usub.loc15: init i32 = call %Sub.ref.loc15(%.loc15_28.2, %.loc15_43) [template = constants.%.6] // CHECK:STDOUT: %Negate.ref.loc15_47: %Negate.type = name_ref Negate, file.%Negate.decl [template = constants.%Negate] -// CHECK:STDOUT: %.loc15_54: i32 = int_literal 1 [template = constants.%.4] +// CHECK:STDOUT: %.loc15_54: i32 = int_value 1 [template = constants.%.4] // CHECK:STDOUT: %int.unegate.loc15_53: init i32 = call %Negate.ref.loc15_47(%.loc15_54) [template = constants.%.5] // CHECK:STDOUT: %.loc15_21.1: i32 = value_of_initializer %int.usub.loc15 [template = constants.%.6] // CHECK:STDOUT: %.loc15_21.2: i32 = converted %int.usub.loc15, %.loc15_21.1 [template = constants.%.6] @@ -367,8 +367,8 @@ let b: i32 = Mod(0, 0); // CHECK:STDOUT: %Int32: %Int32.type = struct_value () [template] // CHECK:STDOUT: %Mod.type: type = fn_type @Mod [template] // CHECK:STDOUT: %Mod: %Mod.type = struct_value () [template] -// CHECK:STDOUT: %.2: i32 = int_literal 1 [template] -// CHECK:STDOUT: %.3: i32 = int_literal 0 [template] +// CHECK:STDOUT: %.2: i32 = int_value 1 [template] +// CHECK:STDOUT: %.3: i32 = int_value 0 [template] // CHECK:STDOUT: } // CHECK:STDOUT: // CHECK:STDOUT: imports { @@ -427,15 +427,15 @@ let b: i32 = Mod(0, 0); // CHECK:STDOUT: fn @__global_init() { // CHECK:STDOUT: !entry: // CHECK:STDOUT: %Mod.ref.loc12: %Mod.type = name_ref Mod, file.%Mod.decl [template = constants.%Mod] -// CHECK:STDOUT: %.loc12_18: i32 = int_literal 1 [template = constants.%.2] -// CHECK:STDOUT: %.loc12_21: i32 = int_literal 0 [template = constants.%.3] +// CHECK:STDOUT: %.loc12_18: i32 = int_value 1 [template = constants.%.2] +// CHECK:STDOUT: %.loc12_21: i32 = int_value 0 [template = constants.%.3] // CHECK:STDOUT: %int.umod.loc12: init i32 = call %Mod.ref.loc12(%.loc12_18, %.loc12_21) [template = ] // CHECK:STDOUT: %.loc12_23.1: i32 = value_of_initializer %int.umod.loc12 [template = ] // CHECK:STDOUT: %.loc12_23.2: i32 = converted %int.umod.loc12, %.loc12_23.1 [template = ] // CHECK:STDOUT: %a: i32 = bind_name a, %.loc12_23.2 // CHECK:STDOUT: %Mod.ref.loc17: %Mod.type = name_ref Mod, file.%Mod.decl [template = constants.%Mod] -// CHECK:STDOUT: %.loc17_18: i32 = int_literal 0 [template = constants.%.3] -// CHECK:STDOUT: %.loc17_21: i32 = int_literal 0 [template = constants.%.3] +// CHECK:STDOUT: %.loc17_18: i32 = int_value 0 [template = constants.%.3] +// CHECK:STDOUT: %.loc17_21: i32 = int_value 0 [template = constants.%.3] // CHECK:STDOUT: %int.umod.loc17: init i32 = call %Mod.ref.loc17(%.loc17_18, %.loc17_21) [template = ] // CHECK:STDOUT: %.loc17_23.1: i32 = value_of_initializer %int.umod.loc17 [template = ] // CHECK:STDOUT: %.loc17_23.2: i32 = converted %int.umod.loc17, %.loc17_23.1 [template = ] diff --git a/toolchain/check/testdata/builtins/int/umul.carbon b/toolchain/check/testdata/builtins/int/umul.carbon index 173277a089838..d4686b395dbbc 100644 --- a/toolchain/check/testdata/builtins/int/umul.carbon +++ b/toolchain/check/testdata/builtins/int/umul.carbon @@ -36,9 +36,9 @@ let b: i32 = Mul(0x8000, 0x10000); // CHECK:STDOUT: %Int32: %Int32.type = struct_value () [template] // CHECK:STDOUT: %Mul.type: type = fn_type @Mul [template] // CHECK:STDOUT: %Mul: %Mul.type = struct_value () [template] -// CHECK:STDOUT: %.2: i32 = int_literal 3 [template] -// CHECK:STDOUT: %.3: i32 = int_literal 2 [template] -// CHECK:STDOUT: %.4: i32 = int_literal 6 [template] +// CHECK:STDOUT: %.2: i32 = int_value 3 [template] +// CHECK:STDOUT: %.3: i32 = int_value 2 [template] +// CHECK:STDOUT: %.4: i32 = int_value 6 [template] // CHECK:STDOUT: %.5: type = array_type %.4, i32 [template] // CHECK:STDOUT: %.6: type = ptr_type %.5 [template] // CHECK:STDOUT: %RuntimeCall.type: type = fn_type @RuntimeCall [template] @@ -89,8 +89,8 @@ let b: i32 = Mul(0x8000, 0x10000); // CHECK:STDOUT: } // CHECK:STDOUT: %int.make_type_32.loc4: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %Mul.ref: %Mul.type = name_ref Mul, %Mul.decl [template = constants.%Mul] -// CHECK:STDOUT: %.loc4_20: i32 = int_literal 3 [template = constants.%.2] -// CHECK:STDOUT: %.loc4_23: i32 = int_literal 2 [template = constants.%.3] +// CHECK:STDOUT: %.loc4_20: i32 = int_value 3 [template = constants.%.2] +// CHECK:STDOUT: %.loc4_23: i32 = int_value 2 [template = constants.%.3] // CHECK:STDOUT: %int.umul: init i32 = call %Mul.ref(%.loc4_20, %.loc4_23) [template = constants.%.4] // CHECK:STDOUT: %.loc4_11.1: type = value_of_initializer %int.make_type_32.loc4 [template = i32] // CHECK:STDOUT: %.loc4_11.2: type = converted %int.make_type_32.loc4, %.loc4_11.1 [template = i32] @@ -98,7 +98,7 @@ let b: i32 = Mul(0x8000, 0x10000); // CHECK:STDOUT: %arr.var: ref %.5 = var arr // CHECK:STDOUT: %arr: ref %.5 = bind_name arr, %arr.var // CHECK:STDOUT: %int.make_type_32.loc5: init type = call constants.%Int32() [template = i32] -// CHECK:STDOUT: %.loc5_18: i32 = int_literal 6 [template = constants.%.4] +// CHECK:STDOUT: %.loc5_18: i32 = int_value 6 [template = constants.%.4] // CHECK:STDOUT: %.loc5_13.1: type = value_of_initializer %int.make_type_32.loc5 [template = i32] // CHECK:STDOUT: %.loc5_13.2: type = converted %int.make_type_32.loc5, %.loc5_13.1 [template = i32] // CHECK:STDOUT: %.loc5_19: type = array_type %.loc5_18, i32 [template = constants.%.5] @@ -160,11 +160,11 @@ let b: i32 = Mul(0x8000, 0x10000); // CHECK:STDOUT: %Int32: %Int32.type = struct_value () [template] // CHECK:STDOUT: %Mul.type: type = fn_type @Mul [template] // CHECK:STDOUT: %Mul: %Mul.type = struct_value () [template] -// CHECK:STDOUT: %.2: i32 = int_literal 32767 [template] -// CHECK:STDOUT: %.3: i32 = int_literal 65536 [template] -// CHECK:STDOUT: %.4: i32 = int_literal 2147418112 [template] -// CHECK:STDOUT: %.5: i32 = int_literal 32768 [template] -// CHECK:STDOUT: %.6: i32 = int_literal -2147483648 [template] +// CHECK:STDOUT: %.2: i32 = int_value 32767 [template] +// CHECK:STDOUT: %.3: i32 = int_value 65536 [template] +// CHECK:STDOUT: %.4: i32 = int_value 2147418112 [template] +// CHECK:STDOUT: %.5: i32 = int_value 32768 [template] +// CHECK:STDOUT: %.6: i32 = int_value -2147483648 [template] // CHECK:STDOUT: } // CHECK:STDOUT: // CHECK:STDOUT: imports { @@ -223,15 +223,15 @@ let b: i32 = Mul(0x8000, 0x10000); // CHECK:STDOUT: fn @__global_init() { // CHECK:STDOUT: !entry: // CHECK:STDOUT: %Mul.ref.loc6: %Mul.type = name_ref Mul, file.%Mul.decl [template = constants.%Mul] -// CHECK:STDOUT: %.loc6_18: i32 = int_literal 32767 [template = constants.%.2] -// CHECK:STDOUT: %.loc6_26: i32 = int_literal 65536 [template = constants.%.3] +// CHECK:STDOUT: %.loc6_18: i32 = int_value 32767 [template = constants.%.2] +// CHECK:STDOUT: %.loc6_26: i32 = int_value 65536 [template = constants.%.3] // CHECK:STDOUT: %int.umul.loc6: init i32 = call %Mul.ref.loc6(%.loc6_18, %.loc6_26) [template = constants.%.4] // CHECK:STDOUT: %.loc6_34.1: i32 = value_of_initializer %int.umul.loc6 [template = constants.%.4] // CHECK:STDOUT: %.loc6_34.2: i32 = converted %int.umul.loc6, %.loc6_34.1 [template = constants.%.4] // CHECK:STDOUT: %a: i32 = bind_name a, %.loc6_34.2 // CHECK:STDOUT: %Mul.ref.loc7: %Mul.type = name_ref Mul, file.%Mul.decl [template = constants.%Mul] -// CHECK:STDOUT: %.loc7_18: i32 = int_literal 32768 [template = constants.%.5] -// CHECK:STDOUT: %.loc7_26: i32 = int_literal 65536 [template = constants.%.3] +// CHECK:STDOUT: %.loc7_18: i32 = int_value 32768 [template = constants.%.5] +// CHECK:STDOUT: %.loc7_26: i32 = int_value 65536 [template = constants.%.3] // CHECK:STDOUT: %int.umul.loc7: init i32 = call %Mul.ref.loc7(%.loc7_18, %.loc7_26) [template = constants.%.6] // CHECK:STDOUT: %.loc7_34.1: i32 = value_of_initializer %int.umul.loc7 [template = constants.%.6] // CHECK:STDOUT: %.loc7_34.2: i32 = converted %int.umul.loc7, %.loc7_34.1 [template = constants.%.6] diff --git a/toolchain/check/testdata/builtins/int/unegate.carbon b/toolchain/check/testdata/builtins/int/unegate.carbon index 3cb40f86851bb..4e5438e304c6f 100644 --- a/toolchain/check/testdata/builtins/int/unegate.carbon +++ b/toolchain/check/testdata/builtins/int/unegate.carbon @@ -120,12 +120,12 @@ let b: i32 = Negate(Sub(Negate(0x7FFFFFFF), 1)); // CHECK:STDOUT: %Int32: %Int32.type = struct_value () [template] // CHECK:STDOUT: %Negate.type: type = fn_type @Negate [template] // CHECK:STDOUT: %Negate: %Negate.type = struct_value () [template] -// CHECK:STDOUT: %.2: i32 = int_literal 123 [template] -// CHECK:STDOUT: %.3: i32 = int_literal -123 [template] +// CHECK:STDOUT: %.2: i32 = int_value 123 [template] +// CHECK:STDOUT: %.3: i32 = int_value -123 [template] // CHECK:STDOUT: %.4: type = array_type %.2, i32 [template] // CHECK:STDOUT: %.5: type = ptr_type %.4 [template] -// CHECK:STDOUT: %.6: i32 = int_literal 1 [template] -// CHECK:STDOUT: %.7: i32 = int_literal -1 [template] +// CHECK:STDOUT: %.6: i32 = int_value 1 [template] +// CHECK:STDOUT: %.7: i32 = int_value -1 [template] // CHECK:STDOUT: %RuntimeCall.type: type = fn_type @RuntimeCall [template] // CHECK:STDOUT: %RuntimeCall: %RuntimeCall.type = struct_value () [template] // CHECK:STDOUT: } @@ -169,7 +169,7 @@ let b: i32 = Negate(Sub(Negate(0x7FFFFFFF), 1)); // CHECK:STDOUT: %int.make_type_32.loc4: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %Negate.ref.loc4_16: %Negate.type = name_ref Negate, %Negate.decl [template = constants.%Negate] // CHECK:STDOUT: %Negate.ref.loc4_23: %Negate.type = name_ref Negate, %Negate.decl [template = constants.%Negate] -// CHECK:STDOUT: %.loc4_30: i32 = int_literal 123 [template = constants.%.2] +// CHECK:STDOUT: %.loc4_30: i32 = int_value 123 [template = constants.%.2] // CHECK:STDOUT: %int.unegate.loc4_29: init i32 = call %Negate.ref.loc4_23(%.loc4_30) [template = constants.%.3] // CHECK:STDOUT: %.loc4_29.1: i32 = value_of_initializer %int.unegate.loc4_29 [template = constants.%.3] // CHECK:STDOUT: %.loc4_29.2: i32 = converted %int.unegate.loc4_29, %.loc4_29.1 [template = constants.%.3] @@ -180,7 +180,7 @@ let b: i32 = Negate(Sub(Negate(0x7FFFFFFF), 1)); // CHECK:STDOUT: %arr.var: ref %.4 = var arr // CHECK:STDOUT: %arr: ref %.4 = bind_name arr, %arr.var // CHECK:STDOUT: %int.make_type_32.loc5: init type = call constants.%Int32() [template = i32] -// CHECK:STDOUT: %.loc5_18: i32 = int_literal 123 [template = constants.%.2] +// CHECK:STDOUT: %.loc5_18: i32 = int_value 123 [template = constants.%.2] // CHECK:STDOUT: %.loc5_13.1: type = value_of_initializer %int.make_type_32.loc5 [template = i32] // CHECK:STDOUT: %.loc5_13.2: type = converted %int.make_type_32.loc5, %.loc5_13.1 [template = i32] // CHECK:STDOUT: %.loc5_21: type = array_type %.loc5_18, i32 [template = constants.%.4] @@ -234,7 +234,7 @@ let b: i32 = Negate(Sub(Negate(0x7FFFFFFF), 1)); // CHECK:STDOUT: %.loc5: %.5 = addr_of %arr.ref // CHECK:STDOUT: %arr_p: %.5 = bind_name arr_p, %.loc5 // CHECK:STDOUT: %Negate.ref: %Negate.type = name_ref Negate, file.%Negate.decl [template = constants.%Negate] -// CHECK:STDOUT: %.loc7_21: i32 = int_literal 1 [template = constants.%.6] +// CHECK:STDOUT: %.loc7_21: i32 = int_value 1 [template = constants.%.6] // CHECK:STDOUT: %int.unegate: init i32 = call %Negate.ref(%.loc7_21) [template = constants.%.7] // CHECK:STDOUT: %.loc7_23.1: i32 = value_of_initializer %int.unegate [template = constants.%.7] // CHECK:STDOUT: %.loc7_23.2: i32 = converted %int.unegate, %.loc7_23.1 [template = constants.%.7] @@ -258,8 +258,8 @@ let b: i32 = Negate(Sub(Negate(0x7FFFFFFF), 1)); // CHECK:STDOUT: %BadReturnType: %BadReturnType.type = struct_value () [template] // CHECK:STDOUT: %JustRight.type: type = fn_type @JustRight [template] // CHECK:STDOUT: %JustRight: %JustRight.type = struct_value () [template] -// CHECK:STDOUT: %.2: i32 = int_literal 1 [template] -// CHECK:STDOUT: %.3: i32 = int_literal 2 [template] +// CHECK:STDOUT: %.2: i32 = int_value 1 [template] +// CHECK:STDOUT: %.3: i32 = int_value 2 [template] // CHECK:STDOUT: %RuntimeCallTooFew.type: type = fn_type @RuntimeCallTooFew [template] // CHECK:STDOUT: %RuntimeCallTooFew: %RuntimeCallTooFew.type = struct_value () [template] // CHECK:STDOUT: %RuntimeCallTooMany.type: type = fn_type @RuntimeCallTooMany [template] @@ -370,21 +370,21 @@ let b: i32 = Negate(Sub(Negate(0x7FFFFFFF), 1)); // CHECK:STDOUT: %too_few: ref = bind_name too_few, %too_few.var // CHECK:STDOUT: %int.make_type_32.loc30: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %TooMany.ref: %TooMany.type = name_ref TooMany, %TooMany.decl [template = constants.%TooMany] -// CHECK:STDOUT: %.loc30_29: i32 = int_literal 1 [template = constants.%.2] -// CHECK:STDOUT: %.loc30_32: i32 = int_literal 2 [template = constants.%.3] +// CHECK:STDOUT: %.loc30_29: i32 = int_value 1 [template = constants.%.2] +// CHECK:STDOUT: %.loc30_32: i32 = int_value 2 [template = constants.%.3] // CHECK:STDOUT: %TooMany.call: init i32 = call %TooMany.ref(%.loc30_29, %.loc30_32) // CHECK:STDOUT: %too_many.var: ref = var too_many // CHECK:STDOUT: %too_many: ref = bind_name too_many, %too_many.var // CHECK:STDOUT: %int.make_type_32.loc35: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %BadReturnType.ref: %BadReturnType.type = name_ref BadReturnType, %BadReturnType.decl [template = constants.%BadReturnType] -// CHECK:STDOUT: %.loc35: i32 = int_literal 1 [template = constants.%.2] +// CHECK:STDOUT: %.loc35: i32 = int_value 1 [template = constants.%.2] // CHECK:STDOUT: %BadReturnType.call: init bool = call %BadReturnType.ref(%.loc35) // CHECK:STDOUT: %bad_return_type.var: ref = var bad_return_type // CHECK:STDOUT: %bad_return_type: ref = bind_name bad_return_type, %bad_return_type.var // CHECK:STDOUT: %int.make_type_32.loc44: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %JustRight.ref: %JustRight.type = name_ref JustRight, %JustRight.decl [template = constants.%JustRight] -// CHECK:STDOUT: %.loc44_31: i32 = int_literal 1 [template = constants.%.2] -// CHECK:STDOUT: %.loc44_34: i32 = int_literal 2 [template = constants.%.3] +// CHECK:STDOUT: %.loc44_31: i32 = int_value 1 [template = constants.%.2] +// CHECK:STDOUT: %.loc44_34: i32 = int_value 2 [template = constants.%.3] // CHECK:STDOUT: %.loc44_16.1: type = value_of_initializer %int.make_type_32.loc44 [template = i32] // CHECK:STDOUT: %.loc44_16.2: type = converted %int.make_type_32.loc44, %.loc44_16.1 [template = i32] // CHECK:STDOUT: %.loc44_36: type = array_type , i32 [template = ] @@ -510,10 +510,10 @@ let b: i32 = Negate(Sub(Negate(0x7FFFFFFF), 1)); // CHECK:STDOUT: %Negate: %Negate.type = struct_value () [template] // CHECK:STDOUT: %Sub.type: type = fn_type @Sub [template] // CHECK:STDOUT: %Sub: %Sub.type = struct_value () [template] -// CHECK:STDOUT: %.2: i32 = int_literal 2147483647 [template] -// CHECK:STDOUT: %.3: i32 = int_literal -2147483647 [template] -// CHECK:STDOUT: %.4: i32 = int_literal 1 [template] -// CHECK:STDOUT: %.5: i32 = int_literal -2147483648 [template] +// CHECK:STDOUT: %.2: i32 = int_value 2147483647 [template] +// CHECK:STDOUT: %.3: i32 = int_value -2147483647 [template] +// CHECK:STDOUT: %.4: i32 = int_value 1 [template] +// CHECK:STDOUT: %.5: i32 = int_value -2147483648 [template] // CHECK:STDOUT: } // CHECK:STDOUT: // CHECK:STDOUT: imports { @@ -593,7 +593,7 @@ let b: i32 = Negate(Sub(Negate(0x7FFFFFFF), 1)); // CHECK:STDOUT: !entry: // CHECK:STDOUT: %Negate.ref.loc8_14: %Negate.type = name_ref Negate, file.%Negate.decl [template = constants.%Negate] // CHECK:STDOUT: %Negate.ref.loc8_21: %Negate.type = name_ref Negate, file.%Negate.decl [template = constants.%Negate] -// CHECK:STDOUT: %.loc8_28: i32 = int_literal 2147483647 [template = constants.%.2] +// CHECK:STDOUT: %.loc8_28: i32 = int_value 2147483647 [template = constants.%.2] // CHECK:STDOUT: %int.unegate.loc8_27: init i32 = call %Negate.ref.loc8_21(%.loc8_28) [template = constants.%.3] // CHECK:STDOUT: %.loc8_27.1: i32 = value_of_initializer %int.unegate.loc8_27 [template = constants.%.3] // CHECK:STDOUT: %.loc8_27.2: i32 = converted %int.unegate.loc8_27, %.loc8_27.1 [template = constants.%.3] @@ -604,9 +604,9 @@ let b: i32 = Negate(Sub(Negate(0x7FFFFFFF), 1)); // CHECK:STDOUT: %Negate.ref.loc11_14: %Negate.type = name_ref Negate, file.%Negate.decl [template = constants.%Negate] // CHECK:STDOUT: %Sub.ref: %Sub.type = name_ref Sub, file.%Sub.decl [template = constants.%Sub] // CHECK:STDOUT: %Negate.ref.loc11_25: %Negate.type = name_ref Negate, file.%Negate.decl [template = constants.%Negate] -// CHECK:STDOUT: %.loc11_32: i32 = int_literal 2147483647 [template = constants.%.2] +// CHECK:STDOUT: %.loc11_32: i32 = int_value 2147483647 [template = constants.%.2] // CHECK:STDOUT: %int.unegate.loc11_31: init i32 = call %Negate.ref.loc11_25(%.loc11_32) [template = constants.%.3] -// CHECK:STDOUT: %.loc11_45: i32 = int_literal 1 [template = constants.%.4] +// CHECK:STDOUT: %.loc11_45: i32 = int_value 1 [template = constants.%.4] // CHECK:STDOUT: %.loc11_31.1: i32 = value_of_initializer %int.unegate.loc11_31 [template = constants.%.3] // CHECK:STDOUT: %.loc11_31.2: i32 = converted %int.unegate.loc11_31, %.loc11_31.1 [template = constants.%.3] // CHECK:STDOUT: %int.usub: init i32 = call %Sub.ref(%.loc11_31.2, %.loc11_45) [template = constants.%.5] diff --git a/toolchain/check/testdata/builtins/int/usub.carbon b/toolchain/check/testdata/builtins/int/usub.carbon index 330109ace4fd1..cb6e4b8bd5271 100644 --- a/toolchain/check/testdata/builtins/int/usub.carbon +++ b/toolchain/check/testdata/builtins/int/usub.carbon @@ -37,9 +37,9 @@ let c: i32 = Sub(Sub(0, 0x7FFFFFFF), 2); // CHECK:STDOUT: %Int32: %Int32.type = struct_value () [template] // CHECK:STDOUT: %Sub.type: type = fn_type @Sub [template] // CHECK:STDOUT: %Sub: %Sub.type = struct_value () [template] -// CHECK:STDOUT: %.2: i32 = int_literal 3 [template] -// CHECK:STDOUT: %.3: i32 = int_literal 2 [template] -// CHECK:STDOUT: %.4: i32 = int_literal 1 [template] +// CHECK:STDOUT: %.2: i32 = int_value 3 [template] +// CHECK:STDOUT: %.3: i32 = int_value 2 [template] +// CHECK:STDOUT: %.4: i32 = int_value 1 [template] // CHECK:STDOUT: %.5: type = array_type %.4, i32 [template] // CHECK:STDOUT: %.6: type = ptr_type %.5 [template] // CHECK:STDOUT: %RuntimeCall.type: type = fn_type @RuntimeCall [template] @@ -90,8 +90,8 @@ let c: i32 = Sub(Sub(0, 0x7FFFFFFF), 2); // CHECK:STDOUT: } // CHECK:STDOUT: %int.make_type_32.loc4: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %Sub.ref: %Sub.type = name_ref Sub, %Sub.decl [template = constants.%Sub] -// CHECK:STDOUT: %.loc4_20: i32 = int_literal 3 [template = constants.%.2] -// CHECK:STDOUT: %.loc4_23: i32 = int_literal 2 [template = constants.%.3] +// CHECK:STDOUT: %.loc4_20: i32 = int_value 3 [template = constants.%.2] +// CHECK:STDOUT: %.loc4_23: i32 = int_value 2 [template = constants.%.3] // CHECK:STDOUT: %int.usub: init i32 = call %Sub.ref(%.loc4_20, %.loc4_23) [template = constants.%.4] // CHECK:STDOUT: %.loc4_11.1: type = value_of_initializer %int.make_type_32.loc4 [template = i32] // CHECK:STDOUT: %.loc4_11.2: type = converted %int.make_type_32.loc4, %.loc4_11.1 [template = i32] @@ -99,7 +99,7 @@ let c: i32 = Sub(Sub(0, 0x7FFFFFFF), 2); // CHECK:STDOUT: %arr.var: ref %.5 = var arr // CHECK:STDOUT: %arr: ref %.5 = bind_name arr, %arr.var // CHECK:STDOUT: %int.make_type_32.loc5: init type = call constants.%Int32() [template = i32] -// CHECK:STDOUT: %.loc5_18: i32 = int_literal 1 [template = constants.%.4] +// CHECK:STDOUT: %.loc5_18: i32 = int_value 1 [template = constants.%.4] // CHECK:STDOUT: %.loc5_13.1: type = value_of_initializer %int.make_type_32.loc5 [template = i32] // CHECK:STDOUT: %.loc5_13.2: type = converted %int.make_type_32.loc5, %.loc5_13.1 [template = i32] // CHECK:STDOUT: %.loc5_19: type = array_type %.loc5_18, i32 [template = constants.%.5] @@ -161,12 +161,12 @@ let c: i32 = Sub(Sub(0, 0x7FFFFFFF), 2); // CHECK:STDOUT: %Int32: %Int32.type = struct_value () [template] // CHECK:STDOUT: %Sub.type: type = fn_type @Sub [template] // CHECK:STDOUT: %Sub: %Sub.type = struct_value () [template] -// CHECK:STDOUT: %.2: i32 = int_literal 0 [template] -// CHECK:STDOUT: %.3: i32 = int_literal 2147483647 [template] -// CHECK:STDOUT: %.4: i32 = int_literal -2147483647 [template] -// CHECK:STDOUT: %.5: i32 = int_literal 1 [template] -// CHECK:STDOUT: %.6: i32 = int_literal -2147483648 [template] -// CHECK:STDOUT: %.7: i32 = int_literal 2 [template] +// CHECK:STDOUT: %.2: i32 = int_value 0 [template] +// CHECK:STDOUT: %.3: i32 = int_value 2147483647 [template] +// CHECK:STDOUT: %.4: i32 = int_value -2147483647 [template] +// CHECK:STDOUT: %.5: i32 = int_value 1 [template] +// CHECK:STDOUT: %.6: i32 = int_value -2147483648 [template] +// CHECK:STDOUT: %.7: i32 = int_value 2 [template] // CHECK:STDOUT: } // CHECK:STDOUT: // CHECK:STDOUT: imports { @@ -229,18 +229,18 @@ let c: i32 = Sub(Sub(0, 0x7FFFFFFF), 2); // CHECK:STDOUT: fn @__global_init() { // CHECK:STDOUT: !entry: // CHECK:STDOUT: %Sub.ref.loc6: %Sub.type = name_ref Sub, file.%Sub.decl [template = constants.%Sub] -// CHECK:STDOUT: %.loc6_18: i32 = int_literal 0 [template = constants.%.2] -// CHECK:STDOUT: %.loc6_21: i32 = int_literal 2147483647 [template = constants.%.3] +// CHECK:STDOUT: %.loc6_18: i32 = int_value 0 [template = constants.%.2] +// CHECK:STDOUT: %.loc6_21: i32 = int_value 2147483647 [template = constants.%.3] // CHECK:STDOUT: %int.usub.loc6: init i32 = call %Sub.ref.loc6(%.loc6_18, %.loc6_21) [template = constants.%.4] // CHECK:STDOUT: %.loc6_32.1: i32 = value_of_initializer %int.usub.loc6 [template = constants.%.4] // CHECK:STDOUT: %.loc6_32.2: i32 = converted %int.usub.loc6, %.loc6_32.1 [template = constants.%.4] // CHECK:STDOUT: %a: i32 = bind_name a, %.loc6_32.2 // CHECK:STDOUT: %Sub.ref.loc7_14: %Sub.type = name_ref Sub, file.%Sub.decl [template = constants.%Sub] // CHECK:STDOUT: %Sub.ref.loc7_18: %Sub.type = name_ref Sub, file.%Sub.decl [template = constants.%Sub] -// CHECK:STDOUT: %.loc7_22: i32 = int_literal 0 [template = constants.%.2] -// CHECK:STDOUT: %.loc7_25: i32 = int_literal 2147483647 [template = constants.%.3] +// CHECK:STDOUT: %.loc7_22: i32 = int_value 0 [template = constants.%.2] +// CHECK:STDOUT: %.loc7_25: i32 = int_value 2147483647 [template = constants.%.3] // CHECK:STDOUT: %int.usub.loc7_21: init i32 = call %Sub.ref.loc7_18(%.loc7_22, %.loc7_25) [template = constants.%.4] -// CHECK:STDOUT: %.loc7_38: i32 = int_literal 1 [template = constants.%.5] +// CHECK:STDOUT: %.loc7_38: i32 = int_value 1 [template = constants.%.5] // CHECK:STDOUT: %.loc7_21.1: i32 = value_of_initializer %int.usub.loc7_21 [template = constants.%.4] // CHECK:STDOUT: %.loc7_21.2: i32 = converted %int.usub.loc7_21, %.loc7_21.1 [template = constants.%.4] // CHECK:STDOUT: %int.usub.loc7_17: init i32 = call %Sub.ref.loc7_14(%.loc7_21.2, %.loc7_38) [template = constants.%.6] @@ -249,10 +249,10 @@ let c: i32 = Sub(Sub(0, 0x7FFFFFFF), 2); // CHECK:STDOUT: %b: i32 = bind_name b, %.loc7_40.2 // CHECK:STDOUT: %Sub.ref.loc8_14: %Sub.type = name_ref Sub, file.%Sub.decl [template = constants.%Sub] // CHECK:STDOUT: %Sub.ref.loc8_18: %Sub.type = name_ref Sub, file.%Sub.decl [template = constants.%Sub] -// CHECK:STDOUT: %.loc8_22: i32 = int_literal 0 [template = constants.%.2] -// CHECK:STDOUT: %.loc8_25: i32 = int_literal 2147483647 [template = constants.%.3] +// CHECK:STDOUT: %.loc8_22: i32 = int_value 0 [template = constants.%.2] +// CHECK:STDOUT: %.loc8_25: i32 = int_value 2147483647 [template = constants.%.3] // CHECK:STDOUT: %int.usub.loc8_21: init i32 = call %Sub.ref.loc8_18(%.loc8_22, %.loc8_25) [template = constants.%.4] -// CHECK:STDOUT: %.loc8_38: i32 = int_literal 2 [template = constants.%.7] +// CHECK:STDOUT: %.loc8_38: i32 = int_value 2 [template = constants.%.7] // CHECK:STDOUT: %.loc8_21.1: i32 = value_of_initializer %int.usub.loc8_21 [template = constants.%.4] // CHECK:STDOUT: %.loc8_21.2: i32 = converted %int.usub.loc8_21, %.loc8_21.1 [template = constants.%.4] // CHECK:STDOUT: %int.usub.loc8_17: init i32 = call %Sub.ref.loc8_14(%.loc8_21.2, %.loc8_38) [template = constants.%.3] diff --git a/toolchain/check/testdata/builtins/int/xor.carbon b/toolchain/check/testdata/builtins/int/xor.carbon index 6ec65b505f18e..4b38af47a702d 100644 --- a/toolchain/check/testdata/builtins/int/xor.carbon +++ b/toolchain/check/testdata/builtins/int/xor.carbon @@ -27,9 +27,9 @@ fn RuntimeCall(a: i32, b: i32) -> i32 { // CHECK:STDOUT: %Int32: %Int32.type = struct_value () [template] // CHECK:STDOUT: %Xor.type: type = fn_type @Xor [template] // CHECK:STDOUT: %Xor: %Xor.type = struct_value () [template] -// CHECK:STDOUT: %.2: i32 = int_literal 12 [template] -// CHECK:STDOUT: %.3: i32 = int_literal 10 [template] -// CHECK:STDOUT: %.4: i32 = int_literal 6 [template] +// CHECK:STDOUT: %.2: i32 = int_value 12 [template] +// CHECK:STDOUT: %.3: i32 = int_value 10 [template] +// CHECK:STDOUT: %.4: i32 = int_value 6 [template] // CHECK:STDOUT: %.5: type = array_type %.4, i32 [template] // CHECK:STDOUT: %.6: type = ptr_type %.5 [template] // CHECK:STDOUT: %RuntimeCall.type: type = fn_type @RuntimeCall [template] @@ -80,8 +80,8 @@ fn RuntimeCall(a: i32, b: i32) -> i32 { // CHECK:STDOUT: } // CHECK:STDOUT: %int.make_type_32.loc4: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %Xor.ref: %Xor.type = name_ref Xor, %Xor.decl [template = constants.%Xor] -// CHECK:STDOUT: %.loc4_20: i32 = int_literal 12 [template = constants.%.2] -// CHECK:STDOUT: %.loc4_24: i32 = int_literal 10 [template = constants.%.3] +// CHECK:STDOUT: %.loc4_20: i32 = int_value 12 [template = constants.%.2] +// CHECK:STDOUT: %.loc4_24: i32 = int_value 10 [template = constants.%.3] // CHECK:STDOUT: %int.xor: init i32 = call %Xor.ref(%.loc4_20, %.loc4_24) [template = constants.%.4] // CHECK:STDOUT: %.loc4_11.1: type = value_of_initializer %int.make_type_32.loc4 [template = i32] // CHECK:STDOUT: %.loc4_11.2: type = converted %int.make_type_32.loc4, %.loc4_11.1 [template = i32] @@ -89,7 +89,7 @@ fn RuntimeCall(a: i32, b: i32) -> i32 { // CHECK:STDOUT: %arr.var: ref %.5 = var arr // CHECK:STDOUT: %arr: ref %.5 = bind_name arr, %arr.var // CHECK:STDOUT: %int.make_type_32.loc5: init type = call constants.%Int32() [template = i32] -// CHECK:STDOUT: %.loc5_18: i32 = int_literal 6 [template = constants.%.4] +// CHECK:STDOUT: %.loc5_18: i32 = int_value 6 [template = constants.%.4] // CHECK:STDOUT: %.loc5_13.1: type = value_of_initializer %int.make_type_32.loc5 [template = i32] // CHECK:STDOUT: %.loc5_13.2: type = converted %int.make_type_32.loc5, %.loc5_13.1 [template = i32] // CHECK:STDOUT: %.loc5_19: type = array_type %.loc5_18, i32 [template = constants.%.5] diff --git a/toolchain/check/testdata/builtins/print.carbon b/toolchain/check/testdata/builtins/print.carbon index ee3460e4aa25c..132378e95e09a 100644 --- a/toolchain/check/testdata/builtins/print.carbon +++ b/toolchain/check/testdata/builtins/print.carbon @@ -26,10 +26,10 @@ fn Main() { // CHECK:STDOUT: %Print.1: %Print.type.1 = struct_value () [template] // CHECK:STDOUT: %Main.type: type = fn_type @Main [template] // CHECK:STDOUT: %Main: %Main.type = struct_value () [template] -// CHECK:STDOUT: %.2: i32 = int_literal 1 [template] +// CHECK:STDOUT: %.2: i32 = int_value 1 [template] // CHECK:STDOUT: %Print.type.2: type = fn_type @Print.2 [template] // CHECK:STDOUT: %Print.2: %Print.type.2 = struct_value () [template] -// CHECK:STDOUT: %.3: i32 = int_literal 2 [template] +// CHECK:STDOUT: %.3: i32 = int_value 2 [template] // CHECK:STDOUT: } // CHECK:STDOUT: // CHECK:STDOUT: imports { @@ -70,11 +70,11 @@ fn Main() { // CHECK:STDOUT: fn @Main() { // CHECK:STDOUT: !entry: // CHECK:STDOUT: %Print.ref.loc14: %Print.type.1 = name_ref Print, file.%Print.decl [template = constants.%Print.1] -// CHECK:STDOUT: %.loc14: i32 = int_literal 1 [template = constants.%.2] +// CHECK:STDOUT: %.loc14: i32 = int_value 1 [template = constants.%.2] // CHECK:STDOUT: %print.int.loc14: init %.1 = call %Print.ref.loc14(%.loc14) // CHECK:STDOUT: %Core.ref: = name_ref Core, imports.%Core [template = imports.%Core] // CHECK:STDOUT: %Print.ref.loc16: %Print.type.2 = name_ref Print, imports.%import_ref.2 [template = constants.%Print.2] -// CHECK:STDOUT: %.loc16: i32 = int_literal 2 [template = constants.%.3] +// CHECK:STDOUT: %.loc16: i32 = int_value 2 [template = constants.%.3] // CHECK:STDOUT: %print.int.loc16: init %.1 = call %Print.ref.loc16(%.loc16) // CHECK:STDOUT: return // CHECK:STDOUT: } diff --git a/toolchain/check/testdata/class/access_modifers.carbon b/toolchain/check/testdata/class/access_modifers.carbon index 6de8890350b63..a5a971551a4bc 100644 --- a/toolchain/check/testdata/class/access_modifers.carbon +++ b/toolchain/check/testdata/class/access_modifers.carbon @@ -153,14 +153,14 @@ class A { // CHECK:STDOUT: %.1: type = tuple_type () [template] // CHECK:STDOUT: %Int32: %Int32.type = struct_value () [template] // CHECK:STDOUT: %.2: type = unbound_element_type %Circle, i32 [template] -// CHECK:STDOUT: %.3: i32 = int_literal 5 [template] +// CHECK:STDOUT: %.3: i32 = int_value 5 [template] // CHECK:STDOUT: %SomeInternalFunction.type: type = fn_type @SomeInternalFunction [template] // CHECK:STDOUT: %SomeInternalFunction: %SomeInternalFunction.type = struct_value () [template] // CHECK:STDOUT: %Make.type: type = fn_type @Make [template] // CHECK:STDOUT: %Make: %Make.type = struct_value () [template] // CHECK:STDOUT: %.4: type = struct_type {.radius: i32} [template] // CHECK:STDOUT: %.5: = complete_type_witness %.4 [template] -// CHECK:STDOUT: %.6: i32 = int_literal 0 [template] +// CHECK:STDOUT: %.6: i32 = int_value 0 [template] // CHECK:STDOUT: %.7: type = ptr_type %.4 [template] // CHECK:STDOUT: %struct: %Circle = struct_value (%.3) [template] // CHECK:STDOUT: %Run.type: type = fn_type @Run [template] @@ -195,7 +195,7 @@ class A { // CHECK:STDOUT: %int.make_type_32.loc6: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc6_39.1: type = value_of_initializer %int.make_type_32.loc6 [template = i32] // CHECK:STDOUT: %.loc6_39.2: type = converted %int.make_type_32.loc6, %.loc6_39.1 [template = i32] -// CHECK:STDOUT: %.loc6_45: i32 = int_literal 5 [template = constants.%.3] +// CHECK:STDOUT: %.loc6_45: i32 = int_value 5 [template = constants.%.3] // CHECK:STDOUT: %SOME_INTERNAL_CONSTANT: i32 = bind_name SOME_INTERNAL_CONSTANT, %.loc6_45 // CHECK:STDOUT: %SomeInternalFunction.decl: %SomeInternalFunction.type = fn_decl @SomeInternalFunction [template = constants.%SomeInternalFunction] { // CHECK:STDOUT: %return.patt: i32 = return_slot_pattern @@ -229,13 +229,13 @@ class A { // CHECK:STDOUT: // CHECK:STDOUT: fn @SomeInternalFunction() -> i32 { // CHECK:STDOUT: !entry: -// CHECK:STDOUT: %.loc9: i32 = int_literal 0 [template = constants.%.6] +// CHECK:STDOUT: %.loc9: i32 = int_value 0 [template = constants.%.6] // CHECK:STDOUT: return %.loc9 // CHECK:STDOUT: } // CHECK:STDOUT: // CHECK:STDOUT: fn @Make() -> %return: %Circle { // CHECK:STDOUT: !entry: -// CHECK:STDOUT: %.loc13_23: i32 = int_literal 5 [template = constants.%.3] +// CHECK:STDOUT: %.loc13_23: i32 = int_value 5 [template = constants.%.3] // CHECK:STDOUT: %.loc13_24.1: %.4 = struct_literal (%.loc13_23) // CHECK:STDOUT: %.loc13_24.2: ref i32 = class_element_access %return, element0 // CHECK:STDOUT: %.loc13_24.3: init i32 = initialize_from %.loc13_23 to %.loc13_24.2 [template = constants.%.3] @@ -262,7 +262,7 @@ class A { // CHECK:STDOUT: %radius: i32 = bind_name radius, // CHECK:STDOUT: %circle.ref.loc34: %Circle = name_ref circle, %circle // CHECK:STDOUT: %radius.ref.loc34: = name_ref radius, [template = ] -// CHECK:STDOUT: %.loc34: i32 = int_literal 5 [template = constants.%.3] +// CHECK:STDOUT: %.loc34: i32 = int_value 5 [template = constants.%.3] // CHECK:STDOUT: assign %radius.ref.loc34, // CHECK:STDOUT: %circle.ref.loc42: %Circle = name_ref circle, %circle // CHECK:STDOUT: %SOME_INTERNAL_CONSTANT.ref: = name_ref SOME_INTERNAL_CONSTANT, [template = ] @@ -348,7 +348,7 @@ class A { // CHECK:STDOUT: %.3: type = struct_type {.radius: i32} [template] // CHECK:STDOUT: %.4: = complete_type_witness %.3 [template] // CHECK:STDOUT: %.5: type = ptr_type %.3 [template] -// CHECK:STDOUT: %.6: i32 = int_literal 0 [template] +// CHECK:STDOUT: %.6: i32 = int_value 0 [template] // CHECK:STDOUT: } // CHECK:STDOUT: // CHECK:STDOUT: imports { @@ -437,7 +437,7 @@ class A { // CHECK:STDOUT: // CHECK:STDOUT: fn @SomeInternalFunction() -> i32 { // CHECK:STDOUT: !entry: -// CHECK:STDOUT: %.loc12: i32 = int_literal 0 [template = constants.%.6] +// CHECK:STDOUT: %.loc12: i32 = int_value 0 [template = constants.%.6] // CHECK:STDOUT: return %.loc12 // CHECK:STDOUT: } // CHECK:STDOUT: @@ -458,7 +458,7 @@ class A { // CHECK:STDOUT: %Int32.type: type = fn_type @Int32 [template] // CHECK:STDOUT: %.1: type = tuple_type () [template] // CHECK:STDOUT: %Int32: %Int32.type = struct_value () [template] -// CHECK:STDOUT: %.2: i32 = int_literal 5 [template] +// CHECK:STDOUT: %.2: i32 = int_value 5 [template] // CHECK:STDOUT: %.3: type = struct_type {} [template] // CHECK:STDOUT: %.4: = complete_type_witness %.3 [template] // CHECK:STDOUT: %.5: type = ptr_type %.3 [template] @@ -490,7 +490,7 @@ class A { // CHECK:STDOUT: %int.make_type_32: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc5_10.1: type = value_of_initializer %int.make_type_32 [template = i32] // CHECK:STDOUT: %.loc5_10.2: type = converted %int.make_type_32, %.loc5_10.1 [template = i32] -// CHECK:STDOUT: %.loc5_16: i32 = int_literal 5 [template = constants.%.2] +// CHECK:STDOUT: %.loc5_16: i32 = int_value 5 [template = constants.%.2] // CHECK:STDOUT: %x: i32 = bind_name x, %.loc5_16 // CHECK:STDOUT: %.loc6: = complete_type_witness %.3 [template = constants.%.4] // CHECK:STDOUT: @@ -516,7 +516,7 @@ class A { // CHECK:STDOUT: %Int32.type: type = fn_type @Int32 [template] // CHECK:STDOUT: %.1: type = tuple_type () [template] // CHECK:STDOUT: %Int32: %Int32.type = struct_value () [template] -// CHECK:STDOUT: %.2: i32 = int_literal 5 [template] +// CHECK:STDOUT: %.2: i32 = int_value 5 [template] // CHECK:STDOUT: %.3: type = struct_type {} [template] // CHECK:STDOUT: %.4: = complete_type_witness %.3 [template] // CHECK:STDOUT: %.5: type = ptr_type %.3 [template] @@ -552,12 +552,12 @@ class A { // CHECK:STDOUT: %int.make_type_32.loc5: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc5_20.1: type = value_of_initializer %int.make_type_32.loc5 [template = i32] // CHECK:STDOUT: %.loc5_20.2: type = converted %int.make_type_32.loc5, %.loc5_20.1 [template = i32] -// CHECK:STDOUT: %.loc5_26: i32 = int_literal 5 [template = constants.%.2] +// CHECK:STDOUT: %.loc5_26: i32 = int_value 5 [template = constants.%.2] // CHECK:STDOUT: %x: i32 = bind_name x, %.loc5_26 // CHECK:STDOUT: %int.make_type_32.loc6: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc6_18.1: type = value_of_initializer %int.make_type_32.loc6 [template = i32] // CHECK:STDOUT: %.loc6_18.2: type = converted %int.make_type_32.loc6, %.loc6_18.1 [template = i32] -// CHECK:STDOUT: %.loc6_24: i32 = int_literal 5 [template = constants.%.2] +// CHECK:STDOUT: %.loc6_24: i32 = int_value 5 [template = constants.%.2] // CHECK:STDOUT: %y: i32 = bind_name y, %.loc6_24 // CHECK:STDOUT: %.loc7: = complete_type_witness %.3 [template = constants.%.4] // CHECK:STDOUT: diff --git a/toolchain/check/testdata/class/base.carbon b/toolchain/check/testdata/class/base.carbon index 3adb11e740113..f95f06fb0250f 100644 --- a/toolchain/check/testdata/class/base.carbon +++ b/toolchain/check/testdata/class/base.carbon @@ -47,8 +47,8 @@ fn Access(d: Derived) -> (i32, i32) { // CHECK:STDOUT: %.10: type = struct_type {.base: %.5, .d: i32} [template] // CHECK:STDOUT: %.11: type = ptr_type %.10 [template] // CHECK:STDOUT: %.12: type = ptr_type %.8 [template] -// CHECK:STDOUT: %.13: i32 = int_literal 4 [template] -// CHECK:STDOUT: %.14: i32 = int_literal 7 [template] +// CHECK:STDOUT: %.13: i32 = int_value 4 [template] +// CHECK:STDOUT: %.14: i32 = int_value 7 [template] // CHECK:STDOUT: %.15: type = struct_type {.base: %.3, .d: i32} [template] // CHECK:STDOUT: %struct.1: %Base = struct_value (%.13) [template] // CHECK:STDOUT: %struct.2: %Derived = struct_value (%struct.1, %.14) [template] @@ -141,9 +141,9 @@ fn Access(d: Derived) -> (i32, i32) { // CHECK:STDOUT: // CHECK:STDOUT: fn @Make() -> %return: %Derived { // CHECK:STDOUT: !entry: -// CHECK:STDOUT: %.loc22_25: i32 = int_literal 4 [template = constants.%.13] +// CHECK:STDOUT: %.loc22_25: i32 = int_value 4 [template = constants.%.13] // CHECK:STDOUT: %.loc22_26.1: %.3 = struct_literal (%.loc22_25) -// CHECK:STDOUT: %.loc22_34: i32 = int_literal 7 [template = constants.%.14] +// CHECK:STDOUT: %.loc22_34: i32 = int_value 7 [template = constants.%.14] // CHECK:STDOUT: %.loc22_35.1: %.15 = struct_literal (%.loc22_26.1, %.loc22_34) // CHECK:STDOUT: %.loc22_35.2: ref %Base = class_element_access %return, element0 // CHECK:STDOUT: %.loc22_26.2: ref i32 = class_element_access %.loc22_35.2, element0 diff --git a/toolchain/check/testdata/class/base_method.carbon b/toolchain/check/testdata/class/base_method.carbon index 396840e475aa3..a1a622b49b9dc 100644 --- a/toolchain/check/testdata/class/base_method.carbon +++ b/toolchain/check/testdata/class/base_method.carbon @@ -40,7 +40,7 @@ fn Call(p: Derived*) { // CHECK:STDOUT: %.4: type = struct_type {.a: i32} [template] // CHECK:STDOUT: %.5: = complete_type_witness %.4 [template] // CHECK:STDOUT: %.6: type = ptr_type %.4 [template] -// CHECK:STDOUT: %.7: i32 = int_literal 1 [template] +// CHECK:STDOUT: %.7: i32 = int_value 1 [template] // CHECK:STDOUT: %Derived: type = class_type @Derived [template] // CHECK:STDOUT: %.8: type = unbound_element_type %Derived, %Base [template] // CHECK:STDOUT: %.9: type = struct_type {.base: %Base} [template] @@ -134,7 +134,7 @@ fn Call(p: Derived*) { // CHECK:STDOUT: %.loc18_4: ref %Base = deref %self.ref // CHECK:STDOUT: %a.ref: %.2 = name_ref a, @Base.%.loc12_8 [template = @Base.%.loc12_8] // CHECK:STDOUT: %.loc18_10: ref i32 = class_element_access %.loc18_4, element0 -// CHECK:STDOUT: %.loc18_15: i32 = int_literal 1 [template = constants.%.7] +// CHECK:STDOUT: %.loc18_15: i32 = int_value 1 [template = constants.%.7] // CHECK:STDOUT: assign %.loc18_10, %.loc18_15 // CHECK:STDOUT: return // CHECK:STDOUT: } diff --git a/toolchain/check/testdata/class/basic.carbon b/toolchain/check/testdata/class/basic.carbon index 6edba97800c95..102f47b387d02 100644 --- a/toolchain/check/testdata/class/basic.carbon +++ b/toolchain/check/testdata/class/basic.carbon @@ -43,7 +43,7 @@ fn Run() -> i32 { // CHECK:STDOUT: %Run.type: type = fn_type @Run [template] // CHECK:STDOUT: %Run: %Run.type = struct_value () [template] // CHECK:STDOUT: %.5: type = ptr_type %.3 [template] -// CHECK:STDOUT: %.6: i32 = int_literal 4 [template] +// CHECK:STDOUT: %.6: i32 = int_value 4 [template] // CHECK:STDOUT: } // CHECK:STDOUT: // CHECK:STDOUT: imports { @@ -158,7 +158,7 @@ fn Run() -> i32 { // CHECK:STDOUT: !entry: // CHECK:STDOUT: %Class.ref: type = name_ref Class, file.%Class.decl [template = constants.%Class] // CHECK:STDOUT: %F.ref: %F.type = name_ref F, @Class.%F.decl [template = constants.%F] -// CHECK:STDOUT: %.loc26_18: i32 = int_literal 4 [template = constants.%.6] +// CHECK:STDOUT: %.loc26_18: i32 = int_value 4 [template = constants.%.6] // CHECK:STDOUT: %F.call: init i32 = call %F.ref(%.loc26_18) // CHECK:STDOUT: %.loc26_20.1: i32 = value_of_initializer %F.call // CHECK:STDOUT: %.loc26_20.2: i32 = converted %F.call, %.loc26_20.1 diff --git a/toolchain/check/testdata/class/derived_to_base.carbon b/toolchain/check/testdata/class/derived_to_base.carbon index 90529de4c9c3f..3465925c7dc90 100644 --- a/toolchain/check/testdata/class/derived_to_base.carbon +++ b/toolchain/check/testdata/class/derived_to_base.carbon @@ -80,10 +80,10 @@ fn ConvertInit() { // CHECK:STDOUT: %ConvertRef: %ConvertRef.type = struct_value () [template] // CHECK:STDOUT: %ConvertInit.type: type = fn_type @ConvertInit [template] // CHECK:STDOUT: %ConvertInit: %ConvertInit.type = struct_value () [template] -// CHECK:STDOUT: %.23: i32 = int_literal 1 [template] -// CHECK:STDOUT: %.24: i32 = int_literal 2 [template] +// CHECK:STDOUT: %.23: i32 = int_value 1 [template] +// CHECK:STDOUT: %.24: i32 = int_value 2 [template] // CHECK:STDOUT: %.25: type = struct_type {.base: %.3, .b: i32} [template] -// CHECK:STDOUT: %.26: i32 = int_literal 3 [template] +// CHECK:STDOUT: %.26: i32 = int_value 3 [template] // CHECK:STDOUT: %.27: type = struct_type {.base: %.25, .c: i32} [template] // CHECK:STDOUT: %struct.1: %A = struct_value (%.23) [template] // CHECK:STDOUT: %struct.2: %B = struct_value (%struct.1, %.24) [template] @@ -291,11 +291,11 @@ fn ConvertInit() { // CHECK:STDOUT: fn @ConvertInit() { // CHECK:STDOUT: !entry: // CHECK:STDOUT: %A.ref: type = name_ref A, file.%A.decl [template = constants.%A] -// CHECK:STDOUT: %.loc38_38: i32 = int_literal 1 [template = constants.%.23] +// CHECK:STDOUT: %.loc38_38: i32 = int_value 1 [template = constants.%.23] // CHECK:STDOUT: %.loc38_39.1: %.3 = struct_literal (%.loc38_38) -// CHECK:STDOUT: %.loc38_47: i32 = int_literal 2 [template = constants.%.24] +// CHECK:STDOUT: %.loc38_47: i32 = int_value 2 [template = constants.%.24] // CHECK:STDOUT: %.loc38_48.1: %.25 = struct_literal (%.loc38_39.1, %.loc38_47) -// CHECK:STDOUT: %.loc38_56: i32 = int_literal 3 [template = constants.%.26] +// CHECK:STDOUT: %.loc38_56: i32 = int_value 3 [template = constants.%.26] // CHECK:STDOUT: %.loc38_57.1: %.27 = struct_literal (%.loc38_48.1, %.loc38_56) // CHECK:STDOUT: %C.ref: type = name_ref C, file.%C.decl [template = constants.%C] // CHECK:STDOUT: %.loc38_57.2: ref %C = temporary_storage diff --git a/toolchain/check/testdata/class/fail_abstract.carbon b/toolchain/check/testdata/class/fail_abstract.carbon index cff528a652499..3edfb6f352eac 100644 --- a/toolchain/check/testdata/class/fail_abstract.carbon +++ b/toolchain/check/testdata/class/fail_abstract.carbon @@ -461,9 +461,9 @@ fn CallReturnAbstract() { // CHECK:STDOUT: %.9: type = struct_type {.base: %.4, .d: i32} [template] // CHECK:STDOUT: %.10: type = ptr_type %.9 [template] // CHECK:STDOUT: %.11: type = ptr_type %.7 [template] -// CHECK:STDOUT: %.12: i32 = int_literal 1 [template] +// CHECK:STDOUT: %.12: i32 = int_value 1 [template] // CHECK:STDOUT: %.13: type = struct_type {.a: i32} [template] -// CHECK:STDOUT: %.14: i32 = int_literal 7 [template] +// CHECK:STDOUT: %.14: i32 = int_value 7 [template] // CHECK:STDOUT: %.15: type = struct_type {.base: %.13, .d: i32} [template] // CHECK:STDOUT: } // CHECK:STDOUT: @@ -523,9 +523,9 @@ fn CallReturnAbstract() { // CHECK:STDOUT: // CHECK:STDOUT: fn @Make() -> %return: %Derived { // CHECK:STDOUT: !entry: -// CHECK:STDOUT: %.loc22_25: i32 = int_literal 1 [template = constants.%.12] +// CHECK:STDOUT: %.loc22_25: i32 = int_value 1 [template = constants.%.12] // CHECK:STDOUT: %.loc22_26: %.13 = struct_literal (%.loc22_25) -// CHECK:STDOUT: %.loc22_34: i32 = int_literal 7 [template = constants.%.14] +// CHECK:STDOUT: %.loc22_34: i32 = int_value 7 [template = constants.%.14] // CHECK:STDOUT: %.loc22_35: %.15 = struct_literal (%.loc22_26, %.loc22_34) // CHECK:STDOUT: return to %return // CHECK:STDOUT: } diff --git a/toolchain/check/testdata/class/fail_adapt_bad_decl.carbon b/toolchain/check/testdata/class/fail_adapt_bad_decl.carbon index ad449d68bc16c..d7f91bde23173 100644 --- a/toolchain/check/testdata/class/fail_adapt_bad_decl.carbon +++ b/toolchain/check/testdata/class/fail_adapt_bad_decl.carbon @@ -106,7 +106,7 @@ class C { // CHECK:STDOUT: // CHECK:STDOUT: constants { // CHECK:STDOUT: %Bad: type = class_type @Bad [template] -// CHECK:STDOUT: %.1: i32 = int_literal 100 [template] +// CHECK:STDOUT: %.1: i32 = int_value 100 [template] // CHECK:STDOUT: %ImplicitAs.type.1: type = generic_interface_type @ImplicitAs [template] // CHECK:STDOUT: %.2: type = tuple_type () [template] // CHECK:STDOUT: %ImplicitAs: %ImplicitAs.type.1 = struct_value () [template] @@ -182,7 +182,7 @@ class C { // CHECK:STDOUT: } // CHECK:STDOUT: // CHECK:STDOUT: class @Bad { -// CHECK:STDOUT: %.loc12_9: i32 = int_literal 100 [template = constants.%.1] +// CHECK:STDOUT: %.loc12_9: i32 = int_value 100 [template = constants.%.1] // CHECK:STDOUT: %ImplicitAs.type: type = interface_type @ImplicitAs, @ImplicitAs(type) [template = constants.%ImplicitAs.type.3] // CHECK:STDOUT: %.loc12_12.1: %.5 = specific_constant imports.%import_ref.3, @ImplicitAs(type) [template = constants.%.6] // CHECK:STDOUT: %Convert.ref: %.5 = name_ref Convert, %.loc12_12.1 [template = constants.%.6] @@ -247,7 +247,7 @@ class C { // CHECK:STDOUT: // CHECK:STDOUT: constants { // CHECK:STDOUT: %Bad: type = class_type @Bad [template] -// CHECK:STDOUT: %.1: i32 = int_literal 100 [template] +// CHECK:STDOUT: %.1: i32 = int_value 100 [template] // CHECK:STDOUT: %ImplicitAs.type.1: type = generic_interface_type @ImplicitAs [template] // CHECK:STDOUT: %.2: type = tuple_type () [template] // CHECK:STDOUT: %ImplicitAs: %ImplicitAs.type.1 = struct_value () [template] @@ -323,7 +323,7 @@ class C { // CHECK:STDOUT: } // CHECK:STDOUT: // CHECK:STDOUT: class @Bad { -// CHECK:STDOUT: %.loc12_16: i32 = int_literal 100 [template = constants.%.1] +// CHECK:STDOUT: %.loc12_16: i32 = int_value 100 [template = constants.%.1] // CHECK:STDOUT: %ImplicitAs.type: type = interface_type @ImplicitAs, @ImplicitAs(type) [template = constants.%ImplicitAs.type.3] // CHECK:STDOUT: %.loc12_19.1: %.5 = specific_constant imports.%import_ref.3, @ImplicitAs(type) [template = constants.%.6] // CHECK:STDOUT: %Convert.ref: %.5 = name_ref Convert, %.loc12_19.1 [template = constants.%.6] diff --git a/toolchain/check/testdata/class/fail_base_bad_type.carbon b/toolchain/check/testdata/class/fail_base_bad_type.carbon index d0079a28823bd..eabd18aebf5b2 100644 --- a/toolchain/check/testdata/class/fail_base_bad_type.carbon +++ b/toolchain/check/testdata/class/fail_base_bad_type.carbon @@ -250,7 +250,7 @@ fn AccessMemberWithInvalidBaseFinal_NoMember(p: DeriveFromFinal*) -> i32 { // CHECK:STDOUT: // CHECK:STDOUT: constants { // CHECK:STDOUT: %DeriveFromNonType: type = class_type @DeriveFromNonType [template] -// CHECK:STDOUT: %.1: i32 = int_literal 32 [template] +// CHECK:STDOUT: %.1: i32 = int_value 32 [template] // CHECK:STDOUT: %ImplicitAs.type.1: type = generic_interface_type @ImplicitAs [template] // CHECK:STDOUT: %.2: type = tuple_type () [template] // CHECK:STDOUT: %ImplicitAs: %ImplicitAs.type.1 = struct_value () [template] @@ -339,7 +339,7 @@ fn AccessMemberWithInvalidBaseFinal_NoMember(p: DeriveFromFinal*) -> i32 { // CHECK:STDOUT: } // CHECK:STDOUT: // CHECK:STDOUT: class @DeriveFromNonType { -// CHECK:STDOUT: %.loc12_16.1: i32 = int_literal 32 [template = constants.%.1] +// CHECK:STDOUT: %.loc12_16.1: i32 = int_value 32 [template = constants.%.1] // CHECK:STDOUT: %ImplicitAs.type: type = interface_type @ImplicitAs, @ImplicitAs(type) [template = constants.%ImplicitAs.type.3] // CHECK:STDOUT: %.loc12_16.2: %.5 = specific_constant imports.%import_ref.3, @ImplicitAs(type) [template = constants.%.6] // CHECK:STDOUT: %Convert.ref: %.5 = name_ref Convert, %.loc12_16.2 [template = constants.%.6] diff --git a/toolchain/check/testdata/class/fail_convert_to_invalid.carbon b/toolchain/check/testdata/class/fail_convert_to_invalid.carbon index e17824301ae97..f10d2a1c176fb 100644 --- a/toolchain/check/testdata/class/fail_convert_to_invalid.carbon +++ b/toolchain/check/testdata/class/fail_convert_to_invalid.carbon @@ -26,7 +26,7 @@ fn Make() -> C { // CHECK:STDOUT: %Make.type: type = fn_type @Make [template] // CHECK:STDOUT: %.1: type = tuple_type () [template] // CHECK:STDOUT: %Make: %Make.type = struct_value () [template] -// CHECK:STDOUT: %.2: i32 = int_literal 123 [template] +// CHECK:STDOUT: %.2: i32 = int_value 123 [template] // CHECK:STDOUT: %.3: type = struct_type {.a: i32} [template] // CHECK:STDOUT: } // CHECK:STDOUT: @@ -67,7 +67,7 @@ fn Make() -> C { // CHECK:STDOUT: // CHECK:STDOUT: fn @Make() -> %return: %C { // CHECK:STDOUT: !entry: -// CHECK:STDOUT: %.loc19_16: i32 = int_literal 123 [template = constants.%.2] +// CHECK:STDOUT: %.loc19_16: i32 = int_value 123 [template = constants.%.2] // CHECK:STDOUT: %.loc19_19: %.3 = struct_literal (%.loc19_16) // CHECK:STDOUT: return to %return // CHECK:STDOUT: } diff --git a/toolchain/check/testdata/class/fail_field_modifiers.carbon b/toolchain/check/testdata/class/fail_field_modifiers.carbon index 248aed96d5c8c..a67c9135efaf7 100644 --- a/toolchain/check/testdata/class/fail_field_modifiers.carbon +++ b/toolchain/check/testdata/class/fail_field_modifiers.carbon @@ -42,8 +42,8 @@ class Class { // CHECK:STDOUT: %.1: type = tuple_type () [template] // CHECK:STDOUT: %Int32: %Int32.type = struct_value () [template] // CHECK:STDOUT: %.2: type = unbound_element_type %Class, i32 [template] -// CHECK:STDOUT: %.3: i32 = int_literal 0 [template] -// CHECK:STDOUT: %.4: i32 = int_literal 1 [template] +// CHECK:STDOUT: %.3: i32 = int_value 0 [template] +// CHECK:STDOUT: %.4: i32 = int_value 1 [template] // CHECK:STDOUT: %.5: type = struct_type {.j: i32, .k: i32} [template] // CHECK:STDOUT: %.6: = complete_type_witness %.5 [template] // CHECK:STDOUT: } @@ -78,12 +78,12 @@ class Class { // CHECK:STDOUT: %int.make_type_32.loc29: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc29_18.1: type = value_of_initializer %int.make_type_32.loc29 [template = i32] // CHECK:STDOUT: %.loc29_18.2: type = converted %int.make_type_32.loc29, %.loc29_18.1 [template = i32] -// CHECK:STDOUT: %.loc29_24: i32 = int_literal 0 [template = constants.%.3] +// CHECK:STDOUT: %.loc29_24: i32 = int_value 0 [template = constants.%.3] // CHECK:STDOUT: %l: i32 = bind_name l, %.loc29_24 // CHECK:STDOUT: %int.make_type_32.loc34: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc34_16.1: type = value_of_initializer %int.make_type_32.loc34 [template = i32] // CHECK:STDOUT: %.loc34_16.2: type = converted %int.make_type_32.loc34, %.loc34_16.1 [template = i32] -// CHECK:STDOUT: %.loc34_22: i32 = int_literal 1 [template = constants.%.4] +// CHECK:STDOUT: %.loc34_22: i32 = int_value 1 [template = constants.%.4] // CHECK:STDOUT: %m: i32 = bind_name m, %.loc34_22 // CHECK:STDOUT: %.loc35: = complete_type_witness %.5 [template = constants.%.6] // CHECK:STDOUT: diff --git a/toolchain/check/testdata/class/fail_init.carbon b/toolchain/check/testdata/class/fail_init.carbon index c2c602e288735..02ed02e56e7ee 100644 --- a/toolchain/check/testdata/class/fail_init.carbon +++ b/toolchain/check/testdata/class/fail_init.carbon @@ -42,12 +42,12 @@ fn F() { // CHECK:STDOUT: %.4: = complete_type_witness %.3 [template] // CHECK:STDOUT: %F.type: type = fn_type @F [template] // CHECK:STDOUT: %F: %F.type = struct_value () [template] -// CHECK:STDOUT: %.5: i32 = int_literal 1 [template] +// CHECK:STDOUT: %.5: i32 = int_value 1 [template] // CHECK:STDOUT: %.6: type = struct_type {.a: i32} [template] // CHECK:STDOUT: %.7: type = ptr_type %.3 [template] -// CHECK:STDOUT: %.8: i32 = int_literal 2 [template] +// CHECK:STDOUT: %.8: i32 = int_value 2 [template] // CHECK:STDOUT: %.9: type = struct_type {.a: i32, .c: i32} [template] -// CHECK:STDOUT: %.10: i32 = int_literal 3 [template] +// CHECK:STDOUT: %.10: i32 = int_value 3 [template] // CHECK:STDOUT: %.11: type = struct_type {.a: i32, .b: i32, .c: i32} [template] // CHECK:STDOUT: } // CHECK:STDOUT: @@ -92,14 +92,14 @@ fn F() { // CHECK:STDOUT: // CHECK:STDOUT: fn @F() { // CHECK:STDOUT: !entry: -// CHECK:STDOUT: %.loc21_9: i32 = int_literal 1 [template = constants.%.5] +// CHECK:STDOUT: %.loc21_9: i32 = int_value 1 [template = constants.%.5] // CHECK:STDOUT: %.loc21_10.1: %.6 = struct_literal (%.loc21_9) // CHECK:STDOUT: %Class.ref.loc21: type = name_ref Class, file.%Class.decl [template = constants.%Class] // CHECK:STDOUT: %.loc21_10.2: ref %Class = temporary_storage // CHECK:STDOUT: %.loc21_10.3: ref %Class = temporary %.loc21_10.2, // CHECK:STDOUT: %.loc21_12: ref %Class = converted %.loc21_10.1, %.loc21_10.3 -// CHECK:STDOUT: %.loc26_9: i32 = int_literal 1 [template = constants.%.5] -// CHECK:STDOUT: %.loc26_17: i32 = int_literal 2 [template = constants.%.8] +// CHECK:STDOUT: %.loc26_9: i32 = int_value 1 [template = constants.%.5] +// CHECK:STDOUT: %.loc26_17: i32 = int_value 2 [template = constants.%.8] // CHECK:STDOUT: %.loc26_18.1: %.9 = struct_literal (%.loc26_9, %.loc26_17) // CHECK:STDOUT: %Class.ref.loc26: type = name_ref Class, file.%Class.decl [template = constants.%Class] // CHECK:STDOUT: %.loc26_18.2: ref %Class = temporary_storage @@ -107,9 +107,9 @@ fn F() { // CHECK:STDOUT: %.loc26_18.4: init i32 = initialize_from %.loc26_9 to %.loc26_18.3 [template = constants.%.5] // CHECK:STDOUT: %.loc26_18.5: ref %Class = temporary %.loc26_18.2, // CHECK:STDOUT: %.loc26_20: ref %Class = converted %.loc26_18.1, %.loc26_18.5 -// CHECK:STDOUT: %.loc30_9: i32 = int_literal 1 [template = constants.%.5] -// CHECK:STDOUT: %.loc30_17: i32 = int_literal 2 [template = constants.%.8] -// CHECK:STDOUT: %.loc30_25: i32 = int_literal 3 [template = constants.%.10] +// CHECK:STDOUT: %.loc30_9: i32 = int_value 1 [template = constants.%.5] +// CHECK:STDOUT: %.loc30_17: i32 = int_value 2 [template = constants.%.8] +// CHECK:STDOUT: %.loc30_25: i32 = int_value 3 [template = constants.%.10] // CHECK:STDOUT: %.loc30_26.1: %.11 = struct_literal (%.loc30_9, %.loc30_17, %.loc30_25) // CHECK:STDOUT: %Class.ref.loc30: type = name_ref Class, file.%Class.decl [template = constants.%Class] // CHECK:STDOUT: %.loc30_26.2: ref %Class = temporary_storage diff --git a/toolchain/check/testdata/class/fail_init_as_inplace.carbon b/toolchain/check/testdata/class/fail_init_as_inplace.carbon index 12698aef3fc50..53a60ffcd8f00 100644 --- a/toolchain/check/testdata/class/fail_init_as_inplace.carbon +++ b/toolchain/check/testdata/class/fail_init_as_inplace.carbon @@ -42,8 +42,8 @@ fn F() { // CHECK:STDOUT: %F.type: type = fn_type @F [template] // CHECK:STDOUT: %F: %F.type = struct_value () [template] // CHECK:STDOUT: %.6: type = ptr_type %.3 [template] -// CHECK:STDOUT: %.7: i32 = int_literal 1 [template] -// CHECK:STDOUT: %.8: i32 = int_literal 2 [template] +// CHECK:STDOUT: %.7: i32 = int_value 1 [template] +// CHECK:STDOUT: %.8: i32 = int_value 2 [template] // CHECK:STDOUT: %struct: %Class = struct_value (%.7, %.8) [template] // CHECK:STDOUT: } // CHECK:STDOUT: @@ -103,8 +103,8 @@ fn F() { // CHECK:STDOUT: %Class.ref.loc25_10: type = name_ref Class, file.%Class.decl [template = constants.%Class] // CHECK:STDOUT: %c.var: ref %Class = var c // CHECK:STDOUT: %c: ref %Class = bind_name c, %c.var -// CHECK:STDOUT: %.loc25_24: i32 = int_literal 1 [template = constants.%.7] -// CHECK:STDOUT: %.loc25_32: i32 = int_literal 2 [template = constants.%.8] +// CHECK:STDOUT: %.loc25_24: i32 = int_value 1 [template = constants.%.7] +// CHECK:STDOUT: %.loc25_32: i32 = int_value 2 [template = constants.%.8] // CHECK:STDOUT: %.loc25_33.1: %.3 = struct_literal (%.loc25_24, %.loc25_32) // CHECK:STDOUT: %Class.ref.loc25_38: type = name_ref Class, file.%Class.decl [template = constants.%Class] // CHECK:STDOUT: %.loc25_33.2: ref %Class = temporary_storage diff --git a/toolchain/check/testdata/class/fail_scope.carbon b/toolchain/check/testdata/class/fail_scope.carbon index 562da7013aa50..3263bd781fdf1 100644 --- a/toolchain/check/testdata/class/fail_scope.carbon +++ b/toolchain/check/testdata/class/fail_scope.carbon @@ -32,7 +32,7 @@ fn G() -> i32 { // CHECK:STDOUT: %F: %F.type = struct_value () [template] // CHECK:STDOUT: %.2: type = struct_type {} [template] // CHECK:STDOUT: %.3: = complete_type_witness %.2 [template] -// CHECK:STDOUT: %.4: i32 = int_literal 1 [template] +// CHECK:STDOUT: %.4: i32 = int_value 1 [template] // CHECK:STDOUT: %G.type: type = fn_type @G [template] // CHECK:STDOUT: %G: %G.type = struct_value () [template] // CHECK:STDOUT: } @@ -88,7 +88,7 @@ fn G() -> i32 { // CHECK:STDOUT: // CHECK:STDOUT: fn @F() -> i32 { // CHECK:STDOUT: !entry: -// CHECK:STDOUT: %.loc13: i32 = int_literal 1 [template = constants.%.4] +// CHECK:STDOUT: %.loc13: i32 = int_value 1 [template = constants.%.4] // CHECK:STDOUT: return %.loc13 // CHECK:STDOUT: } // CHECK:STDOUT: diff --git a/toolchain/check/testdata/class/fail_self_param.carbon b/toolchain/check/testdata/class/fail_self_param.carbon index 1396d7de4cecf..396c5f644b6dd 100644 --- a/toolchain/check/testdata/class/fail_self_param.carbon +++ b/toolchain/check/testdata/class/fail_self_param.carbon @@ -25,7 +25,7 @@ var v: C(0); // CHECK:STDOUT: %C.2: type = class_type @C, @C(%x) [symbolic] // CHECK:STDOUT: %.2: type = struct_type {} [template] // CHECK:STDOUT: %.3: = complete_type_witness %.2 [template] -// CHECK:STDOUT: %.4: i32 = int_literal 0 [template] +// CHECK:STDOUT: %.4: i32 = int_value 0 [template] // CHECK:STDOUT: } // CHECK:STDOUT: // CHECK:STDOUT: imports { @@ -51,7 +51,7 @@ var v: C(0); // CHECK:STDOUT: %x.loc14_22.1: = bind_symbolic_name x, 0, %x.param [symbolic = %x.loc14_22.2 (constants.%x)] // CHECK:STDOUT: } // CHECK:STDOUT: %C.ref: %C.type = name_ref C, %C.decl [template = constants.%C.1] -// CHECK:STDOUT: %.loc15: i32 = int_literal 0 [template = constants.%.4] +// CHECK:STDOUT: %.loc15: i32 = int_value 0 [template = constants.%.4] // CHECK:STDOUT: %v.var: ref = var v // CHECK:STDOUT: %v: ref = bind_name v, %v.var // CHECK:STDOUT: } diff --git a/toolchain/check/testdata/class/field_access.carbon b/toolchain/check/testdata/class/field_access.carbon index a1f832fcd5cc5..1db6b66c89cb3 100644 --- a/toolchain/check/testdata/class/field_access.carbon +++ b/toolchain/check/testdata/class/field_access.carbon @@ -34,8 +34,8 @@ fn Run() { // CHECK:STDOUT: %Run.type: type = fn_type @Run [template] // CHECK:STDOUT: %Run: %Run.type = struct_value () [template] // CHECK:STDOUT: %.5: type = ptr_type %.3 [template] -// CHECK:STDOUT: %.6: i32 = int_literal 1 [template] -// CHECK:STDOUT: %.7: i32 = int_literal 2 [template] +// CHECK:STDOUT: %.6: i32 = int_value 1 [template] +// CHECK:STDOUT: %.7: i32 = int_value 2 [template] // CHECK:STDOUT: } // CHECK:STDOUT: // CHECK:STDOUT: imports { @@ -85,12 +85,12 @@ fn Run() { // CHECK:STDOUT: %c.ref.loc18: ref %Class = name_ref c, %c // CHECK:STDOUT: %j.ref.loc18: %.2 = name_ref j, @Class.%.loc12_8 [template = @Class.%.loc12_8] // CHECK:STDOUT: %.loc18_4: ref i32 = class_element_access %c.ref.loc18, element0 -// CHECK:STDOUT: %.loc18_9: i32 = int_literal 1 [template = constants.%.6] +// CHECK:STDOUT: %.loc18_9: i32 = int_value 1 [template = constants.%.6] // CHECK:STDOUT: assign %.loc18_4, %.loc18_9 // CHECK:STDOUT: %c.ref.loc19: ref %Class = name_ref c, %c // CHECK:STDOUT: %k.ref.loc19: %.2 = name_ref k, @Class.%.loc13_8 [template = @Class.%.loc13_8] // CHECK:STDOUT: %.loc19_4: ref i32 = class_element_access %c.ref.loc19, element1 -// CHECK:STDOUT: %.loc19_9: i32 = int_literal 2 [template = constants.%.7] +// CHECK:STDOUT: %.loc19_9: i32 = int_value 2 [template = constants.%.7] // CHECK:STDOUT: assign %.loc19_4, %.loc19_9 // CHECK:STDOUT: %int.make_type_32.loc20: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc20_11.1: type = value_of_initializer %int.make_type_32.loc20 [template = i32] diff --git a/toolchain/check/testdata/class/field_access_in_value.carbon b/toolchain/check/testdata/class/field_access_in_value.carbon index 2ae084c64f82f..0cc70207bd91a 100644 --- a/toolchain/check/testdata/class/field_access_in_value.carbon +++ b/toolchain/check/testdata/class/field_access_in_value.carbon @@ -35,8 +35,8 @@ fn Test() { // CHECK:STDOUT: %Test.type: type = fn_type @Test [template] // CHECK:STDOUT: %Test: %Test.type = struct_value () [template] // CHECK:STDOUT: %.5: type = ptr_type %.3 [template] -// CHECK:STDOUT: %.6: i32 = int_literal 1 [template] -// CHECK:STDOUT: %.7: i32 = int_literal 2 [template] +// CHECK:STDOUT: %.6: i32 = int_value 1 [template] +// CHECK:STDOUT: %.7: i32 = int_value 2 [template] // CHECK:STDOUT: } // CHECK:STDOUT: // CHECK:STDOUT: imports { @@ -86,12 +86,12 @@ fn Test() { // CHECK:STDOUT: %cv.ref.loc18: ref %Class = name_ref cv, %cv // CHECK:STDOUT: %j.ref.loc18: %.2 = name_ref j, @Class.%.loc12_8 [template = @Class.%.loc12_8] // CHECK:STDOUT: %.loc18_5: ref i32 = class_element_access %cv.ref.loc18, element0 -// CHECK:STDOUT: %.loc18_10: i32 = int_literal 1 [template = constants.%.6] +// CHECK:STDOUT: %.loc18_10: i32 = int_value 1 [template = constants.%.6] // CHECK:STDOUT: assign %.loc18_5, %.loc18_10 // CHECK:STDOUT: %cv.ref.loc19: ref %Class = name_ref cv, %cv // CHECK:STDOUT: %k.ref.loc19: %.2 = name_ref k, @Class.%.loc13_8 [template = @Class.%.loc13_8] // CHECK:STDOUT: %.loc19_5: ref i32 = class_element_access %cv.ref.loc19, element1 -// CHECK:STDOUT: %.loc19_10: i32 = int_literal 2 [template = constants.%.7] +// CHECK:STDOUT: %.loc19_10: i32 = int_value 2 [template = constants.%.7] // CHECK:STDOUT: assign %.loc19_5, %.loc19_10 // CHECK:STDOUT: %Class.ref.loc20: type = name_ref Class, file.%Class.decl [template = constants.%Class] // CHECK:STDOUT: %cv.ref.loc20: ref %Class = name_ref cv, %cv diff --git a/toolchain/check/testdata/class/generic/call.carbon b/toolchain/check/testdata/class/generic/call.carbon index 57c4a1ef70772..fb067d59b4cbe 100644 --- a/toolchain/check/testdata/class/generic/call.carbon +++ b/toolchain/check/testdata/class/generic/call.carbon @@ -101,10 +101,10 @@ class Outer(T:! type) { // CHECK:STDOUT: %.2: type = struct_type {} [template] // CHECK:STDOUT: %.3: = complete_type_witness %.2 [template] // CHECK:STDOUT: %.4: type = ptr_type i32 [template] -// CHECK:STDOUT: %.5: i32 = int_literal 5 [template] +// CHECK:STDOUT: %.5: i32 = int_value 5 [template] // CHECK:STDOUT: %Class.3: type = class_type @Class, @Class(%.4, %.5) [template] // CHECK:STDOUT: %.6: type = ptr_type %.2 [template] -// CHECK:STDOUT: %.7: i32 = int_literal 0 [template] +// CHECK:STDOUT: %.7: i32 = int_value 0 [template] // CHECK:STDOUT: %Class.4: type = class_type @Class, @Class(%.1, %.7) [template] // CHECK:STDOUT: } // CHECK:STDOUT: @@ -144,13 +144,13 @@ class Outer(T:! type) { // CHECK:STDOUT: %.loc6_17.1: type = value_of_initializer %int.make_type_32 [template = i32] // CHECK:STDOUT: %.loc6_17.2: type = converted %int.make_type_32, %.loc6_17.1 [template = i32] // CHECK:STDOUT: %.loc6_17.3: type = ptr_type i32 [template = constants.%.4] -// CHECK:STDOUT: %.loc6_20: i32 = int_literal 5 [template = constants.%.5] +// CHECK:STDOUT: %.loc6_20: i32 = int_value 5 [template = constants.%.5] // CHECK:STDOUT: %Class.loc6: type = class_type @Class, @Class(constants.%.4, constants.%.5) [template = constants.%Class.3] // CHECK:STDOUT: %a.var: ref %Class.3 = var a // CHECK:STDOUT: %a: ref %Class.3 = bind_name a, %a.var // CHECK:STDOUT: %Class.ref.loc9: %Class.type = name_ref Class, %Class.decl [template = constants.%Class.1] // CHECK:STDOUT: %.loc9_15: %.1 = tuple_literal () -// CHECK:STDOUT: %.loc9_18: i32 = int_literal 0 [template = constants.%.7] +// CHECK:STDOUT: %.loc9_18: i32 = int_value 0 [template = constants.%.7] // CHECK:STDOUT: %.loc9_13: type = converted %.loc9_15, constants.%.1 [template = constants.%.1] // CHECK:STDOUT: %Class.loc9: type = class_type @Class, @Class(constants.%.1, constants.%.7) [template = constants.%Class.4] // CHECK:STDOUT: %b.var: ref %Class.4 = var b @@ -298,8 +298,8 @@ class Outer(T:! type) { // CHECK:STDOUT: %.2: type = struct_type {} [template] // CHECK:STDOUT: %.3: = complete_type_witness %.2 [template] // CHECK:STDOUT: %.4: type = ptr_type i32 [template] -// CHECK:STDOUT: %.5: i32 = int_literal 1 [template] -// CHECK:STDOUT: %.6: i32 = int_literal 2 [template] +// CHECK:STDOUT: %.5: i32 = int_value 1 [template] +// CHECK:STDOUT: %.6: i32 = int_value 2 [template] // CHECK:STDOUT: } // CHECK:STDOUT: // CHECK:STDOUT: imports { @@ -337,8 +337,8 @@ class Outer(T:! type) { // CHECK:STDOUT: %.loc13_17.1: type = value_of_initializer %int.make_type_32 [template = i32] // CHECK:STDOUT: %.loc13_17.2: type = converted %int.make_type_32, %.loc13_17.1 [template = i32] // CHECK:STDOUT: %.loc13_17.3: type = ptr_type i32 [template = constants.%.4] -// CHECK:STDOUT: %.loc13_20: i32 = int_literal 1 [template = constants.%.5] -// CHECK:STDOUT: %.loc13_23: i32 = int_literal 2 [template = constants.%.6] +// CHECK:STDOUT: %.loc13_20: i32 = int_value 1 [template = constants.%.5] +// CHECK:STDOUT: %.loc13_23: i32 = int_value 2 [template = constants.%.6] // CHECK:STDOUT: %a.var: ref = var a // CHECK:STDOUT: %a: ref = bind_name a, %a.var // CHECK:STDOUT: } @@ -383,7 +383,7 @@ class Outer(T:! type) { // CHECK:STDOUT: %Class.2: type = class_type @Class, @Class(%T, %N) [symbolic] // CHECK:STDOUT: %.2: type = struct_type {} [template] // CHECK:STDOUT: %.3: = complete_type_witness %.2 [template] -// CHECK:STDOUT: %.4: i32 = int_literal 5 [template] +// CHECK:STDOUT: %.4: i32 = int_value 5 [template] // CHECK:STDOUT: %.5: type = ptr_type i32 [template] // CHECK:STDOUT: %ImplicitAs.type.1: type = generic_interface_type @ImplicitAs [template] // CHECK:STDOUT: %ImplicitAs: %ImplicitAs.type.1 = struct_value () [template] @@ -442,7 +442,7 @@ class Outer(T:! type) { // CHECK:STDOUT: %N.loc4_23.1: i32 = bind_symbolic_name N, 1, %N.param [symbolic = %N.loc4_23.2 (constants.%N)] // CHECK:STDOUT: } // CHECK:STDOUT: %Class.ref: %Class.type = name_ref Class, %Class.decl [template = constants.%Class.1] -// CHECK:STDOUT: %.loc15_14: i32 = int_literal 5 [template = constants.%.4] +// CHECK:STDOUT: %.loc15_14: i32 = int_value 5 [template = constants.%.4] // CHECK:STDOUT: %int.make_type_32: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc15_20.1: type = value_of_initializer %int.make_type_32 [template = i32] // CHECK:STDOUT: %.loc15_20.2: type = converted %int.make_type_32, %.loc15_20.1 [template = i32] diff --git a/toolchain/check/testdata/class/generic/import.carbon b/toolchain/check/testdata/class/generic/import.carbon index 64f07651e11b7..16d4faa789501 100644 --- a/toolchain/check/testdata/class/generic/import.carbon +++ b/toolchain/check/testdata/class/generic/import.carbon @@ -104,7 +104,7 @@ class Class(U:! type) { // CHECK:STDOUT: %F.1: %F.type.1 = struct_value () [symbolic] // CHECK:STDOUT: %.3: type = struct_type {.n: i32} [template] // CHECK:STDOUT: %.4: = complete_type_witness %.3 [template] -// CHECK:STDOUT: %.5: i32 = int_literal 0 [template] +// CHECK:STDOUT: %.5: i32 = int_value 0 [template] // CHECK:STDOUT: %CompleteClass.3: type = class_type @CompleteClass, @CompleteClass(i32) [template] // CHECK:STDOUT: %F.type.2: type = fn_type @F.2 [template] // CHECK:STDOUT: %F.2: %F.type.2 = struct_value () [template] @@ -203,7 +203,7 @@ class Class(U:! type) { // CHECK:STDOUT: // CHECK:STDOUT: fn() -> i32 { // CHECK:STDOUT: !entry: -// CHECK:STDOUT: %.loc8_26: i32 = int_literal 0 [template = constants.%.5] +// CHECK:STDOUT: %.loc8_26: i32 = int_value 0 [template = constants.%.5] // CHECK:STDOUT: return %.loc8_26 // CHECK:STDOUT: } // CHECK:STDOUT: } @@ -268,7 +268,7 @@ class Class(U:! type) { // CHECK:STDOUT: %F.type.3: type = fn_type @F.1, @CompleteClass(i32) [template] // CHECK:STDOUT: %F.3: %F.type.3 = struct_value () [template] // CHECK:STDOUT: %.9: type = ptr_type %.5 [template] -// CHECK:STDOUT: %.10: i32 = int_literal 1 [template] +// CHECK:STDOUT: %.10: i32 = int_value 1 [template] // CHECK:STDOUT: %struct: %CompleteClass.3 = struct_value (%.10) [template] // CHECK:STDOUT: } // CHECK:STDOUT: @@ -367,7 +367,7 @@ class Class(U:! type) { // CHECK:STDOUT: // CHECK:STDOUT: fn @F.2() -> %return: %CompleteClass.3 { // CHECK:STDOUT: !entry: -// CHECK:STDOUT: %.loc9_16: i32 = int_literal 1 [template = constants.%.10] +// CHECK:STDOUT: %.loc9_16: i32 = int_value 1 [template = constants.%.10] // CHECK:STDOUT: %.loc9_17.1: %.5 = struct_literal (%.loc9_16) // CHECK:STDOUT: %.loc9_17.2: ref i32 = class_element_access %return, element0 // CHECK:STDOUT: %.loc9_17.3: init i32 = initialize_from %.loc9_16 to %.loc9_17.2 [template = constants.%.10] diff --git a/toolchain/check/testdata/class/import.carbon b/toolchain/check/testdata/class/import.carbon index 39de4c6aaee59..a81fbf68f09e1 100644 --- a/toolchain/check/testdata/class/import.carbon +++ b/toolchain/check/testdata/class/import.carbon @@ -165,10 +165,10 @@ fn Run() { // CHECK:STDOUT: %.5: type = struct_type {.x: i32} [template] // CHECK:STDOUT: %.6: = complete_type_witness %.5 [template] // CHECK:STDOUT: %.7: type = ptr_type %.5 [template] -// CHECK:STDOUT: %.8: i32 = int_literal 1 [template] +// CHECK:STDOUT: %.8: i32 = int_value 1 [template] // CHECK:STDOUT: %struct.2: %Field = struct_value (%.8) [template] // CHECK:STDOUT: %.9: type = unbound_element_type %Field, i32 [template] -// CHECK:STDOUT: %.10: i32 = int_literal 2 [template] +// CHECK:STDOUT: %.10: i32 = int_value 2 [template] // CHECK:STDOUT: %ForwardDeclared.1: type = class_type @ForwardDeclared.1 [template] // CHECK:STDOUT: %struct.3: %ForwardDeclared.1 = struct_value () [template] // CHECK:STDOUT: %F.type: type = fn_type @F [template] @@ -254,7 +254,7 @@ fn Run() { // CHECK:STDOUT: %Field.ref: type = name_ref Field, imports.%import_ref.2 [template = constants.%Field] // CHECK:STDOUT: %b.var: ref %Field = var b // CHECK:STDOUT: %b: ref %Field = bind_name b, %b.var -// CHECK:STDOUT: %.loc9_24: i32 = int_literal 1 [template = constants.%.8] +// CHECK:STDOUT: %.loc9_24: i32 = int_value 1 [template = constants.%.8] // CHECK:STDOUT: %.loc9_25.1: %.5 = struct_literal (%.loc9_24) // CHECK:STDOUT: %.loc9_25.2: ref i32 = class_element_access %b.var, element0 // CHECK:STDOUT: %.loc9_25.3: init i32 = initialize_from %.loc9_24 to %.loc9_25.2 [template = constants.%.8] @@ -264,7 +264,7 @@ fn Run() { // CHECK:STDOUT: %b.ref: ref %Field = name_ref b, %b // CHECK:STDOUT: %x.ref: %.9 = name_ref x, imports.%import_ref.7 [template = imports.%.1] // CHECK:STDOUT: %.loc10_4: ref i32 = class_element_access %b.ref, element0 -// CHECK:STDOUT: %.loc10_9: i32 = int_literal 2 [template = constants.%.10] +// CHECK:STDOUT: %.loc10_9: i32 = int_value 2 [template = constants.%.10] // CHECK:STDOUT: assign %.loc10_4, %.loc10_9 // CHECK:STDOUT: %ForwardDeclared.ref.loc12: type = name_ref ForwardDeclared, imports.%import_ref.3 [template = constants.%ForwardDeclared.1] // CHECK:STDOUT: %c.var: ref %ForwardDeclared.1 = var c diff --git a/toolchain/check/testdata/class/import_base.carbon b/toolchain/check/testdata/class/import_base.carbon index 019d3238f438f..d2fe55cbdf327 100644 --- a/toolchain/check/testdata/class/import_base.carbon +++ b/toolchain/check/testdata/class/import_base.carbon @@ -145,13 +145,13 @@ fn Run() { // CHECK:STDOUT: %.7: type = ptr_type %.2 [template] // CHECK:STDOUT: %.8: type = struct_type {.base: %.7} [template] // CHECK:STDOUT: %.9: type = ptr_type %.5 [template] -// CHECK:STDOUT: %.10: i32 = int_literal 0 [template] -// CHECK:STDOUT: %.11: i32 = int_literal 1 [template] +// CHECK:STDOUT: %.10: i32 = int_value 0 [template] +// CHECK:STDOUT: %.11: i32 = int_value 1 [template] // CHECK:STDOUT: %.12: type = struct_type {.base: %.2} [template] // CHECK:STDOUT: %struct.1: %Base = struct_value (%.10, %.11) [template] // CHECK:STDOUT: %struct.2: %Child = struct_value (%struct.1) [template] // CHECK:STDOUT: %.13: type = unbound_element_type %Base, i32 [template] -// CHECK:STDOUT: %.14: i32 = int_literal 2 [template] +// CHECK:STDOUT: %.14: i32 = int_value 2 [template] // CHECK:STDOUT: %F.type: type = fn_type @F [template] // CHECK:STDOUT: %F: %F.type = struct_value () [template] // CHECK:STDOUT: } @@ -205,8 +205,8 @@ fn Run() { // CHECK:STDOUT: %Child.ref: type = name_ref Child, imports.%import_ref.2 [template = constants.%Child] // CHECK:STDOUT: %a.var: ref %Child = var a // CHECK:STDOUT: %a: ref %Child = bind_name a, %a.var -// CHECK:STDOUT: %.loc7_33: i32 = int_literal 0 [template = constants.%.10] -// CHECK:STDOUT: %.loc7_46: i32 = int_literal 1 [template = constants.%.11] +// CHECK:STDOUT: %.loc7_33: i32 = int_value 0 [template = constants.%.10] +// CHECK:STDOUT: %.loc7_46: i32 = int_value 1 [template = constants.%.11] // CHECK:STDOUT: %.loc7_47.1: %.2 = struct_literal (%.loc7_33, %.loc7_46) // CHECK:STDOUT: %.loc7_48.1: %.12 = struct_literal (%.loc7_47.1) // CHECK:STDOUT: %.loc7_48.2: ref %Base = class_element_access %a.var, element0 @@ -224,7 +224,7 @@ fn Run() { // CHECK:STDOUT: %.loc8_4.1: ref %Base = class_element_access %a.ref.loc8, element0 // CHECK:STDOUT: %.loc8_4.2: ref %Base = converted %a.ref.loc8, %.loc8_4.1 // CHECK:STDOUT: %.loc8_4.3: ref i32 = class_element_access %.loc8_4.2, element0 -// CHECK:STDOUT: %.loc8_9: i32 = int_literal 2 [template = constants.%.14] +// CHECK:STDOUT: %.loc8_9: i32 = int_value 2 [template = constants.%.14] // CHECK:STDOUT: assign %.loc8_4.3, %.loc8_9 // CHECK:STDOUT: %a.ref.loc9: ref %Child = name_ref a, %a // CHECK:STDOUT: %F.ref: %F.type = name_ref F, imports.%import_ref.4 [template = constants.%F] diff --git a/toolchain/check/testdata/class/inheritance_access.carbon b/toolchain/check/testdata/class/inheritance_access.carbon index f73cff0ef8223..4962f76521bbe 100644 --- a/toolchain/check/testdata/class/inheritance_access.carbon +++ b/toolchain/check/testdata/class/inheritance_access.carbon @@ -480,7 +480,7 @@ class B { // CHECK:STDOUT: %Int32.type: type = fn_type @Int32 [template] // CHECK:STDOUT: %.1: type = tuple_type () [template] // CHECK:STDOUT: %Int32: %Int32.type = struct_value () [template] -// CHECK:STDOUT: %.2: i32 = int_literal 5 [template] +// CHECK:STDOUT: %.2: i32 = int_value 5 [template] // CHECK:STDOUT: %SomeProtectedFunction.type: type = fn_type @SomeProtectedFunction [template] // CHECK:STDOUT: %SomeProtectedFunction: %SomeProtectedFunction.type = struct_value () [template] // CHECK:STDOUT: %.3: type = struct_type {} [template] @@ -520,7 +520,7 @@ class B { // CHECK:STDOUT: %int.make_type_32: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc5_32.1: type = value_of_initializer %int.make_type_32 [template = i32] // CHECK:STDOUT: %.loc5_32.2: type = converted %int.make_type_32, %.loc5_32.1 [template = i32] -// CHECK:STDOUT: %.loc5_38: i32 = int_literal 5 [template = constants.%.2] +// CHECK:STDOUT: %.loc5_38: i32 = int_value 5 [template = constants.%.2] // CHECK:STDOUT: %SOME_CONSTANT: i32 = bind_name SOME_CONSTANT, %.loc5_38 // CHECK:STDOUT: %SomeProtectedFunction.decl: %SomeProtectedFunction.type = fn_decl @SomeProtectedFunction [template = constants.%SomeProtectedFunction] { // CHECK:STDOUT: %return.patt: i32 = return_slot_pattern @@ -577,7 +577,7 @@ class B { // CHECK:STDOUT: // CHECK:STDOUT: fn @SomeProtectedFunction() -> i32 { // CHECK:STDOUT: !entry: -// CHECK:STDOUT: %.loc7: i32 = int_literal 5 [template = constants.%.2] +// CHECK:STDOUT: %.loc7: i32 = int_value 5 [template = constants.%.2] // CHECK:STDOUT: return %.loc7 // CHECK:STDOUT: } // CHECK:STDOUT: @@ -947,7 +947,7 @@ class B { // CHECK:STDOUT: %Int32.type: type = fn_type @Int32 [template] // CHECK:STDOUT: %.1: type = tuple_type () [template] // CHECK:STDOUT: %Int32: %Int32.type = struct_value () [template] -// CHECK:STDOUT: %.2: i32 = int_literal 5 [template] +// CHECK:STDOUT: %.2: i32 = int_value 5 [template] // CHECK:STDOUT: %.3: type = struct_type {} [template] // CHECK:STDOUT: %.4: = complete_type_witness %.3 [template] // CHECK:STDOUT: %Internal: type = class_type @Internal [template] @@ -990,12 +990,12 @@ class B { // CHECK:STDOUT: %int.make_type_32.loc5: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc5_42.1: type = value_of_initializer %int.make_type_32.loc5 [template = i32] // CHECK:STDOUT: %.loc5_42.2: type = converted %int.make_type_32.loc5, %.loc5_42.1 [template = i32] -// CHECK:STDOUT: %.loc5_48: i32 = int_literal 5 [template = constants.%.2] +// CHECK:STDOUT: %.loc5_48: i32 = int_value 5 [template = constants.%.2] // CHECK:STDOUT: %SOME_PROTECTED_CONSTANT: i32 = bind_name SOME_PROTECTED_CONSTANT, %.loc5_48 // CHECK:STDOUT: %int.make_type_32.loc6: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc6_38.1: type = value_of_initializer %int.make_type_32.loc6 [template = i32] // CHECK:STDOUT: %.loc6_38.2: type = converted %int.make_type_32.loc6, %.loc6_38.1 [template = i32] -// CHECK:STDOUT: %.loc6_44: i32 = int_literal 5 [template = constants.%.2] +// CHECK:STDOUT: %.loc6_44: i32 = int_value 5 [template = constants.%.2] // CHECK:STDOUT: %SOME_PRIVATE_CONSTANT: i32 = bind_name SOME_PRIVATE_CONSTANT, %.loc6_44 // CHECK:STDOUT: %.loc7: = complete_type_witness %.3 [template = constants.%.4] // CHECK:STDOUT: @@ -1009,7 +1009,7 @@ class B { // CHECK:STDOUT: %int.make_type_32: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc10_36.1: type = value_of_initializer %int.make_type_32 [template = i32] // CHECK:STDOUT: %.loc10_36.2: type = converted %int.make_type_32, %.loc10_36.1 [template = i32] -// CHECK:STDOUT: %.loc10_42: i32 = int_literal 5 [template = constants.%.2] +// CHECK:STDOUT: %.loc10_42: i32 = int_value 5 [template = constants.%.2] // CHECK:STDOUT: %INTERNAL_CONSTANT: i32 = bind_name INTERNAL_CONSTANT, %.loc10_42 // CHECK:STDOUT: %.loc11: = complete_type_witness %.3 [template = constants.%.4] // CHECK:STDOUT: diff --git a/toolchain/check/testdata/class/init_adapt.carbon b/toolchain/check/testdata/class/init_adapt.carbon index d202547a18609..d0a8737158bcc 100644 --- a/toolchain/check/testdata/class/init_adapt.carbon +++ b/toolchain/check/testdata/class/init_adapt.carbon @@ -104,8 +104,8 @@ var e: C = MakeAdaptC(); // CHECK:STDOUT: %AdaptC: type = class_type @AdaptC [template] // CHECK:STDOUT: %.5: type = ptr_type %.3 [template] // CHECK:STDOUT: %.6: = complete_type_witness %C [template] -// CHECK:STDOUT: %.7: i32 = int_literal 1 [template] -// CHECK:STDOUT: %.8: i32 = int_literal 2 [template] +// CHECK:STDOUT: %.7: i32 = int_value 1 [template] +// CHECK:STDOUT: %.8: i32 = int_value 2 [template] // CHECK:STDOUT: %struct: %C = struct_value (%.7, %.8) [template] // CHECK:STDOUT: %MakeC.type: type = fn_type @MakeC [template] // CHECK:STDOUT: %MakeC: %MakeC.type = struct_value () [template] @@ -199,8 +199,8 @@ var e: C = MakeAdaptC(); // CHECK:STDOUT: // CHECK:STDOUT: fn @__global_init() { // CHECK:STDOUT: !entry: -// CHECK:STDOUT: %.loc13_18: i32 = int_literal 1 [template = constants.%.7] -// CHECK:STDOUT: %.loc13_26: i32 = int_literal 2 [template = constants.%.8] +// CHECK:STDOUT: %.loc13_18: i32 = int_value 1 [template = constants.%.7] +// CHECK:STDOUT: %.loc13_26: i32 = int_value 2 [template = constants.%.8] // CHECK:STDOUT: %.loc13_27.1: %.3 = struct_literal (%.loc13_18, %.loc13_26) // CHECK:STDOUT: %.loc13_27.2: ref %C = temporary_storage // CHECK:STDOUT: %.loc13_27.3: ref i32 = class_element_access %.loc13_27.2, element0 @@ -252,8 +252,8 @@ var e: C = MakeAdaptC(); // CHECK:STDOUT: %AdaptC: type = class_type @AdaptC [template] // CHECK:STDOUT: %.5: type = ptr_type %.3 [template] // CHECK:STDOUT: %.6: = complete_type_witness %C [template] -// CHECK:STDOUT: %.7: i32 = int_literal 1 [template] -// CHECK:STDOUT: %.8: i32 = int_literal 2 [template] +// CHECK:STDOUT: %.7: i32 = int_value 1 [template] +// CHECK:STDOUT: %.8: i32 = int_value 2 [template] // CHECK:STDOUT: %struct: %C = struct_value (%.7, %.8) [template] // CHECK:STDOUT: %ImplicitAs.type.1: type = generic_interface_type @ImplicitAs [template] // CHECK:STDOUT: %ImplicitAs: %ImplicitAs.type.1 = struct_value () [template] @@ -404,8 +404,8 @@ var e: C = MakeAdaptC(); // CHECK:STDOUT: // CHECK:STDOUT: fn @__global_init() { // CHECK:STDOUT: !entry: -// CHECK:STDOUT: %.loc13_18: i32 = int_literal 1 [template = constants.%.7] -// CHECK:STDOUT: %.loc13_26: i32 = int_literal 2 [template = constants.%.8] +// CHECK:STDOUT: %.loc13_18: i32 = int_value 1 [template = constants.%.7] +// CHECK:STDOUT: %.loc13_26: i32 = int_value 2 [template = constants.%.8] // CHECK:STDOUT: %.loc13_27.1: %.3 = struct_literal (%.loc13_18, %.loc13_26) // CHECK:STDOUT: %.loc13_27.2: ref %C = temporary_storage // CHECK:STDOUT: %.loc13_27.3: ref i32 = class_element_access %.loc13_27.2, element0 diff --git a/toolchain/check/testdata/class/init_as.carbon b/toolchain/check/testdata/class/init_as.carbon index 5e28801068fc6..483c6e8ba13be 100644 --- a/toolchain/check/testdata/class/init_as.carbon +++ b/toolchain/check/testdata/class/init_as.carbon @@ -29,8 +29,8 @@ fn F() -> i32 { // CHECK:STDOUT: %.4: = complete_type_witness %.3 [template] // CHECK:STDOUT: %F.type: type = fn_type @F [template] // CHECK:STDOUT: %F: %F.type = struct_value () [template] -// CHECK:STDOUT: %.5: i32 = int_literal 1 [template] -// CHECK:STDOUT: %.6: i32 = int_literal 2 [template] +// CHECK:STDOUT: %.5: i32 = int_value 1 [template] +// CHECK:STDOUT: %.6: i32 = int_value 2 [template] // CHECK:STDOUT: %.7: type = ptr_type %.3 [template] // CHECK:STDOUT: %struct: %Class = struct_value (%.5, %.6) [template] // CHECK:STDOUT: } @@ -85,8 +85,8 @@ fn F() -> i32 { // CHECK:STDOUT: // CHECK:STDOUT: fn @F() -> i32 { // CHECK:STDOUT: !entry: -// CHECK:STDOUT: %.loc17_17: i32 = int_literal 1 [template = constants.%.5] -// CHECK:STDOUT: %.loc17_25: i32 = int_literal 2 [template = constants.%.6] +// CHECK:STDOUT: %.loc17_17: i32 = int_value 1 [template = constants.%.5] +// CHECK:STDOUT: %.loc17_25: i32 = int_value 2 [template = constants.%.6] // CHECK:STDOUT: %.loc17_26.1: %.3 = struct_literal (%.loc17_17, %.loc17_25) // CHECK:STDOUT: %Class.ref: type = name_ref Class, file.%Class.decl [template = constants.%Class] // CHECK:STDOUT: %.loc17_26.2: ref %Class = temporary_storage diff --git a/toolchain/check/testdata/class/method.carbon b/toolchain/check/testdata/class/method.carbon index 04034e1a77920..88da63abffb53 100644 --- a/toolchain/check/testdata/class/method.carbon +++ b/toolchain/check/testdata/class/method.carbon @@ -80,7 +80,7 @@ fn CallGOnInitializingExpr() -> i32 { // CHECK:STDOUT: %CallAlias: %CallAlias.type = struct_value () [template] // CHECK:STDOUT: %CallOnConstBoundMethod.type: type = fn_type @CallOnConstBoundMethod [template] // CHECK:STDOUT: %CallOnConstBoundMethod: %CallOnConstBoundMethod.type = struct_value () [template] -// CHECK:STDOUT: %.7: i32 = int_literal 1 [template] +// CHECK:STDOUT: %.7: i32 = int_value 1 [template] // CHECK:STDOUT: %struct: %Class = struct_value (%.7) [template] // CHECK:STDOUT: %CallWithAddr.type: type = fn_type @CallWithAddr [template] // CHECK:STDOUT: %CallWithAddr: %CallWithAddr.type = struct_value () [template] @@ -334,7 +334,7 @@ fn CallGOnInitializingExpr() -> i32 { // CHECK:STDOUT: // CHECK:STDOUT: fn @CallOnConstBoundMethod() -> i32 { // CHECK:STDOUT: !entry: -// CHECK:STDOUT: %.loc35_17: i32 = int_literal 1 [template = constants.%.7] +// CHECK:STDOUT: %.loc35_17: i32 = int_value 1 [template = constants.%.7] // CHECK:STDOUT: %.loc35_18.1: %.4 = struct_literal (%.loc35_17) // CHECK:STDOUT: %Class.ref: type = name_ref Class, file.%Class.decl [template = constants.%Class] // CHECK:STDOUT: %.loc35_18.2: ref %Class = temporary_storage diff --git a/toolchain/check/testdata/class/reorder.carbon b/toolchain/check/testdata/class/reorder.carbon index d5e459c063e72..ce66e2c87058d 100644 --- a/toolchain/check/testdata/class/reorder.carbon +++ b/toolchain/check/testdata/class/reorder.carbon @@ -32,7 +32,7 @@ class Class { // CHECK:STDOUT: %.2: type = struct_type {} [template] // CHECK:STDOUT: %.3: = complete_type_witness %.2 [template] // CHECK:STDOUT: %.4: type = ptr_type %.2 [template] -// CHECK:STDOUT: %.5: i32 = int_literal 1 [template] +// CHECK:STDOUT: %.5: i32 = int_value 1 [template] // CHECK:STDOUT: } // CHECK:STDOUT: // CHECK:STDOUT: imports { @@ -96,7 +96,7 @@ class Class { // CHECK:STDOUT: // CHECK:STDOUT: fn @F() -> i32 { // CHECK:STDOUT: !entry: -// CHECK:STDOUT: %.loc17: i32 = int_literal 1 [template = constants.%.5] +// CHECK:STDOUT: %.loc17: i32 = int_value 1 [template = constants.%.5] // CHECK:STDOUT: return %.loc17 // CHECK:STDOUT: } // CHECK:STDOUT: diff --git a/toolchain/check/testdata/class/reorder_qualified.carbon b/toolchain/check/testdata/class/reorder_qualified.carbon index b5355093f16a2..e6f979c58b50a 100644 --- a/toolchain/check/testdata/class/reorder_qualified.carbon +++ b/toolchain/check/testdata/class/reorder_qualified.carbon @@ -79,16 +79,16 @@ class A { // CHECK:STDOUT: %.12: type = struct_type {.a: i32} [template] // CHECK:STDOUT: %.13: = complete_type_witness %.12 [template] // CHECK:STDOUT: %.14: type = ptr_type %.12 [template] -// CHECK:STDOUT: %.15: i32 = int_literal 1 [template] +// CHECK:STDOUT: %.15: i32 = int_value 1 [template] // CHECK:STDOUT: %struct.1: %A = struct_value (%.15) [template] // CHECK:STDOUT: %.16: type = ptr_type %.3 [template] -// CHECK:STDOUT: %.17: i32 = int_literal 2 [template] +// CHECK:STDOUT: %.17: i32 = int_value 2 [template] // CHECK:STDOUT: %struct.2: %B = struct_value (%.17) [template] // CHECK:STDOUT: %.18: type = ptr_type %.9 [template] -// CHECK:STDOUT: %.19: i32 = int_literal 3 [template] +// CHECK:STDOUT: %.19: i32 = int_value 3 [template] // CHECK:STDOUT: %struct.3: %C = struct_value (%.19) [template] // CHECK:STDOUT: %.20: type = ptr_type %.6 [template] -// CHECK:STDOUT: %.21: i32 = int_literal 4 [template] +// CHECK:STDOUT: %.21: i32 = int_value 4 [template] // CHECK:STDOUT: %struct.4: %D = struct_value (%.21) [template] // CHECK:STDOUT: } // CHECK:STDOUT: @@ -187,7 +187,7 @@ class A { // CHECK:STDOUT: %A.ref: type = name_ref A, file.%A.decl [template = constants.%A] // CHECK:STDOUT: %a.var: ref %A = var a // CHECK:STDOUT: %a: ref %A = bind_name a, %a.var -// CHECK:STDOUT: %.loc29_24: i32 = int_literal 1 [template = constants.%.15] +// CHECK:STDOUT: %.loc29_24: i32 = int_value 1 [template = constants.%.15] // CHECK:STDOUT: %.loc29_25.1: %.12 = struct_literal (%.loc29_24) // CHECK:STDOUT: %.loc29_25.2: ref i32 = class_element_access %a.var, element0 // CHECK:STDOUT: %.loc29_25.3: init i32 = initialize_from %.loc29_24 to %.loc29_25.2 [template = constants.%.15] @@ -197,7 +197,7 @@ class A { // CHECK:STDOUT: %B.ref: type = name_ref B, @A.%B.decl [template = constants.%B] // CHECK:STDOUT: %b.var: ref %B = var b // CHECK:STDOUT: %b: ref %B = bind_name b, %b.var -// CHECK:STDOUT: %.loc30_24: i32 = int_literal 2 [template = constants.%.17] +// CHECK:STDOUT: %.loc30_24: i32 = int_value 2 [template = constants.%.17] // CHECK:STDOUT: %.loc30_25.1: %.3 = struct_literal (%.loc30_24) // CHECK:STDOUT: %.loc30_25.2: ref i32 = class_element_access %b.var, element0 // CHECK:STDOUT: %.loc30_25.3: init i32 = initialize_from %.loc30_24 to %.loc30_25.2 [template = constants.%.17] @@ -207,7 +207,7 @@ class A { // CHECK:STDOUT: %C.ref: type = name_ref C, @B.%C.decl [template = constants.%C] // CHECK:STDOUT: %c.var: ref %C = var c // CHECK:STDOUT: %c: ref %C = bind_name c, %c.var -// CHECK:STDOUT: %.loc31_24: i32 = int_literal 3 [template = constants.%.19] +// CHECK:STDOUT: %.loc31_24: i32 = int_value 3 [template = constants.%.19] // CHECK:STDOUT: %.loc31_25.1: %.9 = struct_literal (%.loc31_24) // CHECK:STDOUT: %.loc31_25.2: ref i32 = class_element_access %c.var, element0 // CHECK:STDOUT: %.loc31_25.3: init i32 = initialize_from %.loc31_24 to %.loc31_25.2 [template = constants.%.19] @@ -217,7 +217,7 @@ class A { // CHECK:STDOUT: %D.ref: type = name_ref D, @C.%D.decl [template = constants.%D] // CHECK:STDOUT: %d.var: ref %D = var d // CHECK:STDOUT: %d: ref %D = bind_name d, %d.var -// CHECK:STDOUT: %.loc32_24: i32 = int_literal 4 [template = constants.%.21] +// CHECK:STDOUT: %.loc32_24: i32 = int_value 4 [template = constants.%.21] // CHECK:STDOUT: %.loc32_25.1: %.6 = struct_literal (%.loc32_24) // CHECK:STDOUT: %.loc32_25.2: ref i32 = class_element_access %d.var, element0 // CHECK:STDOUT: %.loc32_25.3: init i32 = initialize_from %.loc32_24 to %.loc32_25.2 [template = constants.%.21] diff --git a/toolchain/check/testdata/class/scope.carbon b/toolchain/check/testdata/class/scope.carbon index de6d5e741d77a..66ea7fd31c93b 100644 --- a/toolchain/check/testdata/class/scope.carbon +++ b/toolchain/check/testdata/class/scope.carbon @@ -40,10 +40,10 @@ fn Run() { // CHECK:STDOUT: %G: %G.type = struct_value () [template] // CHECK:STDOUT: %.2: type = struct_type {} [template] // CHECK:STDOUT: %.3: = complete_type_witness %.2 [template] -// CHECK:STDOUT: %.4: i32 = int_literal 1 [template] +// CHECK:STDOUT: %.4: i32 = int_value 1 [template] // CHECK:STDOUT: %F.type.2: type = fn_type @F.2 [template] // CHECK:STDOUT: %F.2: %F.type.2 = struct_value () [template] -// CHECK:STDOUT: %.5: i32 = int_literal 2 [template] +// CHECK:STDOUT: %.5: i32 = int_value 2 [template] // CHECK:STDOUT: %Run.type: type = fn_type @Run [template] // CHECK:STDOUT: %Run: %Run.type = struct_value () [template] // CHECK:STDOUT: %.6: type = ptr_type %.2 [template] @@ -113,7 +113,7 @@ fn Run() { // CHECK:STDOUT: // CHECK:STDOUT: fn @F.1() -> i32 { // CHECK:STDOUT: !entry: -// CHECK:STDOUT: %.loc13: i32 = int_literal 1 [template = constants.%.4] +// CHECK:STDOUT: %.loc13: i32 = int_value 1 [template = constants.%.4] // CHECK:STDOUT: return %.loc13 // CHECK:STDOUT: } // CHECK:STDOUT: @@ -128,7 +128,7 @@ fn Run() { // CHECK:STDOUT: // CHECK:STDOUT: fn @F.2() -> i32 { // CHECK:STDOUT: !entry: -// CHECK:STDOUT: %.loc22: i32 = int_literal 2 [template = constants.%.5] +// CHECK:STDOUT: %.loc22: i32 = int_value 2 [template = constants.%.5] // CHECK:STDOUT: return %.loc22 // CHECK:STDOUT: } // CHECK:STDOUT: diff --git a/toolchain/check/testdata/class/self_conversion.carbon b/toolchain/check/testdata/class/self_conversion.carbon index 62ebca2e7f31d..c9e04feef9709 100644 --- a/toolchain/check/testdata/class/self_conversion.carbon +++ b/toolchain/check/testdata/class/self_conversion.carbon @@ -52,7 +52,7 @@ fn Call(p: Derived*) -> i32 { // CHECK:STDOUT: %AddrSelfBase: %AddrSelfBase.type = struct_value () [template] // CHECK:STDOUT: %.8: type = struct_type {.base: %Base} [template] // CHECK:STDOUT: %.9: = complete_type_witness %.8 [template] -// CHECK:STDOUT: %.10: i32 = int_literal 1 [template] +// CHECK:STDOUT: %.10: i32 = int_value 1 [template] // CHECK:STDOUT: %.11: type = ptr_type %Derived [template] // CHECK:STDOUT: %Call.type: type = fn_type @Call [template] // CHECK:STDOUT: %Call: %Call.type = struct_value () [template] @@ -189,7 +189,7 @@ fn Call(p: Derived*) -> i32 { // CHECK:STDOUT: %.loc27_4: ref %Base = deref %self.ref // CHECK:STDOUT: %a.ref: %.2 = name_ref a, @Base.%.loc12_8 [template = @Base.%.loc12_8] // CHECK:STDOUT: %.loc27_10: ref i32 = class_element_access %.loc27_4, element0 -// CHECK:STDOUT: %.loc27_15: i32 = int_literal 1 [template = constants.%.10] +// CHECK:STDOUT: %.loc27_15: i32 = int_value 1 [template = constants.%.10] // CHECK:STDOUT: assign %.loc27_10, %.loc27_15 // CHECK:STDOUT: return // CHECK:STDOUT: } diff --git a/toolchain/check/testdata/class/syntactic_merge_literal.carbon b/toolchain/check/testdata/class/syntactic_merge_literal.carbon index 82a23947be0d6..5b56eacc88a80 100644 --- a/toolchain/check/testdata/class/syntactic_merge_literal.carbon +++ b/toolchain/check/testdata/class/syntactic_merge_literal.carbon @@ -41,7 +41,7 @@ class D(b:! C(1_000)) {} // CHECK:STDOUT: %C.2: type = class_type @C, @C(%a) [symbolic] // CHECK:STDOUT: %.2: type = struct_type {} [template] // CHECK:STDOUT: %.3: = complete_type_witness %.2 [template] -// CHECK:STDOUT: %.4: i32 = int_literal 1000 [template] +// CHECK:STDOUT: %.4: i32 = int_value 1000 [template] // CHECK:STDOUT: %C.3: type = class_type @C, @C(%.4) [template] // CHECK:STDOUT: %b: %C.3 = bind_symbolic_name b, 0 [symbolic] // CHECK:STDOUT: %b.patt.1: %C.3 = symbolic_binding_pattern b, 0 [symbolic] @@ -82,7 +82,7 @@ class D(b:! C(1_000)) {} // CHECK:STDOUT: %b.param_patt: %C.3 = value_param_pattern %b.patt.loc4, runtime_param [symbolic = constants.%b.patt.2] // CHECK:STDOUT: } { // CHECK:STDOUT: %C.ref.loc3: %C.type = name_ref C, file.%C.decl [template = constants.%C.1] -// CHECK:STDOUT: %.loc3: i32 = int_literal 1000 [template = constants.%.4] +// CHECK:STDOUT: %.loc3: i32 = int_value 1000 [template = constants.%.4] // CHECK:STDOUT: %C.loc3: type = class_type @C, @C(constants.%.4) [template = constants.%C.3] // CHECK:STDOUT: %b.param.loc3: %C.3 = value_param runtime_param // CHECK:STDOUT: %b.loc3_9.1: %C.3 = bind_symbolic_name b, 0, %b.param.loc3 [symbolic = %b.loc3_9.2 (constants.%b)] @@ -92,7 +92,7 @@ class D(b:! C(1_000)) {} // CHECK:STDOUT: %b.param_patt: %C.3 = value_param_pattern %b.patt.loc4, runtime_param [symbolic = constants.%b.patt.2] // CHECK:STDOUT: } { // CHECK:STDOUT: %C.ref.loc4: %C.type = name_ref C, file.%C.decl [template = constants.%C.1] -// CHECK:STDOUT: %.loc4_15: i32 = int_literal 1000 [template = constants.%.4] +// CHECK:STDOUT: %.loc4_15: i32 = int_value 1000 [template = constants.%.4] // CHECK:STDOUT: %C.loc4: type = class_type @C, @C(constants.%.4) [template = constants.%C.3] // CHECK:STDOUT: %b.param.loc4: %C.3 = value_param runtime_param // CHECK:STDOUT: %b.loc4: %C.3 = bind_symbolic_name b, 0, %b.param.loc4 [symbolic = constants.%b] @@ -157,7 +157,7 @@ class D(b:! C(1_000)) {} // CHECK:STDOUT: %C.2: type = class_type @C, @C(%a) [symbolic] // CHECK:STDOUT: %.2: type = struct_type {} [template] // CHECK:STDOUT: %.3: = complete_type_witness %.2 [template] -// CHECK:STDOUT: %.4: i32 = int_literal 1000 [template] +// CHECK:STDOUT: %.4: i32 = int_value 1000 [template] // CHECK:STDOUT: %C.3: type = class_type @C, @C(%.4) [template] // CHECK:STDOUT: %b: %C.3 = bind_symbolic_name b, 0 [symbolic] // CHECK:STDOUT: %b.patt.1: %C.3 = symbolic_binding_pattern b, 0 [symbolic] @@ -201,7 +201,7 @@ class D(b:! C(1_000)) {} // CHECK:STDOUT: %b.param_patt: %C.3 = value_param_pattern %b.patt.loc3_9.1, runtime_param [symbolic = %b.patt.loc3_9.2 (constants.%b.patt.1)] // CHECK:STDOUT: } { // CHECK:STDOUT: %C.ref: %C.type = name_ref C, file.%C.decl [template = constants.%C.1] -// CHECK:STDOUT: %.loc3: i32 = int_literal 1000 [template = constants.%.4] +// CHECK:STDOUT: %.loc3: i32 = int_value 1000 [template = constants.%.4] // CHECK:STDOUT: %C: type = class_type @C, @C(constants.%.4) [template = constants.%C.3] // CHECK:STDOUT: %b.param: %C.3 = value_param runtime_param // CHECK:STDOUT: %b.loc3_9.1: %C.3 = bind_symbolic_name b, 0, %b.param [symbolic = %b.loc3_9.2 (constants.%b)] @@ -211,7 +211,7 @@ class D(b:! C(1_000)) {} // CHECK:STDOUT: %b.param_patt: %C.3 = value_param_pattern %b.patt.loc10_9.1, runtime_param [symbolic = %b.patt.loc10_9.2 (constants.%b.patt.2)] // CHECK:STDOUT: } { // CHECK:STDOUT: %C.ref: %C.type = name_ref C, file.%C.decl [template = constants.%C.1] -// CHECK:STDOUT: %.loc10_15: i32 = int_literal 1000 [template = constants.%.4] +// CHECK:STDOUT: %.loc10_15: i32 = int_value 1000 [template = constants.%.4] // CHECK:STDOUT: %C: type = class_type @C, @C(constants.%.4) [template = constants.%C.3] // CHECK:STDOUT: %b.param: %C.3 = value_param runtime_param // CHECK:STDOUT: %b.loc10_9.1: %C.3 = bind_symbolic_name b, 0, %b.param [symbolic = %b.loc10_9.2 (constants.%b)] diff --git a/toolchain/check/testdata/deduce/array.carbon b/toolchain/check/testdata/deduce/array.carbon index 6ca75c015ca8e..fa102be4eb744 100644 --- a/toolchain/check/testdata/deduce/array.carbon +++ b/toolchain/check/testdata/deduce/array.carbon @@ -105,13 +105,13 @@ fn G() -> C { // CHECK:STDOUT: %.2: = complete_type_witness %.1 [template] // CHECK:STDOUT: %T: type = bind_symbolic_name T, 0 [symbolic] // CHECK:STDOUT: %T.patt: type = symbolic_binding_pattern T, 0 [symbolic] -// CHECK:STDOUT: %.3: i32 = int_literal 3 [template] +// CHECK:STDOUT: %.3: i32 = int_value 3 [template] // CHECK:STDOUT: %.4: type = array_type %.3, %T [symbolic] // CHECK:STDOUT: %F.type: type = fn_type @F [template] // CHECK:STDOUT: %.5: type = tuple_type () [template] // CHECK:STDOUT: %F: %F.type = struct_value () [template] // CHECK:STDOUT: %.6: type = ptr_type %.4 [symbolic] -// CHECK:STDOUT: %.7: i32 = int_literal 0 [template] +// CHECK:STDOUT: %.7: i32 = int_value 0 [template] // CHECK:STDOUT: %G.type: type = fn_type @G [template] // CHECK:STDOUT: %G: %G.type = struct_value () [template] // CHECK:STDOUT: %.8: type = ptr_type %.1 [template] @@ -119,8 +119,8 @@ fn G() -> C { // CHECK:STDOUT: %.10: type = ptr_type %.9 [template] // CHECK:STDOUT: %.11: type = tuple_type (%.1, %.1, %.1) [template] // CHECK:STDOUT: %struct: %C = struct_value () [template] -// CHECK:STDOUT: %.12: i32 = int_literal 1 [template] -// CHECK:STDOUT: %.13: i32 = int_literal 2 [template] +// CHECK:STDOUT: %.12: i32 = int_value 1 [template] +// CHECK:STDOUT: %.13: i32 = int_value 2 [template] // CHECK:STDOUT: %array: %.9 = tuple_value (%struct, %struct, %struct) [template] // CHECK:STDOUT: %.14: = specific_function %F, @F(%C) [template] // CHECK:STDOUT: } @@ -150,7 +150,7 @@ fn G() -> C { // CHECK:STDOUT: %return.param_patt: @F.%T.loc6_6.2 (%T) = out_param_pattern %return.patt, runtime_param1 // CHECK:STDOUT: } { // CHECK:STDOUT: %T.ref.loc6_20: type = name_ref T, %T.loc6_6.1 [symbolic = %T.loc6_6.2 (constants.%T)] -// CHECK:STDOUT: %.loc6_23: i32 = int_literal 3 [template = constants.%.3] +// CHECK:STDOUT: %.loc6_23: i32 = int_value 3 [template = constants.%.3] // CHECK:STDOUT: %.loc6_24.1: type = array_type %.loc6_23, %T [symbolic = %.loc6_24.2 (constants.%.4)] // CHECK:STDOUT: %T.ref.loc6_30: type = name_ref T, %T.loc6_6.1 [symbolic = %T.loc6_6.2 (constants.%T)] // CHECK:STDOUT: %T.param: type = value_param runtime_param @@ -187,7 +187,7 @@ fn G() -> C { // CHECK:STDOUT: fn[%T.param_patt: type](%a.param_patt: @F.%.loc6_24.2 (%.4)) -> @F.%T.loc6_6.2 (%T) { // CHECK:STDOUT: !entry: // CHECK:STDOUT: %a.ref: @F.%.loc6_24.2 (%.4) = name_ref a, %a -// CHECK:STDOUT: %.loc6_43: i32 = int_literal 0 [template = constants.%.7] +// CHECK:STDOUT: %.loc6_43: i32 = int_value 0 [template = constants.%.7] // CHECK:STDOUT: %.loc6_44.1: ref @F.%.loc6_24.2 (%.4) = value_as_ref %a.ref // CHECK:STDOUT: %.loc6_44.2: ref @F.%T.loc6_6.2 (%T) = array_index %.loc6_44.1, %.loc6_43 // CHECK:STDOUT: %.loc6_44.3: @F.%T.loc6_6.2 (%T) = bind_value %.loc6_44.2 @@ -198,7 +198,7 @@ fn G() -> C { // CHECK:STDOUT: fn @G() -> %return: %C { // CHECK:STDOUT: !entry: // CHECK:STDOUT: %C.ref.loc9: type = name_ref C, file.%C.decl [template = constants.%C] -// CHECK:STDOUT: %.loc9_14: i32 = int_literal 3 [template = constants.%.3] +// CHECK:STDOUT: %.loc9_14: i32 = int_value 3 [template = constants.%.3] // CHECK:STDOUT: %.loc9_15: type = array_type %.loc9_14, %C [template = constants.%.9] // CHECK:STDOUT: %a.var: ref %.9 = var a // CHECK:STDOUT: %a: ref %.9 = bind_name a, %a.var @@ -206,15 +206,15 @@ fn G() -> C { // CHECK:STDOUT: %.loc9_25.1: %.1 = struct_literal () // CHECK:STDOUT: %.loc9_29.1: %.1 = struct_literal () // CHECK:STDOUT: %.loc9_30.1: %.11 = tuple_literal (%.loc9_21.1, %.loc9_25.1, %.loc9_29.1) -// CHECK:STDOUT: %.loc9_30.2: i32 = int_literal 0 [template = constants.%.7] +// CHECK:STDOUT: %.loc9_30.2: i32 = int_value 0 [template = constants.%.7] // CHECK:STDOUT: %.loc9_30.3: ref %C = array_index %a.var, %.loc9_30.2 // CHECK:STDOUT: %.loc9_21.2: init %C = class_init (), %.loc9_30.3 [template = constants.%struct] // CHECK:STDOUT: %.loc9_30.4: init %C = converted %.loc9_21.1, %.loc9_21.2 [template = constants.%struct] -// CHECK:STDOUT: %.loc9_30.5: i32 = int_literal 1 [template = constants.%.12] +// CHECK:STDOUT: %.loc9_30.5: i32 = int_value 1 [template = constants.%.12] // CHECK:STDOUT: %.loc9_30.6: ref %C = array_index %a.var, %.loc9_30.5 // CHECK:STDOUT: %.loc9_25.2: init %C = class_init (), %.loc9_30.6 [template = constants.%struct] // CHECK:STDOUT: %.loc9_30.7: init %C = converted %.loc9_25.1, %.loc9_25.2 [template = constants.%struct] -// CHECK:STDOUT: %.loc9_30.8: i32 = int_literal 2 [template = constants.%.13] +// CHECK:STDOUT: %.loc9_30.8: i32 = int_value 2 [template = constants.%.13] // CHECK:STDOUT: %.loc9_30.9: ref %C = array_index %a.var, %.loc9_30.8 // CHECK:STDOUT: %.loc9_29.2: init %C = class_init (), %.loc9_30.9 [template = constants.%struct] // CHECK:STDOUT: %.loc9_30.10: init %C = converted %.loc9_29.1, %.loc9_29.2 [template = constants.%struct] @@ -260,14 +260,14 @@ fn G() -> C { // CHECK:STDOUT: %G.type: type = fn_type @G [template] // CHECK:STDOUT: %G: %G.type = struct_value () [template] // CHECK:STDOUT: %.4: type = ptr_type %.1 [template] -// CHECK:STDOUT: %.5: i32 = int_literal 3 [template] +// CHECK:STDOUT: %.5: i32 = int_value 3 [template] // CHECK:STDOUT: %.6: type = array_type %.5, %C [template] // CHECK:STDOUT: %.7: type = ptr_type %.6 [template] // CHECK:STDOUT: %.8: type = tuple_type (%.1, %.1, %.1) [template] -// CHECK:STDOUT: %.9: i32 = int_literal 0 [template] +// CHECK:STDOUT: %.9: i32 = int_value 0 [template] // CHECK:STDOUT: %struct: %C = struct_value () [template] -// CHECK:STDOUT: %.10: i32 = int_literal 1 [template] -// CHECK:STDOUT: %.11: i32 = int_literal 2 [template] +// CHECK:STDOUT: %.10: i32 = int_value 1 [template] +// CHECK:STDOUT: %.11: i32 = int_value 2 [template] // CHECK:STDOUT: %array: %.6 = tuple_value (%struct, %struct, %struct) [template] // CHECK:STDOUT: } // CHECK:STDOUT: @@ -348,7 +348,7 @@ fn G() -> C { // CHECK:STDOUT: fn @G() -> %return: %C { // CHECK:STDOUT: !entry: // CHECK:STDOUT: %C.ref.loc13: type = name_ref C, file.%C.decl [template = constants.%C] -// CHECK:STDOUT: %.loc13_14: i32 = int_literal 3 [template = constants.%.5] +// CHECK:STDOUT: %.loc13_14: i32 = int_value 3 [template = constants.%.5] // CHECK:STDOUT: %.loc13_15: type = array_type %.loc13_14, %C [template = constants.%.6] // CHECK:STDOUT: %a.var: ref %.6 = var a // CHECK:STDOUT: %a: ref %.6 = bind_name a, %a.var @@ -356,15 +356,15 @@ fn G() -> C { // CHECK:STDOUT: %.loc13_25.1: %.1 = struct_literal () // CHECK:STDOUT: %.loc13_29.1: %.1 = struct_literal () // CHECK:STDOUT: %.loc13_30.1: %.8 = tuple_literal (%.loc13_21.1, %.loc13_25.1, %.loc13_29.1) -// CHECK:STDOUT: %.loc13_30.2: i32 = int_literal 0 [template = constants.%.9] +// CHECK:STDOUT: %.loc13_30.2: i32 = int_value 0 [template = constants.%.9] // CHECK:STDOUT: %.loc13_30.3: ref %C = array_index %a.var, %.loc13_30.2 // CHECK:STDOUT: %.loc13_21.2: init %C = class_init (), %.loc13_30.3 [template = constants.%struct] // CHECK:STDOUT: %.loc13_30.4: init %C = converted %.loc13_21.1, %.loc13_21.2 [template = constants.%struct] -// CHECK:STDOUT: %.loc13_30.5: i32 = int_literal 1 [template = constants.%.10] +// CHECK:STDOUT: %.loc13_30.5: i32 = int_value 1 [template = constants.%.10] // CHECK:STDOUT: %.loc13_30.6: ref %C = array_index %a.var, %.loc13_30.5 // CHECK:STDOUT: %.loc13_25.2: init %C = class_init (), %.loc13_30.6 [template = constants.%struct] // CHECK:STDOUT: %.loc13_30.7: init %C = converted %.loc13_25.1, %.loc13_25.2 [template = constants.%struct] -// CHECK:STDOUT: %.loc13_30.8: i32 = int_literal 2 [template = constants.%.11] +// CHECK:STDOUT: %.loc13_30.8: i32 = int_value 2 [template = constants.%.11] // CHECK:STDOUT: %.loc13_30.9: ref %C = array_index %a.var, %.loc13_30.8 // CHECK:STDOUT: %.loc13_29.2: init %C = class_init (), %.loc13_30.9 [template = constants.%struct] // CHECK:STDOUT: %.loc13_30.10: init %C = converted %.loc13_29.1, %.loc13_29.2 [template = constants.%struct] @@ -399,14 +399,14 @@ fn G() -> C { // CHECK:STDOUT: %G.type: type = fn_type @G [template] // CHECK:STDOUT: %G: %G.type = struct_value () [template] // CHECK:STDOUT: %.4: type = ptr_type %.1 [template] -// CHECK:STDOUT: %.5: i32 = int_literal 3 [template] +// CHECK:STDOUT: %.5: i32 = int_value 3 [template] // CHECK:STDOUT: %.6: type = array_type %.5, %C [template] // CHECK:STDOUT: %.7: type = ptr_type %.6 [template] // CHECK:STDOUT: %.8: type = tuple_type (%.1, %.1, %.1) [template] -// CHECK:STDOUT: %.9: i32 = int_literal 0 [template] +// CHECK:STDOUT: %.9: i32 = int_value 0 [template] // CHECK:STDOUT: %struct: %C = struct_value () [template] -// CHECK:STDOUT: %.10: i32 = int_literal 1 [template] -// CHECK:STDOUT: %.11: i32 = int_literal 2 [template] +// CHECK:STDOUT: %.10: i32 = int_value 1 [template] +// CHECK:STDOUT: %.11: i32 = int_value 2 [template] // CHECK:STDOUT: %array: %.6 = tuple_value (%struct, %struct, %struct) [template] // CHECK:STDOUT: } // CHECK:STDOUT: @@ -485,7 +485,7 @@ fn G() -> C { // CHECK:STDOUT: fn @G() -> %return: %C { // CHECK:STDOUT: !entry: // CHECK:STDOUT: %C.ref.loc13: type = name_ref C, file.%C.decl [template = constants.%C] -// CHECK:STDOUT: %.loc13_14: i32 = int_literal 3 [template = constants.%.5] +// CHECK:STDOUT: %.loc13_14: i32 = int_value 3 [template = constants.%.5] // CHECK:STDOUT: %.loc13_15: type = array_type %.loc13_14, %C [template = constants.%.6] // CHECK:STDOUT: %a.var: ref %.6 = var a // CHECK:STDOUT: %a: ref %.6 = bind_name a, %a.var @@ -493,15 +493,15 @@ fn G() -> C { // CHECK:STDOUT: %.loc13_25.1: %.1 = struct_literal () // CHECK:STDOUT: %.loc13_29.1: %.1 = struct_literal () // CHECK:STDOUT: %.loc13_30.1: %.8 = tuple_literal (%.loc13_21.1, %.loc13_25.1, %.loc13_29.1) -// CHECK:STDOUT: %.loc13_30.2: i32 = int_literal 0 [template = constants.%.9] +// CHECK:STDOUT: %.loc13_30.2: i32 = int_value 0 [template = constants.%.9] // CHECK:STDOUT: %.loc13_30.3: ref %C = array_index %a.var, %.loc13_30.2 // CHECK:STDOUT: %.loc13_21.2: init %C = class_init (), %.loc13_30.3 [template = constants.%struct] // CHECK:STDOUT: %.loc13_30.4: init %C = converted %.loc13_21.1, %.loc13_21.2 [template = constants.%struct] -// CHECK:STDOUT: %.loc13_30.5: i32 = int_literal 1 [template = constants.%.10] +// CHECK:STDOUT: %.loc13_30.5: i32 = int_value 1 [template = constants.%.10] // CHECK:STDOUT: %.loc13_30.6: ref %C = array_index %a.var, %.loc13_30.5 // CHECK:STDOUT: %.loc13_25.2: init %C = class_init (), %.loc13_30.6 [template = constants.%struct] // CHECK:STDOUT: %.loc13_30.7: init %C = converted %.loc13_25.1, %.loc13_25.2 [template = constants.%struct] -// CHECK:STDOUT: %.loc13_30.8: i32 = int_literal 2 [template = constants.%.11] +// CHECK:STDOUT: %.loc13_30.8: i32 = int_value 2 [template = constants.%.11] // CHECK:STDOUT: %.loc13_30.9: ref %C = array_index %a.var, %.loc13_30.8 // CHECK:STDOUT: %.loc13_29.2: init %C = class_init (), %.loc13_30.9 [template = constants.%struct] // CHECK:STDOUT: %.loc13_30.10: init %C = converted %.loc13_29.1, %.loc13_29.2 [template = constants.%struct] @@ -528,22 +528,22 @@ fn G() -> C { // CHECK:STDOUT: %.2: = complete_type_witness %.1 [template] // CHECK:STDOUT: %T: type = bind_symbolic_name T, 0 [symbolic] // CHECK:STDOUT: %T.patt: type = symbolic_binding_pattern T, 0 [symbolic] -// CHECK:STDOUT: %.3: i32 = int_literal 2 [template] +// CHECK:STDOUT: %.3: i32 = int_value 2 [template] // CHECK:STDOUT: %.4: type = array_type %.3, %T [symbolic] // CHECK:STDOUT: %F.type: type = fn_type @F [template] // CHECK:STDOUT: %.5: type = tuple_type () [template] // CHECK:STDOUT: %F: %F.type = struct_value () [template] // CHECK:STDOUT: %.6: type = ptr_type %.4 [symbolic] -// CHECK:STDOUT: %.7: i32 = int_literal 0 [template] +// CHECK:STDOUT: %.7: i32 = int_value 0 [template] // CHECK:STDOUT: %G.type: type = fn_type @G [template] // CHECK:STDOUT: %G: %G.type = struct_value () [template] // CHECK:STDOUT: %.8: type = ptr_type %.1 [template] -// CHECK:STDOUT: %.9: i32 = int_literal 3 [template] +// CHECK:STDOUT: %.9: i32 = int_value 3 [template] // CHECK:STDOUT: %.10: type = array_type %.9, %C [template] // CHECK:STDOUT: %.11: type = ptr_type %.10 [template] // CHECK:STDOUT: %.12: type = tuple_type (%.1, %.1, %.1) [template] // CHECK:STDOUT: %struct: %C = struct_value () [template] -// CHECK:STDOUT: %.13: i32 = int_literal 1 [template] +// CHECK:STDOUT: %.13: i32 = int_value 1 [template] // CHECK:STDOUT: %array: %.10 = tuple_value (%struct, %struct, %struct) [template] // CHECK:STDOUT: %.14: type = array_type %.3, %C [template] // CHECK:STDOUT: %.15: = specific_function %F, @F(%C) [template] @@ -599,7 +599,7 @@ fn G() -> C { // CHECK:STDOUT: %return.param_patt: @F.%T.loc6_6.2 (%T) = out_param_pattern %return.patt, runtime_param1 // CHECK:STDOUT: } { // CHECK:STDOUT: %T.ref.loc6_20: type = name_ref T, %T.loc6_6.1 [symbolic = %T.loc6_6.2 (constants.%T)] -// CHECK:STDOUT: %.loc6_23: i32 = int_literal 2 [template = constants.%.3] +// CHECK:STDOUT: %.loc6_23: i32 = int_value 2 [template = constants.%.3] // CHECK:STDOUT: %.loc6_24.1: type = array_type %.loc6_23, %T [symbolic = %.loc6_24.2 (constants.%.4)] // CHECK:STDOUT: %T.ref.loc6_30: type = name_ref T, %T.loc6_6.1 [symbolic = %T.loc6_6.2 (constants.%T)] // CHECK:STDOUT: %T.param: type = value_param runtime_param @@ -656,7 +656,7 @@ fn G() -> C { // CHECK:STDOUT: fn[%T.param_patt: type](%a.param_patt: @F.%.loc6_24.2 (%.4)) -> @F.%T.loc6_6.2 (%T) { // CHECK:STDOUT: !entry: // CHECK:STDOUT: %a.ref: @F.%.loc6_24.2 (%.4) = name_ref a, %a -// CHECK:STDOUT: %.loc6_43: i32 = int_literal 0 [template = constants.%.7] +// CHECK:STDOUT: %.loc6_43: i32 = int_value 0 [template = constants.%.7] // CHECK:STDOUT: %.loc6_44.1: ref @F.%.loc6_24.2 (%.4) = value_as_ref %a.ref // CHECK:STDOUT: %.loc6_44.2: ref @F.%T.loc6_6.2 (%T) = array_index %.loc6_44.1, %.loc6_43 // CHECK:STDOUT: %.loc6_44.3: @F.%T.loc6_6.2 (%T) = bind_value %.loc6_44.2 @@ -667,7 +667,7 @@ fn G() -> C { // CHECK:STDOUT: fn @G() -> %return: %C { // CHECK:STDOUT: !entry: // CHECK:STDOUT: %C.ref.loc10: type = name_ref C, file.%C.decl [template = constants.%C] -// CHECK:STDOUT: %.loc10_14: i32 = int_literal 3 [template = constants.%.9] +// CHECK:STDOUT: %.loc10_14: i32 = int_value 3 [template = constants.%.9] // CHECK:STDOUT: %.loc10_15: type = array_type %.loc10_14, %C [template = constants.%.10] // CHECK:STDOUT: %a.var: ref %.10 = var a // CHECK:STDOUT: %a: ref %.10 = bind_name a, %a.var @@ -675,15 +675,15 @@ fn G() -> C { // CHECK:STDOUT: %.loc10_25.1: %.1 = struct_literal () // CHECK:STDOUT: %.loc10_29.1: %.1 = struct_literal () // CHECK:STDOUT: %.loc10_30.1: %.12 = tuple_literal (%.loc10_21.1, %.loc10_25.1, %.loc10_29.1) -// CHECK:STDOUT: %.loc10_30.2: i32 = int_literal 0 [template = constants.%.7] +// CHECK:STDOUT: %.loc10_30.2: i32 = int_value 0 [template = constants.%.7] // CHECK:STDOUT: %.loc10_30.3: ref %C = array_index %a.var, %.loc10_30.2 // CHECK:STDOUT: %.loc10_21.2: init %C = class_init (), %.loc10_30.3 [template = constants.%struct] // CHECK:STDOUT: %.loc10_30.4: init %C = converted %.loc10_21.1, %.loc10_21.2 [template = constants.%struct] -// CHECK:STDOUT: %.loc10_30.5: i32 = int_literal 1 [template = constants.%.13] +// CHECK:STDOUT: %.loc10_30.5: i32 = int_value 1 [template = constants.%.13] // CHECK:STDOUT: %.loc10_30.6: ref %C = array_index %a.var, %.loc10_30.5 // CHECK:STDOUT: %.loc10_25.2: init %C = class_init (), %.loc10_30.6 [template = constants.%struct] // CHECK:STDOUT: %.loc10_30.7: init %C = converted %.loc10_25.1, %.loc10_25.2 [template = constants.%struct] -// CHECK:STDOUT: %.loc10_30.8: i32 = int_literal 2 [template = constants.%.3] +// CHECK:STDOUT: %.loc10_30.8: i32 = int_value 2 [template = constants.%.3] // CHECK:STDOUT: %.loc10_30.9: ref %C = array_index %a.var, %.loc10_30.8 // CHECK:STDOUT: %.loc10_29.2: init %C = class_init (), %.loc10_30.9 [template = constants.%struct] // CHECK:STDOUT: %.loc10_30.10: init %C = converted %.loc10_29.1, %.loc10_29.2 [template = constants.%struct] @@ -775,14 +775,14 @@ fn G() -> C { // CHECK:STDOUT: %G.type: type = fn_type @G [template] // CHECK:STDOUT: %G: %G.type = struct_value () [template] // CHECK:STDOUT: %.4: type = ptr_type %.1 [template] -// CHECK:STDOUT: %.5: i32 = int_literal 3 [template] +// CHECK:STDOUT: %.5: i32 = int_value 3 [template] // CHECK:STDOUT: %.6: type = array_type %.5, %D [template] // CHECK:STDOUT: %.7: type = ptr_type %.6 [template] // CHECK:STDOUT: %.8: type = tuple_type (%.1, %.1, %.1) [template] -// CHECK:STDOUT: %.9: i32 = int_literal 0 [template] +// CHECK:STDOUT: %.9: i32 = int_value 0 [template] // CHECK:STDOUT: %struct: %D = struct_value () [template] -// CHECK:STDOUT: %.10: i32 = int_literal 1 [template] -// CHECK:STDOUT: %.11: i32 = int_literal 2 [template] +// CHECK:STDOUT: %.10: i32 = int_value 1 [template] +// CHECK:STDOUT: %.11: i32 = int_value 2 [template] // CHECK:STDOUT: %array: %.6 = tuple_value (%struct, %struct, %struct) [template] // CHECK:STDOUT: } // CHECK:STDOUT: @@ -872,7 +872,7 @@ fn G() -> C { // CHECK:STDOUT: fn @G() -> %return: %C { // CHECK:STDOUT: !entry: // CHECK:STDOUT: %D.ref: type = name_ref D, file.%D.decl [template = constants.%D] -// CHECK:STDOUT: %.loc13_14: i32 = int_literal 3 [template = constants.%.5] +// CHECK:STDOUT: %.loc13_14: i32 = int_value 3 [template = constants.%.5] // CHECK:STDOUT: %.loc13_15: type = array_type %.loc13_14, %D [template = constants.%.6] // CHECK:STDOUT: %a.var: ref %.6 = var a // CHECK:STDOUT: %a: ref %.6 = bind_name a, %a.var @@ -880,15 +880,15 @@ fn G() -> C { // CHECK:STDOUT: %.loc13_25.1: %.1 = struct_literal () // CHECK:STDOUT: %.loc13_29.1: %.1 = struct_literal () // CHECK:STDOUT: %.loc13_30.1: %.8 = tuple_literal (%.loc13_21.1, %.loc13_25.1, %.loc13_29.1) -// CHECK:STDOUT: %.loc13_30.2: i32 = int_literal 0 [template = constants.%.9] +// CHECK:STDOUT: %.loc13_30.2: i32 = int_value 0 [template = constants.%.9] // CHECK:STDOUT: %.loc13_30.3: ref %D = array_index %a.var, %.loc13_30.2 // CHECK:STDOUT: %.loc13_21.2: init %D = class_init (), %.loc13_30.3 [template = constants.%struct] // CHECK:STDOUT: %.loc13_30.4: init %D = converted %.loc13_21.1, %.loc13_21.2 [template = constants.%struct] -// CHECK:STDOUT: %.loc13_30.5: i32 = int_literal 1 [template = constants.%.10] +// CHECK:STDOUT: %.loc13_30.5: i32 = int_value 1 [template = constants.%.10] // CHECK:STDOUT: %.loc13_30.6: ref %D = array_index %a.var, %.loc13_30.5 // CHECK:STDOUT: %.loc13_25.2: init %D = class_init (), %.loc13_30.6 [template = constants.%struct] // CHECK:STDOUT: %.loc13_30.7: init %D = converted %.loc13_25.1, %.loc13_25.2 [template = constants.%struct] -// CHECK:STDOUT: %.loc13_30.8: i32 = int_literal 2 [template = constants.%.11] +// CHECK:STDOUT: %.loc13_30.8: i32 = int_value 2 [template = constants.%.11] // CHECK:STDOUT: %.loc13_30.9: ref %D = array_index %a.var, %.loc13_30.8 // CHECK:STDOUT: %.loc13_29.2: init %D = class_init (), %.loc13_30.9 [template = constants.%struct] // CHECK:STDOUT: %.loc13_30.10: init %D = converted %.loc13_29.1, %.loc13_29.2 [template = constants.%struct] diff --git a/toolchain/check/testdata/deduce/generic_type.carbon b/toolchain/check/testdata/deduce/generic_type.carbon index 6150ed9a88aa6..e206bf2ec37da 100644 --- a/toolchain/check/testdata/deduce/generic_type.carbon +++ b/toolchain/check/testdata/deduce/generic_type.carbon @@ -743,7 +743,7 @@ fn G() -> i32 { // CHECK:STDOUT: %.4: type = ptr_type %.2 [template] // CHECK:STDOUT: %G.type: type = fn_type @G [template] // CHECK:STDOUT: %G: %G.type = struct_value () [template] -// CHECK:STDOUT: %.5: i32 = int_literal 0 [template] +// CHECK:STDOUT: %.5: i32 = int_value 0 [template] // CHECK:STDOUT: %WithNontype.3: type = class_type @WithNontype, @WithNontype(%.5) [template] // CHECK:STDOUT: %struct: %WithNontype.3 = struct_value () [template] // CHECK:STDOUT: %.6: = specific_function %F, @F(%.5) [template] @@ -847,7 +847,7 @@ fn G() -> i32 { // CHECK:STDOUT: %F.ref: %F.type = name_ref F, file.%F.decl [template = constants.%F] // CHECK:STDOUT: %.loc9_13.1: %.2 = struct_literal () // CHECK:STDOUT: %WithNontype.ref: %WithNontype.type = name_ref WithNontype, file.%WithNontype.decl [template = constants.%WithNontype.1] -// CHECK:STDOUT: %.loc9_30: i32 = int_literal 0 [template = constants.%.5] +// CHECK:STDOUT: %.loc9_30: i32 = int_value 0 [template = constants.%.5] // CHECK:STDOUT: %WithNontype: type = class_type @WithNontype, @WithNontype(constants.%.5) [template = constants.%WithNontype.3] // CHECK:STDOUT: %.loc9_13.2: ref %WithNontype.3 = temporary_storage // CHECK:STDOUT: %.loc9_13.3: init %WithNontype.3 = class_init (), %.loc9_13.2 [template = constants.%struct] diff --git a/toolchain/check/testdata/deduce/int_float.carbon b/toolchain/check/testdata/deduce/int_float.carbon index 03044c36c73da..5303e98ebaf75 100644 --- a/toolchain/check/testdata/deduce/int_float.carbon +++ b/toolchain/check/testdata/deduce/int_float.carbon @@ -49,7 +49,7 @@ fn G(a: f64) -> Core.BigInt() { // CHECK:STDOUT: %.2: type = int_type signed, %N [symbolic] // CHECK:STDOUT: %F.type: type = fn_type @F [template] // CHECK:STDOUT: %F: %F.type = struct_value () [template] -// CHECK:STDOUT: %.3: Core.BigInt = int_literal 64 [template] +// CHECK:STDOUT: %.3: Core.BigInt = int_value 64 [template] // CHECK:STDOUT: %.4: type = int_type signed, %.3 [template] // CHECK:STDOUT: %G.type: type = fn_type @G [template] // CHECK:STDOUT: %G: %G.type = struct_value () [template] @@ -111,7 +111,7 @@ fn G(a: f64) -> Core.BigInt() { // CHECK:STDOUT: %return.patt: Core.BigInt = return_slot_pattern // CHECK:STDOUT: %return.param_patt: Core.BigInt = out_param_pattern %return.patt, runtime_param1 // CHECK:STDOUT: } { -// CHECK:STDOUT: %.loc8_9.1: Core.BigInt = int_literal 64 [template = constants.%.3] +// CHECK:STDOUT: %.loc8_9.1: Core.BigInt = int_value 64 [template = constants.%.3] // CHECK:STDOUT: %int.make_type_signed: init type = call constants.%Int(%.loc8_9.1) [template = constants.%.4] // CHECK:STDOUT: %.loc8_9.2: type = value_of_initializer %int.make_type_signed [template = constants.%.4] // CHECK:STDOUT: %.loc8_9.3: type = converted %int.make_type_signed, %.loc8_9.2 [template = constants.%.4] @@ -182,7 +182,7 @@ fn G(a: f64) -> Core.BigInt() { // CHECK:STDOUT: %Float: %Float.type = struct_value () [template] // CHECK:STDOUT: %F.type: type = fn_type @F [template] // CHECK:STDOUT: %F: %F.type = struct_value () [template] -// CHECK:STDOUT: %.2: Core.BigInt = int_literal 64 [template] +// CHECK:STDOUT: %.2: Core.BigInt = int_value 64 [template] // CHECK:STDOUT: %G.type: type = fn_type @G [template] // CHECK:STDOUT: %G: %G.type = struct_value () [template] // CHECK:STDOUT: } @@ -242,7 +242,7 @@ fn G(a: f64) -> Core.BigInt() { // CHECK:STDOUT: %return.patt: Core.BigInt = return_slot_pattern // CHECK:STDOUT: %return.param_patt: Core.BigInt = out_param_pattern %return.patt, runtime_param1 // CHECK:STDOUT: } { -// CHECK:STDOUT: %.loc12_9.1: Core.BigInt = int_literal 64 [template = constants.%.2] +// CHECK:STDOUT: %.loc12_9.1: Core.BigInt = int_value 64 [template = constants.%.2] // CHECK:STDOUT: %float.make_type: init type = call constants.%Float(%.loc12_9.1) [template = f64] // CHECK:STDOUT: %.loc12_9.2: type = value_of_initializer %float.make_type [template = f64] // CHECK:STDOUT: %.loc12_9.3: type = converted %float.make_type, %.loc12_9.2 [template = f64] diff --git a/toolchain/check/testdata/deduce/tuple.carbon b/toolchain/check/testdata/deduce/tuple.carbon index 5d723587b7a8f..bcfd1ffb9b075 100644 --- a/toolchain/check/testdata/deduce/tuple.carbon +++ b/toolchain/check/testdata/deduce/tuple.carbon @@ -240,8 +240,8 @@ fn G(pair: (C, D)) -> D { // CHECK:STDOUT: %F.type: type = fn_type @F [template] // CHECK:STDOUT: %F: %F.type = struct_value () [template] // CHECK:STDOUT: %.7: type = ptr_type %.4 [template] -// CHECK:STDOUT: %.8: i32 = int_literal 1 [template] -// CHECK:STDOUT: %.9: i32 = int_literal 2 [template] +// CHECK:STDOUT: %.8: i32 = int_value 1 [template] +// CHECK:STDOUT: %.9: i32 = int_value 2 [template] // CHECK:STDOUT: %tuple.2: %.3 = tuple_value (%.8, %.9) [template] // CHECK:STDOUT: %HasPair.4: type = class_type @HasPair, @HasPair(%tuple.2) [template] // CHECK:STDOUT: %G.type: type = fn_type @G [template] @@ -323,8 +323,8 @@ fn G(pair: (C, D)) -> D { // CHECK:STDOUT: %return.param_patt: i32 = out_param_pattern %return.patt, runtime_param1 // CHECK:STDOUT: } { // CHECK:STDOUT: %HasPair.ref: %HasPair.type = name_ref HasPair, file.%HasPair.decl [template = constants.%HasPair.1] -// CHECK:STDOUT: %.loc8_18: i32 = int_literal 1 [template = constants.%.8] -// CHECK:STDOUT: %.loc8_21: i32 = int_literal 2 [template = constants.%.9] +// CHECK:STDOUT: %.loc8_18: i32 = int_value 1 [template = constants.%.8] +// CHECK:STDOUT: %.loc8_21: i32 = int_value 2 [template = constants.%.9] // CHECK:STDOUT: %.loc8_22: %.3 = tuple_literal (%.loc8_18, %.loc8_21) // CHECK:STDOUT: %tuple: %.3 = tuple_value (%.loc8_18, %.loc8_21) [template = constants.%tuple.2] // CHECK:STDOUT: %.loc8_16: %.3 = converted %.loc8_22, %tuple [template = constants.%tuple.2] diff --git a/toolchain/check/testdata/eval/aggregate.carbon b/toolchain/check/testdata/eval/aggregate.carbon index 8ffa29009e179..0881d8371d55f 100644 --- a/toolchain/check/testdata/eval/aggregate.carbon +++ b/toolchain/check/testdata/eval/aggregate.carbon @@ -25,12 +25,12 @@ var struct_access: [i32; 1] = (0,) as [i32; {.a = 3, .b = 1}.b]; // CHECK:STDOUT: %.2: type = tuple_type (type, type) [template] // CHECK:STDOUT: %.3: type = tuple_type (i32, i32) [template] // CHECK:STDOUT: %.4: type = ptr_type %.3 [template] -// CHECK:STDOUT: %.5: i32 = int_literal 1 [template] -// CHECK:STDOUT: %.6: i32 = int_literal 2 [template] +// CHECK:STDOUT: %.5: i32 = int_value 1 [template] +// CHECK:STDOUT: %.6: i32 = int_value 2 [template] // CHECK:STDOUT: %tuple.1: %.3 = tuple_value (%.5, %.6) [template] // CHECK:STDOUT: %.7: type = struct_type {.a: i32, .b: i32, .c: i32} [template] // CHECK:STDOUT: %.8: type = ptr_type %.7 [template] -// CHECK:STDOUT: %.9: i32 = int_literal 3 [template] +// CHECK:STDOUT: %.9: i32 = int_value 3 [template] // CHECK:STDOUT: %.10: type = struct_type {.c: i32, .b: i32, .a: i32} [template] // CHECK:STDOUT: %.11: type = struct_type {.b: i32, .a: i32, .c: i32} [template] // CHECK:STDOUT: %.12: type = ptr_type %.11 [template] @@ -38,11 +38,11 @@ var struct_access: [i32; 1] = (0,) as [i32; {.a = 3, .b = 1}.b]; // CHECK:STDOUT: %struct.2: %.7 = struct_value (%.5, %.6, %.9) [template] // CHECK:STDOUT: %.13: type = array_type %.5, i32 [template] // CHECK:STDOUT: %.14: type = ptr_type %.13 [template] -// CHECK:STDOUT: %.15: i32 = int_literal 0 [template] +// CHECK:STDOUT: %.15: i32 = int_value 0 [template] // CHECK:STDOUT: %.16: type = tuple_type (i32) [template] -// CHECK:STDOUT: %.17: i32 = int_literal 5 [template] -// CHECK:STDOUT: %.18: i32 = int_literal 7 [template] -// CHECK:STDOUT: %.19: i32 = int_literal 9 [template] +// CHECK:STDOUT: %.17: i32 = int_value 5 [template] +// CHECK:STDOUT: %.18: i32 = int_value 7 [template] +// CHECK:STDOUT: %.19: i32 = int_value 9 [template] // CHECK:STDOUT: %.20: type = tuple_type (i32, i32, i32, i32) [template] // CHECK:STDOUT: %.21: type = ptr_type %.20 [template] // CHECK:STDOUT: %tuple.2: %.20 = tuple_value (%.17, %.18, %.5, %.19) [template] @@ -93,14 +93,14 @@ var struct_access: [i32; 1] = (0,) as [i32; {.a = 3, .b = 1}.b]; // CHECK:STDOUT: %struct_copy.var: ref %.7 = var struct_copy // CHECK:STDOUT: %struct_copy: ref %.7 = bind_name struct_copy, %struct_copy.var // CHECK:STDOUT: %int.make_type_32.loc15: init type = call constants.%Int32() [template = i32] -// CHECK:STDOUT: %.loc15_24: i32 = int_literal 1 [template = constants.%.5] +// CHECK:STDOUT: %.loc15_24: i32 = int_value 1 [template = constants.%.5] // CHECK:STDOUT: %.loc15_19.1: type = value_of_initializer %int.make_type_32.loc15 [template = i32] // CHECK:STDOUT: %.loc15_19.2: type = converted %int.make_type_32.loc15, %.loc15_19.1 [template = i32] // CHECK:STDOUT: %.loc15_25: type = array_type %.loc15_24, i32 [template = constants.%.13] // CHECK:STDOUT: %tuple_index.var: ref %.13 = var tuple_index // CHECK:STDOUT: %tuple_index: ref %.13 = bind_name tuple_index, %tuple_index.var // CHECK:STDOUT: %int.make_type_32.loc17: init type = call constants.%Int32() [template = i32] -// CHECK:STDOUT: %.loc17_26: i32 = int_literal 1 [template = constants.%.5] +// CHECK:STDOUT: %.loc17_26: i32 = int_value 1 [template = constants.%.5] // CHECK:STDOUT: %.loc17_21.1: type = value_of_initializer %int.make_type_32.loc17 [template = i32] // CHECK:STDOUT: %.loc17_21.2: type = converted %int.make_type_32.loc17, %.loc17_21.1 [template = i32] // CHECK:STDOUT: %.loc17_27: type = array_type %.loc17_26, i32 [template = constants.%.13] @@ -112,8 +112,8 @@ var struct_access: [i32; 1] = (0,) as [i32; {.a = 3, .b = 1}.b]; // CHECK:STDOUT: // CHECK:STDOUT: fn @__global_init() { // CHECK:STDOUT: !entry: -// CHECK:STDOUT: %.loc11_31: i32 = int_literal 1 [template = constants.%.5] -// CHECK:STDOUT: %.loc11_34: i32 = int_literal 2 [template = constants.%.6] +// CHECK:STDOUT: %.loc11_31: i32 = int_value 1 [template = constants.%.5] +// CHECK:STDOUT: %.loc11_34: i32 = int_value 2 [template = constants.%.6] // CHECK:STDOUT: %.loc11_35.1: %.3 = tuple_literal (%.loc11_31, %.loc11_34) // CHECK:STDOUT: %int.make_type_32.loc11_41: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %int.make_type_32.loc11_46: init type = call constants.%Int32() [template = i32] @@ -130,9 +130,9 @@ var struct_access: [i32; 1] = (0,) as [i32; {.a = 3, .b = 1}.b]; // CHECK:STDOUT: %.loc11_35.6: init %.3 = tuple_init (%.loc11_35.3, %.loc11_35.5) to file.%tuple_copy.var [template = constants.%tuple.1] // CHECK:STDOUT: %.loc11_50: init %.3 = converted %.loc11_35.1, %.loc11_35.6 [template = constants.%tuple.1] // CHECK:STDOUT: assign file.%tuple_copy.var, %.loc11_50 -// CHECK:STDOUT: %.loc13_54: i32 = int_literal 3 [template = constants.%.9] -// CHECK:STDOUT: %.loc13_62: i32 = int_literal 2 [template = constants.%.6] -// CHECK:STDOUT: %.loc13_70: i32 = int_literal 1 [template = constants.%.5] +// CHECK:STDOUT: %.loc13_54: i32 = int_value 3 [template = constants.%.9] +// CHECK:STDOUT: %.loc13_62: i32 = int_value 2 [template = constants.%.6] +// CHECK:STDOUT: %.loc13_70: i32 = int_value 1 [template = constants.%.5] // CHECK:STDOUT: %.loc13_71: %.10 = struct_literal (%.loc13_54, %.loc13_62, %.loc13_70) // CHECK:STDOUT: %int.make_type_32.loc13_81: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc13_81.1: type = value_of_initializer %int.make_type_32.loc13_81 [template = i32] @@ -158,15 +158,15 @@ var struct_access: [i32; 1] = (0,) as [i32; {.a = 3, .b = 1}.b]; // CHECK:STDOUT: %.loc13_73.11: init %.7 = struct_init (%.loc13_73.4, %.loc13_73.7, %.loc13_73.10) to file.%struct_copy.var [template = constants.%struct.2] // CHECK:STDOUT: %.loc13_103: init %.7 = converted %.loc13_73.1, %.loc13_73.11 [template = constants.%struct.2] // CHECK:STDOUT: assign file.%struct_copy.var, %.loc13_103 -// CHECK:STDOUT: %.loc15_30: i32 = int_literal 0 [template = constants.%.15] +// CHECK:STDOUT: %.loc15_30: i32 = int_value 0 [template = constants.%.15] // CHECK:STDOUT: %.loc15_32.1: %.16 = tuple_literal (%.loc15_30) // CHECK:STDOUT: %int.make_type_32.loc15: init type = call constants.%Int32() [template = i32] -// CHECK:STDOUT: %.loc15_44: i32 = int_literal 5 [template = constants.%.17] -// CHECK:STDOUT: %.loc15_47: i32 = int_literal 7 [template = constants.%.18] -// CHECK:STDOUT: %.loc15_50: i32 = int_literal 1 [template = constants.%.5] -// CHECK:STDOUT: %.loc15_53: i32 = int_literal 9 [template = constants.%.19] +// CHECK:STDOUT: %.loc15_44: i32 = int_value 5 [template = constants.%.17] +// CHECK:STDOUT: %.loc15_47: i32 = int_value 7 [template = constants.%.18] +// CHECK:STDOUT: %.loc15_50: i32 = int_value 1 [template = constants.%.5] +// CHECK:STDOUT: %.loc15_53: i32 = int_value 9 [template = constants.%.19] // CHECK:STDOUT: %.loc15_54.1: %.20 = tuple_literal (%.loc15_44, %.loc15_47, %.loc15_50, %.loc15_53) -// CHECK:STDOUT: %.loc15_56: i32 = int_literal 2 [template = constants.%.6] +// CHECK:STDOUT: %.loc15_56: i32 = int_value 2 [template = constants.%.6] // CHECK:STDOUT: %tuple: %.20 = tuple_value (%.loc15_44, %.loc15_47, %.loc15_50, %.loc15_53) [template = constants.%tuple.2] // CHECK:STDOUT: %.loc15_54.2: %.20 = converted %.loc15_54.1, %tuple [template = constants.%tuple.2] // CHECK:STDOUT: %.loc15_55: i32 = tuple_access %.loc15_54.2, element2 [template = constants.%.5] @@ -174,17 +174,17 @@ var struct_access: [i32; 1] = (0,) as [i32; {.a = 3, .b = 1}.b]; // CHECK:STDOUT: %.loc15_38.2: type = converted %int.make_type_32.loc15, %.loc15_38.1 [template = i32] // CHECK:STDOUT: %.loc15_57: type = array_type %.loc15_55, i32 [template = constants.%.13] // CHECK:STDOUT: %.loc15_5: ref %.13 = splice_block file.%tuple_index.var {} -// CHECK:STDOUT: %.loc15_32.2: i32 = int_literal 0 [template = constants.%.15] +// CHECK:STDOUT: %.loc15_32.2: i32 = int_value 0 [template = constants.%.15] // CHECK:STDOUT: %.loc15_32.3: ref i32 = array_index %.loc15_5, %.loc15_32.2 // CHECK:STDOUT: %.loc15_32.4: init i32 = initialize_from %.loc15_30 to %.loc15_32.3 [template = constants.%.15] // CHECK:STDOUT: %.loc15_32.5: init %.13 = array_init (%.loc15_32.4) to %.loc15_5 [template = constants.%array] // CHECK:STDOUT: %.loc15_34: init %.13 = converted %.loc15_32.1, %.loc15_32.5 [template = constants.%array] // CHECK:STDOUT: assign file.%tuple_index.var, %.loc15_34 -// CHECK:STDOUT: %.loc17_32: i32 = int_literal 0 [template = constants.%.15] +// CHECK:STDOUT: %.loc17_32: i32 = int_value 0 [template = constants.%.15] // CHECK:STDOUT: %.loc17_34.1: %.16 = tuple_literal (%.loc17_32) // CHECK:STDOUT: %int.make_type_32.loc17: init type = call constants.%Int32() [template = i32] -// CHECK:STDOUT: %.loc17_51: i32 = int_literal 3 [template = constants.%.9] -// CHECK:STDOUT: %.loc17_59: i32 = int_literal 1 [template = constants.%.5] +// CHECK:STDOUT: %.loc17_51: i32 = int_value 3 [template = constants.%.9] +// CHECK:STDOUT: %.loc17_59: i32 = int_value 1 [template = constants.%.5] // CHECK:STDOUT: %.loc17_60.1: %.22 = struct_literal (%.loc17_51, %.loc17_59) // CHECK:STDOUT: %struct.loc17: %.22 = struct_value (%.loc17_51, %.loc17_59) [template = constants.%struct.3] // CHECK:STDOUT: %.loc17_60.2: %.22 = converted %.loc17_60.1, %struct.loc17 [template = constants.%struct.3] @@ -193,7 +193,7 @@ var struct_access: [i32; 1] = (0,) as [i32; {.a = 3, .b = 1}.b]; // CHECK:STDOUT: %.loc17_40.2: type = converted %int.make_type_32.loc17, %.loc17_40.1 [template = i32] // CHECK:STDOUT: %.loc17_63: type = array_type %.loc17_61, i32 [template = constants.%.13] // CHECK:STDOUT: %.loc17_5: ref %.13 = splice_block file.%struct_access.var {} -// CHECK:STDOUT: %.loc17_34.2: i32 = int_literal 0 [template = constants.%.15] +// CHECK:STDOUT: %.loc17_34.2: i32 = int_value 0 [template = constants.%.15] // CHECK:STDOUT: %.loc17_34.3: ref i32 = array_index %.loc17_5, %.loc17_34.2 // CHECK:STDOUT: %.loc17_34.4: init i32 = initialize_from %.loc17_32 to %.loc17_34.3 [template = constants.%.15] // CHECK:STDOUT: %.loc17_34.5: init %.13 = array_init (%.loc17_34.4) to %.loc17_5 [template = constants.%array] diff --git a/toolchain/check/testdata/eval/fail_aggregate.carbon b/toolchain/check/testdata/eval/fail_aggregate.carbon index e636ae513601e..98e6d2e0a88d4 100644 --- a/toolchain/check/testdata/eval/fail_aggregate.carbon +++ b/toolchain/check/testdata/eval/fail_aggregate.carbon @@ -21,20 +21,20 @@ var array_index: [i32; 1] = (0,) as [i32; ((5, 7, 1, 9) as [i32; 4])[2]]; // CHECK:STDOUT: %Int32.type: type = fn_type @Int32 [template] // CHECK:STDOUT: %.1: type = tuple_type () [template] // CHECK:STDOUT: %Int32: %Int32.type = struct_value () [template] -// CHECK:STDOUT: %.2: i32 = int_literal 1 [template] +// CHECK:STDOUT: %.2: i32 = int_value 1 [template] // CHECK:STDOUT: %.3: type = array_type %.2, i32 [template] // CHECK:STDOUT: %.4: type = ptr_type %.3 [template] -// CHECK:STDOUT: %.5: i32 = int_literal 0 [template] +// CHECK:STDOUT: %.5: i32 = int_value 0 [template] // CHECK:STDOUT: %.6: type = tuple_type (i32) [template] -// CHECK:STDOUT: %.7: i32 = int_literal 5 [template] -// CHECK:STDOUT: %.8: i32 = int_literal 7 [template] -// CHECK:STDOUT: %.9: i32 = int_literal 9 [template] +// CHECK:STDOUT: %.7: i32 = int_value 5 [template] +// CHECK:STDOUT: %.8: i32 = int_value 7 [template] +// CHECK:STDOUT: %.9: i32 = int_value 9 [template] // CHECK:STDOUT: %.10: type = tuple_type (i32, i32, i32, i32) [template] -// CHECK:STDOUT: %.11: i32 = int_literal 4 [template] +// CHECK:STDOUT: %.11: i32 = int_value 4 [template] // CHECK:STDOUT: %.12: type = array_type %.11, i32 [template] // CHECK:STDOUT: %.13: type = ptr_type %.12 [template] -// CHECK:STDOUT: %.14: i32 = int_literal 2 [template] -// CHECK:STDOUT: %.15: i32 = int_literal 3 [template] +// CHECK:STDOUT: %.14: i32 = int_value 2 [template] +// CHECK:STDOUT: %.15: i32 = int_value 3 [template] // CHECK:STDOUT: %array: %.12 = tuple_value (%.7, %.8, %.2, %.9) [template] // CHECK:STDOUT: } // CHECK:STDOUT: @@ -54,7 +54,7 @@ var array_index: [i32; 1] = (0,) as [i32; ((5, 7, 1, 9) as [i32; 4])[2]]; // CHECK:STDOUT: } // CHECK:STDOUT: %Core.import = import Core // CHECK:STDOUT: %int.make_type_32: init type = call constants.%Int32() [template = i32] -// CHECK:STDOUT: %.loc16_24: i32 = int_literal 1 [template = constants.%.2] +// CHECK:STDOUT: %.loc16_24: i32 = int_value 1 [template = constants.%.2] // CHECK:STDOUT: %.loc16_19.1: type = value_of_initializer %int.make_type_32 [template = i32] // CHECK:STDOUT: %.loc16_19.2: type = converted %int.make_type_32, %.loc16_19.1 [template = i32] // CHECK:STDOUT: %.loc16_25: type = array_type %.loc16_24, i32 [template = constants.%.3] @@ -66,35 +66,35 @@ var array_index: [i32; 1] = (0,) as [i32; ((5, 7, 1, 9) as [i32; 4])[2]]; // CHECK:STDOUT: // CHECK:STDOUT: fn @__global_init() { // CHECK:STDOUT: !entry: -// CHECK:STDOUT: %.loc16_30: i32 = int_literal 0 [template = constants.%.5] +// CHECK:STDOUT: %.loc16_30: i32 = int_value 0 [template = constants.%.5] // CHECK:STDOUT: %.loc16_32: %.6 = tuple_literal (%.loc16_30) // CHECK:STDOUT: %int.make_type_32.loc16_38: init type = call constants.%Int32() [template = i32] -// CHECK:STDOUT: %.loc16_45: i32 = int_literal 5 [template = constants.%.7] -// CHECK:STDOUT: %.loc16_48: i32 = int_literal 7 [template = constants.%.8] -// CHECK:STDOUT: %.loc16_51: i32 = int_literal 1 [template = constants.%.2] -// CHECK:STDOUT: %.loc16_54: i32 = int_literal 9 [template = constants.%.9] +// CHECK:STDOUT: %.loc16_45: i32 = int_value 5 [template = constants.%.7] +// CHECK:STDOUT: %.loc16_48: i32 = int_value 7 [template = constants.%.8] +// CHECK:STDOUT: %.loc16_51: i32 = int_value 1 [template = constants.%.2] +// CHECK:STDOUT: %.loc16_54: i32 = int_value 9 [template = constants.%.9] // CHECK:STDOUT: %.loc16_55.1: %.10 = tuple_literal (%.loc16_45, %.loc16_48, %.loc16_51, %.loc16_54) // CHECK:STDOUT: %int.make_type_32.loc16_61: init type = call constants.%Int32() [template = i32] -// CHECK:STDOUT: %.loc16_66: i32 = int_literal 4 [template = constants.%.11] +// CHECK:STDOUT: %.loc16_66: i32 = int_value 4 [template = constants.%.11] // CHECK:STDOUT: %.loc16_61.1: type = value_of_initializer %int.make_type_32.loc16_61 [template = i32] // CHECK:STDOUT: %.loc16_61.2: type = converted %int.make_type_32.loc16_61, %.loc16_61.1 [template = i32] // CHECK:STDOUT: %.loc16_67: type = array_type %.loc16_66, i32 [template = constants.%.12] // CHECK:STDOUT: %.loc16_55.2: ref %.12 = temporary_storage -// CHECK:STDOUT: %.loc16_55.3: i32 = int_literal 0 [template = constants.%.5] +// CHECK:STDOUT: %.loc16_55.3: i32 = int_value 0 [template = constants.%.5] // CHECK:STDOUT: %.loc16_55.4: ref i32 = array_index %.loc16_55.2, %.loc16_55.3 // CHECK:STDOUT: %.loc16_55.5: init i32 = initialize_from %.loc16_45 to %.loc16_55.4 [template = constants.%.7] -// CHECK:STDOUT: %.loc16_55.6: i32 = int_literal 1 [template = constants.%.2] +// CHECK:STDOUT: %.loc16_55.6: i32 = int_value 1 [template = constants.%.2] // CHECK:STDOUT: %.loc16_55.7: ref i32 = array_index %.loc16_55.2, %.loc16_55.6 // CHECK:STDOUT: %.loc16_55.8: init i32 = initialize_from %.loc16_48 to %.loc16_55.7 [template = constants.%.8] -// CHECK:STDOUT: %.loc16_55.9: i32 = int_literal 2 [template = constants.%.14] +// CHECK:STDOUT: %.loc16_55.9: i32 = int_value 2 [template = constants.%.14] // CHECK:STDOUT: %.loc16_55.10: ref i32 = array_index %.loc16_55.2, %.loc16_55.9 // CHECK:STDOUT: %.loc16_55.11: init i32 = initialize_from %.loc16_51 to %.loc16_55.10 [template = constants.%.2] -// CHECK:STDOUT: %.loc16_55.12: i32 = int_literal 3 [template = constants.%.15] +// CHECK:STDOUT: %.loc16_55.12: i32 = int_value 3 [template = constants.%.15] // CHECK:STDOUT: %.loc16_55.13: ref i32 = array_index %.loc16_55.2, %.loc16_55.12 // CHECK:STDOUT: %.loc16_55.14: init i32 = initialize_from %.loc16_54 to %.loc16_55.13 [template = constants.%.9] // CHECK:STDOUT: %.loc16_55.15: init %.12 = array_init (%.loc16_55.5, %.loc16_55.8, %.loc16_55.11, %.loc16_55.14) to %.loc16_55.2 [template = constants.%array] // CHECK:STDOUT: %.loc16_57.1: init %.12 = converted %.loc16_55.1, %.loc16_55.15 [template = constants.%array] -// CHECK:STDOUT: %.loc16_70: i32 = int_literal 2 [template = constants.%.14] +// CHECK:STDOUT: %.loc16_70: i32 = int_value 2 [template = constants.%.14] // CHECK:STDOUT: %.loc16_57.2: ref %.12 = temporary %.loc16_55.2, %.loc16_57.1 // CHECK:STDOUT: %.loc16_71.1: ref i32 = array_index %.loc16_57.2, %.loc16_70 // CHECK:STDOUT: %.loc16_71.2: i32 = bind_value %.loc16_71.1 diff --git a/toolchain/check/testdata/eval/symbolic.carbon b/toolchain/check/testdata/eval/symbolic.carbon index 0062f0adc0848..ea0ff53d11476 100644 --- a/toolchain/check/testdata/eval/symbolic.carbon +++ b/toolchain/check/testdata/eval/symbolic.carbon @@ -30,7 +30,7 @@ fn F(T:! type) { // CHECK:STDOUT: %.6: type = tuple_type (%.2, %T) [symbolic] // CHECK:STDOUT: %.7: type = ptr_type %.6 [symbolic] // CHECK:STDOUT: %.8: type = struct_type {.a: %T} [symbolic] -// CHECK:STDOUT: %.9: i32 = int_literal 5 [template] +// CHECK:STDOUT: %.9: i32 = int_value 5 [template] // CHECK:STDOUT: %.10: type = array_type %.9, %T [symbolic] // CHECK:STDOUT: %.11: type = ptr_type %.10 [symbolic] // CHECK:STDOUT: } @@ -83,7 +83,7 @@ fn F(T:! type) { // CHECK:STDOUT: %v.var: ref @F.%.loc14_16.2 (%.8) = var v // CHECK:STDOUT: %v: ref @F.%.loc14_16.2 (%.8) = bind_name v, %v.var // CHECK:STDOUT: %T.ref.loc15: type = name_ref T, %T.loc12_6.1 [symbolic = %T.loc12_6.2 (constants.%T)] -// CHECK:STDOUT: %.loc15_14: i32 = int_literal 5 [template = constants.%.9] +// CHECK:STDOUT: %.loc15_14: i32 = int_value 5 [template = constants.%.9] // CHECK:STDOUT: %.loc15_15.1: type = array_type %.loc15_14, %T [symbolic = %.loc15_15.2 (constants.%.10)] // CHECK:STDOUT: %w.var: ref @F.%.loc15_15.2 (%.10) = var w // CHECK:STDOUT: %w: ref @F.%.loc15_15.2 (%.10) = bind_name w, %w.var diff --git a/toolchain/check/testdata/expr_category/in_place_tuple_init.carbon b/toolchain/check/testdata/expr_category/in_place_tuple_init.carbon index 5fb73ea8737ad..03caf8a6bab7f 100644 --- a/toolchain/check/testdata/expr_category/in_place_tuple_init.carbon +++ b/toolchain/check/testdata/expr_category/in_place_tuple_init.carbon @@ -35,7 +35,7 @@ fn H() -> i32 { // CHECK:STDOUT: %.4: type = ptr_type %.3 [template] // CHECK:STDOUT: %H.type: type = fn_type @H [template] // CHECK:STDOUT: %H: %H.type = struct_value () [template] -// CHECK:STDOUT: %.5: i32 = int_literal 0 [template] +// CHECK:STDOUT: %.5: i32 = int_value 0 [template] // CHECK:STDOUT: } // CHECK:STDOUT: // CHECK:STDOUT: imports { @@ -133,7 +133,7 @@ fn H() -> i32 { // CHECK:STDOUT: %G.ref: %G.type = name_ref G, file.%G.decl [template = constants.%G] // CHECK:STDOUT: %.loc20_11.1: ref %.3 = temporary_storage // CHECK:STDOUT: %G.call: init %.3 = call %G.ref() to %.loc20_11.1 -// CHECK:STDOUT: %.loc20_14: i32 = int_literal 0 [template = constants.%.5] +// CHECK:STDOUT: %.loc20_14: i32 = int_value 0 [template = constants.%.5] // CHECK:STDOUT: %.loc20_11.2: ref %.3 = temporary %.loc20_11.1, %G.call // CHECK:STDOUT: %.loc20_13.1: ref i32 = tuple_access %.loc20_11.2, element0 // CHECK:STDOUT: %.loc20_13.2: i32 = bind_value %.loc20_13.1 diff --git a/toolchain/check/testdata/function/builtin/call.carbon b/toolchain/check/testdata/function/builtin/call.carbon index 809498149a30a..d55073e095acf 100644 --- a/toolchain/check/testdata/function/builtin/call.carbon +++ b/toolchain/check/testdata/function/builtin/call.carbon @@ -20,9 +20,9 @@ var arr: [i32; Add(1, 2)]; // CHECK:STDOUT: %Int32: %Int32.type = struct_value () [template] // CHECK:STDOUT: %Add.type: type = fn_type @Add [template] // CHECK:STDOUT: %Add: %Add.type = struct_value () [template] -// CHECK:STDOUT: %.2: i32 = int_literal 1 [template] -// CHECK:STDOUT: %.3: i32 = int_literal 2 [template] -// CHECK:STDOUT: %.4: i32 = int_literal 3 [template] +// CHECK:STDOUT: %.2: i32 = int_value 1 [template] +// CHECK:STDOUT: %.3: i32 = int_value 2 [template] +// CHECK:STDOUT: %.4: i32 = int_value 3 [template] // CHECK:STDOUT: %.5: type = array_type %.4, i32 [template] // CHECK:STDOUT: %.6: type = ptr_type %.5 [template] // CHECK:STDOUT: } @@ -69,8 +69,8 @@ var arr: [i32; Add(1, 2)]; // CHECK:STDOUT: } // CHECK:STDOUT: %int.make_type_32: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %Add.ref: %Add.type = name_ref Add, %Add.decl [template = constants.%Add] -// CHECK:STDOUT: %.loc13_20: i32 = int_literal 1 [template = constants.%.2] -// CHECK:STDOUT: %.loc13_23: i32 = int_literal 2 [template = constants.%.3] +// CHECK:STDOUT: %.loc13_20: i32 = int_value 1 [template = constants.%.2] +// CHECK:STDOUT: %.loc13_23: i32 = int_value 2 [template = constants.%.3] // CHECK:STDOUT: %int.sadd: init i32 = call %Add.ref(%.loc13_20, %.loc13_23) [template = constants.%.4] // CHECK:STDOUT: %.loc13_11.1: type = value_of_initializer %int.make_type_32 [template = i32] // CHECK:STDOUT: %.loc13_11.2: type = converted %int.make_type_32, %.loc13_11.1 [template = i32] diff --git a/toolchain/check/testdata/function/builtin/method.carbon b/toolchain/check/testdata/function/builtin/method.carbon index e90cbcb1c1878..a92497c01c0fa 100644 --- a/toolchain/check/testdata/function/builtin/method.carbon +++ b/toolchain/check/testdata/function/builtin/method.carbon @@ -33,10 +33,10 @@ var arr: [i32; 1.(I.F)(2)]; // CHECK:STDOUT: %F.type.2: type = fn_type @F.2 [template] // CHECK:STDOUT: %F.2: %F.type.2 = struct_value () [template] // CHECK:STDOUT: %.4: = interface_witness (%F.2) [template] -// CHECK:STDOUT: %.5: i32 = int_literal 1 [template] +// CHECK:STDOUT: %.5: i32 = int_value 1 [template] // CHECK:STDOUT: %.6: = bound_method %.5, %F.2 [template] -// CHECK:STDOUT: %.7: i32 = int_literal 2 [template] -// CHECK:STDOUT: %.8: i32 = int_literal 3 [template] +// CHECK:STDOUT: %.7: i32 = int_value 2 [template] +// CHECK:STDOUT: %.8: i32 = int_value 3 [template] // CHECK:STDOUT: %.9: type = array_type %.8, i32 [template] // CHECK:STDOUT: %.10: type = ptr_type %.9 [template] // CHECK:STDOUT: } @@ -65,12 +65,12 @@ var arr: [i32; 1.(I.F)(2)]; // CHECK:STDOUT: %I.ref: type = name_ref I, file.%I.decl [template = constants.%I.type] // CHECK:STDOUT: } // CHECK:STDOUT: %int.make_type_32: init type = call constants.%Int32() [template = i32] -// CHECK:STDOUT: %.loc19_16: i32 = int_literal 1 [template = constants.%.5] +// CHECK:STDOUT: %.loc19_16: i32 = int_value 1 [template = constants.%.5] // CHECK:STDOUT: %I.ref: type = name_ref I, %I.decl [template = constants.%I.type] // CHECK:STDOUT: %F.ref: %.2 = name_ref F, @I.%.loc12 [template = constants.%.3] // CHECK:STDOUT: %.loc19_17.1: %F.type.1 = interface_witness_access constants.%.4, element0 [template = constants.%F.2] // CHECK:STDOUT: %.loc19_17.2: = bound_method %.loc19_16, %.loc19_17.1 [template = constants.%.6] -// CHECK:STDOUT: %.loc19_24: i32 = int_literal 2 [template = constants.%.7] +// CHECK:STDOUT: %.loc19_24: i32 = int_value 2 [template = constants.%.7] // CHECK:STDOUT: %int.sadd: init i32 = call %.loc19_17.2(%.loc19_16, %.loc19_24) [template = constants.%.8] // CHECK:STDOUT: %.loc19_11.1: type = value_of_initializer %int.make_type_32 [template = i32] // CHECK:STDOUT: %.loc19_11.2: type = converted %int.make_type_32, %.loc19_11.1 [template = i32] diff --git a/toolchain/check/testdata/function/builtin/no_prelude/call_from_operator.carbon b/toolchain/check/testdata/function/builtin/no_prelude/call_from_operator.carbon index 5476d01d70e31..67049d2f7d566 100644 --- a/toolchain/check/testdata/function/builtin/no_prelude/call_from_operator.carbon +++ b/toolchain/check/testdata/function/builtin/no_prelude/call_from_operator.carbon @@ -118,19 +118,19 @@ var arr: [i32; 1 + 2] = (3, 4, 3 + 4); // CHECK:STDOUT: %Op.type.2: type = fn_type @Op.2 [template] // CHECK:STDOUT: %Op.2: %Op.type.2 = struct_value () [template] // CHECK:STDOUT: %.2: = interface_witness (%Op.1) [template] -// CHECK:STDOUT: %.3: i32 = int_literal 1 [template] -// CHECK:STDOUT: %.4: i32 = int_literal 2 [template] +// CHECK:STDOUT: %.3: i32 = int_value 1 [template] +// CHECK:STDOUT: %.4: i32 = int_value 2 [template] // CHECK:STDOUT: %.5: type = assoc_entity_type %Add.type, %Op.type.2 [template] // CHECK:STDOUT: %.6: %.5 = assoc_entity element0, imports.%import_ref.6 [template] // CHECK:STDOUT: %.7: = bound_method %.3, %Op.1 [template] -// CHECK:STDOUT: %.8: i32 = int_literal 3 [template] +// CHECK:STDOUT: %.8: i32 = int_value 3 [template] // CHECK:STDOUT: %.9: type = array_type %.8, i32 [template] // CHECK:STDOUT: %.10: type = ptr_type %.9 [template] -// CHECK:STDOUT: %.11: i32 = int_literal 4 [template] +// CHECK:STDOUT: %.11: i32 = int_value 4 [template] // CHECK:STDOUT: %.12: = bound_method %.8, %Op.1 [template] -// CHECK:STDOUT: %.13: i32 = int_literal 7 [template] +// CHECK:STDOUT: %.13: i32 = int_value 7 [template] // CHECK:STDOUT: %.14: type = tuple_type (i32, i32, i32) [template] -// CHECK:STDOUT: %.15: i32 = int_literal 0 [template] +// CHECK:STDOUT: %.15: i32 = int_value 0 [template] // CHECK:STDOUT: %array: %.9 = tuple_value (%.8, %.11, %.13) [template] // CHECK:STDOUT: } // CHECK:STDOUT: @@ -162,8 +162,8 @@ var arr: [i32; 1 + 2] = (3, 4, 3 + 4); // CHECK:STDOUT: %Add.ref: type = name_ref Add, imports.%import_ref.2 [template = constants.%Add.type] // CHECK:STDOUT: } // CHECK:STDOUT: %int.make_type_32: init type = call constants.%Int32() [template = i32] -// CHECK:STDOUT: %.loc10_16: i32 = int_literal 1 [template = constants.%.3] -// CHECK:STDOUT: %.loc10_20: i32 = int_literal 2 [template = constants.%.4] +// CHECK:STDOUT: %.loc10_16: i32 = int_value 1 [template = constants.%.3] +// CHECK:STDOUT: %.loc10_20: i32 = int_value 2 [template = constants.%.4] // CHECK:STDOUT: %Op.ref: %.5 = name_ref Op, imports.%import_ref.4 [template = constants.%.6] // CHECK:STDOUT: %.loc10_18.1: %Op.type.2 = interface_witness_access constants.%.2, element0 [template = constants.%Op.1] // CHECK:STDOUT: %.loc10_18.2: = bound_method %.loc10_16, %.loc10_18.1 [template = constants.%.7] @@ -220,22 +220,22 @@ var arr: [i32; 1 + 2] = (3, 4, 3 + 4); // CHECK:STDOUT: // CHECK:STDOUT: fn @__global_init() { // CHECK:STDOUT: !entry: -// CHECK:STDOUT: %.loc10_26: i32 = int_literal 3 [template = constants.%.8] -// CHECK:STDOUT: %.loc10_29: i32 = int_literal 4 [template = constants.%.11] -// CHECK:STDOUT: %.loc10_32: i32 = int_literal 3 [template = constants.%.8] -// CHECK:STDOUT: %.loc10_36: i32 = int_literal 4 [template = constants.%.11] +// CHECK:STDOUT: %.loc10_26: i32 = int_value 3 [template = constants.%.8] +// CHECK:STDOUT: %.loc10_29: i32 = int_value 4 [template = constants.%.11] +// CHECK:STDOUT: %.loc10_32: i32 = int_value 3 [template = constants.%.8] +// CHECK:STDOUT: %.loc10_36: i32 = int_value 4 [template = constants.%.11] // CHECK:STDOUT: %Op.ref: %.5 = name_ref Op, imports.%import_ref.4 [template = constants.%.6] // CHECK:STDOUT: %.loc10_34.1: %Op.type.2 = interface_witness_access constants.%.2, element0 [template = constants.%Op.1] // CHECK:STDOUT: %.loc10_34.2: = bound_method %.loc10_32, %.loc10_34.1 [template = constants.%.12] // CHECK:STDOUT: %int.sadd: init i32 = call %.loc10_34.2(%.loc10_32, %.loc10_36) [template = constants.%.13] // CHECK:STDOUT: %.loc10_37.1: %.14 = tuple_literal (%.loc10_26, %.loc10_29, %int.sadd) -// CHECK:STDOUT: %.loc10_37.2: i32 = int_literal 0 [template = constants.%.15] +// CHECK:STDOUT: %.loc10_37.2: i32 = int_value 0 [template = constants.%.15] // CHECK:STDOUT: %.loc10_37.3: ref i32 = array_index file.%arr.var, %.loc10_37.2 // CHECK:STDOUT: %.loc10_37.4: init i32 = initialize_from %.loc10_26 to %.loc10_37.3 [template = constants.%.8] -// CHECK:STDOUT: %.loc10_37.5: i32 = int_literal 1 [template = constants.%.3] +// CHECK:STDOUT: %.loc10_37.5: i32 = int_value 1 [template = constants.%.3] // CHECK:STDOUT: %.loc10_37.6: ref i32 = array_index file.%arr.var, %.loc10_37.5 // CHECK:STDOUT: %.loc10_37.7: init i32 = initialize_from %.loc10_29 to %.loc10_37.6 [template = constants.%.11] -// CHECK:STDOUT: %.loc10_37.8: i32 = int_literal 2 [template = constants.%.4] +// CHECK:STDOUT: %.loc10_37.8: i32 = int_value 2 [template = constants.%.4] // CHECK:STDOUT: %.loc10_37.9: ref i32 = array_index file.%arr.var, %.loc10_37.8 // CHECK:STDOUT: %.loc10_37.10: init i32 = initialize_from %int.sadd to %.loc10_37.9 [template = constants.%.13] // CHECK:STDOUT: %.loc10_37.11: init %.9 = array_init (%.loc10_37.4, %.loc10_37.7, %.loc10_37.10) to file.%arr.var [template = constants.%array] diff --git a/toolchain/check/testdata/function/builtin/no_prelude/import.carbon b/toolchain/check/testdata/function/builtin/no_prelude/import.carbon index fb93b02c19441..4447f0601a1c6 100644 --- a/toolchain/check/testdata/function/builtin/no_prelude/import.carbon +++ b/toolchain/check/testdata/function/builtin/no_prelude/import.carbon @@ -81,13 +81,13 @@ var arr: [i32; Core.TestAdd(1, 2)] = (1, 2, 3); // CHECK:STDOUT: %Int32: %Int32.type = struct_value () [template] // CHECK:STDOUT: %TestAdd.type: type = fn_type @TestAdd [template] // CHECK:STDOUT: %TestAdd: %TestAdd.type = struct_value () [template] -// CHECK:STDOUT: %.2: i32 = int_literal 1 [template] -// CHECK:STDOUT: %.3: i32 = int_literal 2 [template] -// CHECK:STDOUT: %.4: i32 = int_literal 3 [template] +// CHECK:STDOUT: %.2: i32 = int_value 1 [template] +// CHECK:STDOUT: %.3: i32 = int_value 2 [template] +// CHECK:STDOUT: %.4: i32 = int_value 3 [template] // CHECK:STDOUT: %.5: type = array_type %.4, i32 [template] // CHECK:STDOUT: %.6: type = ptr_type %.5 [template] // CHECK:STDOUT: %.7: type = tuple_type (i32, i32, i32) [template] -// CHECK:STDOUT: %.8: i32 = int_literal 0 [template] +// CHECK:STDOUT: %.8: i32 = int_value 0 [template] // CHECK:STDOUT: %array: %.5 = tuple_value (%.2, %.3, %.4) [template] // CHECK:STDOUT: } // CHECK:STDOUT: @@ -110,8 +110,8 @@ var arr: [i32; Core.TestAdd(1, 2)] = (1, 2, 3); // CHECK:STDOUT: %int.make_type_32: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %Core.ref: = name_ref Core, imports.%Core [template = imports.%Core] // CHECK:STDOUT: %TestAdd.ref: %TestAdd.type = name_ref TestAdd, imports.%import_ref.2 [template = constants.%TestAdd] -// CHECK:STDOUT: %.loc4_29: i32 = int_literal 1 [template = constants.%.2] -// CHECK:STDOUT: %.loc4_32: i32 = int_literal 2 [template = constants.%.3] +// CHECK:STDOUT: %.loc4_29: i32 = int_value 1 [template = constants.%.2] +// CHECK:STDOUT: %.loc4_32: i32 = int_value 2 [template = constants.%.3] // CHECK:STDOUT: %int.sadd: init i32 = call %TestAdd.ref(%.loc4_29, %.loc4_32) [template = constants.%.4] // CHECK:STDOUT: %.loc4_11.1: type = value_of_initializer %int.make_type_32 [template = i32] // CHECK:STDOUT: %.loc4_11.2: type = converted %int.make_type_32, %.loc4_11.1 [template = i32] @@ -126,17 +126,17 @@ var arr: [i32; Core.TestAdd(1, 2)] = (1, 2, 3); // CHECK:STDOUT: // CHECK:STDOUT: fn @__global_init() { // CHECK:STDOUT: !entry: -// CHECK:STDOUT: %.loc4_39: i32 = int_literal 1 [template = constants.%.2] -// CHECK:STDOUT: %.loc4_42: i32 = int_literal 2 [template = constants.%.3] -// CHECK:STDOUT: %.loc4_45: i32 = int_literal 3 [template = constants.%.4] +// CHECK:STDOUT: %.loc4_39: i32 = int_value 1 [template = constants.%.2] +// CHECK:STDOUT: %.loc4_42: i32 = int_value 2 [template = constants.%.3] +// CHECK:STDOUT: %.loc4_45: i32 = int_value 3 [template = constants.%.4] // CHECK:STDOUT: %.loc4_46.1: %.7 = tuple_literal (%.loc4_39, %.loc4_42, %.loc4_45) -// CHECK:STDOUT: %.loc4_46.2: i32 = int_literal 0 [template = constants.%.8] +// CHECK:STDOUT: %.loc4_46.2: i32 = int_value 0 [template = constants.%.8] // CHECK:STDOUT: %.loc4_46.3: ref i32 = array_index file.%arr.var, %.loc4_46.2 // CHECK:STDOUT: %.loc4_46.4: init i32 = initialize_from %.loc4_39 to %.loc4_46.3 [template = constants.%.2] -// CHECK:STDOUT: %.loc4_46.5: i32 = int_literal 1 [template = constants.%.2] +// CHECK:STDOUT: %.loc4_46.5: i32 = int_value 1 [template = constants.%.2] // CHECK:STDOUT: %.loc4_46.6: ref i32 = array_index file.%arr.var, %.loc4_46.5 // CHECK:STDOUT: %.loc4_46.7: init i32 = initialize_from %.loc4_42 to %.loc4_46.6 [template = constants.%.3] -// CHECK:STDOUT: %.loc4_46.8: i32 = int_literal 2 [template = constants.%.3] +// CHECK:STDOUT: %.loc4_46.8: i32 = int_value 2 [template = constants.%.3] // CHECK:STDOUT: %.loc4_46.9: ref i32 = array_index file.%arr.var, %.loc4_46.8 // CHECK:STDOUT: %.loc4_46.10: init i32 = initialize_from %.loc4_45 to %.loc4_46.9 [template = constants.%.4] // CHECK:STDOUT: %.loc4_46.11: init %.5 = array_init (%.loc4_46.4, %.loc4_46.7, %.loc4_46.10) to file.%arr.var [template = constants.%array] diff --git a/toolchain/check/testdata/function/call/fail_param_count.carbon b/toolchain/check/testdata/function/call/fail_param_count.carbon index e129e7bfc92c4..52b6df1ead329 100644 --- a/toolchain/check/testdata/function/call/fail_param_count.carbon +++ b/toolchain/check/testdata/function/call/fail_param_count.carbon @@ -78,8 +78,8 @@ fn Main() { // CHECK:STDOUT: %Run2: %Run2.type = struct_value () [template] // CHECK:STDOUT: %Main.type: type = fn_type @Main [template] // CHECK:STDOUT: %Main: %Main.type = struct_value () [template] -// CHECK:STDOUT: %.2: i32 = int_literal 1 [template] -// CHECK:STDOUT: %.3: i32 = int_literal 0 [template] +// CHECK:STDOUT: %.2: i32 = int_value 1 [template] +// CHECK:STDOUT: %.3: i32 = int_value 0 [template] // CHECK:STDOUT: } // CHECK:STDOUT: // CHECK:STDOUT: imports { @@ -151,17 +151,17 @@ fn Main() { // CHECK:STDOUT: fn @Main() { // CHECK:STDOUT: !entry: // CHECK:STDOUT: %Run0.ref.loc23: %Run0.type = name_ref Run0, file.%Run0.decl [template = constants.%Run0] -// CHECK:STDOUT: %.loc23: i32 = int_literal 1 [template = constants.%.2] +// CHECK:STDOUT: %.loc23: i32 = int_value 1 [template = constants.%.2] // CHECK:STDOUT: %Run0.ref.loc31: %Run0.type = name_ref Run0, file.%Run0.decl [template = constants.%Run0] -// CHECK:STDOUT: %.loc31_8: i32 = int_literal 0 [template = constants.%.3] -// CHECK:STDOUT: %.loc31_11: i32 = int_literal 1 [template = constants.%.2] +// CHECK:STDOUT: %.loc31_8: i32 = int_value 0 [template = constants.%.3] +// CHECK:STDOUT: %.loc31_11: i32 = int_value 1 [template = constants.%.2] // CHECK:STDOUT: %Run1.ref.loc40: %Run1.type = name_ref Run1, file.%Run1.decl [template = constants.%Run1] // CHECK:STDOUT: %Run1.ref.loc48: %Run1.type = name_ref Run1, file.%Run1.decl [template = constants.%Run1] -// CHECK:STDOUT: %.loc48_8: i32 = int_literal 0 [template = constants.%.3] -// CHECK:STDOUT: %.loc48_11: i32 = int_literal 1 [template = constants.%.2] +// CHECK:STDOUT: %.loc48_8: i32 = int_value 0 [template = constants.%.3] +// CHECK:STDOUT: %.loc48_11: i32 = int_value 1 [template = constants.%.2] // CHECK:STDOUT: %Run2.ref.loc57: %Run2.type = name_ref Run2, file.%Run2.decl [template = constants.%Run2] // CHECK:STDOUT: %Run2.ref.loc64: %Run2.type = name_ref Run2, file.%Run2.decl [template = constants.%Run2] -// CHECK:STDOUT: %.loc64: i32 = int_literal 0 [template = constants.%.3] +// CHECK:STDOUT: %.loc64: i32 = int_value 0 [template = constants.%.3] // CHECK:STDOUT: return // CHECK:STDOUT: } // CHECK:STDOUT: diff --git a/toolchain/check/testdata/function/call/fail_return_type_mismatch.carbon b/toolchain/check/testdata/function/call/fail_return_type_mismatch.carbon index e87f81c7199f0..35e05ae8891f2 100644 --- a/toolchain/check/testdata/function/call/fail_return_type_mismatch.carbon +++ b/toolchain/check/testdata/function/call/fail_return_type_mismatch.carbon @@ -23,7 +23,7 @@ fn Run() { // CHECK:STDOUT: --- fail_return_type_mismatch.carbon // CHECK:STDOUT: // CHECK:STDOUT: constants { -// CHECK:STDOUT: %.1: Core.BigInt = int_literal 64 [template] +// CHECK:STDOUT: %.1: Core.BigInt = int_value 64 [template] // CHECK:STDOUT: %Float.type: type = fn_type @Float [template] // CHECK:STDOUT: %.2: type = tuple_type () [template] // CHECK:STDOUT: %Float: %Float.type = struct_value () [template] @@ -82,7 +82,7 @@ fn Run() { // CHECK:STDOUT: %return.patt: f64 = return_slot_pattern // CHECK:STDOUT: %return.param_patt: f64 = out_param_pattern %return.patt, runtime_param0 // CHECK:STDOUT: } { -// CHECK:STDOUT: %.loc11_13.1: Core.BigInt = int_literal 64 [template = constants.%.1] +// CHECK:STDOUT: %.loc11_13.1: Core.BigInt = int_value 64 [template = constants.%.1] // CHECK:STDOUT: %float.make_type: init type = call constants.%Float(%.loc11_13.1) [template = f64] // CHECK:STDOUT: %.loc11_13.2: type = value_of_initializer %float.make_type [template = f64] // CHECK:STDOUT: %.loc11_13.3: type = converted %float.make_type, %.loc11_13.2 [template = f64] diff --git a/toolchain/check/testdata/function/call/i32.carbon b/toolchain/check/testdata/function/call/i32.carbon index 379e748d06b10..132ed40e12f33 100644 --- a/toolchain/check/testdata/function/call/i32.carbon +++ b/toolchain/check/testdata/function/call/i32.carbon @@ -26,7 +26,7 @@ fn Main() { // CHECK:STDOUT: %Echo: %Echo.type = struct_value () [template] // CHECK:STDOUT: %Main.type: type = fn_type @Main [template] // CHECK:STDOUT: %Main: %Main.type = struct_value () [template] -// CHECK:STDOUT: %.2: i32 = int_literal 1 [template] +// CHECK:STDOUT: %.2: i32 = int_value 1 [template] // CHECK:STDOUT: } // CHECK:STDOUT: // CHECK:STDOUT: imports { @@ -81,7 +81,7 @@ fn Main() { // CHECK:STDOUT: %b.var: ref i32 = var b // CHECK:STDOUT: %b: ref i32 = bind_name b, %b.var // CHECK:STDOUT: %Echo.ref: %Echo.type = name_ref Echo, file.%Echo.decl [template = constants.%Echo] -// CHECK:STDOUT: %.loc16_21: i32 = int_literal 1 [template = constants.%.2] +// CHECK:STDOUT: %.loc16_21: i32 = int_value 1 [template = constants.%.2] // CHECK:STDOUT: %Echo.call: init i32 = call %Echo.ref(%.loc16_21) // CHECK:STDOUT: assign %b.var, %Echo.call // CHECK:STDOUT: return diff --git a/toolchain/check/testdata/function/call/more_param_ir.carbon b/toolchain/check/testdata/function/call/more_param_ir.carbon index 98cbfdcb3bacc..8fd65972d34fc 100644 --- a/toolchain/check/testdata/function/call/more_param_ir.carbon +++ b/toolchain/check/testdata/function/call/more_param_ir.carbon @@ -28,10 +28,10 @@ fn Main() { // CHECK:STDOUT: %Main: %Main.type = struct_value () [template] // CHECK:STDOUT: %.2: type = tuple_type (type) [template] // CHECK:STDOUT: %.3: type = tuple_type (i32) [template] -// CHECK:STDOUT: %.4: i32 = int_literal 1 [template] +// CHECK:STDOUT: %.4: i32 = int_value 1 [template] // CHECK:STDOUT: %tuple: %.3 = tuple_value (%.4) [template] -// CHECK:STDOUT: %.5: i32 = int_literal 0 [template] -// CHECK:STDOUT: %.6: i32 = int_literal 6 [template] +// CHECK:STDOUT: %.5: i32 = int_value 0 [template] +// CHECK:STDOUT: %.6: i32 = int_value 6 [template] // CHECK:STDOUT: } // CHECK:STDOUT: // CHECK:STDOUT: imports { @@ -86,16 +86,16 @@ fn Main() { // CHECK:STDOUT: %.loc14_15.4: type = converted %.loc14_15.1, constants.%.3 [template = constants.%.3] // CHECK:STDOUT: %x.var: ref %.3 = var x // CHECK:STDOUT: %x: ref %.3 = bind_name x, %x.var -// CHECK:STDOUT: %.loc14_20: i32 = int_literal 1 [template = constants.%.4] +// CHECK:STDOUT: %.loc14_20: i32 = int_value 1 [template = constants.%.4] // CHECK:STDOUT: %.loc14_22.1: %.3 = tuple_literal (%.loc14_20) // CHECK:STDOUT: %.loc14_22.2: init %.3 = tuple_init (%.loc14_20) to %x.var [template = constants.%tuple] // CHECK:STDOUT: %.loc14_23: init %.3 = converted %.loc14_22.1, %.loc14_22.2 [template = constants.%tuple] // CHECK:STDOUT: assign %x.var, %.loc14_23 // CHECK:STDOUT: %Foo.ref: %Foo.type = name_ref Foo, file.%Foo.decl [template = constants.%Foo] // CHECK:STDOUT: %x.ref: ref %.3 = name_ref x, %x -// CHECK:STDOUT: %.loc16_9: i32 = int_literal 0 [template = constants.%.5] +// CHECK:STDOUT: %.loc16_9: i32 = int_value 0 [template = constants.%.5] // CHECK:STDOUT: %.loc16_8.1: ref i32 = tuple_access %x.ref, element0 -// CHECK:STDOUT: %.loc16_12: i32 = int_literal 6 [template = constants.%.6] +// CHECK:STDOUT: %.loc16_12: i32 = int_value 6 [template = constants.%.6] // CHECK:STDOUT: %.loc16_8.2: i32 = bind_value %.loc16_8.1 // CHECK:STDOUT: %Foo.call: init %.1 = call %Foo.ref(%.loc16_8.2, %.loc16_12) // CHECK:STDOUT: return diff --git a/toolchain/check/testdata/function/call/params_one.carbon b/toolchain/check/testdata/function/call/params_one.carbon index da0d367c7c04b..73c6afc6d6d5f 100644 --- a/toolchain/check/testdata/function/call/params_one.carbon +++ b/toolchain/check/testdata/function/call/params_one.carbon @@ -24,7 +24,7 @@ fn Main() { // CHECK:STDOUT: %Foo: %Foo.type = struct_value () [template] // CHECK:STDOUT: %Main.type: type = fn_type @Main [template] // CHECK:STDOUT: %Main: %Main.type = struct_value () [template] -// CHECK:STDOUT: %.2: i32 = int_literal 1 [template] +// CHECK:STDOUT: %.2: i32 = int_value 1 [template] // CHECK:STDOUT: } // CHECK:STDOUT: // CHECK:STDOUT: imports { @@ -66,7 +66,7 @@ fn Main() { // CHECK:STDOUT: fn @Main() { // CHECK:STDOUT: !entry: // CHECK:STDOUT: %Foo.ref: %Foo.type = name_ref Foo, file.%Foo.decl [template = constants.%Foo] -// CHECK:STDOUT: %.loc14: i32 = int_literal 1 [template = constants.%.2] +// CHECK:STDOUT: %.loc14: i32 = int_value 1 [template = constants.%.2] // CHECK:STDOUT: %Foo.call: init %.1 = call %Foo.ref(%.loc14) // CHECK:STDOUT: return // CHECK:STDOUT: } diff --git a/toolchain/check/testdata/function/call/params_one_comma.carbon b/toolchain/check/testdata/function/call/params_one_comma.carbon index c2bd89d5887ae..1050ce085843b 100644 --- a/toolchain/check/testdata/function/call/params_one_comma.carbon +++ b/toolchain/check/testdata/function/call/params_one_comma.carbon @@ -25,7 +25,7 @@ fn Main() { // CHECK:STDOUT: %Foo: %Foo.type = struct_value () [template] // CHECK:STDOUT: %Main.type: type = fn_type @Main [template] // CHECK:STDOUT: %Main: %Main.type = struct_value () [template] -// CHECK:STDOUT: %.2: i32 = int_literal 1 [template] +// CHECK:STDOUT: %.2: i32 = int_value 1 [template] // CHECK:STDOUT: } // CHECK:STDOUT: // CHECK:STDOUT: imports { @@ -67,10 +67,10 @@ fn Main() { // CHECK:STDOUT: fn @Main() { // CHECK:STDOUT: !entry: // CHECK:STDOUT: %Foo.ref.loc14: %Foo.type = name_ref Foo, file.%Foo.decl [template = constants.%Foo] -// CHECK:STDOUT: %.loc14: i32 = int_literal 1 [template = constants.%.2] +// CHECK:STDOUT: %.loc14: i32 = int_value 1 [template = constants.%.2] // CHECK:STDOUT: %Foo.call.loc14: init %.1 = call %Foo.ref.loc14(%.loc14) // CHECK:STDOUT: %Foo.ref.loc15: %Foo.type = name_ref Foo, file.%Foo.decl [template = constants.%Foo] -// CHECK:STDOUT: %.loc15: i32 = int_literal 1 [template = constants.%.2] +// CHECK:STDOUT: %.loc15: i32 = int_value 1 [template = constants.%.2] // CHECK:STDOUT: %Foo.call.loc15: init %.1 = call %Foo.ref.loc15(%.loc15) // CHECK:STDOUT: return // CHECK:STDOUT: } diff --git a/toolchain/check/testdata/function/call/params_two.carbon b/toolchain/check/testdata/function/call/params_two.carbon index 19cf8688801a7..7bc14fb422214 100644 --- a/toolchain/check/testdata/function/call/params_two.carbon +++ b/toolchain/check/testdata/function/call/params_two.carbon @@ -24,8 +24,8 @@ fn Main() { // CHECK:STDOUT: %Foo: %Foo.type = struct_value () [template] // CHECK:STDOUT: %Main.type: type = fn_type @Main [template] // CHECK:STDOUT: %Main: %Main.type = struct_value () [template] -// CHECK:STDOUT: %.2: i32 = int_literal 1 [template] -// CHECK:STDOUT: %.3: i32 = int_literal 2 [template] +// CHECK:STDOUT: %.2: i32 = int_value 1 [template] +// CHECK:STDOUT: %.3: i32 = int_value 2 [template] // CHECK:STDOUT: } // CHECK:STDOUT: // CHECK:STDOUT: imports { @@ -74,8 +74,8 @@ fn Main() { // CHECK:STDOUT: fn @Main() { // CHECK:STDOUT: !entry: // CHECK:STDOUT: %Foo.ref: %Foo.type = name_ref Foo, file.%Foo.decl [template = constants.%Foo] -// CHECK:STDOUT: %.loc14_7: i32 = int_literal 1 [template = constants.%.2] -// CHECK:STDOUT: %.loc14_10: i32 = int_literal 2 [template = constants.%.3] +// CHECK:STDOUT: %.loc14_7: i32 = int_value 1 [template = constants.%.2] +// CHECK:STDOUT: %.loc14_10: i32 = int_value 2 [template = constants.%.3] // CHECK:STDOUT: %Foo.call: init %.1 = call %Foo.ref(%.loc14_7, %.loc14_10) // CHECK:STDOUT: return // CHECK:STDOUT: } diff --git a/toolchain/check/testdata/function/call/params_two_comma.carbon b/toolchain/check/testdata/function/call/params_two_comma.carbon index f38e2d082b3ec..b72a77cf739b2 100644 --- a/toolchain/check/testdata/function/call/params_two_comma.carbon +++ b/toolchain/check/testdata/function/call/params_two_comma.carbon @@ -25,8 +25,8 @@ fn Main() { // CHECK:STDOUT: %Foo: %Foo.type = struct_value () [template] // CHECK:STDOUT: %Main.type: type = fn_type @Main [template] // CHECK:STDOUT: %Main: %Main.type = struct_value () [template] -// CHECK:STDOUT: %.2: i32 = int_literal 1 [template] -// CHECK:STDOUT: %.3: i32 = int_literal 2 [template] +// CHECK:STDOUT: %.2: i32 = int_value 1 [template] +// CHECK:STDOUT: %.3: i32 = int_value 2 [template] // CHECK:STDOUT: } // CHECK:STDOUT: // CHECK:STDOUT: imports { @@ -75,12 +75,12 @@ fn Main() { // CHECK:STDOUT: fn @Main() { // CHECK:STDOUT: !entry: // CHECK:STDOUT: %Foo.ref.loc14: %Foo.type = name_ref Foo, file.%Foo.decl [template = constants.%Foo] -// CHECK:STDOUT: %.loc14_7: i32 = int_literal 1 [template = constants.%.2] -// CHECK:STDOUT: %.loc14_10: i32 = int_literal 2 [template = constants.%.3] +// CHECK:STDOUT: %.loc14_7: i32 = int_value 1 [template = constants.%.2] +// CHECK:STDOUT: %.loc14_10: i32 = int_value 2 [template = constants.%.3] // CHECK:STDOUT: %Foo.call.loc14: init %.1 = call %Foo.ref.loc14(%.loc14_7, %.loc14_10) // CHECK:STDOUT: %Foo.ref.loc15: %Foo.type = name_ref Foo, file.%Foo.decl [template = constants.%Foo] -// CHECK:STDOUT: %.loc15_7: i32 = int_literal 1 [template = constants.%.2] -// CHECK:STDOUT: %.loc15_10: i32 = int_literal 2 [template = constants.%.3] +// CHECK:STDOUT: %.loc15_7: i32 = int_value 1 [template = constants.%.2] +// CHECK:STDOUT: %.loc15_10: i32 = int_value 2 [template = constants.%.3] // CHECK:STDOUT: %Foo.call.loc15: init %.1 = call %Foo.ref.loc15(%.loc15_7, %.loc15_10) // CHECK:STDOUT: return // CHECK:STDOUT: } diff --git a/toolchain/check/testdata/function/declaration/import.carbon b/toolchain/check/testdata/function/declaration/import.carbon index 76168bfedd0fa..aefad2d736744 100644 --- a/toolchain/check/testdata/function/declaration/import.carbon +++ b/toolchain/check/testdata/function/declaration/import.carbon @@ -459,7 +459,7 @@ import library "extern_api"; // CHECK:STDOUT: %Int32: %Int32.type = struct_value () [template] // CHECK:STDOUT: %B.type: type = fn_type @B [template] // CHECK:STDOUT: %B: %B.type = struct_value () [template] -// CHECK:STDOUT: %.2: i32 = int_literal 1 [template] +// CHECK:STDOUT: %.2: i32 = int_value 1 [template] // CHECK:STDOUT: %.3: type = struct_type {.c: i32} [template] // CHECK:STDOUT: %C.type: type = fn_type @C [template] // CHECK:STDOUT: %C: %C.type = struct_value () [template] @@ -548,11 +548,11 @@ import library "extern_api"; // CHECK:STDOUT: %A.call: init %.1 = call %A.ref() // CHECK:STDOUT: assign file.%a.var, %A.call // CHECK:STDOUT: %B.ref: %B.type = name_ref B, imports.%import_ref.2 [template = constants.%B] -// CHECK:STDOUT: %.loc7: i32 = int_literal 1 [template = constants.%.2] +// CHECK:STDOUT: %.loc7: i32 = int_value 1 [template = constants.%.2] // CHECK:STDOUT: %B.call: init i32 = call %B.ref(%.loc7) // CHECK:STDOUT: assign file.%b.var, %B.call // CHECK:STDOUT: %C.ref: %C.type = name_ref C, imports.%import_ref.3 [template = constants.%C] -// CHECK:STDOUT: %.loc8_23: i32 = int_literal 1 [template = constants.%.2] +// CHECK:STDOUT: %.loc8_23: i32 = int_value 1 [template = constants.%.2] // CHECK:STDOUT: %.loc8_25.1: %.4 = tuple_literal (%.loc8_23) // CHECK:STDOUT: %tuple: %.4 = tuple_value (%.loc8_23) [template = constants.%tuple] // CHECK:STDOUT: %.loc8_25.2: %.4 = converted %.loc8_25.1, %tuple [template = constants.%tuple] @@ -587,7 +587,7 @@ import library "extern_api"; // CHECK:STDOUT: %D: %D.type = struct_value () [template] // CHECK:STDOUT: %E.type: type = fn_type @E [template] // CHECK:STDOUT: %E: %E.type = struct_value () [template] -// CHECK:STDOUT: %.5: i32 = int_literal 1 [template] +// CHECK:STDOUT: %.5: i32 = int_value 1 [template] // CHECK:STDOUT: %tuple: %.3 = tuple_value (%.5) [template] // CHECK:STDOUT: } // CHECK:STDOUT: @@ -698,11 +698,11 @@ import library "extern_api"; // CHECK:STDOUT: %A.call: init %.1 = call %A.ref() // CHECK:STDOUT: assign file.%a.var, %A.call // CHECK:STDOUT: %B.ref: %B.type = name_ref B, file.%B.decl [template = constants.%B] -// CHECK:STDOUT: %.loc53: i32 = int_literal 1 [template = constants.%.5] +// CHECK:STDOUT: %.loc53: i32 = int_value 1 [template = constants.%.5] // CHECK:STDOUT: %B.call: init i32 = call %B.ref(%.loc53) // CHECK:STDOUT: assign file.%b.var, %B.call // CHECK:STDOUT: %C.ref: %C.type = name_ref C, file.%C.decl [template = constants.%C] -// CHECK:STDOUT: %.loc54_23: i32 = int_literal 1 [template = constants.%.5] +// CHECK:STDOUT: %.loc54_23: i32 = int_value 1 [template = constants.%.5] // CHECK:STDOUT: %.loc54_25.1: %.3 = tuple_literal (%.loc54_23) // CHECK:STDOUT: %tuple: %.3 = tuple_value (%.loc54_23) [template = constants.%tuple] // CHECK:STDOUT: %.loc54_25.2: %.3 = converted %.loc54_25.1, %tuple [template = constants.%tuple] @@ -737,7 +737,7 @@ import library "extern_api"; // CHECK:STDOUT: %D: %D.type = struct_value () [template] // CHECK:STDOUT: %E.type: type = fn_type @E [template] // CHECK:STDOUT: %E: %E.type = struct_value () [template] -// CHECK:STDOUT: %.5: i32 = int_literal 1 [template] +// CHECK:STDOUT: %.5: i32 = int_value 1 [template] // CHECK:STDOUT: %tuple: %.3 = tuple_value (%.5) [template] // CHECK:STDOUT: } // CHECK:STDOUT: @@ -848,11 +848,11 @@ import library "extern_api"; // CHECK:STDOUT: %A.call: init %.1 = call %A.ref() // CHECK:STDOUT: assign file.%a.var, %A.call // CHECK:STDOUT: %B.ref: %B.type = name_ref B, file.%B.decl [template = constants.%B] -// CHECK:STDOUT: %.loc13: i32 = int_literal 1 [template = constants.%.5] +// CHECK:STDOUT: %.loc13: i32 = int_value 1 [template = constants.%.5] // CHECK:STDOUT: %B.call: init i32 = call %B.ref(%.loc13) // CHECK:STDOUT: assign file.%b.var, %B.call // CHECK:STDOUT: %C.ref: %C.type = name_ref C, file.%C.decl [template = constants.%C] -// CHECK:STDOUT: %.loc14_23: i32 = int_literal 1 [template = constants.%.5] +// CHECK:STDOUT: %.loc14_23: i32 = int_value 1 [template = constants.%.5] // CHECK:STDOUT: %.loc14_25.1: %.3 = tuple_literal (%.loc14_23) // CHECK:STDOUT: %tuple: %.3 = tuple_value (%.loc14_23) [template = constants.%tuple] // CHECK:STDOUT: %.loc14_25.2: %.3 = converted %.loc14_25.1, %tuple [template = constants.%tuple] @@ -878,7 +878,7 @@ import library "extern_api"; // CHECK:STDOUT: %Int32: %Int32.type = struct_value () [template] // CHECK:STDOUT: %B.type: type = fn_type @B [template] // CHECK:STDOUT: %B: %B.type = struct_value () [template] -// CHECK:STDOUT: %.2: i32 = int_literal 1 [template] +// CHECK:STDOUT: %.2: i32 = int_value 1 [template] // CHECK:STDOUT: %.3: type = struct_type {.c: i32} [template] // CHECK:STDOUT: %C.type: type = fn_type @C [template] // CHECK:STDOUT: %C: %C.type = struct_value () [template] @@ -972,11 +972,11 @@ import library "extern_api"; // CHECK:STDOUT: %A.call: init %.1 = call %A.ref() // CHECK:STDOUT: assign file.%a.var, %A.call // CHECK:STDOUT: %B.ref: %B.type = name_ref B, imports.%import_ref.2 [template = constants.%B] -// CHECK:STDOUT: %.loc53: i32 = int_literal 1 [template = constants.%.2] +// CHECK:STDOUT: %.loc53: i32 = int_value 1 [template = constants.%.2] // CHECK:STDOUT: %B.call: init i32 = call %B.ref(%.loc53) // CHECK:STDOUT: assign file.%b.var, %B.call // CHECK:STDOUT: %C.ref: %C.type = name_ref C, imports.%import_ref.3 [template = constants.%C] -// CHECK:STDOUT: %.loc54_23: i32 = int_literal 1 [template = constants.%.2] +// CHECK:STDOUT: %.loc54_23: i32 = int_value 1 [template = constants.%.2] // CHECK:STDOUT: %.loc54_25.1: %.4 = tuple_literal (%.loc54_23) // CHECK:STDOUT: %tuple: %.4 = tuple_value (%.loc54_23) [template = constants.%tuple] // CHECK:STDOUT: %.loc54_25.2: %.4 = converted %.loc54_25.1, %tuple [template = constants.%tuple] @@ -1002,7 +1002,7 @@ import library "extern_api"; // CHECK:STDOUT: %Int32: %Int32.type = struct_value () [template] // CHECK:STDOUT: %B.type: type = fn_type @B [template] // CHECK:STDOUT: %B: %B.type = struct_value () [template] -// CHECK:STDOUT: %.2: i32 = int_literal 1 [template] +// CHECK:STDOUT: %.2: i32 = int_value 1 [template] // CHECK:STDOUT: %.3: type = struct_type {.c: i32} [template] // CHECK:STDOUT: %C.type: type = fn_type @C [template] // CHECK:STDOUT: %C: %C.type = struct_value () [template] @@ -1096,11 +1096,11 @@ import library "extern_api"; // CHECK:STDOUT: %A.call: init %.1 = call %A.ref() // CHECK:STDOUT: assign file.%a.var, %A.call // CHECK:STDOUT: %B.ref: %B.type = name_ref B, imports.%import_ref.2 [template = constants.%B] -// CHECK:STDOUT: %.loc52: i32 = int_literal 1 [template = constants.%.2] +// CHECK:STDOUT: %.loc52: i32 = int_value 1 [template = constants.%.2] // CHECK:STDOUT: %B.call: init i32 = call %B.ref(%.loc52) // CHECK:STDOUT: assign file.%b.var, %B.call // CHECK:STDOUT: %C.ref: %C.type = name_ref C, imports.%import_ref.3 [template = constants.%C] -// CHECK:STDOUT: %.loc53_23: i32 = int_literal 1 [template = constants.%.2] +// CHECK:STDOUT: %.loc53_23: i32 = int_value 1 [template = constants.%.2] // CHECK:STDOUT: %.loc53_25.1: %.4 = tuple_literal (%.loc53_23) // CHECK:STDOUT: %tuple: %.4 = tuple_value (%.loc53_23) [template = constants.%tuple] // CHECK:STDOUT: %.loc53_25.2: %.4 = converted %.loc53_25.1, %tuple [template = constants.%tuple] diff --git a/toolchain/check/testdata/function/definition/import.carbon b/toolchain/check/testdata/function/definition/import.carbon index 218b3680f9923..529dc9b609825 100644 --- a/toolchain/check/testdata/function/definition/import.carbon +++ b/toolchain/check/testdata/function/definition/import.carbon @@ -124,7 +124,7 @@ fn D() {} // CHECK:STDOUT: %.4: type = struct_type {.c: i32} [template] // CHECK:STDOUT: %C.type: type = fn_type @C [template] // CHECK:STDOUT: %C: %C.type = struct_value () [template] -// CHECK:STDOUT: %.5: i32 = int_literal 0 [template] +// CHECK:STDOUT: %.5: i32 = int_value 0 [template] // CHECK:STDOUT: %D.type: type = fn_type @D [template] // CHECK:STDOUT: %D: %D.type = struct_value () [template] // CHECK:STDOUT: } @@ -204,7 +204,7 @@ fn D() {} // CHECK:STDOUT: fn @C(%c.param_patt: %.3) -> %.4 { // CHECK:STDOUT: !entry: // CHECK:STDOUT: %c.ref: %.3 = name_ref c, %c -// CHECK:STDOUT: %.loc6_47: i32 = int_literal 0 [template = constants.%.5] +// CHECK:STDOUT: %.loc6_47: i32 = int_value 0 [template = constants.%.5] // CHECK:STDOUT: %.loc6_46: i32 = tuple_access %c.ref, element0 // CHECK:STDOUT: %.loc6_48: %.4 = struct_literal (%.loc6_46) // CHECK:STDOUT: %struct: %.4 = struct_value (%.loc6_46) @@ -250,7 +250,7 @@ fn D() {} // CHECK:STDOUT: %Int32: %Int32.type = struct_value () [template] // CHECK:STDOUT: %B.type: type = fn_type @B [template] // CHECK:STDOUT: %B: %B.type = struct_value () [template] -// CHECK:STDOUT: %.2: i32 = int_literal 1 [template] +// CHECK:STDOUT: %.2: i32 = int_value 1 [template] // CHECK:STDOUT: %.3: type = struct_type {.c: i32} [template] // CHECK:STDOUT: %C.type: type = fn_type @C [template] // CHECK:STDOUT: %C: %C.type = struct_value () [template] @@ -315,11 +315,11 @@ fn D() {} // CHECK:STDOUT: %A.call: init %.1 = call %A.ref() // CHECK:STDOUT: assign file.%a.var, %A.call // CHECK:STDOUT: %B.ref: %B.type = name_ref B, imports.%import_ref.2 [template = constants.%B] -// CHECK:STDOUT: %.loc7: i32 = int_literal 1 [template = constants.%.2] +// CHECK:STDOUT: %.loc7: i32 = int_value 1 [template = constants.%.2] // CHECK:STDOUT: %B.call: init i32 = call %B.ref(%.loc7) // CHECK:STDOUT: assign file.%b.var, %B.call // CHECK:STDOUT: %C.ref: %C.type = name_ref C, imports.%import_ref.3 [template = constants.%C] -// CHECK:STDOUT: %.loc8_23: i32 = int_literal 1 [template = constants.%.2] +// CHECK:STDOUT: %.loc8_23: i32 = int_value 1 [template = constants.%.2] // CHECK:STDOUT: %.loc8_25.1: %.4 = tuple_literal (%.loc8_23) // CHECK:STDOUT: %tuple: %.4 = tuple_value (%.loc8_23) [template = constants.%tuple] // CHECK:STDOUT: %.loc8_25.2: %.4 = converted %.loc8_25.1, %tuple [template = constants.%tuple] diff --git a/toolchain/check/testdata/function/generic/deduce.carbon b/toolchain/check/testdata/function/generic/deduce.carbon index afabdc787363d..5343be3cf3323 100644 --- a/toolchain/check/testdata/function/generic/deduce.carbon +++ b/toolchain/check/testdata/function/generic/deduce.carbon @@ -724,8 +724,8 @@ fn CallImplicitNotDeducible() { // CHECK:STDOUT: %.4: type = ptr_type %.3 [symbolic] // CHECK:STDOUT: %CallTupleParam.type: type = fn_type @CallTupleParam [template] // CHECK:STDOUT: %CallTupleParam: %CallTupleParam.type = struct_value () [template] -// CHECK:STDOUT: %.5: i32 = int_literal 1 [template] -// CHECK:STDOUT: %.6: i32 = int_literal 2 [template] +// CHECK:STDOUT: %.5: i32 = int_value 1 [template] +// CHECK:STDOUT: %.6: i32 = int_value 2 [template] // CHECK:STDOUT: %.7: type = tuple_type (i32, i32) [template] // CHECK:STDOUT: %.8: = specific_function %TupleParam, @TupleParam(i32) [template] // CHECK:STDOUT: %.9: type = ptr_type %.7 [template] @@ -786,8 +786,8 @@ fn CallImplicitNotDeducible() { // CHECK:STDOUT: fn @CallTupleParam() { // CHECK:STDOUT: !entry: // CHECK:STDOUT: %TupleParam.ref: %TupleParam.type = name_ref TupleParam, file.%TupleParam.decl [template = constants.%TupleParam] -// CHECK:STDOUT: %.loc7_15: i32 = int_literal 1 [template = constants.%.5] -// CHECK:STDOUT: %.loc7_18: i32 = int_literal 2 [template = constants.%.6] +// CHECK:STDOUT: %.loc7_15: i32 = int_value 1 [template = constants.%.5] +// CHECK:STDOUT: %.loc7_18: i32 = int_value 2 [template = constants.%.6] // CHECK:STDOUT: %.loc7_19.1: %.7 = tuple_literal (%.loc7_15, %.loc7_18) // CHECK:STDOUT: %.loc7_3: = specific_function %TupleParam.ref, @TupleParam(i32) [template = constants.%.8] // CHECK:STDOUT: %tuple: %.7 = tuple_value (%.loc7_15, %.loc7_18) [template = constants.%tuple] @@ -824,8 +824,8 @@ fn CallImplicitNotDeducible() { // CHECK:STDOUT: %.3: type = ptr_type %.2 [symbolic] // CHECK:STDOUT: %CallStructParam.type: type = fn_type @CallStructParam [template] // CHECK:STDOUT: %CallStructParam: %CallStructParam.type = struct_value () [template] -// CHECK:STDOUT: %.4: i32 = int_literal 1 [template] -// CHECK:STDOUT: %.5: i32 = int_literal 2 [template] +// CHECK:STDOUT: %.4: i32 = int_value 1 [template] +// CHECK:STDOUT: %.5: i32 = int_value 2 [template] // CHECK:STDOUT: %.6: type = struct_type {.a: i32, .b: i32} [template] // CHECK:STDOUT: } // CHECK:STDOUT: @@ -882,8 +882,8 @@ fn CallImplicitNotDeducible() { // CHECK:STDOUT: fn @CallStructParam() { // CHECK:STDOUT: !entry: // CHECK:STDOUT: %StructParam.ref: %StructParam.type = name_ref StructParam, file.%StructParam.decl [template = constants.%StructParam] -// CHECK:STDOUT: %.loc14_21: i32 = int_literal 1 [template = constants.%.4] -// CHECK:STDOUT: %.loc14_29: i32 = int_literal 2 [template = constants.%.5] +// CHECK:STDOUT: %.loc14_21: i32 = int_value 1 [template = constants.%.4] +// CHECK:STDOUT: %.loc14_29: i32 = int_value 2 [template = constants.%.5] // CHECK:STDOUT: %.loc14_30: %.6 = struct_literal (%.loc14_21, %.loc14_29) // CHECK:STDOUT: return // CHECK:STDOUT: } @@ -906,7 +906,7 @@ fn CallImplicitNotDeducible() { // CHECK:STDOUT: %ImplicitNotDeducible: %ImplicitNotDeducible.type = struct_value () [template] // CHECK:STDOUT: %CallImplicitNotDeducible.type: type = fn_type @CallImplicitNotDeducible [template] // CHECK:STDOUT: %CallImplicitNotDeducible: %CallImplicitNotDeducible.type = struct_value () [template] -// CHECK:STDOUT: %.2: i32 = int_literal 42 [template] +// CHECK:STDOUT: %.2: i32 = int_value 42 [template] // CHECK:STDOUT: } // CHECK:STDOUT: // CHECK:STDOUT: imports { @@ -959,7 +959,7 @@ fn CallImplicitNotDeducible() { // CHECK:STDOUT: fn @CallImplicitNotDeducible() { // CHECK:STDOUT: !entry: // CHECK:STDOUT: %ImplicitNotDeducible.ref: %ImplicitNotDeducible.type = name_ref ImplicitNotDeducible, file.%ImplicitNotDeducible.decl [template = constants.%ImplicitNotDeducible] -// CHECK:STDOUT: %.loc16: i32 = int_literal 42 [template = constants.%.2] +// CHECK:STDOUT: %.loc16: i32 = int_value 42 [template = constants.%.2] // CHECK:STDOUT: return // CHECK:STDOUT: } // CHECK:STDOUT: @@ -980,8 +980,8 @@ fn CallImplicitNotDeducible() { // CHECK:STDOUT: %ImplicitNotDeducible: %ImplicitNotDeducible.type = struct_value () [template] // CHECK:STDOUT: %CallImplicitNotDeducible.type: type = fn_type @CallImplicitNotDeducible [template] // CHECK:STDOUT: %CallImplicitNotDeducible: %CallImplicitNotDeducible.type = struct_value () [template] -// CHECK:STDOUT: %.2: i32 = int_literal 42 [template] -// CHECK:STDOUT: %.3: i32 = int_literal 12 [template] +// CHECK:STDOUT: %.2: i32 = int_value 42 [template] +// CHECK:STDOUT: %.3: i32 = int_value 12 [template] // CHECK:STDOUT: %.4: type = struct_type {.x: i32} [template] // CHECK:STDOUT: } // CHECK:STDOUT: @@ -1034,8 +1034,8 @@ fn CallImplicitNotDeducible() { // CHECK:STDOUT: fn @CallImplicitNotDeducible() { // CHECK:STDOUT: !entry: // CHECK:STDOUT: %ImplicitNotDeducible.ref: %ImplicitNotDeducible.type = name_ref ImplicitNotDeducible, file.%ImplicitNotDeducible.decl [template = constants.%ImplicitNotDeducible] -// CHECK:STDOUT: %.loc13_24: i32 = int_literal 42 [template = constants.%.2] -// CHECK:STDOUT: %.loc13_34: i32 = int_literal 12 [template = constants.%.3] +// CHECK:STDOUT: %.loc13_24: i32 = int_value 42 [template = constants.%.2] +// CHECK:STDOUT: %.loc13_34: i32 = int_value 12 [template = constants.%.3] // CHECK:STDOUT: %.loc13_36: %.4 = struct_literal (%.loc13_34) // CHECK:STDOUT: return // CHECK:STDOUT: } diff --git a/toolchain/check/testdata/function/generic/resolve_used.carbon b/toolchain/check/testdata/function/generic/resolve_used.carbon index 36ea967bf7e01..6daf89efd5a07 100644 --- a/toolchain/check/testdata/function/generic/resolve_used.carbon +++ b/toolchain/check/testdata/function/generic/resolve_used.carbon @@ -45,7 +45,7 @@ fn CallNegative() { // CHECK:STDOUT: %.2: type = int_type signed, %N [symbolic] // CHECK:STDOUT: %CallNegative.type: type = fn_type @CallNegative [template] // CHECK:STDOUT: %CallNegative: %CallNegative.type = struct_value () [template] -// CHECK:STDOUT: %.3: i32 = int_literal 0 [template] +// CHECK:STDOUT: %.3: i32 = int_value 0 [template] // CHECK:STDOUT: } // CHECK:STDOUT: // CHECK:STDOUT: imports { @@ -116,7 +116,7 @@ fn CallNegative() { // CHECK:STDOUT: fn @CallNegative() { // CHECK:STDOUT: !entry: // CHECK:STDOUT: %ErrorIfNIsZero.ref: %ErrorIfNIsZero.type = name_ref ErrorIfNIsZero, file.%ErrorIfNIsZero.decl [template = constants.%ErrorIfNIsZero] -// CHECK:STDOUT: %.loc19: i32 = int_literal 0 [template = constants.%.3] +// CHECK:STDOUT: %.loc19: i32 = int_value 0 [template = constants.%.3] // CHECK:STDOUT: return // CHECK:STDOUT: } // CHECK:STDOUT: diff --git a/toolchain/check/testdata/function/generic/return_slot.carbon b/toolchain/check/testdata/function/generic/return_slot.carbon index 0e1939e63d8dd..9a964aba5e453 100644 --- a/toolchain/check/testdata/function/generic/return_slot.carbon +++ b/toolchain/check/testdata/function/generic/return_slot.carbon @@ -37,7 +37,7 @@ fn G() { // CHECK:STDOUT: %C: type = class_type @C [template] // CHECK:STDOUT: %Int32.type: type = fn_type @Int32 [template] // CHECK:STDOUT: %Int32: %Int32.type = struct_value () [template] -// CHECK:STDOUT: %.5: i32 = int_literal 100 [template] +// CHECK:STDOUT: %.5: i32 = int_value 100 [template] // CHECK:STDOUT: %.6: type = array_type %.5, i32 [template] // CHECK:STDOUT: %.7: type = ptr_type %.6 [template] // CHECK:STDOUT: %.8: type = unbound_element_type %C, %.6 [template] @@ -117,7 +117,7 @@ fn G() { // CHECK:STDOUT: // CHECK:STDOUT: class @C { // CHECK:STDOUT: %int.make_type_32: init type = call constants.%Int32() [template = i32] -// CHECK:STDOUT: %.loc15_26: i32 = int_literal 100 [template = constants.%.5] +// CHECK:STDOUT: %.loc15_26: i32 = int_value 100 [template = constants.%.5] // CHECK:STDOUT: %.loc15_21.1: type = value_of_initializer %int.make_type_32 [template = i32] // CHECK:STDOUT: %.loc15_21.2: type = converted %int.make_type_32, %.loc15_21.1 [template = i32] // CHECK:STDOUT: %.loc15_29: type = array_type %.loc15_26, i32 [template = constants.%.6] diff --git a/toolchain/check/testdata/function/generic/undefined.carbon b/toolchain/check/testdata/function/generic/undefined.carbon index 800b5149c410a..e401f033dba0d 100644 --- a/toolchain/check/testdata/function/generic/undefined.carbon +++ b/toolchain/check/testdata/function/generic/undefined.carbon @@ -62,7 +62,7 @@ fn CallUndefined() -> i32 { // CHECK:STDOUT: %Int32: %Int32.type = struct_value () [template] // CHECK:STDOUT: %CallDefined.type: type = fn_type @CallDefined [template] // CHECK:STDOUT: %CallDefined: %CallDefined.type = struct_value () [template] -// CHECK:STDOUT: %.2: i32 = int_literal 0 [template] +// CHECK:STDOUT: %.2: i32 = int_value 0 [template] // CHECK:STDOUT: %.3: = specific_function %Defined, @Defined(i32) [template] // CHECK:STDOUT: } // CHECK:STDOUT: @@ -129,7 +129,7 @@ fn CallUndefined() -> i32 { // CHECK:STDOUT: fn @CallDefined() -> i32 { // CHECK:STDOUT: !entry: // CHECK:STDOUT: %Defined.ref: %Defined.type = name_ref Defined, file.%Defined.decl [template = constants.%Defined] -// CHECK:STDOUT: %.loc9_18: i32 = int_literal 0 [template = constants.%.2] +// CHECK:STDOUT: %.loc9_18: i32 = int_value 0 [template = constants.%.2] // CHECK:STDOUT: %.loc9_10: = specific_function %Defined.ref, @Defined(i32) [template = constants.%.3] // CHECK:STDOUT: %Defined.call: init i32 = call %.loc9_10(%.loc9_18) // CHECK:STDOUT: %.loc9_20.1: i32 = value_of_initializer %Defined.call @@ -161,7 +161,7 @@ fn CallUndefined() -> i32 { // CHECK:STDOUT: %Int32: %Int32.type = struct_value () [template] // CHECK:STDOUT: %CallDefined.type: type = fn_type @CallDefined [template] // CHECK:STDOUT: %CallDefined: %CallDefined.type = struct_value () [template] -// CHECK:STDOUT: %.2: i32 = int_literal 0 [template] +// CHECK:STDOUT: %.2: i32 = int_value 0 [template] // CHECK:STDOUT: %.3: = specific_function %Defined, @Defined(i32) [template] // CHECK:STDOUT: %T.patt.2: type = symbolic_binding_pattern T, 0 [symbolic] // CHECK:STDOUT: } @@ -246,7 +246,7 @@ fn CallUndefined() -> i32 { // CHECK:STDOUT: fn @CallDefined() -> i32 { // CHECK:STDOUT: !entry: // CHECK:STDOUT: %Defined.ref: %Defined.type = name_ref Defined, file.%Defined.decl.loc4 [template = constants.%Defined] -// CHECK:STDOUT: %.loc7_18: i32 = int_literal 0 [template = constants.%.2] +// CHECK:STDOUT: %.loc7_18: i32 = int_value 0 [template = constants.%.2] // CHECK:STDOUT: %.loc7_10: = specific_function %Defined.ref, @Defined(i32) [template = constants.%.3] // CHECK:STDOUT: %Defined.call: init i32 = call %.loc7_10(%.loc7_18) // CHECK:STDOUT: %.loc7_20.1: i32 = value_of_initializer %Defined.call @@ -278,7 +278,7 @@ fn CallUndefined() -> i32 { // CHECK:STDOUT: %Int32: %Int32.type = struct_value () [template] // CHECK:STDOUT: %CallUndefined.type: type = fn_type @CallUndefined [template] // CHECK:STDOUT: %CallUndefined: %CallUndefined.type = struct_value () [template] -// CHECK:STDOUT: %.2: i32 = int_literal 0 [template] +// CHECK:STDOUT: %.2: i32 = int_value 0 [template] // CHECK:STDOUT: %.3: = specific_function %Undefined, @Undefined(i32) [template] // CHECK:STDOUT: } // CHECK:STDOUT: @@ -339,7 +339,7 @@ fn CallUndefined() -> i32 { // CHECK:STDOUT: fn @CallUndefined() -> i32 { // CHECK:STDOUT: !entry: // CHECK:STDOUT: %Undefined.ref: %Undefined.type = name_ref Undefined, file.%Undefined.decl [template = constants.%Undefined] -// CHECK:STDOUT: %.loc13_20: i32 = int_literal 0 [template = constants.%.2] +// CHECK:STDOUT: %.loc13_20: i32 = int_value 0 [template = constants.%.2] // CHECK:STDOUT: %.loc13_10: = specific_function %Undefined.ref, @Undefined(i32) [template = constants.%.3] // CHECK:STDOUT: %Undefined.call: init i32 = call %.loc13_10(%.loc13_20) // CHECK:STDOUT: %.loc13_22.1: i32 = value_of_initializer %Undefined.call diff --git a/toolchain/check/testdata/global/simple_init.carbon b/toolchain/check/testdata/global/simple_init.carbon index ab4c7e19ef0b0..60719ca735239 100644 --- a/toolchain/check/testdata/global/simple_init.carbon +++ b/toolchain/check/testdata/global/simple_init.carbon @@ -15,7 +15,7 @@ var a: i32 = 0; // CHECK:STDOUT: %Int32.type: type = fn_type @Int32 [template] // CHECK:STDOUT: %.1: type = tuple_type () [template] // CHECK:STDOUT: %Int32: %Int32.type = struct_value () [template] -// CHECK:STDOUT: %.2: i32 = int_literal 0 [template] +// CHECK:STDOUT: %.2: i32 = int_value 0 [template] // CHECK:STDOUT: } // CHECK:STDOUT: // CHECK:STDOUT: imports { @@ -44,7 +44,7 @@ var a: i32 = 0; // CHECK:STDOUT: // CHECK:STDOUT: fn @__global_init() { // CHECK:STDOUT: !entry: -// CHECK:STDOUT: %.loc10: i32 = int_literal 0 [template = constants.%.2] +// CHECK:STDOUT: %.loc10: i32 = int_value 0 [template = constants.%.2] // CHECK:STDOUT: assign file.%a.var, %.loc10 // CHECK:STDOUT: return // CHECK:STDOUT: } diff --git a/toolchain/check/testdata/global/simple_with_fun.carbon b/toolchain/check/testdata/global/simple_with_fun.carbon index dfe265424a4bd..ecfdfad063363 100644 --- a/toolchain/check/testdata/global/simple_with_fun.carbon +++ b/toolchain/check/testdata/global/simple_with_fun.carbon @@ -22,7 +22,7 @@ var a: i32 = test_a(); // CHECK:STDOUT: %Int32: %Int32.type = struct_value () [template] // CHECK:STDOUT: %test_a.type: type = fn_type @test_a [template] // CHECK:STDOUT: %test_a: %test_a.type = struct_value () [template] -// CHECK:STDOUT: %.2: i32 = int_literal 0 [template] +// CHECK:STDOUT: %.2: i32 = int_value 0 [template] // CHECK:STDOUT: } // CHECK:STDOUT: // CHECK:STDOUT: imports { @@ -62,7 +62,7 @@ var a: i32 = test_a(); // CHECK:STDOUT: // CHECK:STDOUT: fn @test_a() -> i32 { // CHECK:STDOUT: !entry: -// CHECK:STDOUT: %.loc12: i32 = int_literal 0 [template = constants.%.2] +// CHECK:STDOUT: %.loc12: i32 = int_value 0 [template = constants.%.2] // CHECK:STDOUT: return %.loc12 // CHECK:STDOUT: } // CHECK:STDOUT: diff --git a/toolchain/check/testdata/if/fail_reachable_fallthrough.carbon b/toolchain/check/testdata/if/fail_reachable_fallthrough.carbon index 4e94c42d99dcf..ee9ae951b7dc2 100644 --- a/toolchain/check/testdata/if/fail_reachable_fallthrough.carbon +++ b/toolchain/check/testdata/if/fail_reachable_fallthrough.carbon @@ -49,10 +49,10 @@ fn If3(b: bool) -> i32 { // CHECK:STDOUT: %Int32: %Int32.type = struct_value () [template] // CHECK:STDOUT: %If1.type: type = fn_type @If1 [template] // CHECK:STDOUT: %If1: %If1.type = struct_value () [template] -// CHECK:STDOUT: %.2: i32 = int_literal 1 [template] +// CHECK:STDOUT: %.2: i32 = int_value 1 [template] // CHECK:STDOUT: %If2.type: type = fn_type @If2 [template] // CHECK:STDOUT: %If2: %If2.type = struct_value () [template] -// CHECK:STDOUT: %.3: i32 = int_literal 2 [template] +// CHECK:STDOUT: %.3: i32 = int_value 2 [template] // CHECK:STDOUT: %If3.type: type = fn_type @If3 [template] // CHECK:STDOUT: %If3: %If3.type = struct_value () [template] // CHECK:STDOUT: } @@ -139,7 +139,7 @@ fn If3(b: bool) -> i32 { // CHECK:STDOUT: if %b.ref br !if.then else br !if.else // CHECK:STDOUT: // CHECK:STDOUT: !if.then: -// CHECK:STDOUT: %.loc13: i32 = int_literal 1 [template = constants.%.2] +// CHECK:STDOUT: %.loc13: i32 = int_value 1 [template = constants.%.2] // CHECK:STDOUT: return %.loc13 // CHECK:STDOUT: // CHECK:STDOUT: !if.else: @@ -157,7 +157,7 @@ fn If3(b: bool) -> i32 { // CHECK:STDOUT: br !if.done // CHECK:STDOUT: // CHECK:STDOUT: !if.else: -// CHECK:STDOUT: %.loc25: i32 = int_literal 2 [template = constants.%.3] +// CHECK:STDOUT: %.loc25: i32 = int_value 2 [template = constants.%.3] // CHECK:STDOUT: return %.loc25 // CHECK:STDOUT: // CHECK:STDOUT: !if.done: @@ -169,7 +169,7 @@ fn If3(b: bool) -> i32 { // CHECK:STDOUT: if %b.ref br !if.then else br !if.else // CHECK:STDOUT: // CHECK:STDOUT: !if.then: -// CHECK:STDOUT: %.loc35: i32 = int_literal 1 [template = constants.%.2] +// CHECK:STDOUT: %.loc35: i32 = int_value 1 [template = constants.%.2] // CHECK:STDOUT: return %.loc35 // CHECK:STDOUT: // CHECK:STDOUT: !if.else: diff --git a/toolchain/check/testdata/if/fail_scope.carbon b/toolchain/check/testdata/if/fail_scope.carbon index 04c19c9834e72..a7574cef94ed6 100644 --- a/toolchain/check/testdata/if/fail_scope.carbon +++ b/toolchain/check/testdata/if/fail_scope.carbon @@ -29,7 +29,7 @@ fn VarScope(b: bool) -> i32 { // CHECK:STDOUT: %Int32: %Int32.type = struct_value () [template] // CHECK:STDOUT: %VarScope.type: type = fn_type @VarScope [template] // CHECK:STDOUT: %VarScope: %VarScope.type = struct_value () [template] -// CHECK:STDOUT: %.2: i32 = int_literal 2 [template] +// CHECK:STDOUT: %.2: i32 = int_value 2 [template] // CHECK:STDOUT: } // CHECK:STDOUT: // CHECK:STDOUT: imports { @@ -83,7 +83,7 @@ fn VarScope(b: bool) -> i32 { // CHECK:STDOUT: %.loc13_12.2: type = converted %int.make_type_32.loc13, %.loc13_12.1 [template = i32] // CHECK:STDOUT: %n.var: ref i32 = var n // CHECK:STDOUT: %n: ref i32 = bind_name n, %n.var -// CHECK:STDOUT: %.loc13_18: i32 = int_literal 2 [template = constants.%.2] +// CHECK:STDOUT: %.loc13_18: i32 = int_value 2 [template = constants.%.2] // CHECK:STDOUT: assign %n.var, %.loc13_18 // CHECK:STDOUT: %n.ref.loc14: ref i32 = name_ref n, %n // CHECK:STDOUT: %.loc14: i32 = bind_value %n.ref.loc14 diff --git a/toolchain/check/testdata/if/unreachable_fallthrough.carbon b/toolchain/check/testdata/if/unreachable_fallthrough.carbon index 58d72c9810136..e16ff18aae430 100644 --- a/toolchain/check/testdata/if/unreachable_fallthrough.carbon +++ b/toolchain/check/testdata/if/unreachable_fallthrough.carbon @@ -27,8 +27,8 @@ fn If(b: bool) -> i32 { // CHECK:STDOUT: %Int32: %Int32.type = struct_value () [template] // CHECK:STDOUT: %If.type: type = fn_type @If [template] // CHECK:STDOUT: %If: %If.type = struct_value () [template] -// CHECK:STDOUT: %.2: i32 = int_literal 1 [template] -// CHECK:STDOUT: %.3: i32 = int_literal 2 [template] +// CHECK:STDOUT: %.2: i32 = int_value 1 [template] +// CHECK:STDOUT: %.3: i32 = int_value 2 [template] // CHECK:STDOUT: } // CHECK:STDOUT: // CHECK:STDOUT: imports { @@ -77,11 +77,11 @@ fn If(b: bool) -> i32 { // CHECK:STDOUT: if %b.ref br !if.then else br !if.else // CHECK:STDOUT: // CHECK:STDOUT: !if.then: -// CHECK:STDOUT: %.loc13: i32 = int_literal 1 [template = constants.%.2] +// CHECK:STDOUT: %.loc13: i32 = int_value 1 [template = constants.%.2] // CHECK:STDOUT: return %.loc13 // CHECK:STDOUT: // CHECK:STDOUT: !if.else: -// CHECK:STDOUT: %.loc15: i32 = int_literal 2 [template = constants.%.3] +// CHECK:STDOUT: %.loc15: i32 = int_value 2 [template = constants.%.3] // CHECK:STDOUT: return %.loc15 // CHECK:STDOUT: } // CHECK:STDOUT: diff --git a/toolchain/check/testdata/if_expr/basic.carbon b/toolchain/check/testdata/if_expr/basic.carbon index 1e52992faf9d5..0e16165f184f5 100644 --- a/toolchain/check/testdata/if_expr/basic.carbon +++ b/toolchain/check/testdata/if_expr/basic.carbon @@ -23,10 +23,10 @@ fn F(b: bool, n: i32, m: i32) -> i32 { // CHECK:STDOUT: %Int32: %Int32.type = struct_value () [template] // CHECK:STDOUT: %F.type: type = fn_type @F [template] // CHECK:STDOUT: %F: %F.type = struct_value () [template] -// CHECK:STDOUT: %.2: i32 = int_literal 1 [template] +// CHECK:STDOUT: %.2: i32 = int_value 1 [template] // CHECK:STDOUT: %.3: type = array_type %.2, i32 [template] // CHECK:STDOUT: %.4: type = ptr_type %.3 [template] -// CHECK:STDOUT: %.5: i32 = int_literal 0 [template] +// CHECK:STDOUT: %.5: i32 = int_value 0 [template] // CHECK:STDOUT: %.6: type = tuple_type (i32) [template] // CHECK:STDOUT: %array: %.3 = tuple_value (%.5) [template] // CHECK:STDOUT: } @@ -88,15 +88,15 @@ fn F(b: bool, n: i32, m: i32) -> i32 { // CHECK:STDOUT: fn @F(%b.param_patt: bool, %n.param_patt: i32, %m.param_patt: i32) -> i32 { // CHECK:STDOUT: !entry: // CHECK:STDOUT: %int.make_type_32.loc12: init type = call constants.%Int32() [template = i32] -// CHECK:STDOUT: %.loc12_16: i32 = int_literal 1 [template = constants.%.2] +// CHECK:STDOUT: %.loc12_16: i32 = int_value 1 [template = constants.%.2] // CHECK:STDOUT: %.loc12_11.1: type = value_of_initializer %int.make_type_32.loc12 [template = i32] // CHECK:STDOUT: %.loc12_11.2: type = converted %int.make_type_32.loc12, %.loc12_11.1 [template = i32] // CHECK:STDOUT: %.loc12_17: type = array_type %.loc12_16, i32 [template = constants.%.3] // CHECK:STDOUT: %x.var: ref %.3 = var x // CHECK:STDOUT: %x: ref %.3 = bind_name x, %x.var -// CHECK:STDOUT: %.loc12_22: i32 = int_literal 0 [template = constants.%.5] +// CHECK:STDOUT: %.loc12_22: i32 = int_value 0 [template = constants.%.5] // CHECK:STDOUT: %.loc12_24.1: %.6 = tuple_literal (%.loc12_22) -// CHECK:STDOUT: %.loc12_24.2: i32 = int_literal 0 [template = constants.%.5] +// CHECK:STDOUT: %.loc12_24.2: i32 = int_value 0 [template = constants.%.5] // CHECK:STDOUT: %.loc12_24.3: ref i32 = array_index %x.var, %.loc12_24.2 // CHECK:STDOUT: %.loc12_24.4: init i32 = initialize_from %.loc12_22 to %.loc12_24.3 [template = constants.%.5] // CHECK:STDOUT: %.loc12_24.5: init %.3 = array_init (%.loc12_24.4) to %x.var [template = constants.%array] diff --git a/toolchain/check/testdata/if_expr/constant_condition.carbon b/toolchain/check/testdata/if_expr/constant_condition.carbon index 756b5f32ffad8..369fb2f124b7f 100644 --- a/toolchain/check/testdata/if_expr/constant_condition.carbon +++ b/toolchain/check/testdata/if_expr/constant_condition.carbon @@ -39,10 +39,10 @@ fn PartiallyConstant(t: type) -> i32 { // CHECK:STDOUT: %Int32: %Int32.type = struct_value () [template] // CHECK:STDOUT: %A.type: type = fn_type @A [template] // CHECK:STDOUT: %A: %A.type = struct_value () [template] -// CHECK:STDOUT: %.2: i32 = int_literal 1 [template] +// CHECK:STDOUT: %.2: i32 = int_value 1 [template] // CHECK:STDOUT: %B.type: type = fn_type @B [template] // CHECK:STDOUT: %B: %B.type = struct_value () [template] -// CHECK:STDOUT: %.3: i32 = int_literal 2 [template] +// CHECK:STDOUT: %.3: i32 = int_value 2 [template] // CHECK:STDOUT: %F.type: type = fn_type @F [template] // CHECK:STDOUT: %F: %F.type = struct_value () [template] // CHECK:STDOUT: %.4: bool = bool_literal true [template] @@ -146,13 +146,13 @@ fn PartiallyConstant(t: type) -> i32 { // CHECK:STDOUT: // CHECK:STDOUT: fn @A() -> i32 { // CHECK:STDOUT: !entry: -// CHECK:STDOUT: %.loc11_24: i32 = int_literal 1 [template = constants.%.2] +// CHECK:STDOUT: %.loc11_24: i32 = int_value 1 [template = constants.%.2] // CHECK:STDOUT: return %.loc11_24 // CHECK:STDOUT: } // CHECK:STDOUT: // CHECK:STDOUT: fn @B() -> i32 { // CHECK:STDOUT: !entry: -// CHECK:STDOUT: %.loc12_24: i32 = int_literal 2 [template = constants.%.3] +// CHECK:STDOUT: %.loc12_24: i32 = int_value 2 [template = constants.%.3] // CHECK:STDOUT: return %.loc12_24 // CHECK:STDOUT: } // CHECK:STDOUT: @@ -226,7 +226,7 @@ fn PartiallyConstant(t: type) -> i32 { // CHECK:STDOUT: %.loc23_10: type = block_arg !if.expr.result.loc23 [template = i32] // CHECK:STDOUT: %v.var: ref i32 = var v // CHECK:STDOUT: %v: ref i32 = bind_name v, %v.var -// CHECK:STDOUT: %.loc23_39: i32 = int_literal 1 [template = constants.%.2] +// CHECK:STDOUT: %.loc23_39: i32 = int_value 1 [template = constants.%.2] // CHECK:STDOUT: assign %v.var, %.loc23_39 // CHECK:STDOUT: %.loc24_13: bool = bool_literal false [template = constants.%.5] // CHECK:STDOUT: if %.loc24_13 br !if.expr.then.loc24 else br !if.expr.else.loc24 @@ -277,7 +277,7 @@ fn PartiallyConstant(t: type) -> i32 { // CHECK:STDOUT: %.loc29_10: type = block_arg !if.expr.result.loc29 [template = i32] // CHECK:STDOUT: %v.var: ref i32 = var v // CHECK:STDOUT: %v: ref i32 = bind_name v, %v.var -// CHECK:STDOUT: %.loc29_36: i32 = int_literal 1 [template = constants.%.2] +// CHECK:STDOUT: %.loc29_36: i32 = int_value 1 [template = constants.%.2] // CHECK:STDOUT: assign %v.var, %.loc29_36 // CHECK:STDOUT: %.loc30_13: bool = bool_literal false [template = constants.%.5] // CHECK:STDOUT: if %.loc30_13 br !if.expr.then.loc30 else br !if.expr.else.loc30 diff --git a/toolchain/check/testdata/if_expr/control_flow.carbon b/toolchain/check/testdata/if_expr/control_flow.carbon index dd1e5862532e6..6ce42e5ee509e 100644 --- a/toolchain/check/testdata/if_expr/control_flow.carbon +++ b/toolchain/check/testdata/if_expr/control_flow.carbon @@ -23,10 +23,10 @@ fn F(b: bool) -> i32 { // CHECK:STDOUT: %Int32: %Int32.type = struct_value () [template] // CHECK:STDOUT: %A.type: type = fn_type @A [template] // CHECK:STDOUT: %A: %A.type = struct_value () [template] -// CHECK:STDOUT: %.2: i32 = int_literal 1 [template] +// CHECK:STDOUT: %.2: i32 = int_value 1 [template] // CHECK:STDOUT: %B.type: type = fn_type @B [template] // CHECK:STDOUT: %B: %B.type = struct_value () [template] -// CHECK:STDOUT: %.3: i32 = int_literal 2 [template] +// CHECK:STDOUT: %.3: i32 = int_value 2 [template] // CHECK:STDOUT: %Bool.type: type = fn_type @Bool [template] // CHECK:STDOUT: %Bool: %Bool.type = struct_value () [template] // CHECK:STDOUT: %F.type: type = fn_type @F [template] @@ -95,13 +95,13 @@ fn F(b: bool) -> i32 { // CHECK:STDOUT: // CHECK:STDOUT: fn @A() -> i32 { // CHECK:STDOUT: !entry: -// CHECK:STDOUT: %.loc11_24: i32 = int_literal 1 [template = constants.%.2] +// CHECK:STDOUT: %.loc11_24: i32 = int_value 1 [template = constants.%.2] // CHECK:STDOUT: return %.loc11_24 // CHECK:STDOUT: } // CHECK:STDOUT: // CHECK:STDOUT: fn @B() -> i32 { // CHECK:STDOUT: !entry: -// CHECK:STDOUT: %.loc12_24: i32 = int_literal 2 [template = constants.%.3] +// CHECK:STDOUT: %.loc12_24: i32 = int_value 2 [template = constants.%.3] // CHECK:STDOUT: return %.loc12_24 // CHECK:STDOUT: } // CHECK:STDOUT: diff --git a/toolchain/check/testdata/if_expr/fail_not_in_function.carbon b/toolchain/check/testdata/if_expr/fail_not_in_function.carbon index 13588911d98a0..3a3aab6e02ce1 100644 --- a/toolchain/check/testdata/if_expr/fail_not_in_function.carbon +++ b/toolchain/check/testdata/if_expr/fail_not_in_function.carbon @@ -44,10 +44,10 @@ class C { // CHECK:STDOUT: %.1: type = tuple_type () [template] // CHECK:STDOUT: %Int32: %Int32.type = struct_value () [template] // CHECK:STDOUT: %.2: bool = bool_literal true [template] -// CHECK:STDOUT: %.3: i32 = int_literal 1 [template] -// CHECK:STDOUT: %.4: i32 = int_literal 0 [template] +// CHECK:STDOUT: %.3: i32 = int_value 1 [template] +// CHECK:STDOUT: %.4: i32 = int_value 0 [template] // CHECK:STDOUT: %C: type = class_type @C [template] -// CHECK:STDOUT: %.5: Core.BigInt = int_literal 64 [template] +// CHECK:STDOUT: %.5: Core.BigInt = int_value 64 [template] // CHECK:STDOUT: %Float.type: type = fn_type @Float [template] // CHECK:STDOUT: %Float: %Float.type = struct_value () [template] // CHECK:STDOUT: %.6: type = unbound_element_type %C, i32 [template] diff --git a/toolchain/check/testdata/if_expr/fail_partial_constant.carbon b/toolchain/check/testdata/if_expr/fail_partial_constant.carbon index 069d90f0813bf..b2ce7c866f475 100644 --- a/toolchain/check/testdata/if_expr/fail_partial_constant.carbon +++ b/toolchain/check/testdata/if_expr/fail_partial_constant.carbon @@ -49,7 +49,7 @@ fn ChosenBranchIsNonConstant(t: type) { // CHECK:STDOUT: %ConditionIsNonConstant: %ConditionIsNonConstant.type = struct_value () [template] // CHECK:STDOUT: %Int32.type: type = fn_type @Int32 [template] // CHECK:STDOUT: %Int32: %Int32.type = struct_value () [template] -// CHECK:STDOUT: %.2: i32 = int_literal 1 [template] +// CHECK:STDOUT: %.2: i32 = int_value 1 [template] // CHECK:STDOUT: } // CHECK:STDOUT: // CHECK:STDOUT: imports { @@ -104,7 +104,7 @@ fn ChosenBranchIsNonConstant(t: type) { // CHECK:STDOUT: %.loc12_10: type = block_arg !if.expr.result // CHECK:STDOUT: %v.var: ref = var v // CHECK:STDOUT: %v: ref = bind_name v, %v.var -// CHECK:STDOUT: %.loc12_35: i32 = int_literal 1 [template = constants.%.2] +// CHECK:STDOUT: %.loc12_35: i32 = int_value 1 [template = constants.%.2] // CHECK:STDOUT: assign %v.var, // CHECK:STDOUT: return // CHECK:STDOUT: } @@ -120,7 +120,7 @@ fn ChosenBranchIsNonConstant(t: type) { // CHECK:STDOUT: %.2: bool = bool_literal true [template] // CHECK:STDOUT: %Int32.type: type = fn_type @Int32 [template] // CHECK:STDOUT: %Int32: %Int32.type = struct_value () [template] -// CHECK:STDOUT: %.3: i32 = int_literal 1 [template] +// CHECK:STDOUT: %.3: i32 = int_value 1 [template] // CHECK:STDOUT: %.4: bool = bool_literal false [template] // CHECK:STDOUT: } // CHECK:STDOUT: @@ -167,7 +167,7 @@ fn ChosenBranchIsNonConstant(t: type) { // CHECK:STDOUT: %.loc9_10: type = block_arg !if.expr.result.loc9 // CHECK:STDOUT: %v.var: ref = var v // CHECK:STDOUT: %v: ref = bind_name v, %v.var -// CHECK:STDOUT: %.loc9_36: i32 = int_literal 1 [template = constants.%.3] +// CHECK:STDOUT: %.loc9_36: i32 = int_value 1 [template = constants.%.3] // CHECK:STDOUT: assign %v.var, // CHECK:STDOUT: %.loc13_13: bool = bool_literal false [template = constants.%.4] // CHECK:STDOUT: if %.loc13_13 br !if.expr.then.loc13 else br !if.expr.else.loc13 @@ -186,7 +186,7 @@ fn ChosenBranchIsNonConstant(t: type) { // CHECK:STDOUT: %.loc13_10: type = block_arg !if.expr.result.loc13 // CHECK:STDOUT: %w.var: ref = var w // CHECK:STDOUT: %w: ref = bind_name w, %w.var -// CHECK:STDOUT: %.loc13_37: i32 = int_literal 1 [template = constants.%.3] +// CHECK:STDOUT: %.loc13_37: i32 = int_value 1 [template = constants.%.3] // CHECK:STDOUT: assign %w.var, // CHECK:STDOUT: return // CHECK:STDOUT: } diff --git a/toolchain/check/testdata/if_expr/nested.carbon b/toolchain/check/testdata/if_expr/nested.carbon index ba0c298f9c220..cac3706da1cdb 100644 --- a/toolchain/check/testdata/if_expr/nested.carbon +++ b/toolchain/check/testdata/if_expr/nested.carbon @@ -22,10 +22,10 @@ fn F(a: bool, b: bool, c: bool) -> i32 { // CHECK:STDOUT: %Int32: %Int32.type = struct_value () [template] // CHECK:STDOUT: %F.type: type = fn_type @F [template] // CHECK:STDOUT: %F: %F.type = struct_value () [template] -// CHECK:STDOUT: %.2: i32 = int_literal 1 [template] -// CHECK:STDOUT: %.3: i32 = int_literal 2 [template] -// CHECK:STDOUT: %.4: i32 = int_literal 3 [template] -// CHECK:STDOUT: %.5: i32 = int_literal 4 [template] +// CHECK:STDOUT: %.2: i32 = int_value 1 [template] +// CHECK:STDOUT: %.3: i32 = int_value 2 [template] +// CHECK:STDOUT: %.4: i32 = int_value 3 [template] +// CHECK:STDOUT: %.5: i32 = int_value 4 [template] // CHECK:STDOUT: } // CHECK:STDOUT: // CHECK:STDOUT: imports { @@ -92,11 +92,11 @@ fn F(a: bool, b: bool, c: bool) -> i32 { // CHECK:STDOUT: if %b.ref br !if.expr.then.loc12_20 else br !if.expr.else.loc12_20 // CHECK:STDOUT: // CHECK:STDOUT: !if.expr.then.loc12_20: -// CHECK:STDOUT: %.loc12_30: i32 = int_literal 1 [template = constants.%.2] +// CHECK:STDOUT: %.loc12_30: i32 = int_value 1 [template = constants.%.2] // CHECK:STDOUT: br !if.expr.result.loc12_20(%.loc12_30) // CHECK:STDOUT: // CHECK:STDOUT: !if.expr.else.loc12_20: -// CHECK:STDOUT: %.loc12_37: i32 = int_literal 2 [template = constants.%.3] +// CHECK:STDOUT: %.loc12_37: i32 = int_value 2 [template = constants.%.3] // CHECK:STDOUT: br !if.expr.result.loc12_20(%.loc12_37) // CHECK:STDOUT: // CHECK:STDOUT: !if.expr.result.loc12_20: @@ -108,11 +108,11 @@ fn F(a: bool, b: bool, c: bool) -> i32 { // CHECK:STDOUT: if %c.ref br !if.expr.then.loc12_44 else br !if.expr.else.loc12_44 // CHECK:STDOUT: // CHECK:STDOUT: !if.expr.then.loc12_44: -// CHECK:STDOUT: %.loc12_54: i32 = int_literal 3 [template = constants.%.4] +// CHECK:STDOUT: %.loc12_54: i32 = int_value 3 [template = constants.%.4] // CHECK:STDOUT: br !if.expr.result.loc12_44(%.loc12_54) // CHECK:STDOUT: // CHECK:STDOUT: !if.expr.else.loc12_44: -// CHECK:STDOUT: %.loc12_61: i32 = int_literal 4 [template = constants.%.5] +// CHECK:STDOUT: %.loc12_61: i32 = int_value 4 [template = constants.%.5] // CHECK:STDOUT: br !if.expr.result.loc12_44(%.loc12_61) // CHECK:STDOUT: // CHECK:STDOUT: !if.expr.result.loc12_44: diff --git a/toolchain/check/testdata/if_expr/struct.carbon b/toolchain/check/testdata/if_expr/struct.carbon index 2b678e238abcb..e0291cde51e0e 100644 --- a/toolchain/check/testdata/if_expr/struct.carbon +++ b/toolchain/check/testdata/if_expr/struct.carbon @@ -29,8 +29,8 @@ fn F(cond: bool) { // CHECK:STDOUT: %F.type: type = fn_type @F [template] // CHECK:STDOUT: %F: %F.type = struct_value () [template] // CHECK:STDOUT: %.3: type = ptr_type %.2 [template] -// CHECK:STDOUT: %.4: i32 = int_literal 1 [template] -// CHECK:STDOUT: %.5: i32 = int_literal 2 [template] +// CHECK:STDOUT: %.4: i32 = int_value 1 [template] +// CHECK:STDOUT: %.5: i32 = int_value 2 [template] // CHECK:STDOUT: %struct: %.2 = struct_value (%.4, %.5) [template] // CHECK:STDOUT: } // CHECK:STDOUT: @@ -95,8 +95,8 @@ fn F(cond: bool) { // CHECK:STDOUT: %.loc14_27: type = struct_type {.a: i32, .b: i32} [template = constants.%.2] // CHECK:STDOUT: %a.var: ref %.2 = var a // CHECK:STDOUT: %a: ref %.2 = bind_name a, %a.var -// CHECK:STDOUT: %.loc14_37: i32 = int_literal 1 [template = constants.%.4] -// CHECK:STDOUT: %.loc14_45: i32 = int_literal 2 [template = constants.%.5] +// CHECK:STDOUT: %.loc14_37: i32 = int_value 1 [template = constants.%.4] +// CHECK:STDOUT: %.loc14_45: i32 = int_value 2 [template = constants.%.5] // CHECK:STDOUT: %.loc14_46.1: %.2 = struct_literal (%.loc14_37, %.loc14_45) // CHECK:STDOUT: %.loc14_46.2: ref i32 = struct_access %a.var, element0 // CHECK:STDOUT: %.loc14_46.3: init i32 = initialize_from %.loc14_37 to %.loc14_46.2 [template = constants.%.4] diff --git a/toolchain/check/testdata/impl/fail_impl_bad_assoc_fn.carbon b/toolchain/check/testdata/impl/fail_impl_bad_assoc_fn.carbon index 83ac8958d6756..45cdacd38d4da 100644 --- a/toolchain/check/testdata/impl/fail_impl_bad_assoc_fn.carbon +++ b/toolchain/check/testdata/impl/fail_impl_bad_assoc_fn.carbon @@ -277,7 +277,7 @@ class SelfNestedBadReturnType { // CHECK:STDOUT: %.9: type = struct_type {.x: %Self.3, .y: i32} [symbolic] // CHECK:STDOUT: %.10: type = tuple_type (type, type) [template] // CHECK:STDOUT: %.11: type = tuple_type (%.8, %.9) [symbolic] -// CHECK:STDOUT: %.12: i32 = int_literal 4 [template] +// CHECK:STDOUT: %.12: i32 = int_value 4 [template] // CHECK:STDOUT: %.13: type = array_type %.12, %Self.3 [symbolic] // CHECK:STDOUT: %F.type.13: type = fn_type @F.13 [template] // CHECK:STDOUT: %F.14: %F.type.13 = struct_value () [template] @@ -424,7 +424,7 @@ class SelfNestedBadReturnType { // CHECK:STDOUT: %.loc188_38.2: %.10 = tuple_literal (%.loc188_16.4, %.loc188_37.2) // CHECK:STDOUT: %.loc188_38.3: type = converted %.loc188_38.2, constants.%.11 [symbolic = %.loc188_38.1 (constants.%.11)] // CHECK:STDOUT: %Self.ref.loc188_45: %SelfNested.type = name_ref Self, @SelfNested.%Self [symbolic = %Self (constants.%Self.3)] -// CHECK:STDOUT: %.loc188_51: i32 = int_literal 4 [template = constants.%.12] +// CHECK:STDOUT: %.loc188_51: i32 = int_value 4 [template = constants.%.12] // CHECK:STDOUT: %.loc188_45.1: type = facet_type_access %Self.ref.loc188_45 [symbolic = %Self (constants.%Self.3)] // CHECK:STDOUT: %.loc188_45.2: type = converted %Self.ref.loc188_45, %.loc188_45.1 [symbolic = %Self (constants.%Self.3)] // CHECK:STDOUT: %.loc188_52.2: type = array_type %.loc188_51, %Self.3 [symbolic = %.loc188_52.1 (constants.%.13)] @@ -735,7 +735,7 @@ class SelfNestedBadReturnType { // CHECK:STDOUT: %.loc200_53.1: %.10 = tuple_literal (%.loc200_32, %.loc200_52) // CHECK:STDOUT: %.loc200_53.2: type = converted %.loc200_53.1, constants.%.18 [template = constants.%.18] // CHECK:STDOUT: %SelfNestedBadParam.ref.loc200_60: type = name_ref SelfNestedBadParam, file.%SelfNestedBadParam.decl [template = constants.%SelfNestedBadParam] -// CHECK:STDOUT: %.loc200_80: i32 = int_literal 4 [template = constants.%.12] +// CHECK:STDOUT: %.loc200_80: i32 = int_value 4 [template = constants.%.12] // CHECK:STDOUT: %.loc200_81: type = array_type %.loc200_80, %SelfNestedBadParam [template = constants.%.19] // CHECK:STDOUT: %x.param: %.18 = value_param runtime_param0 // CHECK:STDOUT: %x: %.18 = bind_name x, %x.param @@ -766,7 +766,7 @@ class SelfNestedBadReturnType { // CHECK:STDOUT: %.loc212_78.1: %.10 = tuple_literal (%.loc212_37, %.loc212_77) // CHECK:STDOUT: %.loc212_78.2: type = converted %.loc212_78.1, constants.%.24 [template = constants.%.24] // CHECK:STDOUT: %SelfNestedBadParam.ref: type = name_ref SelfNestedBadParam, file.%SelfNestedBadParam.decl [template = constants.%SelfNestedBadParam] -// CHECK:STDOUT: %.loc212_105: i32 = int_literal 4 [template = constants.%.12] +// CHECK:STDOUT: %.loc212_105: i32 = int_value 4 [template = constants.%.12] // CHECK:STDOUT: %.loc212_106: type = array_type %.loc212_105, %SelfNestedBadParam [template = constants.%.19] // CHECK:STDOUT: %x.param: %.24 = value_param runtime_param0 // CHECK:STDOUT: %x: %.24 = bind_name x, %x.param diff --git a/toolchain/check/testdata/impl/no_prelude/generic_redeclaration.carbon b/toolchain/check/testdata/impl/no_prelude/generic_redeclaration.carbon index f2b336eedcdf3..3fb9eaee6fe86 100644 --- a/toolchain/check/testdata/impl/no_prelude/generic_redeclaration.carbon +++ b/toolchain/check/testdata/impl/no_prelude/generic_redeclaration.carbon @@ -456,7 +456,7 @@ impl (C, C).0 as I {} // CHECK:STDOUT: %.1: type = tuple_type () [template] // CHECK:STDOUT: %.2: = interface_witness () [template] // CHECK:STDOUT: %.3: type = tuple_type (type, type) [template] -// CHECK:STDOUT: %.4: i32 = int_literal 0 [template] +// CHECK:STDOUT: %.4: i32 = int_value 0 [template] // CHECK:STDOUT: %.5: type = ptr_type %.3 [template] // CHECK:STDOUT: %tuple: %.3 = tuple_value (%C, %C) [template] // CHECK:STDOUT: } @@ -476,7 +476,7 @@ impl (C, C).0 as I {} // CHECK:STDOUT: %C.ref.loc14_7: type = name_ref C, file.%C.decl [template = constants.%C] // CHECK:STDOUT: %C.ref.loc14_10: type = name_ref C, file.%C.decl [template = constants.%C] // CHECK:STDOUT: %.loc14_11.1: %.3 = tuple_literal (%C.ref.loc14_7, %C.ref.loc14_10) -// CHECK:STDOUT: %.loc14_13: i32 = int_literal 0 [template = constants.%.4] +// CHECK:STDOUT: %.loc14_13: i32 = int_value 0 [template = constants.%.4] // CHECK:STDOUT: %tuple: %.3 = tuple_value (%C.ref.loc14_7, %C.ref.loc14_10) [template = constants.%tuple] // CHECK:STDOUT: %.loc14_11.2: %.3 = converted %.loc14_11.1, %tuple [template = constants.%tuple] // CHECK:STDOUT: %.loc14_12: type = tuple_access %.loc14_11.2, element0 [template = constants.%C] diff --git a/toolchain/check/testdata/index/array_element_access.carbon b/toolchain/check/testdata/index/array_element_access.carbon index f2b3fdd6ebeaa..033b841196695 100644 --- a/toolchain/check/testdata/index/array_element_access.carbon +++ b/toolchain/check/testdata/index/array_element_access.carbon @@ -19,14 +19,14 @@ var d: i32 = a[b]; // CHECK:STDOUT: %Int32.type: type = fn_type @Int32 [template] // CHECK:STDOUT: %.1: type = tuple_type () [template] // CHECK:STDOUT: %Int32: %Int32.type = struct_value () [template] -// CHECK:STDOUT: %.2: i32 = int_literal 2 [template] +// CHECK:STDOUT: %.2: i32 = int_value 2 [template] // CHECK:STDOUT: %.3: type = array_type %.2, i32 [template] // CHECK:STDOUT: %.4: type = ptr_type %.3 [template] -// CHECK:STDOUT: %.5: i32 = int_literal 12 [template] -// CHECK:STDOUT: %.6: i32 = int_literal 24 [template] +// CHECK:STDOUT: %.5: i32 = int_value 12 [template] +// CHECK:STDOUT: %.6: i32 = int_value 24 [template] // CHECK:STDOUT: %.7: type = tuple_type (i32, i32) [template] -// CHECK:STDOUT: %.8: i32 = int_literal 0 [template] -// CHECK:STDOUT: %.9: i32 = int_literal 1 [template] +// CHECK:STDOUT: %.8: i32 = int_value 0 [template] +// CHECK:STDOUT: %.9: i32 = int_value 1 [template] // CHECK:STDOUT: %array: %.3 = tuple_value (%.5, %.6) [template] // CHECK:STDOUT: } // CHECK:STDOUT: @@ -49,7 +49,7 @@ var d: i32 = a[b]; // CHECK:STDOUT: } // CHECK:STDOUT: %Core.import = import Core // CHECK:STDOUT: %int.make_type_32.loc11: init type = call constants.%Int32() [template = i32] -// CHECK:STDOUT: %.loc11_14: i32 = int_literal 2 [template = constants.%.2] +// CHECK:STDOUT: %.loc11_14: i32 = int_value 2 [template = constants.%.2] // CHECK:STDOUT: %.loc11_9.1: type = value_of_initializer %int.make_type_32.loc11 [template = i32] // CHECK:STDOUT: %.loc11_9.2: type = converted %int.make_type_32.loc11, %.loc11_9.1 [template = i32] // CHECK:STDOUT: %.loc11_15: type = array_type %.loc11_14, i32 [template = constants.%.3] @@ -76,22 +76,22 @@ var d: i32 = a[b]; // CHECK:STDOUT: // CHECK:STDOUT: fn @__global_init() { // CHECK:STDOUT: !entry: -// CHECK:STDOUT: %.loc11_20: i32 = int_literal 12 [template = constants.%.5] -// CHECK:STDOUT: %.loc11_24: i32 = int_literal 24 [template = constants.%.6] +// CHECK:STDOUT: %.loc11_20: i32 = int_value 12 [template = constants.%.5] +// CHECK:STDOUT: %.loc11_24: i32 = int_value 24 [template = constants.%.6] // CHECK:STDOUT: %.loc11_26.1: %.7 = tuple_literal (%.loc11_20, %.loc11_24) -// CHECK:STDOUT: %.loc11_26.2: i32 = int_literal 0 [template = constants.%.8] +// CHECK:STDOUT: %.loc11_26.2: i32 = int_value 0 [template = constants.%.8] // CHECK:STDOUT: %.loc11_26.3: ref i32 = array_index file.%a.var, %.loc11_26.2 // CHECK:STDOUT: %.loc11_26.4: init i32 = initialize_from %.loc11_20 to %.loc11_26.3 [template = constants.%.5] -// CHECK:STDOUT: %.loc11_26.5: i32 = int_literal 1 [template = constants.%.9] +// CHECK:STDOUT: %.loc11_26.5: i32 = int_value 1 [template = constants.%.9] // CHECK:STDOUT: %.loc11_26.6: ref i32 = array_index file.%a.var, %.loc11_26.5 // CHECK:STDOUT: %.loc11_26.7: init i32 = initialize_from %.loc11_24 to %.loc11_26.6 [template = constants.%.6] // CHECK:STDOUT: %.loc11_26.8: init %.3 = array_init (%.loc11_26.4, %.loc11_26.7) to file.%a.var [template = constants.%array] // CHECK:STDOUT: %.loc11_27: init %.3 = converted %.loc11_26.1, %.loc11_26.8 [template = constants.%array] // CHECK:STDOUT: assign file.%a.var, %.loc11_27 -// CHECK:STDOUT: %.loc12: i32 = int_literal 1 [template = constants.%.9] +// CHECK:STDOUT: %.loc12: i32 = int_value 1 [template = constants.%.9] // CHECK:STDOUT: assign file.%b.var, %.loc12 // CHECK:STDOUT: %a.ref.loc13: ref %.3 = name_ref a, file.%a -// CHECK:STDOUT: %.loc13_16: i32 = int_literal 0 [template = constants.%.8] +// CHECK:STDOUT: %.loc13_16: i32 = int_value 0 [template = constants.%.8] // CHECK:STDOUT: %.loc13_17.1: ref i32 = array_index %a.ref.loc13, %.loc13_16 // CHECK:STDOUT: %.loc13_17.2: i32 = bind_value %.loc13_17.1 // CHECK:STDOUT: assign file.%c.var, %.loc13_17.2 diff --git a/toolchain/check/testdata/index/expr_category.carbon b/toolchain/check/testdata/index/expr_category.carbon index d48eb5dad9492..16f98e94fae47 100644 --- a/toolchain/check/testdata/index/expr_category.carbon +++ b/toolchain/check/testdata/index/expr_category.carbon @@ -34,20 +34,20 @@ fn ValueBinding(b: [i32; 3]) { // CHECK:STDOUT: %Int32.type: type = fn_type @Int32 [template] // CHECK:STDOUT: %.1: type = tuple_type () [template] // CHECK:STDOUT: %Int32: %Int32.type = struct_value () [template] -// CHECK:STDOUT: %.2: i32 = int_literal 3 [template] +// CHECK:STDOUT: %.2: i32 = int_value 3 [template] // CHECK:STDOUT: %.3: type = array_type %.2, i32 [template] // CHECK:STDOUT: %F.type: type = fn_type @F [template] // CHECK:STDOUT: %F: %F.type = struct_value () [template] // CHECK:STDOUT: %G.type: type = fn_type @G [template] // CHECK:STDOUT: %G: %G.type = struct_value () [template] // CHECK:STDOUT: %.4: type = ptr_type %.3 [template] -// CHECK:STDOUT: %.5: i32 = int_literal 1 [template] -// CHECK:STDOUT: %.6: i32 = int_literal 2 [template] +// CHECK:STDOUT: %.5: i32 = int_value 1 [template] +// CHECK:STDOUT: %.6: i32 = int_value 2 [template] // CHECK:STDOUT: %.7: type = tuple_type (i32, i32, i32) [template] -// CHECK:STDOUT: %.8: i32 = int_literal 0 [template] +// CHECK:STDOUT: %.8: i32 = int_value 0 [template] // CHECK:STDOUT: %array: %.3 = tuple_value (%.5, %.6, %.2) [template] // CHECK:STDOUT: %.9: type = ptr_type i32 [template] -// CHECK:STDOUT: %.10: i32 = int_literal 4 [template] +// CHECK:STDOUT: %.10: i32 = int_value 4 [template] // CHECK:STDOUT: %ValueBinding.type: type = fn_type @ValueBinding [template] // CHECK:STDOUT: %ValueBinding: %ValueBinding.type = struct_value () [template] // CHECK:STDOUT: } @@ -74,7 +74,7 @@ fn ValueBinding(b: [i32; 3]) { // CHECK:STDOUT: %return.param_patt: %.3 = out_param_pattern %return.patt, runtime_param0 // CHECK:STDOUT: } { // CHECK:STDOUT: %int.make_type_32: init type = call constants.%Int32() [template = i32] -// CHECK:STDOUT: %.loc11_17: i32 = int_literal 3 [template = constants.%.2] +// CHECK:STDOUT: %.loc11_17: i32 = int_value 3 [template = constants.%.2] // CHECK:STDOUT: %.loc11_12.1: type = value_of_initializer %int.make_type_32 [template = i32] // CHECK:STDOUT: %.loc11_12.2: type = converted %int.make_type_32, %.loc11_12.1 [template = i32] // CHECK:STDOUT: %.loc11_18: type = array_type %.loc11_17, i32 [template = constants.%.3] @@ -86,7 +86,7 @@ fn ValueBinding(b: [i32; 3]) { // CHECK:STDOUT: %b.param_patt: %.3 = value_param_pattern %b.patt, runtime_param0 // CHECK:STDOUT: } { // CHECK:STDOUT: %int.make_type_32.loc13: init type = call constants.%Int32() [template = i32] -// CHECK:STDOUT: %.loc13_15: i32 = int_literal 3 [template = constants.%.2] +// CHECK:STDOUT: %.loc13_15: i32 = int_value 3 [template = constants.%.2] // CHECK:STDOUT: %.loc13_10.1: type = value_of_initializer %int.make_type_32.loc13 [template = i32] // CHECK:STDOUT: %.loc13_10.2: type = converted %int.make_type_32.loc13, %.loc13_10.1 [template = i32] // CHECK:STDOUT: %.loc13_16: type = array_type %.loc13_15, i32 [template = constants.%.3] @@ -98,7 +98,7 @@ fn ValueBinding(b: [i32; 3]) { // CHECK:STDOUT: %b.param_patt: %.3 = value_param_pattern %b.patt, runtime_param0 // CHECK:STDOUT: } { // CHECK:STDOUT: %int.make_type_32.loc21: init type = call constants.%Int32() [template = i32] -// CHECK:STDOUT: %.loc21_26: i32 = int_literal 3 [template = constants.%.2] +// CHECK:STDOUT: %.loc21_26: i32 = int_value 3 [template = constants.%.2] // CHECK:STDOUT: %.loc21_21.1: type = value_of_initializer %int.make_type_32.loc21 [template = i32] // CHECK:STDOUT: %.loc21_21.2: type = converted %int.make_type_32.loc21, %.loc21_21.1 [template = i32] // CHECK:STDOUT: %.loc21_27: type = array_type %.loc21_26, i32 [template = constants.%.3] @@ -114,23 +114,23 @@ fn ValueBinding(b: [i32; 3]) { // CHECK:STDOUT: fn @G(%b.param_patt: %.3) { // CHECK:STDOUT: !entry: // CHECK:STDOUT: %int.make_type_32.loc14: init type = call constants.%Int32() [template = i32] -// CHECK:STDOUT: %.loc14_16: i32 = int_literal 3 [template = constants.%.2] +// CHECK:STDOUT: %.loc14_16: i32 = int_value 3 [template = constants.%.2] // CHECK:STDOUT: %.loc14_11.1: type = value_of_initializer %int.make_type_32.loc14 [template = i32] // CHECK:STDOUT: %.loc14_11.2: type = converted %int.make_type_32.loc14, %.loc14_11.1 [template = i32] // CHECK:STDOUT: %.loc14_17: type = array_type %.loc14_16, i32 [template = constants.%.3] // CHECK:STDOUT: %a.var: ref %.3 = var a // CHECK:STDOUT: %a: ref %.3 = bind_name a, %a.var -// CHECK:STDOUT: %.loc14_22: i32 = int_literal 1 [template = constants.%.5] -// CHECK:STDOUT: %.loc14_25: i32 = int_literal 2 [template = constants.%.6] -// CHECK:STDOUT: %.loc14_28: i32 = int_literal 3 [template = constants.%.2] +// CHECK:STDOUT: %.loc14_22: i32 = int_value 1 [template = constants.%.5] +// CHECK:STDOUT: %.loc14_25: i32 = int_value 2 [template = constants.%.6] +// CHECK:STDOUT: %.loc14_28: i32 = int_value 3 [template = constants.%.2] // CHECK:STDOUT: %.loc14_29.1: %.7 = tuple_literal (%.loc14_22, %.loc14_25, %.loc14_28) -// CHECK:STDOUT: %.loc14_29.2: i32 = int_literal 0 [template = constants.%.8] +// CHECK:STDOUT: %.loc14_29.2: i32 = int_value 0 [template = constants.%.8] // CHECK:STDOUT: %.loc14_29.3: ref i32 = array_index %a.var, %.loc14_29.2 // CHECK:STDOUT: %.loc14_29.4: init i32 = initialize_from %.loc14_22 to %.loc14_29.3 [template = constants.%.5] -// CHECK:STDOUT: %.loc14_29.5: i32 = int_literal 1 [template = constants.%.5] +// CHECK:STDOUT: %.loc14_29.5: i32 = int_value 1 [template = constants.%.5] // CHECK:STDOUT: %.loc14_29.6: ref i32 = array_index %a.var, %.loc14_29.5 // CHECK:STDOUT: %.loc14_29.7: init i32 = initialize_from %.loc14_25 to %.loc14_29.6 [template = constants.%.6] -// CHECK:STDOUT: %.loc14_29.8: i32 = int_literal 2 [template = constants.%.6] +// CHECK:STDOUT: %.loc14_29.8: i32 = int_value 2 [template = constants.%.6] // CHECK:STDOUT: %.loc14_29.9: ref i32 = array_index %a.var, %.loc14_29.8 // CHECK:STDOUT: %.loc14_29.10: init i32 = initialize_from %.loc14_28 to %.loc14_29.9 [template = constants.%.2] // CHECK:STDOUT: %.loc14_29.11: init %.3 = array_init (%.loc14_29.4, %.loc14_29.7, %.loc14_29.10) to %a.var [template = constants.%array] @@ -143,14 +143,14 @@ fn ValueBinding(b: [i32; 3]) { // CHECK:STDOUT: %pa.var: ref %.9 = var pa // CHECK:STDOUT: %pa: ref %.9 = bind_name pa, %pa.var // CHECK:STDOUT: %a.ref.loc17: ref %.3 = name_ref a, %a -// CHECK:STDOUT: %.loc17_21: i32 = int_literal 0 [template = constants.%.8] +// CHECK:STDOUT: %.loc17_21: i32 = int_value 0 [template = constants.%.8] // CHECK:STDOUT: %.loc17_22: ref i32 = array_index %a.ref.loc17, %.loc17_21 // CHECK:STDOUT: %.loc17_18: %.9 = addr_of %.loc17_22 // CHECK:STDOUT: assign %pa.var, %.loc17_18 // CHECK:STDOUT: %a.ref.loc18: ref %.3 = name_ref a, %a -// CHECK:STDOUT: %.loc18_5: i32 = int_literal 0 [template = constants.%.8] +// CHECK:STDOUT: %.loc18_5: i32 = int_value 0 [template = constants.%.8] // CHECK:STDOUT: %.loc18_6: ref i32 = array_index %a.ref.loc18, %.loc18_5 -// CHECK:STDOUT: %.loc18_10: i32 = int_literal 4 [template = constants.%.10] +// CHECK:STDOUT: %.loc18_10: i32 = int_value 4 [template = constants.%.10] // CHECK:STDOUT: assign %.loc18_6, %.loc18_10 // CHECK:STDOUT: return // CHECK:STDOUT: } @@ -158,40 +158,40 @@ fn ValueBinding(b: [i32; 3]) { // CHECK:STDOUT: fn @ValueBinding(%b.param_patt: %.3) { // CHECK:STDOUT: !entry: // CHECK:STDOUT: %int.make_type_32.loc22: init type = call constants.%Int32() [template = i32] -// CHECK:STDOUT: %.loc22_16: i32 = int_literal 3 [template = constants.%.2] +// CHECK:STDOUT: %.loc22_16: i32 = int_value 3 [template = constants.%.2] // CHECK:STDOUT: %.loc22_11.1: type = value_of_initializer %int.make_type_32.loc22 [template = i32] // CHECK:STDOUT: %.loc22_11.2: type = converted %int.make_type_32.loc22, %.loc22_11.1 [template = i32] // CHECK:STDOUT: %.loc22_17: type = array_type %.loc22_16, i32 [template = constants.%.3] // CHECK:STDOUT: %a.var: ref %.3 = var a // CHECK:STDOUT: %a: ref %.3 = bind_name a, %a.var -// CHECK:STDOUT: %.loc22_22: i32 = int_literal 1 [template = constants.%.5] -// CHECK:STDOUT: %.loc22_25: i32 = int_literal 2 [template = constants.%.6] -// CHECK:STDOUT: %.loc22_28: i32 = int_literal 3 [template = constants.%.2] +// CHECK:STDOUT: %.loc22_22: i32 = int_value 1 [template = constants.%.5] +// CHECK:STDOUT: %.loc22_25: i32 = int_value 2 [template = constants.%.6] +// CHECK:STDOUT: %.loc22_28: i32 = int_value 3 [template = constants.%.2] // CHECK:STDOUT: %.loc22_29.1: %.7 = tuple_literal (%.loc22_22, %.loc22_25, %.loc22_28) -// CHECK:STDOUT: %.loc22_29.2: i32 = int_literal 0 [template = constants.%.8] +// CHECK:STDOUT: %.loc22_29.2: i32 = int_value 0 [template = constants.%.8] // CHECK:STDOUT: %.loc22_29.3: ref i32 = array_index %a.var, %.loc22_29.2 // CHECK:STDOUT: %.loc22_29.4: init i32 = initialize_from %.loc22_22 to %.loc22_29.3 [template = constants.%.5] -// CHECK:STDOUT: %.loc22_29.5: i32 = int_literal 1 [template = constants.%.5] +// CHECK:STDOUT: %.loc22_29.5: i32 = int_value 1 [template = constants.%.5] // CHECK:STDOUT: %.loc22_29.6: ref i32 = array_index %a.var, %.loc22_29.5 // CHECK:STDOUT: %.loc22_29.7: init i32 = initialize_from %.loc22_25 to %.loc22_29.6 [template = constants.%.6] -// CHECK:STDOUT: %.loc22_29.8: i32 = int_literal 2 [template = constants.%.6] +// CHECK:STDOUT: %.loc22_29.8: i32 = int_value 2 [template = constants.%.6] // CHECK:STDOUT: %.loc22_29.9: ref i32 = array_index %a.var, %.loc22_29.8 // CHECK:STDOUT: %.loc22_29.10: init i32 = initialize_from %.loc22_28 to %.loc22_29.9 [template = constants.%.2] // CHECK:STDOUT: %.loc22_29.11: init %.3 = array_init (%.loc22_29.4, %.loc22_29.7, %.loc22_29.10) to %a.var [template = constants.%array] // CHECK:STDOUT: %.loc22_30: init %.3 = converted %.loc22_29.1, %.loc22_29.11 [template = constants.%array] // CHECK:STDOUT: assign %a.var, %.loc22_30 // CHECK:STDOUT: %a.ref: ref %.3 = name_ref a, %a -// CHECK:STDOUT: %.loc26_5: i32 = int_literal 0 [template = constants.%.8] +// CHECK:STDOUT: %.loc26_5: i32 = int_value 0 [template = constants.%.8] // CHECK:STDOUT: %.loc26_6: ref i32 = array_index %a.ref, %.loc26_5 // CHECK:STDOUT: %b.ref: %.3 = name_ref b, %b -// CHECK:STDOUT: %.loc27_5: i32 = int_literal 0 [template = constants.%.8] +// CHECK:STDOUT: %.loc27_5: i32 = int_value 0 [template = constants.%.8] // CHECK:STDOUT: %.loc27_6.1: ref %.3 = value_as_ref %b.ref // CHECK:STDOUT: %.loc27_6.2: ref i32 = array_index %.loc27_6.1, %.loc27_5 // CHECK:STDOUT: %.loc27_6.3: i32 = bind_value %.loc27_6.2 // CHECK:STDOUT: %F.ref: %F.type = name_ref F, file.%F.decl [template = constants.%F] // CHECK:STDOUT: %.loc28_4.1: ref %.3 = temporary_storage // CHECK:STDOUT: %F.call: init %.3 = call %F.ref() to %.loc28_4.1 -// CHECK:STDOUT: %.loc28_7: i32 = int_literal 0 [template = constants.%.8] +// CHECK:STDOUT: %.loc28_7: i32 = int_value 0 [template = constants.%.8] // CHECK:STDOUT: %.loc28_4.2: ref %.3 = temporary %.loc28_4.1, %F.call // CHECK:STDOUT: %.loc28_8.1: ref i32 = array_index %.loc28_4.2, %.loc28_7 // CHECK:STDOUT: %.loc28_8.2: i32 = bind_value %.loc28_8.1 diff --git a/toolchain/check/testdata/index/fail_array_large_index.carbon b/toolchain/check/testdata/index/fail_array_large_index.carbon index d760e91eb00ee..e353adf555a35 100644 --- a/toolchain/check/testdata/index/fail_array_large_index.carbon +++ b/toolchain/check/testdata/index/fail_array_large_index.carbon @@ -27,14 +27,14 @@ var c: i32 = a[0x7FFF_FFFF]; // CHECK:STDOUT: %Int32.type: type = fn_type @Int32 [template] // CHECK:STDOUT: %.1: type = tuple_type () [template] // CHECK:STDOUT: %Int32: %Int32.type = struct_value () [template] -// CHECK:STDOUT: %.2: i32 = int_literal 1 [template] +// CHECK:STDOUT: %.2: i32 = int_value 1 [template] // CHECK:STDOUT: %.3: type = array_type %.2, i32 [template] // CHECK:STDOUT: %.4: type = ptr_type %.3 [template] -// CHECK:STDOUT: %.5: i32 = int_literal 12 [template] +// CHECK:STDOUT: %.5: i32 = int_value 12 [template] // CHECK:STDOUT: %.6: type = tuple_type (i32) [template] -// CHECK:STDOUT: %.7: i32 = int_literal 0 [template] +// CHECK:STDOUT: %.7: i32 = int_value 0 [template] // CHECK:STDOUT: %array: %.3 = tuple_value (%.5) [template] -// CHECK:STDOUT: %.8: i32 = int_literal 2147483647 [template] +// CHECK:STDOUT: %.8: i32 = int_value 2147483647 [template] // CHECK:STDOUT: } // CHECK:STDOUT: // CHECK:STDOUT: imports { @@ -55,7 +55,7 @@ var c: i32 = a[0x7FFF_FFFF]; // CHECK:STDOUT: } // CHECK:STDOUT: %Core.import = import Core // CHECK:STDOUT: %int.make_type_32.loc11: init type = call constants.%Int32() [template = i32] -// CHECK:STDOUT: %.loc11_14: i32 = int_literal 1 [template = constants.%.2] +// CHECK:STDOUT: %.loc11_14: i32 = int_value 1 [template = constants.%.2] // CHECK:STDOUT: %.loc11_9.1: type = value_of_initializer %int.make_type_32.loc11 [template = i32] // CHECK:STDOUT: %.loc11_9.2: type = converted %int.make_type_32.loc11, %.loc11_9.1 [template = i32] // CHECK:STDOUT: %.loc11_15: type = array_type %.loc11_14, i32 [template = constants.%.3] @@ -77,21 +77,21 @@ var c: i32 = a[0x7FFF_FFFF]; // CHECK:STDOUT: // CHECK:STDOUT: fn @__global_init() { // CHECK:STDOUT: !entry: -// CHECK:STDOUT: %.loc11_20: i32 = int_literal 12 [template = constants.%.5] +// CHECK:STDOUT: %.loc11_20: i32 = int_value 12 [template = constants.%.5] // CHECK:STDOUT: %.loc11_23.1: %.6 = tuple_literal (%.loc11_20) -// CHECK:STDOUT: %.loc11_23.2: i32 = int_literal 0 [template = constants.%.7] +// CHECK:STDOUT: %.loc11_23.2: i32 = int_value 0 [template = constants.%.7] // CHECK:STDOUT: %.loc11_23.3: ref i32 = array_index file.%a.var, %.loc11_23.2 // CHECK:STDOUT: %.loc11_23.4: init i32 = initialize_from %.loc11_20 to %.loc11_23.3 [template = constants.%.5] // CHECK:STDOUT: %.loc11_23.5: init %.3 = array_init (%.loc11_23.4) to file.%a.var [template = constants.%array] // CHECK:STDOUT: %.loc11_24: init %.3 = converted %.loc11_23.1, %.loc11_23.5 [template = constants.%array] // CHECK:STDOUT: assign file.%a.var, %.loc11_24 // CHECK:STDOUT: %a.ref.loc17: ref %.3 = name_ref a, file.%a -// CHECK:STDOUT: %.loc17_16: i32 = int_literal 1 [template = constants.%.2] +// CHECK:STDOUT: %.loc17_16: i32 = int_value 1 [template = constants.%.2] // CHECK:STDOUT: %.loc17_17.1: ref i32 = array_index %a.ref.loc17, %.loc17_16 [template = ] // CHECK:STDOUT: %.loc17_17.2: i32 = bind_value %.loc17_17.1 // CHECK:STDOUT: assign file.%b.var, %.loc17_17.2 // CHECK:STDOUT: %a.ref.loc22: ref %.3 = name_ref a, file.%a -// CHECK:STDOUT: %.loc22_16: i32 = int_literal 2147483647 [template = constants.%.8] +// CHECK:STDOUT: %.loc22_16: i32 = int_value 2147483647 [template = constants.%.8] // CHECK:STDOUT: %.loc22_27.1: ref i32 = array_index %a.ref.loc22, %.loc22_16 [template = ] // CHECK:STDOUT: %.loc22_27.2: i32 = bind_value %.loc22_27.1 // CHECK:STDOUT: assign file.%c.var, %.loc22_27.2 diff --git a/toolchain/check/testdata/index/fail_array_non_int_indexing.carbon b/toolchain/check/testdata/index/fail_array_non_int_indexing.carbon index fef81d4cc201b..784de210f7268 100644 --- a/toolchain/check/testdata/index/fail_array_non_int_indexing.carbon +++ b/toolchain/check/testdata/index/fail_array_non_int_indexing.carbon @@ -23,12 +23,12 @@ var b: i32 = a[2.6]; // CHECK:STDOUT: %Int32.type: type = fn_type @Int32 [template] // CHECK:STDOUT: %.1: type = tuple_type () [template] // CHECK:STDOUT: %Int32: %Int32.type = struct_value () [template] -// CHECK:STDOUT: %.2: i32 = int_literal 1 [template] +// CHECK:STDOUT: %.2: i32 = int_value 1 [template] // CHECK:STDOUT: %.3: type = array_type %.2, i32 [template] // CHECK:STDOUT: %.4: type = ptr_type %.3 [template] -// CHECK:STDOUT: %.5: i32 = int_literal 12 [template] +// CHECK:STDOUT: %.5: i32 = int_value 12 [template] // CHECK:STDOUT: %.6: type = tuple_type (i32) [template] -// CHECK:STDOUT: %.7: i32 = int_literal 0 [template] +// CHECK:STDOUT: %.7: i32 = int_value 0 [template] // CHECK:STDOUT: %array: %.3 = tuple_value (%.5) [template] // CHECK:STDOUT: %.8: f64 = float_literal 2.6000000000000001 [template] // CHECK:STDOUT: %ImplicitAs.type.1: type = generic_interface_type @ImplicitAs [template] @@ -74,7 +74,7 @@ var b: i32 = a[2.6]; // CHECK:STDOUT: } // CHECK:STDOUT: %Core.import = import Core // CHECK:STDOUT: %int.make_type_32.loc11: init type = call constants.%Int32() [template = i32] -// CHECK:STDOUT: %.loc11_14: i32 = int_literal 1 [template = constants.%.2] +// CHECK:STDOUT: %.loc11_14: i32 = int_value 1 [template = constants.%.2] // CHECK:STDOUT: %.loc11_9.1: type = value_of_initializer %int.make_type_32.loc11 [template = i32] // CHECK:STDOUT: %.loc11_9.2: type = converted %int.make_type_32.loc11, %.loc11_9.1 [template = i32] // CHECK:STDOUT: %.loc11_15: type = array_type %.loc11_14, i32 [template = constants.%.3] @@ -119,9 +119,9 @@ var b: i32 = a[2.6]; // CHECK:STDOUT: // CHECK:STDOUT: fn @__global_init() { // CHECK:STDOUT: !entry: -// CHECK:STDOUT: %.loc11_20: i32 = int_literal 12 [template = constants.%.5] +// CHECK:STDOUT: %.loc11_20: i32 = int_value 12 [template = constants.%.5] // CHECK:STDOUT: %.loc11_23.1: %.6 = tuple_literal (%.loc11_20) -// CHECK:STDOUT: %.loc11_23.2: i32 = int_literal 0 [template = constants.%.7] +// CHECK:STDOUT: %.loc11_23.2: i32 = int_value 0 [template = constants.%.7] // CHECK:STDOUT: %.loc11_23.3: ref i32 = array_index file.%a.var, %.loc11_23.2 // CHECK:STDOUT: %.loc11_23.4: init i32 = initialize_from %.loc11_20 to %.loc11_23.3 [template = constants.%.5] // CHECK:STDOUT: %.loc11_23.5: init %.3 = array_init (%.loc11_23.4) to file.%a.var [template = constants.%array] diff --git a/toolchain/check/testdata/index/fail_array_out_of_bound_access.carbon b/toolchain/check/testdata/index/fail_array_out_of_bound_access.carbon index 5b2d24d14a284..dbf936a66eaa8 100644 --- a/toolchain/check/testdata/index/fail_array_out_of_bound_access.carbon +++ b/toolchain/check/testdata/index/fail_array_out_of_bound_access.carbon @@ -20,12 +20,12 @@ var b: i32 = a[1]; // CHECK:STDOUT: %Int32.type: type = fn_type @Int32 [template] // CHECK:STDOUT: %.1: type = tuple_type () [template] // CHECK:STDOUT: %Int32: %Int32.type = struct_value () [template] -// CHECK:STDOUT: %.2: i32 = int_literal 1 [template] +// CHECK:STDOUT: %.2: i32 = int_value 1 [template] // CHECK:STDOUT: %.3: type = array_type %.2, i32 [template] // CHECK:STDOUT: %.4: type = ptr_type %.3 [template] -// CHECK:STDOUT: %.5: i32 = int_literal 12 [template] +// CHECK:STDOUT: %.5: i32 = int_value 12 [template] // CHECK:STDOUT: %.6: type = tuple_type (i32) [template] -// CHECK:STDOUT: %.7: i32 = int_literal 0 [template] +// CHECK:STDOUT: %.7: i32 = int_value 0 [template] // CHECK:STDOUT: %array: %.3 = tuple_value (%.5) [template] // CHECK:STDOUT: } // CHECK:STDOUT: @@ -46,7 +46,7 @@ var b: i32 = a[1]; // CHECK:STDOUT: } // CHECK:STDOUT: %Core.import = import Core // CHECK:STDOUT: %int.make_type_32.loc11: init type = call constants.%Int32() [template = i32] -// CHECK:STDOUT: %.loc11_14: i32 = int_literal 1 [template = constants.%.2] +// CHECK:STDOUT: %.loc11_14: i32 = int_value 1 [template = constants.%.2] // CHECK:STDOUT: %.loc11_9.1: type = value_of_initializer %int.make_type_32.loc11 [template = i32] // CHECK:STDOUT: %.loc11_9.2: type = converted %int.make_type_32.loc11, %.loc11_9.1 [template = i32] // CHECK:STDOUT: %.loc11_15: type = array_type %.loc11_14, i32 [template = constants.%.3] @@ -63,16 +63,16 @@ var b: i32 = a[1]; // CHECK:STDOUT: // CHECK:STDOUT: fn @__global_init() { // CHECK:STDOUT: !entry: -// CHECK:STDOUT: %.loc11_20: i32 = int_literal 12 [template = constants.%.5] +// CHECK:STDOUT: %.loc11_20: i32 = int_value 12 [template = constants.%.5] // CHECK:STDOUT: %.loc11_23.1: %.6 = tuple_literal (%.loc11_20) -// CHECK:STDOUT: %.loc11_23.2: i32 = int_literal 0 [template = constants.%.7] +// CHECK:STDOUT: %.loc11_23.2: i32 = int_value 0 [template = constants.%.7] // CHECK:STDOUT: %.loc11_23.3: ref i32 = array_index file.%a.var, %.loc11_23.2 // CHECK:STDOUT: %.loc11_23.4: init i32 = initialize_from %.loc11_20 to %.loc11_23.3 [template = constants.%.5] // CHECK:STDOUT: %.loc11_23.5: init %.3 = array_init (%.loc11_23.4) to file.%a.var [template = constants.%array] // CHECK:STDOUT: %.loc11_24: init %.3 = converted %.loc11_23.1, %.loc11_23.5 [template = constants.%array] // CHECK:STDOUT: assign file.%a.var, %.loc11_24 // CHECK:STDOUT: %a.ref: ref %.3 = name_ref a, file.%a -// CHECK:STDOUT: %.loc15_16: i32 = int_literal 1 [template = constants.%.2] +// CHECK:STDOUT: %.loc15_16: i32 = int_value 1 [template = constants.%.2] // CHECK:STDOUT: %.loc15_17.1: ref i32 = array_index %a.ref, %.loc15_16 [template = ] // CHECK:STDOUT: %.loc15_17.2: i32 = bind_value %.loc15_17.1 // CHECK:STDOUT: assign file.%b.var, %.loc15_17.2 diff --git a/toolchain/check/testdata/index/fail_expr_category.carbon b/toolchain/check/testdata/index/fail_expr_category.carbon index 744bf736c911f..edaaaf4e4b726 100644 --- a/toolchain/check/testdata/index/fail_expr_category.carbon +++ b/toolchain/check/testdata/index/fail_expr_category.carbon @@ -42,7 +42,7 @@ fn G(b: [i32; 3]) { // CHECK:STDOUT: %Int32.type: type = fn_type @Int32 [template] // CHECK:STDOUT: %.1: type = tuple_type () [template] // CHECK:STDOUT: %Int32: %Int32.type = struct_value () [template] -// CHECK:STDOUT: %.2: i32 = int_literal 3 [template] +// CHECK:STDOUT: %.2: i32 = int_value 3 [template] // CHECK:STDOUT: %.3: type = array_type %.2, i32 [template] // CHECK:STDOUT: %F.type: type = fn_type @F [template] // CHECK:STDOUT: %F: %F.type = struct_value () [template] @@ -50,8 +50,8 @@ fn G(b: [i32; 3]) { // CHECK:STDOUT: %G: %G.type = struct_value () [template] // CHECK:STDOUT: %.4: type = ptr_type %.3 [template] // CHECK:STDOUT: %.5: type = ptr_type i32 [template] -// CHECK:STDOUT: %.6: i32 = int_literal 0 [template] -// CHECK:STDOUT: %.7: i32 = int_literal 4 [template] +// CHECK:STDOUT: %.6: i32 = int_value 0 [template] +// CHECK:STDOUT: %.7: i32 = int_value 4 [template] // CHECK:STDOUT: } // CHECK:STDOUT: // CHECK:STDOUT: imports { @@ -75,7 +75,7 @@ fn G(b: [i32; 3]) { // CHECK:STDOUT: %return.param_patt: %.3 = out_param_pattern %return.patt, runtime_param0 // CHECK:STDOUT: } { // CHECK:STDOUT: %int.make_type_32: init type = call constants.%Int32() [template = i32] -// CHECK:STDOUT: %.loc11_17: i32 = int_literal 3 [template = constants.%.2] +// CHECK:STDOUT: %.loc11_17: i32 = int_value 3 [template = constants.%.2] // CHECK:STDOUT: %.loc11_12.1: type = value_of_initializer %int.make_type_32 [template = i32] // CHECK:STDOUT: %.loc11_12.2: type = converted %int.make_type_32, %.loc11_12.1 [template = i32] // CHECK:STDOUT: %.loc11_18: type = array_type %.loc11_17, i32 [template = constants.%.3] @@ -87,7 +87,7 @@ fn G(b: [i32; 3]) { // CHECK:STDOUT: %b.param_patt: %.3 = value_param_pattern %b.patt, runtime_param0 // CHECK:STDOUT: } { // CHECK:STDOUT: %int.make_type_32.loc13: init type = call constants.%Int32() [template = i32] -// CHECK:STDOUT: %.loc13_15: i32 = int_literal 3 [template = constants.%.2] +// CHECK:STDOUT: %.loc13_15: i32 = int_value 3 [template = constants.%.2] // CHECK:STDOUT: %.loc13_10.1: type = value_of_initializer %int.make_type_32.loc13 [template = i32] // CHECK:STDOUT: %.loc13_10.2: type = converted %int.make_type_32.loc13, %.loc13_10.1 [template = i32] // CHECK:STDOUT: %.loc13_16: type = array_type %.loc13_15, i32 [template = constants.%.3] @@ -109,18 +109,18 @@ fn G(b: [i32; 3]) { // CHECK:STDOUT: %pb.var: ref %.5 = var pb // CHECK:STDOUT: %pb: ref %.5 = bind_name pb, %pb.var // CHECK:STDOUT: %b.ref.loc19: %.3 = name_ref b, %b -// CHECK:STDOUT: %.loc19_21: i32 = int_literal 0 [template = constants.%.6] +// CHECK:STDOUT: %.loc19_21: i32 = int_value 0 [template = constants.%.6] // CHECK:STDOUT: %.loc19_22.1: ref %.3 = value_as_ref %b.ref.loc19 // CHECK:STDOUT: %.loc19_22.2: ref i32 = array_index %.loc19_22.1, %.loc19_21 // CHECK:STDOUT: %.loc19_22.3: i32 = bind_value %.loc19_22.2 // CHECK:STDOUT: %.loc19_18: %.5 = addr_of [template = ] // CHECK:STDOUT: assign %pb.var, %.loc19_18 // CHECK:STDOUT: %b.ref.loc24: %.3 = name_ref b, %b -// CHECK:STDOUT: %.loc24_5: i32 = int_literal 0 [template = constants.%.6] +// CHECK:STDOUT: %.loc24_5: i32 = int_value 0 [template = constants.%.6] // CHECK:STDOUT: %.loc24_6.1: ref %.3 = value_as_ref %b.ref.loc24 // CHECK:STDOUT: %.loc24_6.2: ref i32 = array_index %.loc24_6.1, %.loc24_5 // CHECK:STDOUT: %.loc24_6.3: i32 = bind_value %.loc24_6.2 -// CHECK:STDOUT: %.loc24_10: i32 = int_literal 4 [template = constants.%.7] +// CHECK:STDOUT: %.loc24_10: i32 = int_value 4 [template = constants.%.7] // CHECK:STDOUT: assign %.loc24_6.3, %.loc24_10 // CHECK:STDOUT: %int.make_type_32.loc32: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc32_14.1: type = value_of_initializer %int.make_type_32.loc32 [template = i32] @@ -131,7 +131,7 @@ fn G(b: [i32; 3]) { // CHECK:STDOUT: %F.ref.loc32: %F.type = name_ref F, file.%F.decl [template = constants.%F] // CHECK:STDOUT: %.loc32_20.1: ref %.3 = temporary_storage // CHECK:STDOUT: %F.call.loc32: init %.3 = call %F.ref.loc32() to %.loc32_20.1 -// CHECK:STDOUT: %.loc32_23: i32 = int_literal 0 [template = constants.%.6] +// CHECK:STDOUT: %.loc32_23: i32 = int_value 0 [template = constants.%.6] // CHECK:STDOUT: %.loc32_20.2: ref %.3 = temporary %.loc32_20.1, %F.call.loc32 // CHECK:STDOUT: %.loc32_24.1: ref i32 = array_index %.loc32_20.2, %.loc32_23 // CHECK:STDOUT: %.loc32_24.2: i32 = bind_value %.loc32_24.1 @@ -140,11 +140,11 @@ fn G(b: [i32; 3]) { // CHECK:STDOUT: %F.ref.loc36: %F.type = name_ref F, file.%F.decl [template = constants.%F] // CHECK:STDOUT: %.loc36_4.1: ref %.3 = temporary_storage // CHECK:STDOUT: %F.call.loc36: init %.3 = call %F.ref.loc36() to %.loc36_4.1 -// CHECK:STDOUT: %.loc36_7: i32 = int_literal 0 [template = constants.%.6] +// CHECK:STDOUT: %.loc36_7: i32 = int_value 0 [template = constants.%.6] // CHECK:STDOUT: %.loc36_4.2: ref %.3 = temporary %.loc36_4.1, %F.call.loc36 // CHECK:STDOUT: %.loc36_8.1: ref i32 = array_index %.loc36_4.2, %.loc36_7 // CHECK:STDOUT: %.loc36_8.2: i32 = bind_value %.loc36_8.1 -// CHECK:STDOUT: %.loc36_12: i32 = int_literal 4 [template = constants.%.7] +// CHECK:STDOUT: %.loc36_12: i32 = int_value 4 [template = constants.%.7] // CHECK:STDOUT: assign %.loc36_8.2, %.loc36_12 // CHECK:STDOUT: return // CHECK:STDOUT: } diff --git a/toolchain/check/testdata/index/fail_invalid_base.carbon b/toolchain/check/testdata/index/fail_invalid_base.carbon index 128c7658cdc2d..0ce530a6eaa05 100644 --- a/toolchain/check/testdata/index/fail_invalid_base.carbon +++ b/toolchain/check/testdata/index/fail_invalid_base.carbon @@ -39,11 +39,11 @@ var d: i32 = {.a: i32, .b: i32}[0]; // CHECK:STDOUT: %Int32.type: type = fn_type @Int32 [template] // CHECK:STDOUT: %.1: type = tuple_type () [template] // CHECK:STDOUT: %Int32: %Int32.type = struct_value () [template] -// CHECK:STDOUT: %.2: i32 = int_literal 0 [template] +// CHECK:STDOUT: %.2: i32 = int_value 0 [template] // CHECK:STDOUT: %F.type: type = fn_type @F [template] // CHECK:STDOUT: %F: %F.type = struct_value () [template] -// CHECK:STDOUT: %.3: i32 = int_literal 1 [template] -// CHECK:STDOUT: %.4: i32 = int_literal 2 [template] +// CHECK:STDOUT: %.3: i32 = int_value 1 [template] +// CHECK:STDOUT: %.4: i32 = int_value 2 [template] // CHECK:STDOUT: %.5: type = struct_type {.a: i32, .b: i32} [template] // CHECK:STDOUT: %.6: type = ptr_type %.5 [template] // CHECK:STDOUT: %struct: %.5 = struct_value (%.3, %.4) [template] @@ -150,15 +150,15 @@ var d: i32 = {.a: i32, .b: i32}[0]; // CHECK:STDOUT: fn @__global_init() { // CHECK:STDOUT: !entry: // CHECK:STDOUT: %N.ref: = name_ref N, file.%N [template = file.%N] -// CHECK:STDOUT: %.loc16: i32 = int_literal 0 [template = constants.%.2] +// CHECK:STDOUT: %.loc16: i32 = int_value 0 [template = constants.%.2] // CHECK:STDOUT: assign file.%a.var, // CHECK:STDOUT: %F.ref: %F.type = name_ref F, file.%F.decl [template = constants.%F] -// CHECK:STDOUT: %.loc23: i32 = int_literal 1 [template = constants.%.3] +// CHECK:STDOUT: %.loc23: i32 = int_value 1 [template = constants.%.3] // CHECK:STDOUT: assign file.%b.var, -// CHECK:STDOUT: %.loc29_20: i32 = int_literal 1 [template = constants.%.3] -// CHECK:STDOUT: %.loc29_28: i32 = int_literal 2 [template = constants.%.4] +// CHECK:STDOUT: %.loc29_20: i32 = int_value 1 [template = constants.%.3] +// CHECK:STDOUT: %.loc29_28: i32 = int_value 2 [template = constants.%.4] // CHECK:STDOUT: %.loc29_29.1: %.5 = struct_literal (%.loc29_20, %.loc29_28) -// CHECK:STDOUT: %.loc29_31: i32 = int_literal 0 [template = constants.%.2] +// CHECK:STDOUT: %.loc29_31: i32 = int_value 0 [template = constants.%.2] // CHECK:STDOUT: %struct: %.5 = struct_value (%.loc29_20, %.loc29_28) [template = constants.%struct] // CHECK:STDOUT: %.loc29_29.2: %.5 = converted %.loc29_29.1, %struct [template = constants.%struct] // CHECK:STDOUT: assign file.%c.var, @@ -169,7 +169,7 @@ var d: i32 = {.a: i32, .b: i32}[0]; // CHECK:STDOUT: %.loc34_28.1: type = value_of_initializer %int.make_type_32.loc34_28 [template = i32] // CHECK:STDOUT: %.loc34_28.2: type = converted %int.make_type_32.loc34_28, %.loc34_28.1 [template = i32] // CHECK:STDOUT: %.loc34_31: type = struct_type {.a: i32, .b: i32} [template = constants.%.5] -// CHECK:STDOUT: %.loc34_33: i32 = int_literal 0 [template = constants.%.2] +// CHECK:STDOUT: %.loc34_33: i32 = int_value 0 [template = constants.%.2] // CHECK:STDOUT: assign file.%d.var, // CHECK:STDOUT: return // CHECK:STDOUT: } diff --git a/toolchain/check/testdata/index/fail_name_not_found.carbon b/toolchain/check/testdata/index/fail_name_not_found.carbon index 62f11aba9715c..fa62d31b46164 100644 --- a/toolchain/check/testdata/index/fail_name_not_found.carbon +++ b/toolchain/check/testdata/index/fail_name_not_found.carbon @@ -23,7 +23,7 @@ fn Main() { // CHECK:STDOUT: %Main: %Main.type = struct_value () [template] // CHECK:STDOUT: %Int32.type: type = fn_type @Int32 [template] // CHECK:STDOUT: %Int32: %Int32.type = struct_value () [template] -// CHECK:STDOUT: %.2: i32 = int_literal 0 [template] +// CHECK:STDOUT: %.2: i32 = int_value 0 [template] // CHECK:STDOUT: } // CHECK:STDOUT: // CHECK:STDOUT: imports { @@ -52,7 +52,7 @@ fn Main() { // CHECK:STDOUT: %b.var: ref i32 = var b // CHECK:STDOUT: %b: ref i32 = bind_name b, %b.var // CHECK:STDOUT: %a.ref: = name_ref a, [template = ] -// CHECK:STDOUT: %.loc15_18: i32 = int_literal 0 [template = constants.%.2] +// CHECK:STDOUT: %.loc15_18: i32 = int_value 0 [template = constants.%.2] // CHECK:STDOUT: assign %b.var, // CHECK:STDOUT: return // CHECK:STDOUT: } diff --git a/toolchain/check/testdata/index/fail_negative_indexing.carbon b/toolchain/check/testdata/index/fail_negative_indexing.carbon index 0b784a3dba21e..0d11d7e5ef889 100644 --- a/toolchain/check/testdata/index/fail_negative_indexing.carbon +++ b/toolchain/check/testdata/index/fail_negative_indexing.carbon @@ -21,15 +21,15 @@ var d: i32 = c[-10]; // CHECK:STDOUT: %Int32.type: type = fn_type @Int32 [template] // CHECK:STDOUT: %.1: type = tuple_type () [template] // CHECK:STDOUT: %Int32: %Int32.type = struct_value () [template] -// CHECK:STDOUT: %.2: i32 = int_literal 2 [template] +// CHECK:STDOUT: %.2: i32 = int_value 2 [template] // CHECK:STDOUT: %.3: type = array_type %.2, i32 [template] // CHECK:STDOUT: %.4: type = ptr_type %.3 [template] -// CHECK:STDOUT: %.5: i32 = int_literal 42 [template] +// CHECK:STDOUT: %.5: i32 = int_value 42 [template] // CHECK:STDOUT: %.6: type = tuple_type (i32, i32) [template] -// CHECK:STDOUT: %.7: i32 = int_literal 0 [template] -// CHECK:STDOUT: %.8: i32 = int_literal 1 [template] +// CHECK:STDOUT: %.7: i32 = int_value 0 [template] +// CHECK:STDOUT: %.8: i32 = int_value 1 [template] // CHECK:STDOUT: %array: %.3 = tuple_value (%.5, %.5) [template] -// CHECK:STDOUT: %.9: i32 = int_literal 10 [template] +// CHECK:STDOUT: %.9: i32 = int_value 10 [template] // CHECK:STDOUT: %Negate.type: type = interface_type @Negate [template] // CHECK:STDOUT: %Self: %Negate.type = bind_symbolic_name Self, 0 [symbolic] // CHECK:STDOUT: %Op.type: type = fn_type @Op [template] @@ -61,7 +61,7 @@ var d: i32 = c[-10]; // CHECK:STDOUT: } // CHECK:STDOUT: %Core.import = import Core // CHECK:STDOUT: %int.make_type_32.loc11: init type = call constants.%Int32() [template = i32] -// CHECK:STDOUT: %.loc11_14: i32 = int_literal 2 [template = constants.%.2] +// CHECK:STDOUT: %.loc11_14: i32 = int_value 2 [template = constants.%.2] // CHECK:STDOUT: %.loc11_9.1: type = value_of_initializer %int.make_type_32.loc11 [template = i32] // CHECK:STDOUT: %.loc11_9.2: type = converted %int.make_type_32.loc11, %.loc11_9.1 [template = i32] // CHECK:STDOUT: %.loc11_15: type = array_type %.loc11_14, i32 [template = constants.%.3] @@ -91,20 +91,20 @@ var d: i32 = c[-10]; // CHECK:STDOUT: // CHECK:STDOUT: fn @__global_init() { // CHECK:STDOUT: !entry: -// CHECK:STDOUT: %.loc11_20: i32 = int_literal 42 [template = constants.%.5] -// CHECK:STDOUT: %.loc11_24: i32 = int_literal 42 [template = constants.%.5] +// CHECK:STDOUT: %.loc11_20: i32 = int_value 42 [template = constants.%.5] +// CHECK:STDOUT: %.loc11_24: i32 = int_value 42 [template = constants.%.5] // CHECK:STDOUT: %.loc11_26.1: %.6 = tuple_literal (%.loc11_20, %.loc11_24) -// CHECK:STDOUT: %.loc11_26.2: i32 = int_literal 0 [template = constants.%.7] +// CHECK:STDOUT: %.loc11_26.2: i32 = int_value 0 [template = constants.%.7] // CHECK:STDOUT: %.loc11_26.3: ref i32 = array_index file.%c.var, %.loc11_26.2 // CHECK:STDOUT: %.loc11_26.4: init i32 = initialize_from %.loc11_20 to %.loc11_26.3 [template = constants.%.5] -// CHECK:STDOUT: %.loc11_26.5: i32 = int_literal 1 [template = constants.%.8] +// CHECK:STDOUT: %.loc11_26.5: i32 = int_value 1 [template = constants.%.8] // CHECK:STDOUT: %.loc11_26.6: ref i32 = array_index file.%c.var, %.loc11_26.5 // CHECK:STDOUT: %.loc11_26.7: init i32 = initialize_from %.loc11_24 to %.loc11_26.6 [template = constants.%.5] // CHECK:STDOUT: %.loc11_26.8: init %.3 = array_init (%.loc11_26.4, %.loc11_26.7) to file.%c.var [template = constants.%array] // CHECK:STDOUT: %.loc11_27: init %.3 = converted %.loc11_26.1, %.loc11_26.8 [template = constants.%array] // CHECK:STDOUT: assign file.%c.var, %.loc11_27 // CHECK:STDOUT: %c.ref: ref %.3 = name_ref c, file.%c -// CHECK:STDOUT: %.loc15_17: i32 = int_literal 10 [template = constants.%.9] +// CHECK:STDOUT: %.loc15_17: i32 = int_value 10 [template = constants.%.9] // CHECK:STDOUT: %Op.ref: %.10 = name_ref Op, imports.%import_ref.4 [template = constants.%.11] // CHECK:STDOUT: %.loc15_19.1: ref i32 = array_index %c.ref, [template = ] // CHECK:STDOUT: %.loc15_19.2: i32 = bind_value %.loc15_19.1 diff --git a/toolchain/check/testdata/index/fail_non_tuple_access.carbon b/toolchain/check/testdata/index/fail_non_tuple_access.carbon index 499c6d4f74748..58764c21fcafa 100644 --- a/toolchain/check/testdata/index/fail_non_tuple_access.carbon +++ b/toolchain/check/testdata/index/fail_non_tuple_access.carbon @@ -21,8 +21,8 @@ fn Main() { // CHECK:STDOUT: %Main.type: type = fn_type @Main [template] // CHECK:STDOUT: %.1: type = tuple_type () [template] // CHECK:STDOUT: %Main: %Main.type = struct_value () [template] -// CHECK:STDOUT: %.2: i32 = int_literal 0 [template] -// CHECK:STDOUT: %.3: i32 = int_literal 1 [template] +// CHECK:STDOUT: %.2: i32 = int_value 0 [template] +// CHECK:STDOUT: %.3: i32 = int_value 1 [template] // CHECK:STDOUT: %IndexWith.type.1: type = generic_interface_type @IndexWith [template] // CHECK:STDOUT: %IndexWith: %IndexWith.type.1 = struct_value () [template] // CHECK:STDOUT: %ElementType: type = bind_symbolic_name ElementType, 1 [symbolic] @@ -84,8 +84,8 @@ fn Main() { // CHECK:STDOUT: // CHECK:STDOUT: fn @Main() { // CHECK:STDOUT: !entry: -// CHECK:STDOUT: %.loc15_3: i32 = int_literal 0 [template = constants.%.2] -// CHECK:STDOUT: %.loc15_5: i32 = int_literal 1 [template = constants.%.3] +// CHECK:STDOUT: %.loc15_3: i32 = int_value 0 [template = constants.%.2] +// CHECK:STDOUT: %.loc15_5: i32 = int_value 1 [template = constants.%.3] // CHECK:STDOUT: return // CHECK:STDOUT: } // CHECK:STDOUT: diff --git a/toolchain/check/testdata/interface/fail_assoc_const_bad_default.carbon b/toolchain/check/testdata/interface/fail_assoc_const_bad_default.carbon index 717b7e6755f86..145333e3c4846 100644 --- a/toolchain/check/testdata/interface/fail_assoc_const_bad_default.carbon +++ b/toolchain/check/testdata/interface/fail_assoc_const_bad_default.carbon @@ -23,7 +23,7 @@ interface I { // CHECK:STDOUT: constants { // CHECK:STDOUT: %I.type: type = interface_type @I [template] // CHECK:STDOUT: %Self.1: %I.type = bind_symbolic_name Self, 0 [symbolic] -// CHECK:STDOUT: %.1: i32 = int_literal 42 [template] +// CHECK:STDOUT: %.1: i32 = int_value 42 [template] // CHECK:STDOUT: %ImplicitAs.type.1: type = generic_interface_type @ImplicitAs [template] // CHECK:STDOUT: %.2: type = tuple_type () [template] // CHECK:STDOUT: %ImplicitAs: %ImplicitAs.type.1 = struct_value () [template] @@ -71,7 +71,7 @@ interface I { // CHECK:STDOUT: // CHECK:STDOUT: interface @I { // CHECK:STDOUT: %Self: %I.type = bind_symbolic_name Self, 0 [symbolic = constants.%Self.1] -// CHECK:STDOUT: %.loc18_18: i32 = int_literal 42 [template = constants.%.1] +// CHECK:STDOUT: %.loc18_18: i32 = int_value 42 [template = constants.%.1] // CHECK:STDOUT: %ImplicitAs.type: type = interface_type @ImplicitAs, @ImplicitAs(type) [template = constants.%ImplicitAs.type.3] // CHECK:STDOUT: %.loc18_20.1: %.5 = specific_constant imports.%import_ref.3, @ImplicitAs(type) [template = constants.%.6] // CHECK:STDOUT: %Convert.ref: %.5 = name_ref Convert, %.loc18_20.1 [template = constants.%.6] diff --git a/toolchain/check/testdata/interface/fail_todo_assoc_const_default.carbon b/toolchain/check/testdata/interface/fail_todo_assoc_const_default.carbon index ea082b115ed31..63976a8b2b7d3 100644 --- a/toolchain/check/testdata/interface/fail_todo_assoc_const_default.carbon +++ b/toolchain/check/testdata/interface/fail_todo_assoc_const_default.carbon @@ -32,7 +32,7 @@ interface I { // CHECK:STDOUT: %.3: type = tuple_type (i32, i32) [template] // CHECK:STDOUT: %.4: type = assoc_entity_type %I.type, type [template] // CHECK:STDOUT: %.5: %.4 = assoc_entity element0, @I.%T [template] -// CHECK:STDOUT: %.6: i32 = int_literal 42 [template] +// CHECK:STDOUT: %.6: i32 = int_value 42 [template] // CHECK:STDOUT: %.7: type = assoc_entity_type %I.type, i32 [template] // CHECK:STDOUT: %.8: %.7 = assoc_entity element1, @I.%N [template] // CHECK:STDOUT: } @@ -70,7 +70,7 @@ interface I { // CHECK:STDOUT: %int.make_type_32.loc20: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc20_19.1: type = value_of_initializer %int.make_type_32.loc20 [template = i32] // CHECK:STDOUT: %.loc20_19.2: type = converted %int.make_type_32.loc20, %.loc20_19.1 [template = i32] -// CHECK:STDOUT: %.loc20_25: i32 = int_literal 42 [template = constants.%.6] +// CHECK:STDOUT: %.loc20_25: i32 = int_value 42 [template = constants.%.6] // CHECK:STDOUT: %N: i32 = assoc_const_decl N [template] // CHECK:STDOUT: %.loc20_27: %.7 = assoc_entity element1, %N [template = constants.%.8] // CHECK:STDOUT: diff --git a/toolchain/check/testdata/interface/todo_define_not_default.carbon b/toolchain/check/testdata/interface/todo_define_not_default.carbon index 9fda4b0d23353..858c4b3841b09 100644 --- a/toolchain/check/testdata/interface/todo_define_not_default.carbon +++ b/toolchain/check/testdata/interface/todo_define_not_default.carbon @@ -39,7 +39,7 @@ interface I { // CHECK:STDOUT: %.7: type = tuple_type (i32, i32) [template] // CHECK:STDOUT: %.8: type = assoc_entity_type %I.type, type [template] // CHECK:STDOUT: %.9: %.8 = assoc_entity element2, @I.%T [template] -// CHECK:STDOUT: %.10: i32 = int_literal 42 [template] +// CHECK:STDOUT: %.10: i32 = int_value 42 [template] // CHECK:STDOUT: %.11: type = assoc_entity_type %I.type, i32 [template] // CHECK:STDOUT: %.12: %.11 = assoc_entity element3, @I.%N [template] // CHECK:STDOUT: } @@ -104,7 +104,7 @@ interface I { // CHECK:STDOUT: %int.make_type_32.loc19: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc19_11.1: type = value_of_initializer %int.make_type_32.loc19 [template = i32] // CHECK:STDOUT: %.loc19_11.2: type = converted %int.make_type_32.loc19, %.loc19_11.1 [template = i32] -// CHECK:STDOUT: %.loc19_17: i32 = int_literal 42 [template = constants.%.10] +// CHECK:STDOUT: %.loc19_17: i32 = int_value 42 [template = constants.%.10] // CHECK:STDOUT: %N: i32 = assoc_const_decl N [template] // CHECK:STDOUT: %.loc19_19: %.11 = assoc_entity element3, %N [template = constants.%.12] // CHECK:STDOUT: diff --git a/toolchain/check/testdata/ir/duplicate_name_same_line.carbon b/toolchain/check/testdata/ir/duplicate_name_same_line.carbon index 7cc5d013c96bc..fa3e04f31d43a 100644 --- a/toolchain/check/testdata/ir/duplicate_name_same_line.carbon +++ b/toolchain/check/testdata/ir/duplicate_name_same_line.carbon @@ -19,8 +19,8 @@ fn A() { if (true) { var n: i32 = 1; } if (true) { var n: i32 = 2; } } // CHECK:STDOUT: %.2: bool = bool_literal true [template] // CHECK:STDOUT: %Int32.type: type = fn_type @Int32 [template] // CHECK:STDOUT: %Int32: %Int32.type = struct_value () [template] -// CHECK:STDOUT: %.3: i32 = int_literal 1 [template] -// CHECK:STDOUT: %.4: i32 = int_literal 2 [template] +// CHECK:STDOUT: %.3: i32 = int_value 1 [template] +// CHECK:STDOUT: %.4: i32 = int_value 2 [template] // CHECK:STDOUT: } // CHECK:STDOUT: // CHECK:STDOUT: imports { @@ -52,7 +52,7 @@ fn A() { if (true) { var n: i32 = 1; } if (true) { var n: i32 = 2; } } // CHECK:STDOUT: %.loc11_29.2: type = converted %int.make_type_32.loc11_29, %.loc11_29.1 [template = i32] // CHECK:STDOUT: %n.var.loc11_26: ref i32 = var n // CHECK:STDOUT: %n.loc11_26: ref i32 = bind_name n, %n.var.loc11_26 -// CHECK:STDOUT: %.loc11_35: i32 = int_literal 1 [template = constants.%.3] +// CHECK:STDOUT: %.loc11_35: i32 = int_value 1 [template = constants.%.3] // CHECK:STDOUT: assign %n.var.loc11_26, %.loc11_35 // CHECK:STDOUT: br !if.else.loc11_18 // CHECK:STDOUT: @@ -66,7 +66,7 @@ fn A() { if (true) { var n: i32 = 1; } if (true) { var n: i32 = 2; } } // CHECK:STDOUT: %.loc11_59.2: type = converted %int.make_type_32.loc11_59, %.loc11_59.1 [template = i32] // CHECK:STDOUT: %n.var.loc11_56: ref i32 = var n // CHECK:STDOUT: %n.loc11_56: ref i32 = bind_name n, %n.var.loc11_56 -// CHECK:STDOUT: %.loc11_65: i32 = int_literal 2 [template = constants.%.4] +// CHECK:STDOUT: %.loc11_65: i32 = int_value 2 [template = constants.%.4] // CHECK:STDOUT: assign %n.var.loc11_56, %.loc11_65 // CHECK:STDOUT: br !if.else.loc11_48 // CHECK:STDOUT: diff --git a/toolchain/check/testdata/let/compile_time_bindings.carbon b/toolchain/check/testdata/let/compile_time_bindings.carbon index da57fffb6b10a..aba0e3f5d9d01 100644 --- a/toolchain/check/testdata/let/compile_time_bindings.carbon +++ b/toolchain/check/testdata/let/compile_time_bindings.carbon @@ -532,7 +532,7 @@ impl i32 as Empty { // CHECK:STDOUT: %Int32: %Int32.type = struct_value () [template] // CHECK:STDOUT: %F.type: type = fn_type @F [template] // CHECK:STDOUT: %F: %F.type = struct_value () [template] -// CHECK:STDOUT: %.2: i32 = int_literal 0 [template] +// CHECK:STDOUT: %.2: i32 = int_value 0 [template] // CHECK:STDOUT: %Zero: i32 = bind_symbolic_name Zero, 0 [symbolic] // CHECK:STDOUT: } // CHECK:STDOUT: @@ -570,7 +570,7 @@ impl i32 as Empty { // CHECK:STDOUT: %int.make_type_32.loc5: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc5_14.1: type = value_of_initializer %int.make_type_32.loc5 [template = i32] // CHECK:STDOUT: %.loc5_14.2: type = converted %int.make_type_32.loc5, %.loc5_14.1 [template = i32] -// CHECK:STDOUT: %.loc5_20: i32 = int_literal 0 [template = constants.%.2] +// CHECK:STDOUT: %.loc5_20: i32 = int_value 0 [template = constants.%.2] // CHECK:STDOUT: %Zero: i32 = bind_symbolic_name Zero, 0, %.loc5_20 [symbolic = constants.%Zero] // CHECK:STDOUT: %Zero.ref: i32 = name_ref Zero, %Zero [symbolic = constants.%Zero] // CHECK:STDOUT: return %Zero.ref @@ -585,9 +585,9 @@ impl i32 as Empty { // CHECK:STDOUT: %F.type: type = fn_type @F [template] // CHECK:STDOUT: %F: %F.type = struct_value () [template] // CHECK:STDOUT: %.2: bool = bool_literal true [template] -// CHECK:STDOUT: %.3: i32 = int_literal 0 [template] +// CHECK:STDOUT: %.3: i32 = int_value 0 [template] // CHECK:STDOUT: %Zero: i32 = bind_symbolic_name Zero, 0 [symbolic] -// CHECK:STDOUT: %.4: i32 = int_literal 1 [template] +// CHECK:STDOUT: %.4: i32 = int_value 1 [template] // CHECK:STDOUT: } // CHECK:STDOUT: // CHECK:STDOUT: imports { @@ -628,13 +628,13 @@ impl i32 as Empty { // CHECK:STDOUT: %int.make_type_32.loc6: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc6_16.1: type = value_of_initializer %int.make_type_32.loc6 [template = i32] // CHECK:STDOUT: %.loc6_16.2: type = converted %int.make_type_32.loc6, %.loc6_16.1 [template = i32] -// CHECK:STDOUT: %.loc6_22: i32 = int_literal 0 [template = constants.%.3] +// CHECK:STDOUT: %.loc6_22: i32 = int_value 0 [template = constants.%.3] // CHECK:STDOUT: %Zero: i32 = bind_symbolic_name Zero, 0, %.loc6_22 [symbolic = constants.%Zero] // CHECK:STDOUT: %Zero.ref: i32 = name_ref Zero, %Zero [symbolic = constants.%Zero] // CHECK:STDOUT: return %Zero.ref // CHECK:STDOUT: // CHECK:STDOUT: !if.else: -// CHECK:STDOUT: %.loc9: i32 = int_literal 1 [template = constants.%.4] +// CHECK:STDOUT: %.loc9: i32 = int_value 1 [template = constants.%.4] // CHECK:STDOUT: return %.loc9 // CHECK:STDOUT: } // CHECK:STDOUT: @@ -908,7 +908,7 @@ impl i32 as Empty { // CHECK:STDOUT: %Int32.type: type = fn_type @Int32 [template] // CHECK:STDOUT: %.1: type = tuple_type () [template] // CHECK:STDOUT: %Int32: %Int32.type = struct_value () [template] -// CHECK:STDOUT: %.2: i32 = int_literal 0 [template] +// CHECK:STDOUT: %.2: i32 = int_value 0 [template] // CHECK:STDOUT: %.3: = interface_witness () [template] // CHECK:STDOUT: } // CHECK:STDOUT: @@ -948,7 +948,7 @@ impl i32 as Empty { // CHECK:STDOUT: %int.make_type_32.loc10: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc10_14.1: type = value_of_initializer %int.make_type_32.loc10 [template = i32] // CHECK:STDOUT: %.loc10_14.2: type = converted %int.make_type_32.loc10, %.loc10_14.1 [template = i32] -// CHECK:STDOUT: %.loc10_20: i32 = int_literal 0 [template = constants.%.2] +// CHECK:STDOUT: %.loc10_20: i32 = int_value 0 [template = constants.%.2] // CHECK:STDOUT: %Zero: i32 = bind_name Zero, %.loc10_20 // CHECK:STDOUT: %.loc6_19: = interface_witness () [template = constants.%.3] // CHECK:STDOUT: diff --git a/toolchain/check/testdata/let/convert.carbon b/toolchain/check/testdata/let/convert.carbon index 2c2aff05ec6a3..502ce261e1df4 100644 --- a/toolchain/check/testdata/let/convert.carbon +++ b/toolchain/check/testdata/let/convert.carbon @@ -26,9 +26,9 @@ fn F() -> i32 { // CHECK:STDOUT: %.2: type = tuple_type (type, type, type) [template] // CHECK:STDOUT: %.3: type = tuple_type (i32, i32, i32) [template] // CHECK:STDOUT: %.4: type = ptr_type %.3 [template] -// CHECK:STDOUT: %.5: i32 = int_literal 1 [template] -// CHECK:STDOUT: %.6: i32 = int_literal 2 [template] -// CHECK:STDOUT: %.7: i32 = int_literal 3 [template] +// CHECK:STDOUT: %.5: i32 = int_value 1 [template] +// CHECK:STDOUT: %.6: i32 = int_value 2 [template] +// CHECK:STDOUT: %.7: i32 = int_value 3 [template] // CHECK:STDOUT: %tuple: %.3 = tuple_value (%.5, %.6, %.7) [template] // CHECK:STDOUT: } // CHECK:STDOUT: @@ -76,9 +76,9 @@ fn F() -> i32 { // CHECK:STDOUT: %.loc12_24.8: type = converted %.loc12_24.1, constants.%.3 [template = constants.%.3] // CHECK:STDOUT: %v.var: ref %.3 = var v // CHECK:STDOUT: %v: ref %.3 = bind_name v, %v.var -// CHECK:STDOUT: %.loc12_29: i32 = int_literal 1 [template = constants.%.5] -// CHECK:STDOUT: %.loc12_32: i32 = int_literal 2 [template = constants.%.6] -// CHECK:STDOUT: %.loc12_35: i32 = int_literal 3 [template = constants.%.7] +// CHECK:STDOUT: %.loc12_29: i32 = int_value 1 [template = constants.%.5] +// CHECK:STDOUT: %.loc12_32: i32 = int_value 2 [template = constants.%.6] +// CHECK:STDOUT: %.loc12_35: i32 = int_value 3 [template = constants.%.7] // CHECK:STDOUT: %.loc12_36.1: %.3 = tuple_literal (%.loc12_29, %.loc12_32, %.loc12_35) // CHECK:STDOUT: %.loc12_36.2: ref i32 = tuple_access %v.var, element0 // CHECK:STDOUT: %.loc12_36.3: init i32 = initialize_from %.loc12_29 to %.loc12_36.2 [template = constants.%.5] @@ -111,7 +111,7 @@ fn F() -> i32 { // CHECK:STDOUT: %.loc14_29: %.3 = converted %v.ref, %tuple // CHECK:STDOUT: %w: %.3 = bind_name w, %.loc14_29 // CHECK:STDOUT: %w.ref: %.3 = name_ref w, %w -// CHECK:STDOUT: %.loc15_12: i32 = int_literal 1 [template = constants.%.5] +// CHECK:STDOUT: %.loc15_12: i32 = int_value 1 [template = constants.%.5] // CHECK:STDOUT: %.loc15_11: i32 = tuple_access %w.ref, element1 // CHECK:STDOUT: return %.loc15_11 // CHECK:STDOUT: } diff --git a/toolchain/check/testdata/let/fail_duplicate_decl.carbon b/toolchain/check/testdata/let/fail_duplicate_decl.carbon index 1ff585c4f5d29..29084c19751df 100644 --- a/toolchain/check/testdata/let/fail_duplicate_decl.carbon +++ b/toolchain/check/testdata/let/fail_duplicate_decl.carbon @@ -27,8 +27,8 @@ fn F() { // CHECK:STDOUT: %F: %F.type = struct_value () [template] // CHECK:STDOUT: %Int32.type: type = fn_type @Int32 [template] // CHECK:STDOUT: %Int32: %Int32.type = struct_value () [template] -// CHECK:STDOUT: %.2: i32 = int_literal 1 [template] -// CHECK:STDOUT: %.3: i32 = int_literal 2 [template] +// CHECK:STDOUT: %.2: i32 = int_value 1 [template] +// CHECK:STDOUT: %.3: i32 = int_value 2 [template] // CHECK:STDOUT: } // CHECK:STDOUT: // CHECK:STDOUT: imports { @@ -54,12 +54,12 @@ fn F() { // CHECK:STDOUT: %int.make_type_32.loc12: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc12_10.1: type = value_of_initializer %int.make_type_32.loc12 [template = i32] // CHECK:STDOUT: %.loc12_10.2: type = converted %int.make_type_32.loc12, %.loc12_10.1 [template = i32] -// CHECK:STDOUT: %.loc12_16: i32 = int_literal 1 [template = constants.%.2] +// CHECK:STDOUT: %.loc12_16: i32 = int_value 1 [template = constants.%.2] // CHECK:STDOUT: %a.loc12: i32 = bind_name a, %.loc12_16 // CHECK:STDOUT: %int.make_type_32.loc19: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc19_10.1: type = value_of_initializer %int.make_type_32.loc19 [template = i32] // CHECK:STDOUT: %.loc19_10.2: type = converted %int.make_type_32.loc19, %.loc19_10.1 [template = i32] -// CHECK:STDOUT: %.loc19_16: i32 = int_literal 2 [template = constants.%.3] +// CHECK:STDOUT: %.loc19_16: i32 = int_value 2 [template = constants.%.3] // CHECK:STDOUT: %a.loc19: i32 = bind_name a, %.loc19_16 // CHECK:STDOUT: return // CHECK:STDOUT: } diff --git a/toolchain/check/testdata/let/fail_generic.carbon b/toolchain/check/testdata/let/fail_generic.carbon index 0cbda65bde8f2..4f81f00aa7331 100644 --- a/toolchain/check/testdata/let/fail_generic.carbon +++ b/toolchain/check/testdata/let/fail_generic.carbon @@ -37,7 +37,7 @@ fn F(a: i32) -> i32 { // CHECK:STDOUT: %F.type: type = fn_type @F [template] // CHECK:STDOUT: %F: %F.type = struct_value () [template] // CHECK:STDOUT: %T: type = bind_symbolic_name T, 0 [symbolic] -// CHECK:STDOUT: %.2: i32 = int_literal 5 [template] +// CHECK:STDOUT: %.2: i32 = int_value 5 [template] // CHECK:STDOUT: %ImplicitAs.type.1: type = generic_interface_type @ImplicitAs [template] // CHECK:STDOUT: %ImplicitAs: %ImplicitAs.type.1 = struct_value () [template] // CHECK:STDOUT: %Dest: type = bind_symbolic_name Dest, 0 [symbolic] @@ -132,7 +132,7 @@ fn F(a: i32) -> i32 { // CHECK:STDOUT: %.loc13_21.2: type = converted %int.make_type_32.loc13, %.loc13_21.1 [template = i32] // CHECK:STDOUT: %T: type = bind_symbolic_name T, 0, %.loc13_21.2 [symbolic = constants.%T] // CHECK:STDOUT: %T.ref: type = name_ref T, %T [symbolic = constants.%T] -// CHECK:STDOUT: %.loc21_14: i32 = int_literal 5 [template = constants.%.2] +// CHECK:STDOUT: %.loc21_14: i32 = int_value 5 [template = constants.%.2] // CHECK:STDOUT: %ImplicitAs.type.loc21: type = interface_type @ImplicitAs, @ImplicitAs(constants.%T) [symbolic = constants.%ImplicitAs.type.3] // CHECK:STDOUT: %.loc21_15.1: %.5 = specific_constant imports.%import_ref.4, @ImplicitAs(constants.%T) [symbolic = constants.%.6] // CHECK:STDOUT: %Convert.ref.loc21: %.5 = name_ref Convert, %.loc21_15.1 [symbolic = constants.%.6] diff --git a/toolchain/check/testdata/let/fail_generic_import.carbon b/toolchain/check/testdata/let/fail_generic_import.carbon index 9ee65fc56d73d..af534c4f217dc 100644 --- a/toolchain/check/testdata/let/fail_generic_import.carbon +++ b/toolchain/check/testdata/let/fail_generic_import.carbon @@ -67,7 +67,7 @@ let a: T = 0; // CHECK:STDOUT: --- fail_implicit.impl.carbon // CHECK:STDOUT: // CHECK:STDOUT: constants { -// CHECK:STDOUT: %.1: i32 = int_literal 0 [template] +// CHECK:STDOUT: %.1: i32 = int_value 0 [template] // CHECK:STDOUT: } // CHECK:STDOUT: // CHECK:STDOUT: imports { @@ -92,7 +92,7 @@ let a: T = 0; // CHECK:STDOUT: // CHECK:STDOUT: fn @__global_init() { // CHECK:STDOUT: !entry: -// CHECK:STDOUT: %.loc8: i32 = int_literal 0 [template = constants.%.1] +// CHECK:STDOUT: %.loc8: i32 = int_value 0 [template = constants.%.1] // CHECK:STDOUT: %a: = bind_name a, // CHECK:STDOUT: return // CHECK:STDOUT: } diff --git a/toolchain/check/testdata/let/fail_modifiers.carbon b/toolchain/check/testdata/let/fail_modifiers.carbon index fa39037c0fb98..a2ab07de47c8d 100644 --- a/toolchain/check/testdata/let/fail_modifiers.carbon +++ b/toolchain/check/testdata/let/fail_modifiers.carbon @@ -89,7 +89,7 @@ protected protected let i: i32 = 1; // CHECK:STDOUT: %Int32.type: type = fn_type @Int32 [template] // CHECK:STDOUT: %.1: type = tuple_type () [template] // CHECK:STDOUT: %Int32: %Int32.type = struct_value () [template] -// CHECK:STDOUT: %.2: i32 = int_literal 1 [template] +// CHECK:STDOUT: %.2: i32 = int_value 1 [template] // CHECK:STDOUT: } // CHECK:STDOUT: // CHECK:STDOUT: imports { @@ -144,21 +144,21 @@ protected protected let i: i32 = 1; // CHECK:STDOUT: // CHECK:STDOUT: fn @__global_init() { // CHECK:STDOUT: !entry: -// CHECK:STDOUT: %.loc15: i32 = int_literal 1 [template = constants.%.2] +// CHECK:STDOUT: %.loc15: i32 = int_value 1 [template = constants.%.2] // CHECK:STDOUT: %b: i32 = bind_name b, %.loc15 -// CHECK:STDOUT: %.loc21: i32 = int_literal 1 [template = constants.%.2] +// CHECK:STDOUT: %.loc21: i32 = int_value 1 [template = constants.%.2] // CHECK:STDOUT: %c: i32 = bind_name c, %.loc21 -// CHECK:STDOUT: %.loc27: i32 = int_literal 1 [template = constants.%.2] +// CHECK:STDOUT: %.loc27: i32 = int_value 1 [template = constants.%.2] // CHECK:STDOUT: %d: i32 = bind_name d, %.loc27 -// CHECK:STDOUT: %.loc33: i32 = int_literal 1 [template = constants.%.2] +// CHECK:STDOUT: %.loc33: i32 = int_value 1 [template = constants.%.2] // CHECK:STDOUT: %e: i32 = bind_name e, %.loc33 -// CHECK:STDOUT: %.loc46: i32 = int_literal 1 [template = constants.%.2] +// CHECK:STDOUT: %.loc46: i32 = int_value 1 [template = constants.%.2] // CHECK:STDOUT: %f: i32 = bind_name f, %.loc46 -// CHECK:STDOUT: %.loc59: i32 = int_literal 1 [template = constants.%.2] +// CHECK:STDOUT: %.loc59: i32 = int_value 1 [template = constants.%.2] // CHECK:STDOUT: %g: i32 = bind_name g, %.loc59 -// CHECK:STDOUT: %.loc72: i32 = int_literal 1 [template = constants.%.2] +// CHECK:STDOUT: %.loc72: i32 = int_value 1 [template = constants.%.2] // CHECK:STDOUT: %h: i32 = bind_name h, %.loc72 -// CHECK:STDOUT: %.loc84: i32 = int_literal 1 [template = constants.%.2] +// CHECK:STDOUT: %.loc84: i32 = int_value 1 [template = constants.%.2] // CHECK:STDOUT: %i: i32 = bind_name i, %.loc84 // CHECK:STDOUT: return // CHECK:STDOUT: } diff --git a/toolchain/check/testdata/let/global.carbon b/toolchain/check/testdata/let/global.carbon index de774c37e7ff4..127bd059c0c81 100644 --- a/toolchain/check/testdata/let/global.carbon +++ b/toolchain/check/testdata/let/global.carbon @@ -18,7 +18,7 @@ fn F() -> i32 { return n; } // CHECK:STDOUT: %Int32.type: type = fn_type @Int32 [template] // CHECK:STDOUT: %.1: type = tuple_type () [template] // CHECK:STDOUT: %Int32: %Int32.type = struct_value () [template] -// CHECK:STDOUT: %.2: i32 = int_literal 1 [template] +// CHECK:STDOUT: %.2: i32 = int_value 1 [template] // CHECK:STDOUT: %F.type: type = fn_type @F [template] // CHECK:STDOUT: %F: %F.type = struct_value () [template] // CHECK:STDOUT: } @@ -64,7 +64,7 @@ fn F() -> i32 { return n; } // CHECK:STDOUT: // CHECK:STDOUT: fn @__global_init() { // CHECK:STDOUT: !entry: -// CHECK:STDOUT: %.loc11: i32 = int_literal 1 [template = constants.%.2] +// CHECK:STDOUT: %.loc11: i32 = int_value 1 [template = constants.%.2] // CHECK:STDOUT: %n: i32 = bind_name n, %.loc11 // CHECK:STDOUT: return // CHECK:STDOUT: } diff --git a/toolchain/check/testdata/let/shadowed_decl.carbon b/toolchain/check/testdata/let/shadowed_decl.carbon index baaf9e427c446..9c4399e2fbe99 100644 --- a/toolchain/check/testdata/let/shadowed_decl.carbon +++ b/toolchain/check/testdata/let/shadowed_decl.carbon @@ -22,7 +22,7 @@ fn F(a: i32) -> i32 { // CHECK:STDOUT: %Int32: %Int32.type = struct_value () [template] // CHECK:STDOUT: %F.type: type = fn_type @F [template] // CHECK:STDOUT: %F: %F.type = struct_value () [template] -// CHECK:STDOUT: %.2: i32 = int_literal 1 [template] +// CHECK:STDOUT: %.2: i32 = int_value 1 [template] // CHECK:STDOUT: } // CHECK:STDOUT: // CHECK:STDOUT: imports { @@ -66,7 +66,7 @@ fn F(a: i32) -> i32 { // CHECK:STDOUT: %int.make_type_32.loc12: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc12_10.1: type = value_of_initializer %int.make_type_32.loc12 [template = i32] // CHECK:STDOUT: %.loc12_10.2: type = converted %int.make_type_32.loc12, %.loc12_10.1 [template = i32] -// CHECK:STDOUT: %.loc12_16: i32 = int_literal 1 [template = constants.%.2] +// CHECK:STDOUT: %.loc12_16: i32 = int_value 1 [template = constants.%.2] // CHECK:STDOUT: %a.loc12: i32 = bind_name a, %.loc12_16 // CHECK:STDOUT: %a.ref: i32 = name_ref a, %a.loc12 // CHECK:STDOUT: return %a.ref diff --git a/toolchain/check/testdata/namespace/add_to_import.carbon b/toolchain/check/testdata/namespace/add_to_import.carbon index f7908d5d59dce..c5956d80f2930 100644 --- a/toolchain/check/testdata/namespace/add_to_import.carbon +++ b/toolchain/check/testdata/namespace/add_to_import.carbon @@ -48,7 +48,7 @@ var a: i32 = NS.A(); // CHECK:STDOUT: %Int32: %Int32.type = struct_value () [template] // CHECK:STDOUT: %A.type: type = fn_type @A [template] // CHECK:STDOUT: %A: %A.type = struct_value () [template] -// CHECK:STDOUT: %.2: i32 = int_literal 0 [template] +// CHECK:STDOUT: %.2: i32 = int_value 0 [template] // CHECK:STDOUT: } // CHECK:STDOUT: // CHECK:STDOUT: imports { @@ -94,7 +94,7 @@ var a: i32 = NS.A(); // CHECK:STDOUT: // CHECK:STDOUT: fn @A() -> i32 { // CHECK:STDOUT: !entry: -// CHECK:STDOUT: %.loc4_27: i32 = int_literal 0 [template = constants.%.2] +// CHECK:STDOUT: %.loc4_27: i32 = int_value 0 [template = constants.%.2] // CHECK:STDOUT: return %.loc4_27 // CHECK:STDOUT: } // CHECK:STDOUT: diff --git a/toolchain/check/testdata/namespace/alias.carbon b/toolchain/check/testdata/namespace/alias.carbon index f1ac1599eb876..bfb48843697cf 100644 --- a/toolchain/check/testdata/namespace/alias.carbon +++ b/toolchain/check/testdata/namespace/alias.carbon @@ -28,7 +28,7 @@ fn D() -> i32 { return C(); } // CHECK:STDOUT: %Int32: %Int32.type = struct_value () [template] // CHECK:STDOUT: %A.type: type = fn_type @A [template] // CHECK:STDOUT: %A: %A.type = struct_value () [template] -// CHECK:STDOUT: %.2: i32 = int_literal 0 [template] +// CHECK:STDOUT: %.2: i32 = int_value 0 [template] // CHECK:STDOUT: %B.type: type = fn_type @B [template] // CHECK:STDOUT: %B: %B.type = struct_value () [template] // CHECK:STDOUT: %D.type: type = fn_type @D [template] @@ -98,7 +98,7 @@ fn D() -> i32 { return C(); } // CHECK:STDOUT: // CHECK:STDOUT: fn @A() -> i32 { // CHECK:STDOUT: !entry: -// CHECK:STDOUT: %.loc15_27: i32 = int_literal 0 [template = constants.%.2] +// CHECK:STDOUT: %.loc15_27: i32 = int_value 0 [template = constants.%.2] // CHECK:STDOUT: return %.loc15_27 // CHECK:STDOUT: } // CHECK:STDOUT: diff --git a/toolchain/check/testdata/namespace/fail_decl_in_alias.carbon b/toolchain/check/testdata/namespace/fail_decl_in_alias.carbon index a5ffd15cc4a74..abec4fa8a7db1 100644 --- a/toolchain/check/testdata/namespace/fail_decl_in_alias.carbon +++ b/toolchain/check/testdata/namespace/fail_decl_in_alias.carbon @@ -29,7 +29,7 @@ fn ns.A() -> i32 { return 0; } // CHECK:STDOUT: %Int32: %Int32.type = struct_value () [template] // CHECK:STDOUT: %.type: type = fn_type @.1 [template] // CHECK:STDOUT: %.2: %.type = struct_value () [template] -// CHECK:STDOUT: %.3: i32 = int_literal 0 [template] +// CHECK:STDOUT: %.3: i32 = int_value 0 [template] // CHECK:STDOUT: } // CHECK:STDOUT: // CHECK:STDOUT: imports { @@ -67,7 +67,7 @@ fn ns.A() -> i32 { return 0; } // CHECK:STDOUT: // CHECK:STDOUT: fn @.1() -> i32 { // CHECK:STDOUT: !entry: -// CHECK:STDOUT: %.loc22_27: i32 = int_literal 0 [template = constants.%.3] +// CHECK:STDOUT: %.loc22_27: i32 = int_value 0 [template = constants.%.3] // CHECK:STDOUT: return %.loc22_27 // CHECK:STDOUT: } // CHECK:STDOUT: diff --git a/toolchain/check/testdata/namespace/shadow.carbon b/toolchain/check/testdata/namespace/shadow.carbon index 1029328e75df2..bac8daaa84ec7 100644 --- a/toolchain/check/testdata/namespace/shadow.carbon +++ b/toolchain/check/testdata/namespace/shadow.carbon @@ -40,7 +40,7 @@ fn N.M.B() -> i32 { // CHECK:STDOUT: %B.type: type = fn_type @B [template] // CHECK:STDOUT: %B: %B.type = struct_value () [template] // CHECK:STDOUT: %.2: bool = bool_literal true [template] -// CHECK:STDOUT: %.3: i32 = int_literal 0 [template] +// CHECK:STDOUT: %.3: i32 = int_value 0 [template] // CHECK:STDOUT: } // CHECK:STDOUT: // CHECK:STDOUT: imports { @@ -99,14 +99,14 @@ fn N.M.B() -> i32 { // CHECK:STDOUT: %.loc22_12.2: type = converted %int.make_type_32.loc22, %.loc22_12.1 [template = i32] // CHECK:STDOUT: %A.var: ref i32 = var A // CHECK:STDOUT: %A: ref i32 = bind_name A, %A.var -// CHECK:STDOUT: %.loc22_18: i32 = int_literal 0 [template = constants.%.3] +// CHECK:STDOUT: %.loc22_18: i32 = int_value 0 [template = constants.%.3] // CHECK:STDOUT: assign %A.var, %.loc22_18 // CHECK:STDOUT: %A.ref.loc25: ref i32 = name_ref A, %A // CHECK:STDOUT: %.loc25: i32 = bind_value %A.ref.loc25 // CHECK:STDOUT: return %.loc25 // CHECK:STDOUT: // CHECK:STDOUT: !if.else: -// CHECK:STDOUT: %.loc27: i32 = int_literal 0 [template = constants.%.3] +// CHECK:STDOUT: %.loc27: i32 = int_value 0 [template = constants.%.3] // CHECK:STDOUT: return %.loc27 // CHECK:STDOUT: } // CHECK:STDOUT: diff --git a/toolchain/check/testdata/operators/builtin/assignment.carbon b/toolchain/check/testdata/operators/builtin/assignment.carbon index 241579731c587..63449d416bddd 100644 --- a/toolchain/check/testdata/operators/builtin/assignment.carbon +++ b/toolchain/check/testdata/operators/builtin/assignment.carbon @@ -34,24 +34,24 @@ fn Main() { // CHECK:STDOUT: %Main: %Main.type = struct_value () [template] // CHECK:STDOUT: %Int32.type: type = fn_type @Int32 [template] // CHECK:STDOUT: %Int32: %Int32.type = struct_value () [template] -// CHECK:STDOUT: %.2: i32 = int_literal 12 [template] -// CHECK:STDOUT: %.3: i32 = int_literal 9 [template] +// CHECK:STDOUT: %.2: i32 = int_value 12 [template] +// CHECK:STDOUT: %.3: i32 = int_value 9 [template] // CHECK:STDOUT: %.4: type = tuple_type (type, type) [template] // CHECK:STDOUT: %.5: type = tuple_type (i32, i32) [template] // CHECK:STDOUT: %.6: type = ptr_type %.5 [template] -// CHECK:STDOUT: %.7: i32 = int_literal 1 [template] -// CHECK:STDOUT: %.8: i32 = int_literal 2 [template] +// CHECK:STDOUT: %.7: i32 = int_value 1 [template] +// CHECK:STDOUT: %.8: i32 = int_value 2 [template] // CHECK:STDOUT: %tuple: %.5 = tuple_value (%.7, %.8) [template] -// CHECK:STDOUT: %.9: i32 = int_literal 0 [template] -// CHECK:STDOUT: %.10: i32 = int_literal 3 [template] -// CHECK:STDOUT: %.11: i32 = int_literal 4 [template] +// CHECK:STDOUT: %.9: i32 = int_value 0 [template] +// CHECK:STDOUT: %.10: i32 = int_value 3 [template] +// CHECK:STDOUT: %.11: i32 = int_value 4 [template] // CHECK:STDOUT: %.12: type = struct_type {.a: i32, .b: i32} [template] // CHECK:STDOUT: %.13: type = ptr_type %.12 [template] // CHECK:STDOUT: %struct: %.12 = struct_value (%.7, %.8) [template] // CHECK:STDOUT: %.14: type = ptr_type i32 [template] -// CHECK:STDOUT: %.15: i32 = int_literal 5 [template] +// CHECK:STDOUT: %.15: i32 = int_value 5 [template] // CHECK:STDOUT: %.16: bool = bool_literal true [template] -// CHECK:STDOUT: %.17: i32 = int_literal 10 [template] +// CHECK:STDOUT: %.17: i32 = int_value 10 [template] // CHECK:STDOUT: } // CHECK:STDOUT: // CHECK:STDOUT: imports { @@ -79,10 +79,10 @@ fn Main() { // CHECK:STDOUT: %.loc12_10.2: type = converted %int.make_type_32.loc12, %.loc12_10.1 [template = i32] // CHECK:STDOUT: %a.var: ref i32 = var a // CHECK:STDOUT: %a: ref i32 = bind_name a, %a.var -// CHECK:STDOUT: %.loc12_16: i32 = int_literal 12 [template = constants.%.2] +// CHECK:STDOUT: %.loc12_16: i32 = int_value 12 [template = constants.%.2] // CHECK:STDOUT: assign %a.var, %.loc12_16 // CHECK:STDOUT: %a.ref.loc13: ref i32 = name_ref a, %a -// CHECK:STDOUT: %.loc13: i32 = int_literal 9 [template = constants.%.3] +// CHECK:STDOUT: %.loc13: i32 = int_value 9 [template = constants.%.3] // CHECK:STDOUT: assign %a.ref.loc13, %.loc13 // CHECK:STDOUT: %int.make_type_32.loc15_11: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %int.make_type_32.loc15_16: init type = call constants.%Int32() [template = i32] @@ -94,8 +94,8 @@ fn Main() { // CHECK:STDOUT: %.loc15_19.6: type = converted %.loc15_19.1, constants.%.5 [template = constants.%.5] // CHECK:STDOUT: %b.var: ref %.5 = var b // CHECK:STDOUT: %b: ref %.5 = bind_name b, %b.var -// CHECK:STDOUT: %.loc15_24: i32 = int_literal 1 [template = constants.%.7] -// CHECK:STDOUT: %.loc15_27: i32 = int_literal 2 [template = constants.%.8] +// CHECK:STDOUT: %.loc15_24: i32 = int_value 1 [template = constants.%.7] +// CHECK:STDOUT: %.loc15_27: i32 = int_value 2 [template = constants.%.8] // CHECK:STDOUT: %.loc15_28.1: %.5 = tuple_literal (%.loc15_24, %.loc15_27) // CHECK:STDOUT: %.loc15_28.2: ref i32 = tuple_access %b.var, element0 // CHECK:STDOUT: %.loc15_28.3: init i32 = initialize_from %.loc15_24 to %.loc15_28.2 [template = constants.%.7] @@ -105,14 +105,14 @@ fn Main() { // CHECK:STDOUT: %.loc15_29: init %.5 = converted %.loc15_28.1, %.loc15_28.6 [template = constants.%tuple] // CHECK:STDOUT: assign %b.var, %.loc15_29 // CHECK:STDOUT: %b.ref.loc16: ref %.5 = name_ref b, %b -// CHECK:STDOUT: %.loc16_5: i32 = int_literal 0 [template = constants.%.9] +// CHECK:STDOUT: %.loc16_5: i32 = int_value 0 [template = constants.%.9] // CHECK:STDOUT: %.loc16_4: ref i32 = tuple_access %b.ref.loc16, element0 -// CHECK:STDOUT: %.loc16_9: i32 = int_literal 3 [template = constants.%.10] +// CHECK:STDOUT: %.loc16_9: i32 = int_value 3 [template = constants.%.10] // CHECK:STDOUT: assign %.loc16_4, %.loc16_9 // CHECK:STDOUT: %b.ref.loc17: ref %.5 = name_ref b, %b -// CHECK:STDOUT: %.loc17_5: i32 = int_literal 1 [template = constants.%.7] +// CHECK:STDOUT: %.loc17_5: i32 = int_value 1 [template = constants.%.7] // CHECK:STDOUT: %.loc17_4: ref i32 = tuple_access %b.ref.loc17, element1 -// CHECK:STDOUT: %.loc17_9: i32 = int_literal 4 [template = constants.%.11] +// CHECK:STDOUT: %.loc17_9: i32 = int_value 4 [template = constants.%.11] // CHECK:STDOUT: assign %.loc17_4, %.loc17_9 // CHECK:STDOUT: %int.make_type_32.loc19_15: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc19_15.1: type = value_of_initializer %int.make_type_32.loc19_15 [template = i32] @@ -123,8 +123,8 @@ fn Main() { // CHECK:STDOUT: %.loc19_27: type = struct_type {.a: i32, .b: i32} [template = constants.%.12] // CHECK:STDOUT: %c.var: ref %.12 = var c // CHECK:STDOUT: %c: ref %.12 = bind_name c, %c.var -// CHECK:STDOUT: %.loc19_37: i32 = int_literal 1 [template = constants.%.7] -// CHECK:STDOUT: %.loc19_45: i32 = int_literal 2 [template = constants.%.8] +// CHECK:STDOUT: %.loc19_37: i32 = int_value 1 [template = constants.%.7] +// CHECK:STDOUT: %.loc19_45: i32 = int_value 2 [template = constants.%.8] // CHECK:STDOUT: %.loc19_46.1: %.12 = struct_literal (%.loc19_37, %.loc19_45) // CHECK:STDOUT: %.loc19_46.2: ref i32 = struct_access %c.var, element0 // CHECK:STDOUT: %.loc19_46.3: init i32 = initialize_from %.loc19_37 to %.loc19_46.2 [template = constants.%.7] @@ -135,11 +135,11 @@ fn Main() { // CHECK:STDOUT: assign %c.var, %.loc19_47 // CHECK:STDOUT: %c.ref.loc20: ref %.12 = name_ref c, %c // CHECK:STDOUT: %.loc20_4: ref i32 = struct_access %c.ref.loc20, element0 -// CHECK:STDOUT: %.loc20_9: i32 = int_literal 3 [template = constants.%.10] +// CHECK:STDOUT: %.loc20_9: i32 = int_value 3 [template = constants.%.10] // CHECK:STDOUT: assign %.loc20_4, %.loc20_9 // CHECK:STDOUT: %c.ref.loc21: ref %.12 = name_ref c, %c // CHECK:STDOUT: %.loc21_4: ref i32 = struct_access %c.ref.loc21, element1 -// CHECK:STDOUT: %.loc21_9: i32 = int_literal 4 [template = constants.%.11] +// CHECK:STDOUT: %.loc21_9: i32 = int_value 4 [template = constants.%.11] // CHECK:STDOUT: assign %.loc21_4, %.loc21_9 // CHECK:STDOUT: %int.make_type_32.loc23: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc23_13.1: type = value_of_initializer %int.make_type_32.loc23 [template = i32] @@ -153,7 +153,7 @@ fn Main() { // CHECK:STDOUT: %p.ref.loc24: ref %.14 = name_ref p, %p // CHECK:STDOUT: %.loc24_4: %.14 = bind_value %p.ref.loc24 // CHECK:STDOUT: %.loc24_3: ref i32 = deref %.loc24_4 -// CHECK:STDOUT: %.loc24_8: i32 = int_literal 5 [template = constants.%.15] +// CHECK:STDOUT: %.loc24_8: i32 = int_value 5 [template = constants.%.15] // CHECK:STDOUT: assign %.loc24_3, %.loc24_8 // CHECK:STDOUT: %.loc26_8: bool = bool_literal true [template = constants.%.16] // CHECK:STDOUT: if %.loc26_8 br !if.expr.then else br !if.expr.else @@ -171,7 +171,7 @@ fn Main() { // CHECK:STDOUT: !if.expr.result: // CHECK:STDOUT: %.loc26_5: %.14 = block_arg !if.expr.result // CHECK:STDOUT: %.loc26_3: ref i32 = deref %.loc26_5 -// CHECK:STDOUT: %.loc26_31: i32 = int_literal 10 [template = constants.%.17] +// CHECK:STDOUT: %.loc26_31: i32 = int_value 10 [template = constants.%.17] // CHECK:STDOUT: assign %.loc26_3, %.loc26_31 // CHECK:STDOUT: return // CHECK:STDOUT: } diff --git a/toolchain/check/testdata/operators/builtin/fail_and_or_not_in_function.carbon b/toolchain/check/testdata/operators/builtin/fail_and_or_not_in_function.carbon index c1d1f1c5d848c..0650defcaf6f9 100644 --- a/toolchain/check/testdata/operators/builtin/fail_and_or_not_in_function.carbon +++ b/toolchain/check/testdata/operators/builtin/fail_and_or_not_in_function.carbon @@ -51,7 +51,7 @@ var or_: F(true or true); // CHECK:STDOUT: %F: %F.type = struct_value () [template] // CHECK:STDOUT: %Int32.type: type = fn_type @Int32 [template] // CHECK:STDOUT: %Int32: %Int32.type = struct_value () [template] -// CHECK:STDOUT: %.2: Core.BigInt = int_literal 64 [template] +// CHECK:STDOUT: %.2: Core.BigInt = int_value 64 [template] // CHECK:STDOUT: %Float.type: type = fn_type @Float [template] // CHECK:STDOUT: %Float: %Float.type = struct_value () [template] // CHECK:STDOUT: %.3: bool = bool_literal true [template] @@ -94,7 +94,7 @@ var or_: F(true or true); // CHECK:STDOUT: br !if.expr.result(%.loc13_20.2) // CHECK:STDOUT: // CHECK:STDOUT: !if.expr.else: -// CHECK:STDOUT: %.loc13_29: Core.BigInt = int_literal 64 [template = constants.%.2] +// CHECK:STDOUT: %.loc13_29: Core.BigInt = int_value 64 [template = constants.%.2] // CHECK:STDOUT: %float.make_type: init type = call constants.%Float(%.loc13_29) [template = f64] // CHECK:STDOUT: %.loc13_24.1: type = value_of_initializer %float.make_type [template = f64] // CHECK:STDOUT: %.loc13_24.2: type = converted %float.make_type, %.loc13_24.1 [template = f64] diff --git a/toolchain/check/testdata/operators/builtin/fail_assignment_to_error.carbon b/toolchain/check/testdata/operators/builtin/fail_assignment_to_error.carbon index 2dd0346797618..3dc30b4f898cf 100644 --- a/toolchain/check/testdata/operators/builtin/fail_assignment_to_error.carbon +++ b/toolchain/check/testdata/operators/builtin/fail_assignment_to_error.carbon @@ -26,7 +26,7 @@ fn Main() { // CHECK:STDOUT: %Main.type: type = fn_type @Main [template] // CHECK:STDOUT: %.1: type = tuple_type () [template] // CHECK:STDOUT: %Main: %Main.type = struct_value () [template] -// CHECK:STDOUT: %.2: i32 = int_literal 42 [template] +// CHECK:STDOUT: %.2: i32 = int_value 42 [template] // CHECK:STDOUT: } // CHECK:STDOUT: // CHECK:STDOUT: imports { @@ -48,11 +48,11 @@ fn Main() { // CHECK:STDOUT: fn @Main() { // CHECK:STDOUT: !entry: // CHECK:STDOUT: %undeclared.ref: = name_ref undeclared, [template = ] -// CHECK:STDOUT: %.loc16: i32 = int_literal 42 [template = constants.%.2] +// CHECK:STDOUT: %.loc16: i32 = int_value 42 [template = constants.%.2] // CHECK:STDOUT: assign %undeclared.ref, // CHECK:STDOUT: %also_undeclared.ref: = name_ref also_undeclared, [template = ] // CHECK:STDOUT: %.loc20_3: ref = deref -// CHECK:STDOUT: %.loc20_22: i32 = int_literal 42 [template = constants.%.2] +// CHECK:STDOUT: %.loc20_22: i32 = int_value 42 [template = constants.%.2] // CHECK:STDOUT: assign %.loc20_3, // CHECK:STDOUT: return // CHECK:STDOUT: } diff --git a/toolchain/check/testdata/operators/builtin/fail_assignment_to_non_assignable.carbon b/toolchain/check/testdata/operators/builtin/fail_assignment_to_non_assignable.carbon index f25231e4e3f52..54f4d07cb25b9 100644 --- a/toolchain/check/testdata/operators/builtin/fail_assignment_to_non_assignable.carbon +++ b/toolchain/check/testdata/operators/builtin/fail_assignment_to_non_assignable.carbon @@ -66,22 +66,22 @@ fn Main() { // CHECK:STDOUT: %F: %F.type = struct_value () [template] // CHECK:STDOUT: %Main.type: type = fn_type @Main [template] // CHECK:STDOUT: %Main: %Main.type = struct_value () [template] -// CHECK:STDOUT: %.2: i32 = int_literal 1 [template] -// CHECK:STDOUT: %.3: i32 = int_literal 2 [template] +// CHECK:STDOUT: %.2: i32 = int_value 1 [template] +// CHECK:STDOUT: %.3: i32 = int_value 2 [template] // CHECK:STDOUT: %.4: type = tuple_type (i32, i32) [template] -// CHECK:STDOUT: %.5: i32 = int_literal 3 [template] -// CHECK:STDOUT: %.6: i32 = int_literal 4 [template] +// CHECK:STDOUT: %.5: i32 = int_value 3 [template] +// CHECK:STDOUT: %.6: i32 = int_value 4 [template] // CHECK:STDOUT: %.7: type = ptr_type %.4 [template] // CHECK:STDOUT: %tuple.1: %.4 = tuple_value (%.5, %.6) [template] // CHECK:STDOUT: %tuple.2: %.4 = tuple_value (%.2, %.3) [template] -// CHECK:STDOUT: %.8: i32 = int_literal 0 [template] +// CHECK:STDOUT: %.8: i32 = int_value 0 [template] // CHECK:STDOUT: %.9: type = ptr_type i32 [template] // CHECK:STDOUT: %.10: type = struct_type {.x: i32, .y: i32} [template] // CHECK:STDOUT: %.11: type = ptr_type %.10 [template] // CHECK:STDOUT: %struct.1: %.10 = struct_value (%.5, %.6) [template] // CHECK:STDOUT: %struct.2: %.10 = struct_value (%.2, %.3) [template] // CHECK:STDOUT: %.12: bool = bool_literal true [template] -// CHECK:STDOUT: %.13: i32 = int_literal 10 [template] +// CHECK:STDOUT: %.13: i32 = int_value 10 [template] // CHECK:STDOUT: } // CHECK:STDOUT: // CHECK:STDOUT: imports { @@ -119,18 +119,18 @@ fn Main() { // CHECK:STDOUT: // CHECK:STDOUT: fn @Main() { // CHECK:STDOUT: !entry: -// CHECK:STDOUT: %.loc18_3: i32 = int_literal 1 [template = constants.%.2] -// CHECK:STDOUT: %.loc18_7: i32 = int_literal 2 [template = constants.%.3] +// CHECK:STDOUT: %.loc18_3: i32 = int_value 1 [template = constants.%.2] +// CHECK:STDOUT: %.loc18_7: i32 = int_value 2 [template = constants.%.3] // CHECK:STDOUT: assign %.loc18_3, %.loc18_7 // CHECK:STDOUT: %F.ref: %F.type = name_ref F, file.%F.decl [template = constants.%F] // CHECK:STDOUT: %F.call: init i32 = call %F.ref() -// CHECK:STDOUT: %.loc23: i32 = int_literal 1 [template = constants.%.2] +// CHECK:STDOUT: %.loc23: i32 = int_value 1 [template = constants.%.2] // CHECK:STDOUT: assign %F.call, %.loc23 -// CHECK:STDOUT: %.loc28_4: i32 = int_literal 1 [template = constants.%.2] -// CHECK:STDOUT: %.loc28_7: i32 = int_literal 2 [template = constants.%.3] +// CHECK:STDOUT: %.loc28_4: i32 = int_value 1 [template = constants.%.2] +// CHECK:STDOUT: %.loc28_7: i32 = int_value 2 [template = constants.%.3] // CHECK:STDOUT: %.loc28_8.1: %.4 = tuple_literal (%.loc28_4, %.loc28_7) -// CHECK:STDOUT: %.loc28_13: i32 = int_literal 3 [template = constants.%.5] -// CHECK:STDOUT: %.loc28_16: i32 = int_literal 4 [template = constants.%.6] +// CHECK:STDOUT: %.loc28_13: i32 = int_value 3 [template = constants.%.5] +// CHECK:STDOUT: %.loc28_16: i32 = int_value 4 [template = constants.%.6] // CHECK:STDOUT: %.loc28_17.1: %.4 = tuple_literal (%.loc28_13, %.loc28_16) // CHECK:STDOUT: %.loc28_17.2: i32 = tuple_access %.loc28_8.1, element0 // CHECK:STDOUT: %.loc28_17.3: init i32 = initialize_from %.loc28_13 to %.loc28_17.2 [template = constants.%.5] @@ -146,13 +146,13 @@ fn Main() { // CHECK:STDOUT: %.loc29_10.2: type = converted %int.make_type_32.loc29, %.loc29_10.1 [template = i32] // CHECK:STDOUT: %n.var: ref i32 = var n // CHECK:STDOUT: %n: ref i32 = bind_name n, %n.var -// CHECK:STDOUT: %.loc29_16: i32 = int_literal 0 [template = constants.%.8] +// CHECK:STDOUT: %.loc29_16: i32 = int_value 0 [template = constants.%.8] // CHECK:STDOUT: assign %n.var, %.loc29_16 // CHECK:STDOUT: %n.ref.loc34_4: ref i32 = name_ref n, %n // CHECK:STDOUT: %n.ref.loc34_7: ref i32 = name_ref n, %n // CHECK:STDOUT: %.loc34_8.1: %.4 = tuple_literal (%n.ref.loc34_4, %n.ref.loc34_7) -// CHECK:STDOUT: %.loc34_13: i32 = int_literal 1 [template = constants.%.2] -// CHECK:STDOUT: %.loc34_16: i32 = int_literal 2 [template = constants.%.3] +// CHECK:STDOUT: %.loc34_13: i32 = int_value 1 [template = constants.%.2] +// CHECK:STDOUT: %.loc34_16: i32 = int_value 2 [template = constants.%.3] // CHECK:STDOUT: %.loc34_17.1: %.4 = tuple_literal (%.loc34_13, %.loc34_16) // CHECK:STDOUT: %.loc34_17.2: i32 = tuple_access %.loc34_8.1, element0 // CHECK:STDOUT: %.loc34_17.3: init i32 = initialize_from %.loc34_13 to %.loc34_17.2 [template = constants.%.2] @@ -171,11 +171,11 @@ fn Main() { // CHECK:STDOUT: %.loc39_12.2: type = converted %int.make_type_32.loc39_9, %.loc39_12.1 [template = i32] // CHECK:STDOUT: %.loc39_12.3: type = ptr_type i32 [template = constants.%.9] // CHECK:STDOUT: assign %int.make_type_32.loc39_3, %.loc39_12.3 -// CHECK:STDOUT: %.loc44_9: i32 = int_literal 1 [template = constants.%.2] -// CHECK:STDOUT: %.loc44_17: i32 = int_literal 2 [template = constants.%.3] +// CHECK:STDOUT: %.loc44_9: i32 = int_value 1 [template = constants.%.2] +// CHECK:STDOUT: %.loc44_17: i32 = int_value 2 [template = constants.%.3] // CHECK:STDOUT: %.loc44_18.1: %.10 = struct_literal (%.loc44_9, %.loc44_17) -// CHECK:STDOUT: %.loc44_28: i32 = int_literal 3 [template = constants.%.5] -// CHECK:STDOUT: %.loc44_36: i32 = int_literal 4 [template = constants.%.6] +// CHECK:STDOUT: %.loc44_28: i32 = int_value 3 [template = constants.%.5] +// CHECK:STDOUT: %.loc44_36: i32 = int_value 4 [template = constants.%.6] // CHECK:STDOUT: %.loc44_37.1: %.10 = struct_literal (%.loc44_28, %.loc44_36) // CHECK:STDOUT: %.loc44_37.2: i32 = struct_access %.loc44_18.1, element0 // CHECK:STDOUT: %.loc44_37.3: init i32 = initialize_from %.loc44_28 to %.loc44_37.2 [template = constants.%.5] @@ -190,16 +190,16 @@ fn Main() { // CHECK:STDOUT: if %.loc49_7 br !if.expr.then.loc49 else br !if.expr.else.loc49 // CHECK:STDOUT: // CHECK:STDOUT: !if.expr.then.loc49: -// CHECK:STDOUT: %.loc49_17: i32 = int_literal 1 [template = constants.%.2] +// CHECK:STDOUT: %.loc49_17: i32 = int_value 1 [template = constants.%.2] // CHECK:STDOUT: br !if.expr.result.loc49(%.loc49_17) // CHECK:STDOUT: // CHECK:STDOUT: !if.expr.else.loc49: -// CHECK:STDOUT: %.loc49_24: i32 = int_literal 2 [template = constants.%.3] +// CHECK:STDOUT: %.loc49_24: i32 = int_value 2 [template = constants.%.3] // CHECK:STDOUT: br !if.expr.result.loc49(%.loc49_24) // CHECK:STDOUT: // CHECK:STDOUT: !if.expr.result.loc49: // CHECK:STDOUT: %.loc49_4: i32 = block_arg !if.expr.result.loc49 [template = constants.%.2] -// CHECK:STDOUT: %.loc49_29: i32 = int_literal 3 [template = constants.%.5] +// CHECK:STDOUT: %.loc49_29: i32 = int_value 3 [template = constants.%.5] // CHECK:STDOUT: assign %.loc49_4, %.loc49_29 // CHECK:STDOUT: %int.make_type_32.loc52: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc52_10.1: type = value_of_initializer %int.make_type_32.loc52 [template = i32] @@ -221,7 +221,7 @@ fn Main() { // CHECK:STDOUT: // CHECK:STDOUT: !if.expr.result.loc56: // CHECK:STDOUT: %.loc56_4: i32 = block_arg !if.expr.result.loc56 -// CHECK:STDOUT: %.loc56_29: i32 = int_literal 10 [template = constants.%.13] +// CHECK:STDOUT: %.loc56_29: i32 = int_value 10 [template = constants.%.13] // CHECK:STDOUT: assign %.loc56_4, %.loc56_29 // CHECK:STDOUT: return // CHECK:STDOUT: } diff --git a/toolchain/check/testdata/operators/builtin/fail_redundant_compound_access.carbon b/toolchain/check/testdata/operators/builtin/fail_redundant_compound_access.carbon index 643a1e13ecc9b..19fcfcfd4b145 100644 --- a/toolchain/check/testdata/operators/builtin/fail_redundant_compound_access.carbon +++ b/toolchain/check/testdata/operators/builtin/fail_redundant_compound_access.carbon @@ -31,10 +31,10 @@ fn Main() { // CHECK:STDOUT: %Int32: %Int32.type = struct_value () [template] // CHECK:STDOUT: %F.type: type = fn_type @F [template] // CHECK:STDOUT: %F: %F.type = struct_value () [template] -// CHECK:STDOUT: %.2: i32 = int_literal 0 [template] +// CHECK:STDOUT: %.2: i32 = int_value 0 [template] // CHECK:STDOUT: %Main.type: type = fn_type @Main [template] // CHECK:STDOUT: %Main: %Main.type = struct_value () [template] -// CHECK:STDOUT: %.3: i32 = int_literal 3 [template] +// CHECK:STDOUT: %.3: i32 = int_value 3 [template] // CHECK:STDOUT: } // CHECK:STDOUT: // CHECK:STDOUT: imports { @@ -70,7 +70,7 @@ fn Main() { // CHECK:STDOUT: // CHECK:STDOUT: fn @F() -> i32 { // CHECK:STDOUT: !entry: -// CHECK:STDOUT: %.loc11_24: i32 = int_literal 0 [template = constants.%.2] +// CHECK:STDOUT: %.loc11_24: i32 = int_value 0 [template = constants.%.2] // CHECK:STDOUT: return %.loc11_24 // CHECK:STDOUT: } // CHECK:STDOUT: @@ -81,7 +81,7 @@ fn Main() { // CHECK:STDOUT: %.loc14_10.2: type = converted %int.make_type_32, %.loc14_10.1 [template = i32] // CHECK:STDOUT: %a.var: ref i32 = var a // CHECK:STDOUT: %a: ref i32 = bind_name a, %a.var -// CHECK:STDOUT: %.loc14_16: i32 = int_literal 3 [template = constants.%.3] +// CHECK:STDOUT: %.loc14_16: i32 = int_value 3 [template = constants.%.3] // CHECK:STDOUT: assign %a.var, %.loc14_16 // CHECK:STDOUT: %a.ref.loc19_3: ref i32 = name_ref a, %a // CHECK:STDOUT: %a.ref.loc19_7: ref i32 = name_ref a, %a diff --git a/toolchain/check/testdata/operators/builtin/fail_type_mismatch.carbon b/toolchain/check/testdata/operators/builtin/fail_type_mismatch.carbon index 8abab4420c60e..2b0e769c790f2 100644 --- a/toolchain/check/testdata/operators/builtin/fail_type_mismatch.carbon +++ b/toolchain/check/testdata/operators/builtin/fail_type_mismatch.carbon @@ -26,7 +26,7 @@ fn Main() { // CHECK:STDOUT: %Main: %Main.type = struct_value () [template] // CHECK:STDOUT: %Bool.type: type = fn_type @Bool [template] // CHECK:STDOUT: %Bool: %Bool.type = struct_value () [template] -// CHECK:STDOUT: %.2: i32 = int_literal 12 [template] +// CHECK:STDOUT: %.2: i32 = int_value 12 [template] // CHECK:STDOUT: %ImplicitAs.type.1: type = generic_interface_type @ImplicitAs [template] // CHECK:STDOUT: %ImplicitAs: %ImplicitAs.type.1 = struct_value () [template] // CHECK:STDOUT: %Dest: type = bind_symbolic_name Dest, 0 [symbolic] @@ -98,7 +98,7 @@ fn Main() { // CHECK:STDOUT: %.loc18_10.2: type = converted %bool.make_type, %.loc18_10.1 [template = bool] // CHECK:STDOUT: %x.var: ref bool = var x // CHECK:STDOUT: %x: ref bool = bind_name x, %x.var -// CHECK:STDOUT: %.loc18_21: i32 = int_literal 12 [template = constants.%.2] +// CHECK:STDOUT: %.loc18_21: i32 = int_value 12 [template = constants.%.2] // CHECK:STDOUT: %ImplicitAs.type: type = interface_type @ImplicitAs, @ImplicitAs(bool) [template = constants.%ImplicitAs.type.3] // CHECK:STDOUT: %.loc18_17.1: %.5 = specific_constant imports.%import_ref.4, @ImplicitAs(bool) [template = constants.%.6] // CHECK:STDOUT: %Convert.ref: %.5 = name_ref Convert, %.loc18_17.1 [template = constants.%.6] diff --git a/toolchain/check/testdata/operators/builtin/fail_type_mismatch_assignment.carbon b/toolchain/check/testdata/operators/builtin/fail_type_mismatch_assignment.carbon index 025b9f515a8b1..362752858d01e 100644 --- a/toolchain/check/testdata/operators/builtin/fail_type_mismatch_assignment.carbon +++ b/toolchain/check/testdata/operators/builtin/fail_type_mismatch_assignment.carbon @@ -27,7 +27,7 @@ fn Main() { // CHECK:STDOUT: %Main: %Main.type = struct_value () [template] // CHECK:STDOUT: %Int32.type: type = fn_type @Int32 [template] // CHECK:STDOUT: %Int32: %Int32.type = struct_value () [template] -// CHECK:STDOUT: %.2: i32 = int_literal 3 [template] +// CHECK:STDOUT: %.2: i32 = int_value 3 [template] // CHECK:STDOUT: %.3: f64 = float_literal 5.6000000000000005 [template] // CHECK:STDOUT: %ImplicitAs.type.1: type = generic_interface_type @ImplicitAs [template] // CHECK:STDOUT: %ImplicitAs: %ImplicitAs.type.1 = struct_value () [template] @@ -100,7 +100,7 @@ fn Main() { // CHECK:STDOUT: %.loc12_10.2: type = converted %int.make_type_32, %.loc12_10.1 [template = i32] // CHECK:STDOUT: %a.var: ref i32 = var a // CHECK:STDOUT: %a: ref i32 = bind_name a, %a.var -// CHECK:STDOUT: %.loc12_16: i32 = int_literal 3 [template = constants.%.2] +// CHECK:STDOUT: %.loc12_16: i32 = int_value 3 [template = constants.%.2] // CHECK:STDOUT: assign %a.var, %.loc12_16 // CHECK:STDOUT: %a.ref: ref i32 = name_ref a, %a // CHECK:STDOUT: %.loc19_7: f64 = float_literal 5.6000000000000005 [template = constants.%.3] diff --git a/toolchain/check/testdata/operators/builtin/fail_type_mismatch_once.carbon b/toolchain/check/testdata/operators/builtin/fail_type_mismatch_once.carbon index 9c24f2ee6bd40..5ad36685aa550 100644 --- a/toolchain/check/testdata/operators/builtin/fail_type_mismatch_once.carbon +++ b/toolchain/check/testdata/operators/builtin/fail_type_mismatch_once.carbon @@ -29,7 +29,7 @@ fn Main() -> i32 { // CHECK:STDOUT: %Int32: %Int32.type = struct_value () [template] // CHECK:STDOUT: %Main.type: type = fn_type @Main [template] // CHECK:STDOUT: %Main: %Main.type = struct_value () [template] -// CHECK:STDOUT: %.2: i32 = int_literal 12 [template] +// CHECK:STDOUT: %.2: i32 = int_value 12 [template] // CHECK:STDOUT: %.3: f64 = float_literal 3.4000000000000004 [template] // CHECK:STDOUT: %Add.type: type = interface_type @Add [template] // CHECK:STDOUT: %Self: %Add.type = bind_symbolic_name Self, 0 [symbolic] @@ -83,10 +83,10 @@ fn Main() -> i32 { // CHECK:STDOUT: // CHECK:STDOUT: fn @Main() -> i32 { // CHECK:STDOUT: !entry: -// CHECK:STDOUT: %.loc21_10: i32 = int_literal 12 [template = constants.%.2] +// CHECK:STDOUT: %.loc21_10: i32 = int_value 12 [template = constants.%.2] // CHECK:STDOUT: %.loc21_15: f64 = float_literal 3.4000000000000004 [template = constants.%.3] // CHECK:STDOUT: %Op.ref.loc21_13: %.4 = name_ref Op, imports.%import_ref.4 [template = constants.%.5] -// CHECK:STDOUT: %.loc21_21: i32 = int_literal 12 [template = constants.%.2] +// CHECK:STDOUT: %.loc21_21: i32 = int_value 12 [template = constants.%.2] // CHECK:STDOUT: %Op.ref.loc21_19: %.4 = name_ref Op, imports.%import_ref.4 [template = constants.%.5] // CHECK:STDOUT: return // CHECK:STDOUT: } diff --git a/toolchain/check/testdata/operators/builtin/fail_unimplemented_op.carbon b/toolchain/check/testdata/operators/builtin/fail_unimplemented_op.carbon index f1df40894a552..2d6d0aacf2267 100644 --- a/toolchain/check/testdata/operators/builtin/fail_unimplemented_op.carbon +++ b/toolchain/check/testdata/operators/builtin/fail_unimplemented_op.carbon @@ -23,8 +23,8 @@ fn Main() -> i32 { // CHECK:STDOUT: %Int32: %Int32.type = struct_value () [template] // CHECK:STDOUT: %Main.type: type = fn_type @Main [template] // CHECK:STDOUT: %Main: %Main.type = struct_value () [template] -// CHECK:STDOUT: %.2: i32 = int_literal 12 [template] -// CHECK:STDOUT: %.3: i32 = int_literal 34 [template] +// CHECK:STDOUT: %.2: i32 = int_value 12 [template] +// CHECK:STDOUT: %.3: i32 = int_value 34 [template] // CHECK:STDOUT: %Add.type: type = interface_type @Add [template] // CHECK:STDOUT: %Self: %Add.type = bind_symbolic_name Self, 0 [symbolic] // CHECK:STDOUT: %Op.type: type = fn_type @Op [template] @@ -77,8 +77,8 @@ fn Main() -> i32 { // CHECK:STDOUT: // CHECK:STDOUT: fn @Main() -> i32 { // CHECK:STDOUT: !entry: -// CHECK:STDOUT: %.loc15_10: i32 = int_literal 12 [template = constants.%.2] -// CHECK:STDOUT: %.loc15_15: i32 = int_literal 34 [template = constants.%.3] +// CHECK:STDOUT: %.loc15_10: i32 = int_value 12 [template = constants.%.2] +// CHECK:STDOUT: %.loc15_15: i32 = int_value 34 [template = constants.%.3] // CHECK:STDOUT: %Op.ref: %.4 = name_ref Op, imports.%import_ref.4 [template = constants.%.5] // CHECK:STDOUT: return // CHECK:STDOUT: } diff --git a/toolchain/check/testdata/operators/overloaded/index.carbon b/toolchain/check/testdata/operators/overloaded/index.carbon index 982ee0bac5396..c135610c3433f 100644 --- a/toolchain/check/testdata/operators/overloaded/index.carbon +++ b/toolchain/check/testdata/operators/overloaded/index.carbon @@ -351,9 +351,9 @@ let x: i32 = c[0]; // CHECK:STDOUT: %.7: %.6 = assoc_entity element0, imports.%import_ref.6 [template] // CHECK:STDOUT: %.8: = interface_witness (%At.2) [template] // CHECK:STDOUT: %.9: type = ptr_type %.3 [template] -// CHECK:STDOUT: %.10: i32 = int_literal 0 [template] -// CHECK:STDOUT: %.11: i32 = int_literal 1 [template] -// CHECK:STDOUT: %.12: i32 = int_literal 5 [template] +// CHECK:STDOUT: %.10: i32 = int_value 0 [template] +// CHECK:STDOUT: %.11: i32 = int_value 1 [template] +// CHECK:STDOUT: %.12: i32 = int_value 5 [template] // CHECK:STDOUT: %tuple: %.3 = tuple_value (%.11, %.12) [template] // CHECK:STDOUT: %.13: %.4 = assoc_entity element0, imports.%import_ref.7 [symbolic] // CHECK:STDOUT: } @@ -479,21 +479,21 @@ let x: i32 = c[0]; // CHECK:STDOUT: fn @At.2[%self.param_patt: %.3](%subscript.param_patt: i32) -> i32 { // CHECK:STDOUT: !entry: // CHECK:STDOUT: %self.ref: %.3 = name_ref self, %self -// CHECK:STDOUT: %.loc6_17: i32 = int_literal 0 [template = constants.%.10] +// CHECK:STDOUT: %.loc6_17: i32 = int_value 0 [template = constants.%.10] // CHECK:STDOUT: %.loc6_16: i32 = tuple_access %self.ref, element0 // CHECK:STDOUT: return %.loc6_16 // CHECK:STDOUT: } // CHECK:STDOUT: // CHECK:STDOUT: fn @__global_init() { // CHECK:STDOUT: !entry: -// CHECK:STDOUT: %.loc10_22: i32 = int_literal 1 [template = constants.%.11] -// CHECK:STDOUT: %.loc10_25: i32 = int_literal 5 [template = constants.%.12] +// CHECK:STDOUT: %.loc10_22: i32 = int_value 1 [template = constants.%.11] +// CHECK:STDOUT: %.loc10_25: i32 = int_value 5 [template = constants.%.12] // CHECK:STDOUT: %.loc10_26: %.3 = tuple_literal (%.loc10_22, %.loc10_25) // CHECK:STDOUT: %tuple: %.3 = tuple_value (%.loc10_22, %.loc10_25) [template = constants.%tuple] // CHECK:STDOUT: %.loc10_27: %.3 = converted %.loc10_26, %tuple [template = constants.%tuple] // CHECK:STDOUT: %s: %.3 = bind_name s, %.loc10_27 // CHECK:STDOUT: %s.ref: %.3 = name_ref s, %s -// CHECK:STDOUT: %.loc11_16: i32 = int_literal 0 [template = constants.%.10] +// CHECK:STDOUT: %.loc11_16: i32 = int_value 0 [template = constants.%.10] // CHECK:STDOUT: %IndexWith.type: type = interface_type @IndexWith, @IndexWith(i32, i32) [template = constants.%IndexWith.type.3] // CHECK:STDOUT: %.loc11_17.1: %.6 = specific_constant imports.%import_ref.4, @IndexWith(i32, i32) [template = constants.%.7] // CHECK:STDOUT: %At.ref: %.6 = name_ref At, %.loc11_17.1 [template = constants.%.7] @@ -589,7 +589,7 @@ let x: i32 = c[0]; // CHECK:STDOUT: %.9: type = ptr_type %.1 [template] // CHECK:STDOUT: %struct.1: %ElementType.1 = struct_value () [template] // CHECK:STDOUT: %struct.2: %C = struct_value () [template] -// CHECK:STDOUT: %.10: i32 = int_literal 0 [template] +// CHECK:STDOUT: %.10: i32 = int_value 0 [template] // CHECK:STDOUT: %ImplicitAs.type.1: type = generic_interface_type @ImplicitAs [template] // CHECK:STDOUT: %ImplicitAs: %ImplicitAs.type.1 = struct_value () [template] // CHECK:STDOUT: %Dest: type = bind_symbolic_name Dest, 0 [symbolic] @@ -780,7 +780,7 @@ let x: i32 = c[0]; // CHECK:STDOUT: %.loc14_14.2: %C = bind_value %.loc14_14.1 // CHECK:STDOUT: %c: %C = bind_name c, %.loc14_14.2 // CHECK:STDOUT: %c.ref: %C = name_ref c, %c -// CHECK:STDOUT: %.loc22_24: i32 = int_literal 0 [template = constants.%.10] +// CHECK:STDOUT: %.loc22_24: i32 = int_value 0 [template = constants.%.10] // CHECK:STDOUT: %ImplicitAs.type: type = interface_type @ImplicitAs, @ImplicitAs(constants.%SubscriptType.1) [template = constants.%ImplicitAs.type.3] // CHECK:STDOUT: %.loc22_25.1: %.13 = specific_constant imports.%import_ref.8, @ImplicitAs(constants.%SubscriptType.1) [template = constants.%.14] // CHECK:STDOUT: %Convert.ref: %.13 = name_ref Convert, %.loc22_25.1 [template = constants.%.14] @@ -893,7 +893,7 @@ let x: i32 = c[0]; // CHECK:STDOUT: %struct: %C = struct_value () [template] // CHECK:STDOUT: %Int32.type: type = fn_type @Int32 [template] // CHECK:STDOUT: %Int32: %Int32.type = struct_value () [template] -// CHECK:STDOUT: %.5: i32 = int_literal 0 [template] +// CHECK:STDOUT: %.5: i32 = int_value 0 [template] // CHECK:STDOUT: %IndexWith.type.1: type = generic_interface_type @IndexWith [template] // CHECK:STDOUT: %IndexWith: %IndexWith.type.1 = struct_value () [template] // CHECK:STDOUT: %ElementType: type = bind_symbolic_name ElementType, 1 [symbolic] @@ -989,7 +989,7 @@ let x: i32 = c[0]; // CHECK:STDOUT: %.loc6_14.2: %C = bind_value %.loc6_14.1 // CHECK:STDOUT: %c: %C = bind_name c, %.loc6_14.2 // CHECK:STDOUT: %c.ref: %C = name_ref c, %c -// CHECK:STDOUT: %.loc10: i32 = int_literal 0 [template = constants.%.5] +// CHECK:STDOUT: %.loc10: i32 = int_value 0 [template = constants.%.5] // CHECK:STDOUT: %x: i32 = bind_name x, // CHECK:STDOUT: return // CHECK:STDOUT: } diff --git a/toolchain/check/testdata/operators/overloaded/no_prelude/index.carbon b/toolchain/check/testdata/operators/overloaded/no_prelude/index.carbon index feda6ff136015..c2ef5a477fe1e 100644 --- a/toolchain/check/testdata/operators/overloaded/no_prelude/index.carbon +++ b/toolchain/check/testdata/operators/overloaded/no_prelude/index.carbon @@ -59,8 +59,8 @@ fn F() { ()[()]; } // CHECK:STDOUT: %F.type: type = fn_type @F [template] // CHECK:STDOUT: %.3: type = tuple_type () [template] // CHECK:STDOUT: %F: %F.type = struct_value () [template] -// CHECK:STDOUT: %.4: i32 = int_literal 0 [template] -// CHECK:STDOUT: %.5: i32 = int_literal 1 [template] +// CHECK:STDOUT: %.4: i32 = int_value 0 [template] +// CHECK:STDOUT: %.5: i32 = int_value 1 [template] // CHECK:STDOUT: } // CHECK:STDOUT: // CHECK:STDOUT: file { @@ -84,8 +84,8 @@ fn F() { ()[()]; } // CHECK:STDOUT: // CHECK:STDOUT: fn @F() { // CHECK:STDOUT: !entry: -// CHECK:STDOUT: %.loc10_10: i32 = int_literal 0 [template = constants.%.4] -// CHECK:STDOUT: %.loc10_12: i32 = int_literal 1 [template = constants.%.5] +// CHECK:STDOUT: %.loc10_10: i32 = int_value 0 [template = constants.%.4] +// CHECK:STDOUT: %.loc10_12: i32 = int_value 1 [template = constants.%.5] // CHECK:STDOUT: return // CHECK:STDOUT: } // CHECK:STDOUT: @@ -95,8 +95,8 @@ fn F() { ()[()]; } // CHECK:STDOUT: %F.type: type = fn_type @F [template] // CHECK:STDOUT: %.1: type = tuple_type () [template] // CHECK:STDOUT: %F: %F.type = struct_value () [template] -// CHECK:STDOUT: %.2: i32 = int_literal 0 [template] -// CHECK:STDOUT: %.3: i32 = int_literal 1 [template] +// CHECK:STDOUT: %.2: i32 = int_value 0 [template] +// CHECK:STDOUT: %.3: i32 = int_value 1 [template] // CHECK:STDOUT: } // CHECK:STDOUT: // CHECK:STDOUT: file { @@ -108,8 +108,8 @@ fn F() { ()[()]; } // CHECK:STDOUT: // CHECK:STDOUT: fn @F() { // CHECK:STDOUT: !entry: -// CHECK:STDOUT: %.loc11_10: i32 = int_literal 0 [template = constants.%.2] -// CHECK:STDOUT: %.loc11_12: i32 = int_literal 1 [template = constants.%.3] +// CHECK:STDOUT: %.loc11_10: i32 = int_value 0 [template = constants.%.2] +// CHECK:STDOUT: %.loc11_12: i32 = int_value 1 [template = constants.%.3] // CHECK:STDOUT: return // CHECK:STDOUT: } // CHECK:STDOUT: diff --git a/toolchain/check/testdata/package_expr/syntax.carbon b/toolchain/check/testdata/package_expr/syntax.carbon index 76a7ac306286c..b6173b4cbe429 100644 --- a/toolchain/check/testdata/package_expr/syntax.carbon +++ b/toolchain/check/testdata/package_expr/syntax.carbon @@ -47,7 +47,7 @@ fn Main() { // CHECK:STDOUT: %Int32.type: type = fn_type @Int32 [template] // CHECK:STDOUT: %.1: type = tuple_type () [template] // CHECK:STDOUT: %Int32: %Int32.type = struct_value () [template] -// CHECK:STDOUT: %.2: i32 = int_literal 0 [template] +// CHECK:STDOUT: %.2: i32 = int_value 0 [template] // CHECK:STDOUT: } // CHECK:STDOUT: // CHECK:STDOUT: imports { @@ -82,7 +82,7 @@ fn Main() { // CHECK:STDOUT: // CHECK:STDOUT: fn @__global_init() { // CHECK:STDOUT: !entry: -// CHECK:STDOUT: %.loc4: i32 = int_literal 0 [template = constants.%.2] +// CHECK:STDOUT: %.loc4: i32 = int_value 0 [template = constants.%.2] // CHECK:STDOUT: assign file.%x.var, %.loc4 // CHECK:STDOUT: %package.ref: = name_ref package, package [template = package] // CHECK:STDOUT: %x.ref: ref i32 = name_ref x, file.%x @@ -97,10 +97,10 @@ fn Main() { // CHECK:STDOUT: %Int32.type: type = fn_type @Int32 [template] // CHECK:STDOUT: %.1: type = tuple_type () [template] // CHECK:STDOUT: %Int32: %Int32.type = struct_value () [template] -// CHECK:STDOUT: %.2: i32 = int_literal 0 [template] +// CHECK:STDOUT: %.2: i32 = int_value 0 [template] // CHECK:STDOUT: %Main.type: type = fn_type @Main [template] // CHECK:STDOUT: %Main: %Main.type = struct_value () [template] -// CHECK:STDOUT: %.3: i32 = int_literal 1 [template] +// CHECK:STDOUT: %.3: i32 = int_value 1 [template] // CHECK:STDOUT: } // CHECK:STDOUT: // CHECK:STDOUT: imports { @@ -136,7 +136,7 @@ fn Main() { // CHECK:STDOUT: %.loc7_10.2: type = converted %int.make_type_32.loc7, %.loc7_10.1 [template = i32] // CHECK:STDOUT: %x.var: ref i32 = var x // CHECK:STDOUT: %x: ref i32 = bind_name x, %x.var -// CHECK:STDOUT: %.loc7_16: i32 = int_literal 1 [template = constants.%.3] +// CHECK:STDOUT: %.loc7_16: i32 = int_value 1 [template = constants.%.3] // CHECK:STDOUT: assign %x.var, %.loc7_16 // CHECK:STDOUT: %int.make_type_32.loc9: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc9_10.1: type = value_of_initializer %int.make_type_32.loc9 [template = i32] @@ -152,7 +152,7 @@ fn Main() { // CHECK:STDOUT: // CHECK:STDOUT: fn @__global_init() { // CHECK:STDOUT: !entry: -// CHECK:STDOUT: %.loc4: i32 = int_literal 0 [template = constants.%.2] +// CHECK:STDOUT: %.loc4: i32 = int_value 0 [template = constants.%.2] // CHECK:STDOUT: assign file.%x.var, %.loc4 // CHECK:STDOUT: return // CHECK:STDOUT: } diff --git a/toolchain/check/testdata/packages/implicit_imports_prelude.carbon b/toolchain/check/testdata/packages/implicit_imports_prelude.carbon index ed5eb769adb45..eff42c82f9c31 100644 --- a/toolchain/check/testdata/packages/implicit_imports_prelude.carbon +++ b/toolchain/check/testdata/packages/implicit_imports_prelude.carbon @@ -28,7 +28,7 @@ var b: i32 = a; // CHECK:STDOUT: %Int32.type: type = fn_type @Int32 [template] // CHECK:STDOUT: %.1: type = tuple_type () [template] // CHECK:STDOUT: %Int32: %Int32.type = struct_value () [template] -// CHECK:STDOUT: %.2: i32 = int_literal 0 [template] +// CHECK:STDOUT: %.2: i32 = int_value 0 [template] // CHECK:STDOUT: } // CHECK:STDOUT: // CHECK:STDOUT: imports { @@ -57,7 +57,7 @@ var b: i32 = a; // CHECK:STDOUT: // CHECK:STDOUT: fn @__global_init() { // CHECK:STDOUT: !entry: -// CHECK:STDOUT: %.loc4: i32 = int_literal 0 [template = constants.%.2] +// CHECK:STDOUT: %.loc4: i32 = int_value 0 [template = constants.%.2] // CHECK:STDOUT: assign file.%a.var, %.loc4 // CHECK:STDOUT: return // CHECK:STDOUT: } diff --git a/toolchain/check/testdata/pointer/address_of_deref.carbon b/toolchain/check/testdata/pointer/address_of_deref.carbon index 045ac334c9482..d36e410f21736 100644 --- a/toolchain/check/testdata/pointer/address_of_deref.carbon +++ b/toolchain/check/testdata/pointer/address_of_deref.carbon @@ -21,7 +21,7 @@ fn F() -> i32 { // CHECK:STDOUT: %Int32: %Int32.type = struct_value () [template] // CHECK:STDOUT: %F.type: type = fn_type @F [template] // CHECK:STDOUT: %F: %F.type = struct_value () [template] -// CHECK:STDOUT: %.2: i32 = int_literal 0 [template] +// CHECK:STDOUT: %.2: i32 = int_value 0 [template] // CHECK:STDOUT: %.3: type = ptr_type i32 [template] // CHECK:STDOUT: } // CHECK:STDOUT: @@ -61,7 +61,7 @@ fn F() -> i32 { // CHECK:STDOUT: %.loc12_10.2: type = converted %int.make_type_32.loc12, %.loc12_10.1 [template = i32] // CHECK:STDOUT: %n.var: ref i32 = var n // CHECK:STDOUT: %n: ref i32 = bind_name n, %n.var -// CHECK:STDOUT: %.loc12_16: i32 = int_literal 0 [template = constants.%.2] +// CHECK:STDOUT: %.loc12_16: i32 = int_value 0 [template = constants.%.2] // CHECK:STDOUT: assign %n.var, %.loc12_16 // CHECK:STDOUT: %n.ref: ref i32 = name_ref n, %n // CHECK:STDOUT: %.loc13_13: %.3 = addr_of %n.ref diff --git a/toolchain/check/testdata/pointer/address_of_lvalue.carbon b/toolchain/check/testdata/pointer/address_of_lvalue.carbon index 4eeffe38b97a5..72a2da450b8fc 100644 --- a/toolchain/check/testdata/pointer/address_of_lvalue.carbon +++ b/toolchain/check/testdata/pointer/address_of_lvalue.carbon @@ -30,15 +30,15 @@ fn F() { // CHECK:STDOUT: %Int32: %Int32.type = struct_value () [template] // CHECK:STDOUT: %.2: type = struct_type {.a: i32, .b: i32} [template] // CHECK:STDOUT: %.3: type = ptr_type %.2 [template] -// CHECK:STDOUT: %.4: i32 = int_literal 1 [template] -// CHECK:STDOUT: %.5: i32 = int_literal 2 [template] +// CHECK:STDOUT: %.4: i32 = int_value 1 [template] +// CHECK:STDOUT: %.5: i32 = int_value 2 [template] // CHECK:STDOUT: %struct: %.2 = struct_value (%.4, %.5) [template] // CHECK:STDOUT: %.6: type = ptr_type i32 [template] // CHECK:STDOUT: %.7: type = tuple_type (type, type) [template] // CHECK:STDOUT: %.8: type = tuple_type (i32, i32) [template] // CHECK:STDOUT: %.9: type = ptr_type %.8 [template] // CHECK:STDOUT: %tuple: %.8 = tuple_value (%.4, %.5) [template] -// CHECK:STDOUT: %.10: i32 = int_literal 0 [template] +// CHECK:STDOUT: %.10: i32 = int_value 0 [template] // CHECK:STDOUT: } // CHECK:STDOUT: // CHECK:STDOUT: imports { @@ -70,8 +70,8 @@ fn F() { // CHECK:STDOUT: %.loc12_27: type = struct_type {.a: i32, .b: i32} [template = constants.%.2] // CHECK:STDOUT: %s.var: ref %.2 = var s // CHECK:STDOUT: %s: ref %.2 = bind_name s, %s.var -// CHECK:STDOUT: %.loc12_37: i32 = int_literal 1 [template = constants.%.4] -// CHECK:STDOUT: %.loc12_45: i32 = int_literal 2 [template = constants.%.5] +// CHECK:STDOUT: %.loc12_37: i32 = int_value 1 [template = constants.%.4] +// CHECK:STDOUT: %.loc12_45: i32 = int_value 2 [template = constants.%.5] // CHECK:STDOUT: %.loc12_46.1: %.2 = struct_literal (%.loc12_37, %.loc12_45) // CHECK:STDOUT: %.loc12_46.2: ref i32 = struct_access %s.var, element0 // CHECK:STDOUT: %.loc12_46.3: init i32 = initialize_from %.loc12_37 to %.loc12_46.2 [template = constants.%.4] @@ -123,8 +123,8 @@ fn F() { // CHECK:STDOUT: %.loc18_19.6: type = converted %.loc18_19.1, constants.%.8 [template = constants.%.8] // CHECK:STDOUT: %t.var: ref %.8 = var t // CHECK:STDOUT: %t: ref %.8 = bind_name t, %t.var -// CHECK:STDOUT: %.loc18_24: i32 = int_literal 1 [template = constants.%.4] -// CHECK:STDOUT: %.loc18_27: i32 = int_literal 2 [template = constants.%.5] +// CHECK:STDOUT: %.loc18_24: i32 = int_value 1 [template = constants.%.4] +// CHECK:STDOUT: %.loc18_27: i32 = int_value 2 [template = constants.%.5] // CHECK:STDOUT: %.loc18_28.1: %.8 = tuple_literal (%.loc18_24, %.loc18_27) // CHECK:STDOUT: %.loc18_28.2: ref i32 = tuple_access %t.var, element0 // CHECK:STDOUT: %.loc18_28.3: init i32 = initialize_from %.loc18_24 to %.loc18_28.2 [template = constants.%.4] @@ -140,7 +140,7 @@ fn F() { // CHECK:STDOUT: %t0.var: ref %.6 = var t0 // CHECK:STDOUT: %t0: ref %.6 = bind_name t0, %t0.var // CHECK:STDOUT: %t.ref.loc19: ref %.8 = name_ref t, %t -// CHECK:STDOUT: %.loc19_21: i32 = int_literal 0 [template = constants.%.10] +// CHECK:STDOUT: %.loc19_21: i32 = int_value 0 [template = constants.%.10] // CHECK:STDOUT: %.loc19_20: ref i32 = tuple_access %t.ref.loc19, element0 // CHECK:STDOUT: %.loc19_18: %.6 = addr_of %.loc19_20 // CHECK:STDOUT: assign %t0.var, %.loc19_18 @@ -151,7 +151,7 @@ fn F() { // CHECK:STDOUT: %t1.var: ref %.6 = var t1 // CHECK:STDOUT: %t1: ref %.6 = bind_name t1, %t1.var // CHECK:STDOUT: %t.ref.loc20: ref %.8 = name_ref t, %t -// CHECK:STDOUT: %.loc20_21: i32 = int_literal 1 [template = constants.%.4] +// CHECK:STDOUT: %.loc20_21: i32 = int_value 1 [template = constants.%.4] // CHECK:STDOUT: %.loc20_20: ref i32 = tuple_access %t.ref.loc20, element1 // CHECK:STDOUT: %.loc20_18: %.6 = addr_of %.loc20_20 // CHECK:STDOUT: assign %t1.var, %.loc20_18 diff --git a/toolchain/check/testdata/pointer/basic.carbon b/toolchain/check/testdata/pointer/basic.carbon index d24f08175f879..906902930d5b6 100644 --- a/toolchain/check/testdata/pointer/basic.carbon +++ b/toolchain/check/testdata/pointer/basic.carbon @@ -23,7 +23,7 @@ fn F() -> i32 { // CHECK:STDOUT: %Int32: %Int32.type = struct_value () [template] // CHECK:STDOUT: %F.type: type = fn_type @F [template] // CHECK:STDOUT: %F: %F.type = struct_value () [template] -// CHECK:STDOUT: %.2: i32 = int_literal 0 [template] +// CHECK:STDOUT: %.2: i32 = int_value 0 [template] // CHECK:STDOUT: %.3: type = ptr_type i32 [template] // CHECK:STDOUT: } // CHECK:STDOUT: @@ -63,7 +63,7 @@ fn F() -> i32 { // CHECK:STDOUT: %.loc12_10.2: type = converted %int.make_type_32.loc12, %.loc12_10.1 [template = i32] // CHECK:STDOUT: %n.var: ref i32 = var n // CHECK:STDOUT: %n: ref i32 = bind_name n, %n.var -// CHECK:STDOUT: %.loc12_16: i32 = int_literal 0 [template = constants.%.2] +// CHECK:STDOUT: %.loc12_16: i32 = int_value 0 [template = constants.%.2] // CHECK:STDOUT: assign %n.var, %.loc12_16 // CHECK:STDOUT: %int.make_type_32.loc13: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc13_13.1: type = value_of_initializer %int.make_type_32.loc13 [template = i32] diff --git a/toolchain/check/testdata/pointer/fail_address_of_value.carbon b/toolchain/check/testdata/pointer/fail_address_of_value.carbon index 65751db1f9024..fde0ff31bd36e 100644 --- a/toolchain/check/testdata/pointer/fail_address_of_value.carbon +++ b/toolchain/check/testdata/pointer/fail_address_of_value.carbon @@ -112,7 +112,7 @@ fn AddressOfParam(param: i32) { // CHECK:STDOUT: %H: %H.type = struct_value () [template] // CHECK:STDOUT: %AddressOfLiteral.type: type = fn_type @AddressOfLiteral [template] // CHECK:STDOUT: %AddressOfLiteral: %AddressOfLiteral.type = struct_value () [template] -// CHECK:STDOUT: %.3: i32 = int_literal 0 [template] +// CHECK:STDOUT: %.3: i32 = int_value 0 [template] // CHECK:STDOUT: %.4: type = ptr_type i32 [template] // CHECK:STDOUT: %.5: bool = bool_literal true [template] // CHECK:STDOUT: %.6: type = ptr_type bool [template] @@ -120,11 +120,11 @@ fn AddressOfParam(param: i32) { // CHECK:STDOUT: %.8: type = ptr_type f64 [template] // CHECK:STDOUT: %.9: type = ptr_type String [template] // CHECK:STDOUT: %.10: String = string_literal "Hello" [template] -// CHECK:STDOUT: %.11: i32 = int_literal 1 [template] -// CHECK:STDOUT: %.12: i32 = int_literal 2 [template] +// CHECK:STDOUT: %.11: i32 = int_value 1 [template] +// CHECK:STDOUT: %.12: i32 = int_value 2 [template] // CHECK:STDOUT: %.13: type = tuple_type (i32, i32) [template] // CHECK:STDOUT: %.14: type = ptr_type %.13 [template] -// CHECK:STDOUT: %.15: i32 = int_literal 5 [template] +// CHECK:STDOUT: %.15: i32 = int_value 5 [template] // CHECK:STDOUT: %.16: type = ptr_type %.2 [template] // CHECK:STDOUT: %AddressOfOperator.type: type = fn_type @AddressOfOperator [template] // CHECK:STDOUT: %AddressOfOperator: %AddressOfOperator.type = struct_value () [template] @@ -211,7 +211,7 @@ fn AddressOfParam(param: i32) { // CHECK:STDOUT: // CHECK:STDOUT: fn @AddressOfLiteral() { // CHECK:STDOUT: !entry: -// CHECK:STDOUT: %.loc20_4: i32 = int_literal 0 [template = constants.%.3] +// CHECK:STDOUT: %.loc20_4: i32 = int_value 0 [template = constants.%.3] // CHECK:STDOUT: %.loc20_3: %.4 = addr_of [template = ] // CHECK:STDOUT: %.loc25_4: bool = bool_literal true [template = constants.%.5] // CHECK:STDOUT: %.loc25_3: %.6 = addr_of [template = ] @@ -219,11 +219,11 @@ fn AddressOfParam(param: i32) { // CHECK:STDOUT: %.loc30_3: %.8 = addr_of [template = ] // CHECK:STDOUT: %.loc35_4: String = string_literal "Hello" [template = constants.%.10] // CHECK:STDOUT: %.loc35_3: %.9 = addr_of [template = ] -// CHECK:STDOUT: %.loc40_5: i32 = int_literal 1 [template = constants.%.11] -// CHECK:STDOUT: %.loc40_8: i32 = int_literal 2 [template = constants.%.12] +// CHECK:STDOUT: %.loc40_5: i32 = int_value 1 [template = constants.%.11] +// CHECK:STDOUT: %.loc40_8: i32 = int_value 2 [template = constants.%.12] // CHECK:STDOUT: %.loc40_9: %.13 = tuple_literal (%.loc40_5, %.loc40_8) // CHECK:STDOUT: %.loc40_3: %.14 = addr_of [template = ] -// CHECK:STDOUT: %.loc45_10: i32 = int_literal 5 [template = constants.%.15] +// CHECK:STDOUT: %.loc45_10: i32 = int_value 5 [template = constants.%.15] // CHECK:STDOUT: %.loc45_11: %.2 = struct_literal (%.loc45_10) // CHECK:STDOUT: %.loc45_3: %.16 = addr_of [template = ] // CHECK:STDOUT: return @@ -277,10 +277,10 @@ fn AddressOfParam(param: i32) { // CHECK:STDOUT: // CHECK:STDOUT: fn @AddressOfTupleElementValue() { // CHECK:STDOUT: !entry: -// CHECK:STDOUT: %.loc92_6: i32 = int_literal 1 [template = constants.%.11] -// CHECK:STDOUT: %.loc92_9: i32 = int_literal 2 [template = constants.%.12] +// CHECK:STDOUT: %.loc92_6: i32 = int_value 1 [template = constants.%.11] +// CHECK:STDOUT: %.loc92_9: i32 = int_value 2 [template = constants.%.12] // CHECK:STDOUT: %.loc92_10.1: %.13 = tuple_literal (%.loc92_6, %.loc92_9) -// CHECK:STDOUT: %.loc92_12: i32 = int_literal 0 [template = constants.%.3] +// CHECK:STDOUT: %.loc92_12: i32 = int_value 0 [template = constants.%.3] // CHECK:STDOUT: %tuple: %.13 = tuple_value (%.loc92_6, %.loc92_9) [template = constants.%tuple] // CHECK:STDOUT: %.loc92_10.2: %.13 = converted %.loc92_10.1, %tuple [template = constants.%tuple] // CHECK:STDOUT: %.loc92_11: i32 = tuple_access %.loc92_10.2, element0 [template = constants.%.11] diff --git a/toolchain/check/testdata/pointer/import.carbon b/toolchain/check/testdata/pointer/import.carbon index 0e18dc2063e1c..cba9148268c39 100644 --- a/toolchain/check/testdata/pointer/import.carbon +++ b/toolchain/check/testdata/pointer/import.carbon @@ -27,7 +27,7 @@ var a: i32* = a_ref; // CHECK:STDOUT: %Int32.type: type = fn_type @Int32 [template] // CHECK:STDOUT: %.1: type = tuple_type () [template] // CHECK:STDOUT: %Int32: %Int32.type = struct_value () [template] -// CHECK:STDOUT: %.2: i32 = int_literal 0 [template] +// CHECK:STDOUT: %.2: i32 = int_value 0 [template] // CHECK:STDOUT: %.3: type = ptr_type i32 [template] // CHECK:STDOUT: } // CHECK:STDOUT: @@ -64,7 +64,7 @@ var a: i32* = a_ref; // CHECK:STDOUT: // CHECK:STDOUT: fn @__global_init() { // CHECK:STDOUT: !entry: -// CHECK:STDOUT: %.loc4: i32 = int_literal 0 [template = constants.%.2] +// CHECK:STDOUT: %.loc4: i32 = int_value 0 [template = constants.%.2] // CHECK:STDOUT: assign file.%a_orig.var, %.loc4 // CHECK:STDOUT: %a_orig.ref: ref i32 = name_ref a_orig, file.%a_orig // CHECK:STDOUT: %.loc5: %.3 = addr_of %a_orig.ref diff --git a/toolchain/check/testdata/return/code_after_return.carbon b/toolchain/check/testdata/return/code_after_return.carbon index 2857846b1b8b6..19794627b9f73 100644 --- a/toolchain/check/testdata/return/code_after_return.carbon +++ b/toolchain/check/testdata/return/code_after_return.carbon @@ -21,7 +21,7 @@ fn Main() { // CHECK:STDOUT: %Main: %Main.type = struct_value () [template] // CHECK:STDOUT: %Int32.type: type = fn_type @Int32 [template] // CHECK:STDOUT: %Int32: %Int32.type = struct_value () [template] -// CHECK:STDOUT: %.2: i32 = int_literal 1 [template] +// CHECK:STDOUT: %.2: i32 = int_value 1 [template] // CHECK:STDOUT: } // CHECK:STDOUT: // CHECK:STDOUT: imports { diff --git a/toolchain/check/testdata/return/code_after_return_value.carbon b/toolchain/check/testdata/return/code_after_return_value.carbon index de2f8ce87b796..121458cfc8856 100644 --- a/toolchain/check/testdata/return/code_after_return_value.carbon +++ b/toolchain/check/testdata/return/code_after_return_value.carbon @@ -30,9 +30,9 @@ fn F(b: bool) -> i32 { // CHECK:STDOUT: %Int32: %Int32.type = struct_value () [template] // CHECK:STDOUT: %F.type: type = fn_type @F [template] // CHECK:STDOUT: %F: %F.type = struct_value () [template] -// CHECK:STDOUT: %.2: i32 = int_literal 0 [template] -// CHECK:STDOUT: %.3: i32 = int_literal 1 [template] -// CHECK:STDOUT: %.4: i32 = int_literal 2 [template] +// CHECK:STDOUT: %.2: i32 = int_value 0 [template] +// CHECK:STDOUT: %.3: i32 = int_value 1 [template] +// CHECK:STDOUT: %.4: i32 = int_value 2 [template] // CHECK:STDOUT: %.5: bool = bool_literal false [template] // CHECK:STDOUT: %.6: bool = bool_literal true [template] // CHECK:STDOUT: } @@ -79,7 +79,7 @@ fn F(b: bool) -> i32 { // CHECK:STDOUT: // CHECK:STDOUT: fn @F(%b.param_patt: bool) -> i32 { // CHECK:STDOUT: !entry: -// CHECK:STDOUT: %.loc12: i32 = int_literal 0 [template = constants.%.2] +// CHECK:STDOUT: %.loc12: i32 = int_value 0 [template = constants.%.2] // CHECK:STDOUT: return %.loc12 // CHECK:STDOUT: } // CHECK:STDOUT: diff --git a/toolchain/check/testdata/return/fail_call_in_type.carbon b/toolchain/check/testdata/return/fail_call_in_type.carbon index b6ebef4cef42d..deee18c9dee50 100644 --- a/toolchain/check/testdata/return/fail_call_in_type.carbon +++ b/toolchain/check/testdata/return/fail_call_in_type.carbon @@ -26,7 +26,7 @@ fn Six() -> ReturnType() { return 6; } // CHECK:STDOUT: %Int32: %Int32.type = struct_value () [template] // CHECK:STDOUT: %Six.type: type = fn_type @Six [template] // CHECK:STDOUT: %Six: %Six.type = struct_value () [template] -// CHECK:STDOUT: %.2: i32 = int_literal 6 [template] +// CHECK:STDOUT: %.2: i32 = int_value 6 [template] // CHECK:STDOUT: } // CHECK:STDOUT: // CHECK:STDOUT: imports { @@ -77,7 +77,7 @@ fn Six() -> ReturnType() { return 6; } // CHECK:STDOUT: // CHECK:STDOUT: fn @Six() -> { // CHECK:STDOUT: !entry: -// CHECK:STDOUT: %.loc17_35: i32 = int_literal 6 [template = constants.%.2] +// CHECK:STDOUT: %.loc17_35: i32 = int_value 6 [template = constants.%.2] // CHECK:STDOUT: return // CHECK:STDOUT: } // CHECK:STDOUT: diff --git a/toolchain/check/testdata/return/fail_let_in_type.carbon b/toolchain/check/testdata/return/fail_let_in_type.carbon index d7261f9c84f8e..169dab853cf3c 100644 --- a/toolchain/check/testdata/return/fail_let_in_type.carbon +++ b/toolchain/check/testdata/return/fail_let_in_type.carbon @@ -46,7 +46,7 @@ fn FirstPerfectNumber() -> z { return 6; } // CHECK:STDOUT: %Int32: %Int32.type = struct_value () [template] // CHECK:STDOUT: %Six.type: type = fn_type @Six [template] // CHECK:STDOUT: %Six: %Six.type = struct_value () [template] -// CHECK:STDOUT: %.2: i32 = int_literal 6 [template] +// CHECK:STDOUT: %.2: i32 = int_value 6 [template] // CHECK:STDOUT: %HalfDozen.type: type = fn_type @HalfDozen [template] // CHECK:STDOUT: %HalfDozen: %HalfDozen.type = struct_value () [template] // CHECK:STDOUT: } @@ -57,13 +57,13 @@ fn FirstPerfectNumber() -> z { return 6; } // CHECK:STDOUT: // CHECK:STDOUT: fn @Six() -> { // CHECK:STDOUT: !entry: -// CHECK:STDOUT: %.loc16: i32 = int_literal 6 [template = constants.%.2] +// CHECK:STDOUT: %.loc16: i32 = int_value 6 [template = constants.%.2] // CHECK:STDOUT: return // CHECK:STDOUT: } // CHECK:STDOUT: // CHECK:STDOUT: fn @HalfDozen() -> { // CHECK:STDOUT: !entry: -// CHECK:STDOUT: %.loc28: i32 = int_literal 6 [template = constants.%.2] +// CHECK:STDOUT: %.loc28: i32 = int_value 6 [template = constants.%.2] // CHECK:STDOUT: return // CHECK:STDOUT: } // CHECK:STDOUT: diff --git a/toolchain/check/testdata/return/fail_return_with_returned_var.carbon b/toolchain/check/testdata/return/fail_return_with_returned_var.carbon index f0c214e886084..6f3bc7cff77b1 100644 --- a/toolchain/check/testdata/return/fail_return_with_returned_var.carbon +++ b/toolchain/check/testdata/return/fail_return_with_returned_var.carbon @@ -40,8 +40,8 @@ fn G() -> C { // CHECK:STDOUT: %Int32: %Int32.type = struct_value () [template] // CHECK:STDOUT: %F.type: type = fn_type @F [template] // CHECK:STDOUT: %F: %F.type = struct_value () [template] -// CHECK:STDOUT: %.2: i32 = int_literal 0 [template] -// CHECK:STDOUT: %.3: i32 = int_literal 1 [template] +// CHECK:STDOUT: %.2: i32 = int_value 0 [template] +// CHECK:STDOUT: %.3: i32 = int_value 1 [template] // CHECK:STDOUT: %C: type = class_type @C [template] // CHECK:STDOUT: %.4: type = unbound_element_type %C, i32 [template] // CHECK:STDOUT: %.5: type = struct_type {.a: i32, .b: i32} [template] @@ -49,7 +49,7 @@ fn G() -> C { // CHECK:STDOUT: %G.type: type = fn_type @G [template] // CHECK:STDOUT: %G: %G.type = struct_value () [template] // CHECK:STDOUT: %.7: type = ptr_type %.5 [template] -// CHECK:STDOUT: %.8: i32 = int_literal 2 [template] +// CHECK:STDOUT: %.8: i32 = int_value 2 [template] // CHECK:STDOUT: %struct: %C = struct_value (%.3, %.8) [template] // CHECK:STDOUT: } // CHECK:STDOUT: @@ -117,9 +117,9 @@ fn G() -> C { // CHECK:STDOUT: %.loc12_19.2: type = converted %int.make_type_32.loc12, %.loc12_19.1 [template = i32] // CHECK:STDOUT: %v.var: ref i32 = var v // CHECK:STDOUT: %v: ref i32 = bind_name v, %v.var -// CHECK:STDOUT: %.loc12_25: i32 = int_literal 0 [template = constants.%.2] +// CHECK:STDOUT: %.loc12_25: i32 = int_value 0 [template = constants.%.2] // CHECK:STDOUT: assign %v.var, %.loc12_25 -// CHECK:STDOUT: %.loc20: i32 = int_literal 1 [template = constants.%.3] +// CHECK:STDOUT: %.loc20: i32 = int_value 1 [template = constants.%.3] // CHECK:STDOUT: return // CHECK:STDOUT: } // CHECK:STDOUT: @@ -127,8 +127,8 @@ fn G() -> C { // CHECK:STDOUT: !entry: // CHECK:STDOUT: %C.ref.loc25: type = name_ref C, file.%C.decl [template = constants.%C] // CHECK:STDOUT: %c: ref %C = bind_name c, %return -// CHECK:STDOUT: %.loc25_29: i32 = int_literal 1 [template = constants.%.3] -// CHECK:STDOUT: %.loc25_37: i32 = int_literal 2 [template = constants.%.8] +// CHECK:STDOUT: %.loc25_29: i32 = int_value 1 [template = constants.%.3] +// CHECK:STDOUT: %.loc25_37: i32 = int_value 2 [template = constants.%.8] // CHECK:STDOUT: %.loc25_38.1: %.5 = struct_literal (%.loc25_29, %.loc25_37) // CHECK:STDOUT: %.loc25_38.2: ref i32 = class_element_access %return, element0 // CHECK:STDOUT: %.loc25_38.3: init i32 = initialize_from %.loc25_29 to %.loc25_38.2 [template = constants.%.3] diff --git a/toolchain/check/testdata/return/fail_returned_var_shadow.carbon b/toolchain/check/testdata/return/fail_returned_var_shadow.carbon index c51907ed3fad5..0dbdaac0df2ce 100644 --- a/toolchain/check/testdata/return/fail_returned_var_shadow.carbon +++ b/toolchain/check/testdata/return/fail_returned_var_shadow.carbon @@ -48,8 +48,8 @@ fn DifferentScopes() -> i32 { // CHECK:STDOUT: %SameScope.type: type = fn_type @SameScope [template] // CHECK:STDOUT: %SameScope: %SameScope.type = struct_value () [template] // CHECK:STDOUT: %.2: bool = bool_literal true [template] -// CHECK:STDOUT: %.3: i32 = int_literal 0 [template] -// CHECK:STDOUT: %.4: i32 = int_literal 1 [template] +// CHECK:STDOUT: %.3: i32 = int_value 0 [template] +// CHECK:STDOUT: %.4: i32 = int_value 1 [template] // CHECK:STDOUT: %DifferentScopes.type: type = fn_type @DifferentScopes [template] // CHECK:STDOUT: %DifferentScopes: %DifferentScopes.type = struct_value () [template] // CHECK:STDOUT: } @@ -105,19 +105,19 @@ fn DifferentScopes() -> i32 { // CHECK:STDOUT: %.loc13_21.2: type = converted %int.make_type_32.loc13, %.loc13_21.1 [template = i32] // CHECK:STDOUT: %v.var: ref i32 = var v // CHECK:STDOUT: %v: ref i32 = bind_name v, %v.var -// CHECK:STDOUT: %.loc13_27: i32 = int_literal 0 [template = constants.%.3] +// CHECK:STDOUT: %.loc13_27: i32 = int_value 0 [template = constants.%.3] // CHECK:STDOUT: assign %v.var, %.loc13_27 // CHECK:STDOUT: %int.make_type_32.loc21: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc21_21.1: type = value_of_initializer %int.make_type_32.loc21 [template = i32] // CHECK:STDOUT: %.loc21_21.2: type = converted %int.make_type_32.loc21, %.loc21_21.1 [template = i32] // CHECK:STDOUT: %w.var: ref i32 = var w // CHECK:STDOUT: %w: ref i32 = bind_name w, %w.var -// CHECK:STDOUT: %.loc21_27: i32 = int_literal 1 [template = constants.%.4] +// CHECK:STDOUT: %.loc21_27: i32 = int_value 1 [template = constants.%.4] // CHECK:STDOUT: assign %w.var, %.loc21_27 // CHECK:STDOUT: br !if.else // CHECK:STDOUT: // CHECK:STDOUT: !if.else: -// CHECK:STDOUT: %.loc23: i32 = int_literal 0 [template = constants.%.3] +// CHECK:STDOUT: %.loc23: i32 = int_value 0 [template = constants.%.3] // CHECK:STDOUT: return %.loc23 // CHECK:STDOUT: } // CHECK:STDOUT: @@ -132,7 +132,7 @@ fn DifferentScopes() -> i32 { // CHECK:STDOUT: %.loc28_21.2: type = converted %int.make_type_32.loc28, %.loc28_21.1 [template = i32] // CHECK:STDOUT: %v.var: ref i32 = var v // CHECK:STDOUT: %v: ref i32 = bind_name v, %v.var -// CHECK:STDOUT: %.loc28_27: i32 = int_literal 0 [template = constants.%.3] +// CHECK:STDOUT: %.loc28_27: i32 = int_value 0 [template = constants.%.3] // CHECK:STDOUT: assign %v.var, %.loc28_27 // CHECK:STDOUT: %.loc29: bool = bool_literal true [template = constants.%.2] // CHECK:STDOUT: if %.loc29 br !if.then.loc29 else br !if.else.loc29 @@ -143,7 +143,7 @@ fn DifferentScopes() -> i32 { // CHECK:STDOUT: %.loc36_23.2: type = converted %int.make_type_32.loc36, %.loc36_23.1 [template = i32] // CHECK:STDOUT: %w.var: ref i32 = var w // CHECK:STDOUT: %w: ref i32 = bind_name w, %w.var -// CHECK:STDOUT: %.loc36_29: i32 = int_literal 1 [template = constants.%.4] +// CHECK:STDOUT: %.loc36_29: i32 = int_value 1 [template = constants.%.4] // CHECK:STDOUT: assign %w.var, %.loc36_29 // CHECK:STDOUT: br !if.else.loc29 // CHECK:STDOUT: @@ -151,7 +151,7 @@ fn DifferentScopes() -> i32 { // CHECK:STDOUT: br !if.else.loc27 // CHECK:STDOUT: // CHECK:STDOUT: !if.else.loc27: -// CHECK:STDOUT: %.loc39: i32 = int_literal 0 [template = constants.%.3] +// CHECK:STDOUT: %.loc39: i32 = int_value 0 [template = constants.%.3] // CHECK:STDOUT: return %.loc39 // CHECK:STDOUT: } // CHECK:STDOUT: diff --git a/toolchain/check/testdata/return/fail_returned_var_type.carbon b/toolchain/check/testdata/return/fail_returned_var_type.carbon index 6c543f0be4a93..3ed1b464bf83f 100644 --- a/toolchain/check/testdata/return/fail_returned_var_type.carbon +++ b/toolchain/check/testdata/return/fail_returned_var_type.carbon @@ -27,7 +27,7 @@ fn Mismatch() -> i32 { // CHECK:STDOUT: %Int32: %Int32.type = struct_value () [template] // CHECK:STDOUT: %Mismatch.type: type = fn_type @Mismatch [template] // CHECK:STDOUT: %Mismatch: %Mismatch.type = struct_value () [template] -// CHECK:STDOUT: %.2: Core.BigInt = int_literal 64 [template] +// CHECK:STDOUT: %.2: Core.BigInt = int_value 64 [template] // CHECK:STDOUT: %Float.type: type = fn_type @Float [template] // CHECK:STDOUT: %Float: %Float.type = struct_value () [template] // CHECK:STDOUT: %.3: f64 = float_literal 0 [template] @@ -66,7 +66,7 @@ fn Mismatch() -> i32 { // CHECK:STDOUT: // CHECK:STDOUT: fn @Mismatch() -> i32 { // CHECK:STDOUT: !entry: -// CHECK:STDOUT: %.loc18_19.1: Core.BigInt = int_literal 64 [template = constants.%.2] +// CHECK:STDOUT: %.loc18_19.1: Core.BigInt = int_value 64 [template = constants.%.2] // CHECK:STDOUT: %float.make_type: init type = call constants.%Float(%.loc18_19.1) [template = f64] // CHECK:STDOUT: %.loc18_19.2: type = value_of_initializer %float.make_type [template = f64] // CHECK:STDOUT: %.loc18_19.3: type = converted %float.make_type, %.loc18_19.2 [template = f64] diff --git a/toolchain/check/testdata/return/fail_value_disallowed.carbon b/toolchain/check/testdata/return/fail_value_disallowed.carbon index 756870fed7b9c..7d82f8fec4b33 100644 --- a/toolchain/check/testdata/return/fail_value_disallowed.carbon +++ b/toolchain/check/testdata/return/fail_value_disallowed.carbon @@ -24,7 +24,7 @@ fn Main() { // CHECK:STDOUT: %Main.type: type = fn_type @Main [template] // CHECK:STDOUT: %.1: type = tuple_type () [template] // CHECK:STDOUT: %Main: %Main.type = struct_value () [template] -// CHECK:STDOUT: %.2: i32 = int_literal 0 [template] +// CHECK:STDOUT: %.2: i32 = int_value 0 [template] // CHECK:STDOUT: } // CHECK:STDOUT: // CHECK:STDOUT: imports { @@ -45,7 +45,7 @@ fn Main() { // CHECK:STDOUT: // CHECK:STDOUT: fn @Main() { // CHECK:STDOUT: !entry: -// CHECK:STDOUT: %.loc18: i32 = int_literal 0 [template = constants.%.2] +// CHECK:STDOUT: %.loc18: i32 = int_value 0 [template = constants.%.2] // CHECK:STDOUT: return // CHECK:STDOUT: } // CHECK:STDOUT: diff --git a/toolchain/check/testdata/return/fail_var_in_type.carbon b/toolchain/check/testdata/return/fail_var_in_type.carbon index 5fe53e74f753e..4aae23029e066 100644 --- a/toolchain/check/testdata/return/fail_var_in_type.carbon +++ b/toolchain/check/testdata/return/fail_var_in_type.carbon @@ -22,7 +22,7 @@ fn Six() -> x { return 6; } // CHECK:STDOUT: %Int32: %Int32.type = struct_value () [template] // CHECK:STDOUT: %Six.type: type = fn_type @Six [template] // CHECK:STDOUT: %Six: %Six.type = struct_value () [template] -// CHECK:STDOUT: %.2: i32 = int_literal 6 [template] +// CHECK:STDOUT: %.2: i32 = int_value 6 [template] // CHECK:STDOUT: } // CHECK:STDOUT: // CHECK:STDOUT: imports { @@ -58,7 +58,7 @@ fn Six() -> x { return 6; } // CHECK:STDOUT: // CHECK:STDOUT: fn @Six() -> { // CHECK:STDOUT: !entry: -// CHECK:STDOUT: %.loc15_24: i32 = int_literal 6 [template = constants.%.2] +// CHECK:STDOUT: %.loc15_24: i32 = int_value 6 [template = constants.%.2] // CHECK:STDOUT: return // CHECK:STDOUT: } // CHECK:STDOUT: diff --git a/toolchain/check/testdata/return/no_prelude/import_convert_function.carbon b/toolchain/check/testdata/return/no_prelude/import_convert_function.carbon index 5f8109fafedde..1614ffc29b222 100644 --- a/toolchain/check/testdata/return/no_prelude/import_convert_function.carbon +++ b/toolchain/check/testdata/return/no_prelude/import_convert_function.carbon @@ -186,7 +186,7 @@ fn F0(n: i32) -> P.D { // CHECK:STDOUT: %Make.type: type = fn_type @Make [template] // CHECK:STDOUT: %Make: %Make.type = struct_value () [template] // CHECK:STDOUT: %.7: type = ptr_type %.5 [template] -// CHECK:STDOUT: %.8: i32 = int_literal 0 [template] +// CHECK:STDOUT: %.8: i32 = int_value 0 [template] // CHECK:STDOUT: %struct: %D = struct_value (%.8, %.8) [template] // CHECK:STDOUT: %C.3: type = class_type @C, @C(%.8) [template] // CHECK:STDOUT: %ImplicitAs.type.1: type = generic_interface_type @ImplicitAs [template] @@ -209,37 +209,37 @@ fn F0(n: i32) -> P.D { // CHECK:STDOUT: %.12: %.11 = assoc_entity element0, imports.%import_ref.6 [template] // CHECK:STDOUT: %.13: = interface_witness (%Convert.2) [template] // CHECK:STDOUT: %.14: type = ptr_type %.2 [template] -// CHECK:STDOUT: %.15: i32 = int_literal 1 [template] +// CHECK:STDOUT: %.15: i32 = int_value 1 [template] // CHECK:STDOUT: %C.4: type = class_type @C, @C(%.15) [template] // CHECK:STDOUT: %Convert.type.4: type = fn_type @Convert.3 [template] // CHECK:STDOUT: %Convert.4: %Convert.type.4 = struct_value () [template] // CHECK:STDOUT: %.16: = interface_witness (%Convert.4) [template] -// CHECK:STDOUT: %.17: i32 = int_literal 2 [template] +// CHECK:STDOUT: %.17: i32 = int_value 2 [template] // CHECK:STDOUT: %C.5: type = class_type @C, @C(%.17) [template] // CHECK:STDOUT: %Convert.type.5: type = fn_type @Convert.4 [template] // CHECK:STDOUT: %Convert.5: %Convert.type.5 = struct_value () [template] // CHECK:STDOUT: %.18: = interface_witness (%Convert.5) [template] -// CHECK:STDOUT: %.19: i32 = int_literal 3 [template] +// CHECK:STDOUT: %.19: i32 = int_value 3 [template] // CHECK:STDOUT: %C.6: type = class_type @C, @C(%.19) [template] // CHECK:STDOUT: %Convert.type.6: type = fn_type @Convert.5 [template] // CHECK:STDOUT: %Convert.6: %Convert.type.6 = struct_value () [template] // CHECK:STDOUT: %.20: = interface_witness (%Convert.6) [template] -// CHECK:STDOUT: %.21: i32 = int_literal 4 [template] +// CHECK:STDOUT: %.21: i32 = int_value 4 [template] // CHECK:STDOUT: %C.7: type = class_type @C, @C(%.21) [template] // CHECK:STDOUT: %Convert.type.7: type = fn_type @Convert.6 [template] // CHECK:STDOUT: %Convert.7: %Convert.type.7 = struct_value () [template] // CHECK:STDOUT: %.22: = interface_witness (%Convert.7) [template] -// CHECK:STDOUT: %.23: i32 = int_literal 5 [template] +// CHECK:STDOUT: %.23: i32 = int_value 5 [template] // CHECK:STDOUT: %C.8: type = class_type @C, @C(%.23) [template] // CHECK:STDOUT: %Convert.type.8: type = fn_type @Convert.7 [template] // CHECK:STDOUT: %Convert.8: %Convert.type.8 = struct_value () [template] // CHECK:STDOUT: %.24: = interface_witness (%Convert.8) [template] -// CHECK:STDOUT: %.25: i32 = int_literal 6 [template] +// CHECK:STDOUT: %.25: i32 = int_value 6 [template] // CHECK:STDOUT: %C.9: type = class_type @C, @C(%.25) [template] // CHECK:STDOUT: %Convert.type.9: type = fn_type @Convert.8 [template] // CHECK:STDOUT: %Convert.9: %Convert.type.9 = struct_value () [template] // CHECK:STDOUT: %.26: = interface_witness (%Convert.9) [template] -// CHECK:STDOUT: %.27: i32 = int_literal 7 [template] +// CHECK:STDOUT: %.27: i32 = int_value 7 [template] // CHECK:STDOUT: %C.10: type = class_type @C, @C(%.27) [template] // CHECK:STDOUT: %Convert.type.10: type = fn_type @Convert.9 [template] // CHECK:STDOUT: %Convert.10: %Convert.type.10 = struct_value () [template] @@ -289,7 +289,7 @@ fn F0(n: i32) -> P.D { // CHECK:STDOUT: } // CHECK:STDOUT: impl_decl @impl.1 [template] {} { // CHECK:STDOUT: %C.ref: %C.type = name_ref C, file.%C.decl [template = constants.%C.1] -// CHECK:STDOUT: %.loc10_8: i32 = int_literal 0 [template = constants.%.8] +// CHECK:STDOUT: %.loc10_8: i32 = int_value 0 [template = constants.%.8] // CHECK:STDOUT: %C: type = class_type @C, @C(constants.%.8) [template = constants.%C.3] // CHECK:STDOUT: %Core.ref: = name_ref Core, imports.%Core [template = imports.%Core] // CHECK:STDOUT: %ImplicitAs.ref: %ImplicitAs.type.1 = name_ref ImplicitAs, imports.%import_ref.2 [template = constants.%ImplicitAs] @@ -298,7 +298,7 @@ fn F0(n: i32) -> P.D { // CHECK:STDOUT: } // CHECK:STDOUT: impl_decl @impl.2 [template] {} { // CHECK:STDOUT: %C.ref: %C.type = name_ref C, file.%C.decl [template = constants.%C.1] -// CHECK:STDOUT: %.loc11_8: i32 = int_literal 1 [template = constants.%.15] +// CHECK:STDOUT: %.loc11_8: i32 = int_value 1 [template = constants.%.15] // CHECK:STDOUT: %C: type = class_type @C, @C(constants.%.15) [template = constants.%C.4] // CHECK:STDOUT: %Core.ref: = name_ref Core, imports.%Core [template = imports.%Core] // CHECK:STDOUT: %ImplicitAs.ref: %ImplicitAs.type.1 = name_ref ImplicitAs, imports.%import_ref.2 [template = constants.%ImplicitAs] @@ -307,7 +307,7 @@ fn F0(n: i32) -> P.D { // CHECK:STDOUT: } // CHECK:STDOUT: impl_decl @impl.3 [template] {} { // CHECK:STDOUT: %C.ref: %C.type = name_ref C, file.%C.decl [template = constants.%C.1] -// CHECK:STDOUT: %.loc12_8: i32 = int_literal 2 [template = constants.%.17] +// CHECK:STDOUT: %.loc12_8: i32 = int_value 2 [template = constants.%.17] // CHECK:STDOUT: %C: type = class_type @C, @C(constants.%.17) [template = constants.%C.5] // CHECK:STDOUT: %Core.ref: = name_ref Core, imports.%Core [template = imports.%Core] // CHECK:STDOUT: %ImplicitAs.ref: %ImplicitAs.type.1 = name_ref ImplicitAs, imports.%import_ref.2 [template = constants.%ImplicitAs] @@ -316,7 +316,7 @@ fn F0(n: i32) -> P.D { // CHECK:STDOUT: } // CHECK:STDOUT: impl_decl @impl.4 [template] {} { // CHECK:STDOUT: %C.ref: %C.type = name_ref C, file.%C.decl [template = constants.%C.1] -// CHECK:STDOUT: %.loc13_8: i32 = int_literal 3 [template = constants.%.19] +// CHECK:STDOUT: %.loc13_8: i32 = int_value 3 [template = constants.%.19] // CHECK:STDOUT: %C: type = class_type @C, @C(constants.%.19) [template = constants.%C.6] // CHECK:STDOUT: %Core.ref: = name_ref Core, imports.%Core [template = imports.%Core] // CHECK:STDOUT: %ImplicitAs.ref: %ImplicitAs.type.1 = name_ref ImplicitAs, imports.%import_ref.2 [template = constants.%ImplicitAs] @@ -325,7 +325,7 @@ fn F0(n: i32) -> P.D { // CHECK:STDOUT: } // CHECK:STDOUT: impl_decl @impl.5 [template] {} { // CHECK:STDOUT: %C.ref: %C.type = name_ref C, file.%C.decl [template = constants.%C.1] -// CHECK:STDOUT: %.loc14_8: i32 = int_literal 4 [template = constants.%.21] +// CHECK:STDOUT: %.loc14_8: i32 = int_value 4 [template = constants.%.21] // CHECK:STDOUT: %C: type = class_type @C, @C(constants.%.21) [template = constants.%C.7] // CHECK:STDOUT: %Core.ref: = name_ref Core, imports.%Core [template = imports.%Core] // CHECK:STDOUT: %ImplicitAs.ref: %ImplicitAs.type.1 = name_ref ImplicitAs, imports.%import_ref.2 [template = constants.%ImplicitAs] @@ -334,7 +334,7 @@ fn F0(n: i32) -> P.D { // CHECK:STDOUT: } // CHECK:STDOUT: impl_decl @impl.6 [template] {} { // CHECK:STDOUT: %C.ref: %C.type = name_ref C, file.%C.decl [template = constants.%C.1] -// CHECK:STDOUT: %.loc15_8: i32 = int_literal 5 [template = constants.%.23] +// CHECK:STDOUT: %.loc15_8: i32 = int_value 5 [template = constants.%.23] // CHECK:STDOUT: %C: type = class_type @C, @C(constants.%.23) [template = constants.%C.8] // CHECK:STDOUT: %Core.ref: = name_ref Core, imports.%Core [template = imports.%Core] // CHECK:STDOUT: %ImplicitAs.ref: %ImplicitAs.type.1 = name_ref ImplicitAs, imports.%import_ref.2 [template = constants.%ImplicitAs] @@ -343,7 +343,7 @@ fn F0(n: i32) -> P.D { // CHECK:STDOUT: } // CHECK:STDOUT: impl_decl @impl.7 [template] {} { // CHECK:STDOUT: %C.ref: %C.type = name_ref C, file.%C.decl [template = constants.%C.1] -// CHECK:STDOUT: %.loc16_8: i32 = int_literal 6 [template = constants.%.25] +// CHECK:STDOUT: %.loc16_8: i32 = int_value 6 [template = constants.%.25] // CHECK:STDOUT: %C: type = class_type @C, @C(constants.%.25) [template = constants.%C.9] // CHECK:STDOUT: %Core.ref: = name_ref Core, imports.%Core [template = imports.%Core] // CHECK:STDOUT: %ImplicitAs.ref: %ImplicitAs.type.1 = name_ref ImplicitAs, imports.%import_ref.2 [template = constants.%ImplicitAs] @@ -352,7 +352,7 @@ fn F0(n: i32) -> P.D { // CHECK:STDOUT: } // CHECK:STDOUT: impl_decl @impl.8 [template] {} { // CHECK:STDOUT: %C.ref: %C.type = name_ref C, file.%C.decl [template = constants.%C.1] -// CHECK:STDOUT: %.loc17_8: i32 = int_literal 7 [template = constants.%.27] +// CHECK:STDOUT: %.loc17_8: i32 = int_value 7 [template = constants.%.27] // CHECK:STDOUT: %C: type = class_type @C, @C(constants.%.27) [template = constants.%C.10] // CHECK:STDOUT: %Core.ref: = name_ref Core, imports.%Core [template = imports.%Core] // CHECK:STDOUT: %ImplicitAs.ref: %ImplicitAs.type.1 = name_ref ImplicitAs, imports.%import_ref.2 [template = constants.%ImplicitAs] @@ -584,8 +584,8 @@ fn F0(n: i32) -> P.D { // CHECK:STDOUT: // CHECK:STDOUT: fn @Make() -> %return: %D { // CHECK:STDOUT: !entry: -// CHECK:STDOUT: %.loc8_31: i32 = int_literal 0 [template = constants.%.8] -// CHECK:STDOUT: %.loc8_39: i32 = int_literal 0 [template = constants.%.8] +// CHECK:STDOUT: %.loc8_31: i32 = int_value 0 [template = constants.%.8] +// CHECK:STDOUT: %.loc8_39: i32 = int_value 0 [template = constants.%.8] // CHECK:STDOUT: %.loc8_40.1: %.5 = struct_literal (%.loc8_31, %.loc8_39) // CHECK:STDOUT: %.loc8_40.2: ref i32 = class_element_access %return, element0 // CHECK:STDOUT: %.loc8_40.3: init i32 = initialize_from %.loc8_31 to %.loc8_40.2 [template = constants.%.8] @@ -831,7 +831,7 @@ fn F0(n: i32) -> P.D { // CHECK:STDOUT: %N: i32 = bind_symbolic_name N, 0 [symbolic] // CHECK:STDOUT: %C.2: type = class_type @C, @C(%N) [symbolic] // CHECK:STDOUT: %N.patt: i32 = symbolic_binding_pattern N, 0 [symbolic] -// CHECK:STDOUT: %.8: i32 = int_literal 0 [template] +// CHECK:STDOUT: %.8: i32 = int_value 0 [template] // CHECK:STDOUT: %C.3: type = class_type @C, @C(%.8) [template] // CHECK:STDOUT: %.9: type = ptr_type %.6 [template] // CHECK:STDOUT: %struct.1: %C.3 = struct_value () [template] @@ -852,19 +852,19 @@ fn F0(n: i32) -> P.D { // CHECK:STDOUT: %.12: type = assoc_entity_type %ImplicitAs.type.3, %Convert.type.2 [template] // CHECK:STDOUT: %.13: %.12 = assoc_entity element0, imports.%import_ref.12 [template] // CHECK:STDOUT: %.14: %.10 = assoc_entity element0, imports.%import_ref.13 [symbolic] -// CHECK:STDOUT: %.15: i32 = int_literal 1 [template] +// CHECK:STDOUT: %.15: i32 = int_value 1 [template] // CHECK:STDOUT: %C.4: type = class_type @C, @C(%.15) [template] -// CHECK:STDOUT: %.16: i32 = int_literal 2 [template] +// CHECK:STDOUT: %.16: i32 = int_value 2 [template] // CHECK:STDOUT: %C.5: type = class_type @C, @C(%.16) [template] -// CHECK:STDOUT: %.17: i32 = int_literal 3 [template] +// CHECK:STDOUT: %.17: i32 = int_value 3 [template] // CHECK:STDOUT: %C.6: type = class_type @C, @C(%.17) [template] -// CHECK:STDOUT: %.18: i32 = int_literal 4 [template] +// CHECK:STDOUT: %.18: i32 = int_value 4 [template] // CHECK:STDOUT: %C.7: type = class_type @C, @C(%.18) [template] -// CHECK:STDOUT: %.19: i32 = int_literal 5 [template] +// CHECK:STDOUT: %.19: i32 = int_value 5 [template] // CHECK:STDOUT: %C.8: type = class_type @C, @C(%.19) [template] -// CHECK:STDOUT: %.20: i32 = int_literal 6 [template] +// CHECK:STDOUT: %.20: i32 = int_value 6 [template] // CHECK:STDOUT: %C.9: type = class_type @C, @C(%.20) [template] -// CHECK:STDOUT: %.21: i32 = int_literal 7 [template] +// CHECK:STDOUT: %.21: i32 = int_value 7 [template] // CHECK:STDOUT: %C.10: type = class_type @C, @C(%.21) [template] // CHECK:STDOUT: %Convert.type.3: type = fn_type @Convert.2 [template] // CHECK:STDOUT: %Convert.3: %Convert.type.3 = struct_value () [template] @@ -1069,7 +1069,7 @@ fn F0(n: i32) -> P.D { // CHECK:STDOUT: %.loc8_24.1: %.6 = struct_literal () // CHECK:STDOUT: %P.ref.loc8: = name_ref P, imports.%P [template = imports.%P] // CHECK:STDOUT: %C.ref.loc8: %C.type = name_ref C, imports.%import_ref.6 [template = constants.%C.1] -// CHECK:STDOUT: %.loc8_33: i32 = int_literal 0 [template = constants.%.8] +// CHECK:STDOUT: %.loc8_33: i32 = int_value 0 [template = constants.%.8] // CHECK:STDOUT: %C.loc8: type = class_type @C, @C(constants.%.8) [template = constants.%C.3] // CHECK:STDOUT: %.loc8_24.2: ref %C.3 = temporary_storage // CHECK:STDOUT: %.loc8_24.3: init %C.3 = class_init (), %.loc8_24.2 [template = constants.%struct.1] @@ -1094,7 +1094,7 @@ fn F0(n: i32) -> P.D { // CHECK:STDOUT: %.loc9_24.1: %.6 = struct_literal () // CHECK:STDOUT: %P.ref.loc9: = name_ref P, imports.%P [template = imports.%P] // CHECK:STDOUT: %C.ref.loc9: %C.type = name_ref C, imports.%import_ref.6 [template = constants.%C.1] -// CHECK:STDOUT: %.loc9_33: i32 = int_literal 1 [template = constants.%.15] +// CHECK:STDOUT: %.loc9_33: i32 = int_value 1 [template = constants.%.15] // CHECK:STDOUT: %C.loc9: type = class_type @C, @C(constants.%.15) [template = constants.%C.4] // CHECK:STDOUT: %.loc9_24.2: ref %C.4 = temporary_storage // CHECK:STDOUT: %.loc9_24.3: init %C.4 = class_init (), %.loc9_24.2 [template = constants.%struct.2] @@ -1119,7 +1119,7 @@ fn F0(n: i32) -> P.D { // CHECK:STDOUT: %.loc10_24.1: %.6 = struct_literal () // CHECK:STDOUT: %P.ref.loc10: = name_ref P, imports.%P [template = imports.%P] // CHECK:STDOUT: %C.ref.loc10: %C.type = name_ref C, imports.%import_ref.6 [template = constants.%C.1] -// CHECK:STDOUT: %.loc10_33: i32 = int_literal 2 [template = constants.%.16] +// CHECK:STDOUT: %.loc10_33: i32 = int_value 2 [template = constants.%.16] // CHECK:STDOUT: %C.loc10: type = class_type @C, @C(constants.%.16) [template = constants.%C.5] // CHECK:STDOUT: %.loc10_24.2: ref %C.5 = temporary_storage // CHECK:STDOUT: %.loc10_24.3: init %C.5 = class_init (), %.loc10_24.2 [template = constants.%struct.3] @@ -1144,7 +1144,7 @@ fn F0(n: i32) -> P.D { // CHECK:STDOUT: %.loc11_24.1: %.6 = struct_literal () // CHECK:STDOUT: %P.ref.loc11: = name_ref P, imports.%P [template = imports.%P] // CHECK:STDOUT: %C.ref.loc11: %C.type = name_ref C, imports.%import_ref.6 [template = constants.%C.1] -// CHECK:STDOUT: %.loc11_33: i32 = int_literal 3 [template = constants.%.17] +// CHECK:STDOUT: %.loc11_33: i32 = int_value 3 [template = constants.%.17] // CHECK:STDOUT: %C.loc11: type = class_type @C, @C(constants.%.17) [template = constants.%C.6] // CHECK:STDOUT: %.loc11_24.2: ref %C.6 = temporary_storage // CHECK:STDOUT: %.loc11_24.3: init %C.6 = class_init (), %.loc11_24.2 [template = constants.%struct.4] @@ -1169,7 +1169,7 @@ fn F0(n: i32) -> P.D { // CHECK:STDOUT: %.loc12_24.1: %.6 = struct_literal () // CHECK:STDOUT: %P.ref.loc12: = name_ref P, imports.%P [template = imports.%P] // CHECK:STDOUT: %C.ref.loc12: %C.type = name_ref C, imports.%import_ref.6 [template = constants.%C.1] -// CHECK:STDOUT: %.loc12_33: i32 = int_literal 4 [template = constants.%.18] +// CHECK:STDOUT: %.loc12_33: i32 = int_value 4 [template = constants.%.18] // CHECK:STDOUT: %C.loc12: type = class_type @C, @C(constants.%.18) [template = constants.%C.7] // CHECK:STDOUT: %.loc12_24.2: ref %C.7 = temporary_storage // CHECK:STDOUT: %.loc12_24.3: init %C.7 = class_init (), %.loc12_24.2 [template = constants.%struct.5] @@ -1194,7 +1194,7 @@ fn F0(n: i32) -> P.D { // CHECK:STDOUT: %.loc13_24.1: %.6 = struct_literal () // CHECK:STDOUT: %P.ref.loc13: = name_ref P, imports.%P [template = imports.%P] // CHECK:STDOUT: %C.ref.loc13: %C.type = name_ref C, imports.%import_ref.6 [template = constants.%C.1] -// CHECK:STDOUT: %.loc13_33: i32 = int_literal 5 [template = constants.%.19] +// CHECK:STDOUT: %.loc13_33: i32 = int_value 5 [template = constants.%.19] // CHECK:STDOUT: %C.loc13: type = class_type @C, @C(constants.%.19) [template = constants.%C.8] // CHECK:STDOUT: %.loc13_24.2: ref %C.8 = temporary_storage // CHECK:STDOUT: %.loc13_24.3: init %C.8 = class_init (), %.loc13_24.2 [template = constants.%struct.6] @@ -1219,7 +1219,7 @@ fn F0(n: i32) -> P.D { // CHECK:STDOUT: %.loc14_24.1: %.6 = struct_literal () // CHECK:STDOUT: %P.ref.loc14: = name_ref P, imports.%P [template = imports.%P] // CHECK:STDOUT: %C.ref.loc14: %C.type = name_ref C, imports.%import_ref.6 [template = constants.%C.1] -// CHECK:STDOUT: %.loc14_33: i32 = int_literal 6 [template = constants.%.20] +// CHECK:STDOUT: %.loc14_33: i32 = int_value 6 [template = constants.%.20] // CHECK:STDOUT: %C.loc14: type = class_type @C, @C(constants.%.20) [template = constants.%C.9] // CHECK:STDOUT: %.loc14_24.2: ref %C.9 = temporary_storage // CHECK:STDOUT: %.loc14_24.3: init %C.9 = class_init (), %.loc14_24.2 [template = constants.%struct.7] @@ -1244,7 +1244,7 @@ fn F0(n: i32) -> P.D { // CHECK:STDOUT: %.loc15_24.1: %.6 = struct_literal () // CHECK:STDOUT: %P.ref.loc15: = name_ref P, imports.%P [template = imports.%P] // CHECK:STDOUT: %C.ref.loc15: %C.type = name_ref C, imports.%import_ref.6 [template = constants.%C.1] -// CHECK:STDOUT: %.loc15_33: i32 = int_literal 7 [template = constants.%.21] +// CHECK:STDOUT: %.loc15_33: i32 = int_value 7 [template = constants.%.21] // CHECK:STDOUT: %C.loc15: type = class_type @C, @C(constants.%.21) [template = constants.%C.10] // CHECK:STDOUT: %.loc15_24.2: ref %C.10 = temporary_storage // CHECK:STDOUT: %.loc15_24.3: init %C.10 = class_init (), %.loc15_24.2 [template = constants.%struct.8] diff --git a/toolchain/check/testdata/return/returned_var.carbon b/toolchain/check/testdata/return/returned_var.carbon index 79528eaad4a97..829d565e24cbb 100644 --- a/toolchain/check/testdata/return/returned_var.carbon +++ b/toolchain/check/testdata/return/returned_var.carbon @@ -36,12 +36,12 @@ fn G() -> i32 { // CHECK:STDOUT: %F.type: type = fn_type @F [template] // CHECK:STDOUT: %F: %F.type = struct_value () [template] // CHECK:STDOUT: %.5: type = ptr_type %.3 [template] -// CHECK:STDOUT: %.6: i32 = int_literal 1 [template] -// CHECK:STDOUT: %.7: i32 = int_literal 2 [template] +// CHECK:STDOUT: %.6: i32 = int_value 1 [template] +// CHECK:STDOUT: %.7: i32 = int_value 2 [template] // CHECK:STDOUT: %struct: %C = struct_value (%.6, %.7) [template] // CHECK:STDOUT: %G.type: type = fn_type @G [template] // CHECK:STDOUT: %G: %G.type = struct_value () [template] -// CHECK:STDOUT: %.8: i32 = int_literal 0 [template] +// CHECK:STDOUT: %.8: i32 = int_value 0 [template] // CHECK:STDOUT: } // CHECK:STDOUT: // CHECK:STDOUT: imports { @@ -105,8 +105,8 @@ fn G() -> i32 { // CHECK:STDOUT: !entry: // CHECK:STDOUT: %C.ref.loc17: type = name_ref C, file.%C.decl [template = constants.%C] // CHECK:STDOUT: %result: ref %C = bind_name result, %return -// CHECK:STDOUT: %.loc17_34: i32 = int_literal 1 [template = constants.%.6] -// CHECK:STDOUT: %.loc17_42: i32 = int_literal 2 [template = constants.%.7] +// CHECK:STDOUT: %.loc17_34: i32 = int_value 1 [template = constants.%.6] +// CHECK:STDOUT: %.loc17_42: i32 = int_value 2 [template = constants.%.7] // CHECK:STDOUT: %.loc17_43.1: %.3 = struct_literal (%.loc17_34, %.loc17_42) // CHECK:STDOUT: %.loc17_43.2: ref i32 = class_element_access %return, element0 // CHECK:STDOUT: %.loc17_43.3: init i32 = initialize_from %.loc17_34 to %.loc17_43.2 [template = constants.%.6] @@ -125,7 +125,7 @@ fn G() -> i32 { // CHECK:STDOUT: %.loc22_24.2: type = converted %int.make_type_32.loc22, %.loc22_24.1 [template = i32] // CHECK:STDOUT: %result.var: ref i32 = var result // CHECK:STDOUT: %result: ref i32 = bind_name result, %result.var -// CHECK:STDOUT: %.loc22_30: i32 = int_literal 0 [template = constants.%.8] +// CHECK:STDOUT: %.loc22_30: i32 = int_value 0 [template = constants.%.8] // CHECK:STDOUT: assign %result.var, %.loc22_30 // CHECK:STDOUT: %.loc22_16: i32 = bind_value %result // CHECK:STDOUT: return %.loc22_16 diff --git a/toolchain/check/testdata/return/returned_var_scope.carbon b/toolchain/check/testdata/return/returned_var_scope.carbon index 197fe2d4aae27..36c85873a22a6 100644 --- a/toolchain/check/testdata/return/returned_var_scope.carbon +++ b/toolchain/check/testdata/return/returned_var_scope.carbon @@ -36,8 +36,8 @@ fn EnclosingButAfter(b: bool) -> i32 { // CHECK:STDOUT: %UnrelatedScopes.type: type = fn_type @UnrelatedScopes [template] // CHECK:STDOUT: %UnrelatedScopes: %UnrelatedScopes.type = struct_value () [template] // CHECK:STDOUT: %.2: bool = bool_literal true [template] -// CHECK:STDOUT: %.3: i32 = int_literal 0 [template] -// CHECK:STDOUT: %.4: i32 = int_literal 1 [template] +// CHECK:STDOUT: %.3: i32 = int_value 0 [template] +// CHECK:STDOUT: %.4: i32 = int_value 1 [template] // CHECK:STDOUT: %Bool.type: type = fn_type @Bool [template] // CHECK:STDOUT: %Bool: %Bool.type = struct_value () [template] // CHECK:STDOUT: %EnclosingButAfter.type: type = fn_type @EnclosingButAfter [template] @@ -104,7 +104,7 @@ fn EnclosingButAfter(b: bool) -> i32 { // CHECK:STDOUT: %.loc13_21.2: type = converted %int.make_type_32.loc13, %.loc13_21.1 [template = i32] // CHECK:STDOUT: %v.var: ref i32 = var v // CHECK:STDOUT: %v: ref i32 = bind_name v, %v.var -// CHECK:STDOUT: %.loc13_27: i32 = int_literal 0 [template = constants.%.3] +// CHECK:STDOUT: %.loc13_27: i32 = int_value 0 [template = constants.%.3] // CHECK:STDOUT: assign %v.var, %.loc13_27 // CHECK:STDOUT: br !if.else.loc12 // CHECK:STDOUT: @@ -118,12 +118,12 @@ fn EnclosingButAfter(b: bool) -> i32 { // CHECK:STDOUT: %.loc16_21.2: type = converted %int.make_type_32.loc16, %.loc16_21.1 [template = i32] // CHECK:STDOUT: %w.var: ref i32 = var w // CHECK:STDOUT: %w: ref i32 = bind_name w, %w.var -// CHECK:STDOUT: %.loc16_27: i32 = int_literal 1 [template = constants.%.4] +// CHECK:STDOUT: %.loc16_27: i32 = int_value 1 [template = constants.%.4] // CHECK:STDOUT: assign %w.var, %.loc16_27 // CHECK:STDOUT: br !if.else.loc15 // CHECK:STDOUT: // CHECK:STDOUT: !if.else.loc15: -// CHECK:STDOUT: %.loc18: i32 = int_literal 0 [template = constants.%.3] +// CHECK:STDOUT: %.loc18: i32 = int_value 0 [template = constants.%.3] // CHECK:STDOUT: return %.loc18 // CHECK:STDOUT: } // CHECK:STDOUT: @@ -140,7 +140,7 @@ fn EnclosingButAfter(b: bool) -> i32 { // CHECK:STDOUT: %.loc23_21.2: type = converted %int.make_type_32.loc23, %.loc23_21.1 [template = i32] // CHECK:STDOUT: %v.var: ref i32 = var v // CHECK:STDOUT: %v: ref i32 = bind_name v, %v.var -// CHECK:STDOUT: %.loc23_27: i32 = int_literal 0 [template = constants.%.3] +// CHECK:STDOUT: %.loc23_27: i32 = int_value 0 [template = constants.%.3] // CHECK:STDOUT: assign %v.var, %.loc23_27 // CHECK:STDOUT: %.loc23_18: i32 = bind_value %v // CHECK:STDOUT: return %.loc23_18 @@ -151,7 +151,7 @@ fn EnclosingButAfter(b: bool) -> i32 { // CHECK:STDOUT: %.loc26_19.2: type = converted %int.make_type_32.loc26, %.loc26_19.1 [template = i32] // CHECK:STDOUT: %w.var: ref i32 = var w // CHECK:STDOUT: %w: ref i32 = bind_name w, %w.var -// CHECK:STDOUT: %.loc26_25: i32 = int_literal 1 [template = constants.%.4] +// CHECK:STDOUT: %.loc26_25: i32 = int_value 1 [template = constants.%.4] // CHECK:STDOUT: assign %w.var, %.loc26_25 // CHECK:STDOUT: %.loc26_16: i32 = bind_value %w // CHECK:STDOUT: return %.loc26_16 diff --git a/toolchain/check/testdata/return/struct.carbon b/toolchain/check/testdata/return/struct.carbon index 73861dd6a5d7e..d417dea1885dc 100644 --- a/toolchain/check/testdata/return/struct.carbon +++ b/toolchain/check/testdata/return/struct.carbon @@ -21,7 +21,7 @@ fn Main() -> {.a: i32} { // CHECK:STDOUT: %.2: type = struct_type {.a: i32} [template] // CHECK:STDOUT: %Main.type: type = fn_type @Main [template] // CHECK:STDOUT: %Main: %Main.type = struct_value () [template] -// CHECK:STDOUT: %.3: i32 = int_literal 3 [template] +// CHECK:STDOUT: %.3: i32 = int_value 3 [template] // CHECK:STDOUT: %struct: %.2 = struct_value (%.3) [template] // CHECK:STDOUT: } // CHECK:STDOUT: @@ -57,7 +57,7 @@ fn Main() -> {.a: i32} { // CHECK:STDOUT: // CHECK:STDOUT: fn @Main() -> %.2 { // CHECK:STDOUT: !entry: -// CHECK:STDOUT: %.loc12_16: i32 = int_literal 3 [template = constants.%.3] +// CHECK:STDOUT: %.loc12_16: i32 = int_value 3 [template = constants.%.3] // CHECK:STDOUT: %.loc12_17: %.2 = struct_literal (%.loc12_16) // CHECK:STDOUT: %struct: %.2 = struct_value (%.loc12_16) [template = constants.%struct] // CHECK:STDOUT: %.loc12_18: %.2 = converted %.loc12_17, %struct [template = constants.%struct] diff --git a/toolchain/check/testdata/return/tuple.carbon b/toolchain/check/testdata/return/tuple.carbon index 05b736626907b..00ea3ce20cc59 100644 --- a/toolchain/check/testdata/return/tuple.carbon +++ b/toolchain/check/testdata/return/tuple.carbon @@ -24,8 +24,8 @@ fn Main() -> (i32, i32) { // CHECK:STDOUT: %Main.type: type = fn_type @Main [template] // CHECK:STDOUT: %Main: %Main.type = struct_value () [template] // CHECK:STDOUT: %.4: type = ptr_type %.3 [template] -// CHECK:STDOUT: %.5: i32 = int_literal 15 [template] -// CHECK:STDOUT: %.6: i32 = int_literal 35 [template] +// CHECK:STDOUT: %.5: i32 = int_value 15 [template] +// CHECK:STDOUT: %.6: i32 = int_value 35 [template] // CHECK:STDOUT: %tuple: %.3 = tuple_value (%.5, %.6) [template] // CHECK:STDOUT: } // CHECK:STDOUT: @@ -65,8 +65,8 @@ fn Main() -> (i32, i32) { // CHECK:STDOUT: // CHECK:STDOUT: fn @Main() -> %return: %.3 { // CHECK:STDOUT: !entry: -// CHECK:STDOUT: %.loc13_11: i32 = int_literal 15 [template = constants.%.5] -// CHECK:STDOUT: %.loc13_15: i32 = int_literal 35 [template = constants.%.6] +// CHECK:STDOUT: %.loc13_11: i32 = int_value 15 [template = constants.%.5] +// CHECK:STDOUT: %.loc13_15: i32 = int_value 35 [template = constants.%.6] // CHECK:STDOUT: %.loc13_17.1: %.3 = tuple_literal (%.loc13_11, %.loc13_15) // CHECK:STDOUT: %.loc13_17.2: ref i32 = tuple_access %return, element0 // CHECK:STDOUT: %.loc13_17.3: init i32 = initialize_from %.loc13_11 to %.loc13_17.2 [template = constants.%.5] diff --git a/toolchain/check/testdata/return/value.carbon b/toolchain/check/testdata/return/value.carbon index ae0266f14e8f8..5955000c21eab 100644 --- a/toolchain/check/testdata/return/value.carbon +++ b/toolchain/check/testdata/return/value.carbon @@ -20,7 +20,7 @@ fn Main() -> i32 { // CHECK:STDOUT: %Int32: %Int32.type = struct_value () [template] // CHECK:STDOUT: %Main.type: type = fn_type @Main [template] // CHECK:STDOUT: %Main: %Main.type = struct_value () [template] -// CHECK:STDOUT: %.2: i32 = int_literal 0 [template] +// CHECK:STDOUT: %.2: i32 = int_value 0 [template] // CHECK:STDOUT: } // CHECK:STDOUT: // CHECK:STDOUT: imports { @@ -54,7 +54,7 @@ fn Main() -> i32 { // CHECK:STDOUT: // CHECK:STDOUT: fn @Main() -> i32 { // CHECK:STDOUT: !entry: -// CHECK:STDOUT: %.loc12: i32 = int_literal 0 [template = constants.%.2] +// CHECK:STDOUT: %.loc12: i32 = int_value 0 [template = constants.%.2] // CHECK:STDOUT: return %.loc12 // CHECK:STDOUT: } // CHECK:STDOUT: diff --git a/toolchain/check/testdata/struct/fail_assign_to_empty.carbon b/toolchain/check/testdata/struct/fail_assign_to_empty.carbon index 7c51a999e446f..cdc9aeecf03ad 100644 --- a/toolchain/check/testdata/struct/fail_assign_to_empty.carbon +++ b/toolchain/check/testdata/struct/fail_assign_to_empty.carbon @@ -18,7 +18,7 @@ var x: {} = {.a = 1}; // CHECK:STDOUT: constants { // CHECK:STDOUT: %.1: type = struct_type {} [template] // CHECK:STDOUT: %.2: type = tuple_type () [template] -// CHECK:STDOUT: %.3: i32 = int_literal 1 [template] +// CHECK:STDOUT: %.3: i32 = int_value 1 [template] // CHECK:STDOUT: %.4: type = struct_type {.a: i32} [template] // CHECK:STDOUT: } // CHECK:STDOUT: @@ -43,7 +43,7 @@ var x: {} = {.a = 1}; // CHECK:STDOUT: // CHECK:STDOUT: fn @__global_init() { // CHECK:STDOUT: !entry: -// CHECK:STDOUT: %.loc14_19: i32 = int_literal 1 [template = constants.%.3] +// CHECK:STDOUT: %.loc14_19: i32 = int_value 1 [template = constants.%.3] // CHECK:STDOUT: %.loc14_20: %.4 = struct_literal (%.loc14_19) // CHECK:STDOUT: assign file.%x.var, // CHECK:STDOUT: return diff --git a/toolchain/check/testdata/struct/fail_duplicate_name.carbon b/toolchain/check/testdata/struct/fail_duplicate_name.carbon index d12321a27ae27..566a0ef39b473 100644 --- a/toolchain/check/testdata/struct/fail_duplicate_name.carbon +++ b/toolchain/check/testdata/struct/fail_duplicate_name.carbon @@ -60,13 +60,13 @@ var y: {.b: i32, .c: i32} = {.b = 3, .b = 4}; // CHECK:STDOUT: %Int32: %Int32.type = struct_value () [template] // CHECK:STDOUT: %F.type: type = fn_type @F [template] // CHECK:STDOUT: %F: %F.type = struct_value () [template] -// CHECK:STDOUT: %.2: i32 = int_literal 1 [template] +// CHECK:STDOUT: %.2: i32 = int_value 1 [template] // CHECK:STDOUT: %.3: type = struct_type {.a: i32} [template] -// CHECK:STDOUT: %.4: i32 = int_literal 2 [template] +// CHECK:STDOUT: %.4: i32 = int_value 2 [template] // CHECK:STDOUT: %.5: type = struct_type {.b: i32, .c: i32} [template] // CHECK:STDOUT: %.6: type = ptr_type %.5 [template] -// CHECK:STDOUT: %.7: i32 = int_literal 3 [template] -// CHECK:STDOUT: %.8: i32 = int_literal 4 [template] +// CHECK:STDOUT: %.7: i32 = int_value 3 [template] +// CHECK:STDOUT: %.8: i32 = int_value 4 [template] // CHECK:STDOUT: } // CHECK:STDOUT: // CHECK:STDOUT: imports { @@ -142,17 +142,17 @@ var y: {.b: i32, .c: i32} = {.b = 3, .b = 4}; // CHECK:STDOUT: // CHECK:STDOUT: fn @__global_init() { // CHECK:STDOUT: !entry: -// CHECK:STDOUT: %.loc27_35: i32 = int_literal 1 [template = constants.%.2] +// CHECK:STDOUT: %.loc27_35: i32 = int_value 1 [template = constants.%.2] // CHECK:STDOUT: %.loc27_36: %.3 = struct_literal (%.loc27_35) // CHECK:STDOUT: %v: = bind_name v, -// CHECK:STDOUT: %.loc36_22: i32 = int_literal 1 [template = constants.%.2] -// CHECK:STDOUT: %.loc36_32: i32 = int_literal 2 [template = constants.%.4] +// CHECK:STDOUT: %.loc36_22: i32 = int_value 1 [template = constants.%.2] +// CHECK:STDOUT: %.loc36_32: i32 = int_value 2 [template = constants.%.4] // CHECK:STDOUT: %w: i32 = bind_name w, -// CHECK:STDOUT: %.loc45_26: i32 = int_literal 1 [template = constants.%.2] -// CHECK:STDOUT: %.loc45_34: i32 = int_literal 2 [template = constants.%.4] +// CHECK:STDOUT: %.loc45_26: i32 = int_value 1 [template = constants.%.2] +// CHECK:STDOUT: %.loc45_34: i32 = int_value 2 [template = constants.%.4] // CHECK:STDOUT: assign file.%x.var, -// CHECK:STDOUT: %.loc53_35: i32 = int_literal 3 [template = constants.%.7] -// CHECK:STDOUT: %.loc53_43: i32 = int_literal 4 [template = constants.%.8] +// CHECK:STDOUT: %.loc53_35: i32 = int_value 3 [template = constants.%.7] +// CHECK:STDOUT: %.loc53_43: i32 = int_value 4 [template = constants.%.8] // CHECK:STDOUT: assign file.%y.var, // CHECK:STDOUT: return // CHECK:STDOUT: } diff --git a/toolchain/check/testdata/struct/fail_field_name_mismatch.carbon b/toolchain/check/testdata/struct/fail_field_name_mismatch.carbon index 2bd3c34dc7a30..ba7d9b0698c2e 100644 --- a/toolchain/check/testdata/struct/fail_field_name_mismatch.carbon +++ b/toolchain/check/testdata/struct/fail_field_name_mismatch.carbon @@ -26,7 +26,7 @@ var y: {.b: i32} = x; // CHECK:STDOUT: %.1: type = tuple_type () [template] // CHECK:STDOUT: %Int32: %Int32.type = struct_value () [template] // CHECK:STDOUT: %.2: type = struct_type {.a: i32} [template] -// CHECK:STDOUT: %.3: i32 = int_literal 1 [template] +// CHECK:STDOUT: %.3: i32 = int_value 1 [template] // CHECK:STDOUT: %.4: type = struct_type {.b: i32} [template] // CHECK:STDOUT: } // CHECK:STDOUT: @@ -64,7 +64,7 @@ var y: {.b: i32} = x; // CHECK:STDOUT: // CHECK:STDOUT: fn @__global_init() { // CHECK:STDOUT: !entry: -// CHECK:STDOUT: %.loc15_26: i32 = int_literal 1 [template = constants.%.3] +// CHECK:STDOUT: %.loc15_26: i32 = int_value 1 [template = constants.%.3] // CHECK:STDOUT: %.loc15_27: %.4 = struct_literal (%.loc15_26) // CHECK:STDOUT: assign file.%x.var, // CHECK:STDOUT: %x.ref: ref %.2 = name_ref x, file.%x diff --git a/toolchain/check/testdata/struct/fail_member_access_type.carbon b/toolchain/check/testdata/struct/fail_member_access_type.carbon index 54387c8e42ddd..cddd0574718a8 100644 --- a/toolchain/check/testdata/struct/fail_member_access_type.carbon +++ b/toolchain/check/testdata/struct/fail_member_access_type.carbon @@ -17,7 +17,7 @@ var y: i32 = x.b; // CHECK:STDOUT: --- fail_member_access_type.carbon // CHECK:STDOUT: // CHECK:STDOUT: constants { -// CHECK:STDOUT: %.1: Core.BigInt = int_literal 64 [template] +// CHECK:STDOUT: %.1: Core.BigInt = int_value 64 [template] // CHECK:STDOUT: %Float.type: type = fn_type @Float [template] // CHECK:STDOUT: %.2: type = tuple_type () [template] // CHECK:STDOUT: %Float: %Float.type = struct_value () [template] @@ -46,7 +46,7 @@ var y: i32 = x.b; // CHECK:STDOUT: .y = %y // CHECK:STDOUT: } // CHECK:STDOUT: %Core.import = import Core -// CHECK:STDOUT: %.loc11_13.1: Core.BigInt = int_literal 64 [template = constants.%.1] +// CHECK:STDOUT: %.loc11_13.1: Core.BigInt = int_value 64 [template = constants.%.1] // CHECK:STDOUT: %float.make_type: init type = call constants.%Float(%.loc11_13.1) [template = f64] // CHECK:STDOUT: %.loc11_13.2: type = value_of_initializer %float.make_type [template = f64] // CHECK:STDOUT: %.loc11_13.3: type = converted %float.make_type, %.loc11_13.2 [template = f64] diff --git a/toolchain/check/testdata/struct/fail_non_member_access.carbon b/toolchain/check/testdata/struct/fail_non_member_access.carbon index da0d095e413e0..94cc6d40d5b1f 100644 --- a/toolchain/check/testdata/struct/fail_non_member_access.carbon +++ b/toolchain/check/testdata/struct/fail_non_member_access.carbon @@ -21,7 +21,7 @@ var y: i32 = x.b; // CHECK:STDOUT: %.1: type = tuple_type () [template] // CHECK:STDOUT: %Int32: %Int32.type = struct_value () [template] // CHECK:STDOUT: %.2: type = struct_type {.a: i32} [template] -// CHECK:STDOUT: %.3: i32 = int_literal 4 [template] +// CHECK:STDOUT: %.3: i32 = int_value 4 [template] // CHECK:STDOUT: %struct: %.2 = struct_value (%.3) [template] // CHECK:STDOUT: } // CHECK:STDOUT: @@ -58,7 +58,7 @@ var y: i32 = x.b; // CHECK:STDOUT: // CHECK:STDOUT: fn @__global_init() { // CHECK:STDOUT: !entry: -// CHECK:STDOUT: %.loc11_26: i32 = int_literal 4 [template = constants.%.3] +// CHECK:STDOUT: %.loc11_26: i32 = int_value 4 [template = constants.%.3] // CHECK:STDOUT: %.loc11_27.1: %.2 = struct_literal (%.loc11_26) // CHECK:STDOUT: %.loc11_27.2: init %.2 = struct_init (%.loc11_26) to file.%x.var [template = constants.%struct] // CHECK:STDOUT: %.loc11_28: init %.2 = converted %.loc11_27.1, %.loc11_27.2 [template = constants.%struct] diff --git a/toolchain/check/testdata/struct/fail_too_few_values.carbon b/toolchain/check/testdata/struct/fail_too_few_values.carbon index 1dfe6f542b3e8..ba074f4a09dd5 100644 --- a/toolchain/check/testdata/struct/fail_too_few_values.carbon +++ b/toolchain/check/testdata/struct/fail_too_few_values.carbon @@ -21,7 +21,7 @@ var x: {.a: i32, .b: i32} = {.a = 1}; // CHECK:STDOUT: %Int32: %Int32.type = struct_value () [template] // CHECK:STDOUT: %.2: type = struct_type {.a: i32, .b: i32} [template] // CHECK:STDOUT: %.3: type = ptr_type %.2 [template] -// CHECK:STDOUT: %.4: i32 = int_literal 1 [template] +// CHECK:STDOUT: %.4: i32 = int_value 1 [template] // CHECK:STDOUT: %.5: type = struct_type {.a: i32} [template] // CHECK:STDOUT: } // CHECK:STDOUT: @@ -55,7 +55,7 @@ var x: {.a: i32, .b: i32} = {.a = 1}; // CHECK:STDOUT: // CHECK:STDOUT: fn @__global_init() { // CHECK:STDOUT: !entry: -// CHECK:STDOUT: %.loc14_35: i32 = int_literal 1 [template = constants.%.4] +// CHECK:STDOUT: %.loc14_35: i32 = int_value 1 [template = constants.%.4] // CHECK:STDOUT: %.loc14_36: %.5 = struct_literal (%.loc14_35) // CHECK:STDOUT: assign file.%x.var, // CHECK:STDOUT: return diff --git a/toolchain/check/testdata/struct/fail_value_as_type.carbon b/toolchain/check/testdata/struct/fail_value_as_type.carbon index 69e7dc8050763..4e7d230f5b81d 100644 --- a/toolchain/check/testdata/struct/fail_value_as_type.carbon +++ b/toolchain/check/testdata/struct/fail_value_as_type.carbon @@ -19,7 +19,7 @@ var x: {.a = 1}; // CHECK:STDOUT: --- fail_value_as_type.carbon // CHECK:STDOUT: // CHECK:STDOUT: constants { -// CHECK:STDOUT: %.1: i32 = int_literal 1 [template] +// CHECK:STDOUT: %.1: i32 = int_value 1 [template] // CHECK:STDOUT: %.2: type = struct_type {.a: i32} [template] // CHECK:STDOUT: %ImplicitAs.type.1: type = generic_interface_type @ImplicitAs [template] // CHECK:STDOUT: %.3: type = tuple_type () [template] @@ -62,7 +62,7 @@ var x: {.a = 1}; // CHECK:STDOUT: .x = %x // CHECK:STDOUT: } // CHECK:STDOUT: %Core.import = import Core -// CHECK:STDOUT: %.loc17_14: i32 = int_literal 1 [template = constants.%.1] +// CHECK:STDOUT: %.loc17_14: i32 = int_value 1 [template = constants.%.1] // CHECK:STDOUT: %.loc17_15.1: %.2 = struct_literal (%.loc17_14) // CHECK:STDOUT: %ImplicitAs.type: type = interface_type @ImplicitAs, @ImplicitAs(type) [template = constants.%ImplicitAs.type.3] // CHECK:STDOUT: %.loc17_15.2: %.6 = specific_constant imports.%import_ref.3, @ImplicitAs(type) [template = constants.%.7] diff --git a/toolchain/check/testdata/struct/import.carbon b/toolchain/check/testdata/struct/import.carbon index 9cb4ab5bddc88..3bdf605e30128 100644 --- a/toolchain/check/testdata/struct/import.carbon +++ b/toolchain/check/testdata/struct/import.carbon @@ -58,7 +58,7 @@ var c_bad: C({.a = 3, .b = 4}) = F(); // CHECK:STDOUT: %.1: type = tuple_type () [template] // CHECK:STDOUT: %Int32: %Int32.type = struct_value () [template] // CHECK:STDOUT: %.2: type = struct_type {.a: i32} [template] -// CHECK:STDOUT: %.3: i32 = int_literal 0 [template] +// CHECK:STDOUT: %.3: i32 = int_value 0 [template] // CHECK:STDOUT: %struct.1: %.2 = struct_value (%.3) [template] // CHECK:STDOUT: %.4: type = tuple_type (type) [template] // CHECK:STDOUT: %.5: type = tuple_type (i32) [template] @@ -78,8 +78,8 @@ var c_bad: C({.a = 3, .b = 4}) = F(); // CHECK:STDOUT: %C.2: type = class_type @C, @C(%S) [symbolic] // CHECK:STDOUT: %.12: type = struct_type {} [template] // CHECK:STDOUT: %.13: = complete_type_witness %.12 [template] -// CHECK:STDOUT: %.14: i32 = int_literal 1 [template] -// CHECK:STDOUT: %.15: i32 = int_literal 2 [template] +// CHECK:STDOUT: %.14: i32 = int_value 1 [template] +// CHECK:STDOUT: %.15: i32 = int_value 2 [template] // CHECK:STDOUT: %.16: type = ptr_type %.11 [template] // CHECK:STDOUT: %struct.4: %.11 = struct_value (%.14, %.15) [template] // CHECK:STDOUT: %C.3: type = class_type @C, @C(%struct.4) [template] @@ -145,8 +145,8 @@ var c_bad: C({.a = 3, .b = 4}) = F(); // CHECK:STDOUT: %return.param_patt: %C.3 = out_param_pattern %return.patt, runtime_param0 // CHECK:STDOUT: } { // CHECK:STDOUT: %C.ref: %C.type = name_ref C, file.%C.decl [template = constants.%C.1] -// CHECK:STDOUT: %.loc9_19: i32 = int_literal 1 [template = constants.%.14] -// CHECK:STDOUT: %.loc9_27: i32 = int_literal 2 [template = constants.%.15] +// CHECK:STDOUT: %.loc9_19: i32 = int_value 1 [template = constants.%.14] +// CHECK:STDOUT: %.loc9_27: i32 = int_value 2 [template = constants.%.15] // CHECK:STDOUT: %.loc9_28: %.11 = struct_literal (%.loc9_19, %.loc9_27) // CHECK:STDOUT: %struct: %.11 = struct_value (%.loc9_19, %.loc9_27) [template = constants.%struct.4] // CHECK:STDOUT: %.loc9_12: %.11 = converted %.loc9_28, %struct [template = constants.%struct.4] @@ -176,16 +176,16 @@ var c_bad: C({.a = 3, .b = 4}) = F(); // CHECK:STDOUT: // CHECK:STDOUT: fn @__global_init() { // CHECK:STDOUT: !entry: -// CHECK:STDOUT: %.loc4_30: i32 = int_literal 0 [template = constants.%.3] +// CHECK:STDOUT: %.loc4_30: i32 = int_value 0 [template = constants.%.3] // CHECK:STDOUT: %.loc4_31.1: %.2 = struct_literal (%.loc4_30) // CHECK:STDOUT: %.loc4_31.2: init %.2 = struct_init (%.loc4_30) to file.%a_ref.var [template = constants.%struct.1] // CHECK:STDOUT: %.loc4_32: init %.2 = converted %.loc4_31.1, %.loc4_31.2 [template = constants.%struct.1] // CHECK:STDOUT: assign file.%a_ref.var, %.loc4_32 -// CHECK:STDOUT: %.loc6_17: i32 = int_literal 0 [template = constants.%.3] -// CHECK:STDOUT: %.loc6_26: i32 = int_literal 0 [template = constants.%.3] +// CHECK:STDOUT: %.loc6_17: i32 = int_value 0 [template = constants.%.3] +// CHECK:STDOUT: %.loc6_26: i32 = int_value 0 [template = constants.%.3] // CHECK:STDOUT: %.loc6_28.1: %.5 = tuple_literal (%.loc6_26) // CHECK:STDOUT: %.loc6_29.1: %.6 = struct_literal (%.loc6_17, %.loc6_28.1) -// CHECK:STDOUT: %.loc6_37: i32 = int_literal 0 [template = constants.%.3] +// CHECK:STDOUT: %.loc6_37: i32 = int_value 0 [template = constants.%.3] // CHECK:STDOUT: %.loc6_38.1: %.7 = struct_literal (%.loc6_29.1, %.loc6_37) // CHECK:STDOUT: %.loc6_38.2: ref %.6 = struct_access file.%b_ref.var, element0 // CHECK:STDOUT: %.loc6_29.2: ref i32 = struct_access %.loc6_38.2, element0 @@ -236,8 +236,8 @@ var c_bad: C({.a = 3, .b = 4}) = F(); // CHECK:STDOUT: %S: %.12 = bind_symbolic_name S, 0 [symbolic] // CHECK:STDOUT: %C.2: type = class_type @C, @C(%S) [symbolic] // CHECK:STDOUT: %S.patt: %.12 = symbolic_binding_pattern S, 0 [symbolic] -// CHECK:STDOUT: %.13: i32 = int_literal 1 [template] -// CHECK:STDOUT: %.14: i32 = int_literal 2 [template] +// CHECK:STDOUT: %.13: i32 = int_value 1 [template] +// CHECK:STDOUT: %.14: i32 = int_value 2 [template] // CHECK:STDOUT: %.15: type = ptr_type %.12 [template] // CHECK:STDOUT: %struct: %.12 = struct_value (%.13, %.14) [template] // CHECK:STDOUT: %C.3: type = class_type @C, @C(%struct) [template] @@ -296,8 +296,8 @@ var c_bad: C({.a = 3, .b = 4}) = F(); // CHECK:STDOUT: %b.var: ref %.6 = var b // CHECK:STDOUT: %b: ref %.6 = bind_name b, %b.var // CHECK:STDOUT: %C.ref: %C.type = name_ref C, imports.%import_ref.3 [template = constants.%C.1] -// CHECK:STDOUT: %.loc6_16: i32 = int_literal 1 [template = constants.%.13] -// CHECK:STDOUT: %.loc6_24: i32 = int_literal 2 [template = constants.%.14] +// CHECK:STDOUT: %.loc6_16: i32 = int_value 1 [template = constants.%.13] +// CHECK:STDOUT: %.loc6_24: i32 = int_value 2 [template = constants.%.14] // CHECK:STDOUT: %.loc6_25: %.12 = struct_literal (%.loc6_16, %.loc6_24) // CHECK:STDOUT: %struct: %.12 = struct_value (%.loc6_16, %.loc6_24) [template = constants.%struct] // CHECK:STDOUT: %.loc6_9: %.12 = converted %.loc6_25, %struct [template = constants.%struct] @@ -384,8 +384,8 @@ var c_bad: C({.a = 3, .b = 4}) = F(); // CHECK:STDOUT: %S: %.4 = bind_symbolic_name S, 0 [symbolic] // CHECK:STDOUT: %C.2: type = class_type @C, @C(%S) [symbolic] // CHECK:STDOUT: %S.patt: %.4 = symbolic_binding_pattern S, 0 [symbolic] -// CHECK:STDOUT: %.5: i32 = int_literal 1 [template] -// CHECK:STDOUT: %.6: i32 = int_literal 2 [template] +// CHECK:STDOUT: %.5: i32 = int_value 1 [template] +// CHECK:STDOUT: %.6: i32 = int_value 2 [template] // CHECK:STDOUT: %.7: type = struct_type {.c: i32, .d: i32} [template] // CHECK:STDOUT: %.8: type = ptr_type %.4 [template] // CHECK:STDOUT: %F.type: type = fn_type @F [template] @@ -420,8 +420,8 @@ var c_bad: C({.a = 3, .b = 4}) = F(); // CHECK:STDOUT: %default.import = import // CHECK:STDOUT: %Core.import = import Core // CHECK:STDOUT: %C.ref: %C.type = name_ref C, imports.%import_ref.3 [template = constants.%C.1] -// CHECK:STDOUT: %.loc11_20: i32 = int_literal 1 [template = constants.%.5] -// CHECK:STDOUT: %.loc11_28: i32 = int_literal 2 [template = constants.%.6] +// CHECK:STDOUT: %.loc11_20: i32 = int_value 1 [template = constants.%.5] +// CHECK:STDOUT: %.loc11_28: i32 = int_value 2 [template = constants.%.6] // CHECK:STDOUT: %.loc11_29: %.7 = struct_literal (%.loc11_20, %.loc11_28) // CHECK:STDOUT: %c_bad.var: ref = var c_bad // CHECK:STDOUT: %c_bad: ref = bind_name c_bad, %c_bad.var @@ -474,16 +474,16 @@ var c_bad: C({.a = 3, .b = 4}) = F(); // CHECK:STDOUT: %S: %.4 = bind_symbolic_name S, 0 [symbolic] // CHECK:STDOUT: %C.2: type = class_type @C, @C(%S) [symbolic] // CHECK:STDOUT: %S.patt: %.4 = symbolic_binding_pattern S, 0 [symbolic] -// CHECK:STDOUT: %.5: i32 = int_literal 3 [template] -// CHECK:STDOUT: %.6: i32 = int_literal 4 [template] +// CHECK:STDOUT: %.5: i32 = int_value 3 [template] +// CHECK:STDOUT: %.6: i32 = int_value 4 [template] // CHECK:STDOUT: %.7: type = ptr_type %.4 [template] // CHECK:STDOUT: %struct.1: %.4 = struct_value (%.5, %.6) [template] // CHECK:STDOUT: %C.3: type = class_type @C, @C(%struct.1) [template] // CHECK:STDOUT: %.8: type = ptr_type %.2 [template] // CHECK:STDOUT: %F.type: type = fn_type @F [template] // CHECK:STDOUT: %F: %F.type = struct_value () [template] -// CHECK:STDOUT: %.9: i32 = int_literal 2 [template] -// CHECK:STDOUT: %.10: i32 = int_literal 1 [template] +// CHECK:STDOUT: %.9: i32 = int_value 2 [template] +// CHECK:STDOUT: %.10: i32 = int_value 1 [template] // CHECK:STDOUT: %struct.2: %.4 = struct_value (%.10, %.9) [template] // CHECK:STDOUT: %C.4: type = class_type @C, @C(%struct.2) [template] // CHECK:STDOUT: %ImplicitAs.type.1: type = generic_interface_type @ImplicitAs [template] @@ -537,8 +537,8 @@ var c_bad: C({.a = 3, .b = 4}) = F(); // CHECK:STDOUT: %default.import = import // CHECK:STDOUT: %Core.import = import Core // CHECK:STDOUT: %C.ref: %C.type = name_ref C, imports.%import_ref.3 [template = constants.%C.1] -// CHECK:STDOUT: %.loc9_20: i32 = int_literal 3 [template = constants.%.5] -// CHECK:STDOUT: %.loc9_28: i32 = int_literal 4 [template = constants.%.6] +// CHECK:STDOUT: %.loc9_20: i32 = int_value 3 [template = constants.%.5] +// CHECK:STDOUT: %.loc9_28: i32 = int_value 4 [template = constants.%.6] // CHECK:STDOUT: %.loc9_29: %.4 = struct_literal (%.loc9_20, %.loc9_28) // CHECK:STDOUT: %struct: %.4 = struct_value (%.loc9_20, %.loc9_28) [template = constants.%struct.1] // CHECK:STDOUT: %.loc9_13: %.4 = converted %.loc9_29, %struct [template = constants.%struct.1] diff --git a/toolchain/check/testdata/struct/literal_member_access.carbon b/toolchain/check/testdata/struct/literal_member_access.carbon index 7b40207d1d521..9280619281e02 100644 --- a/toolchain/check/testdata/struct/literal_member_access.carbon +++ b/toolchain/check/testdata/struct/literal_member_access.carbon @@ -25,9 +25,9 @@ fn F() -> i32 { // CHECK:STDOUT: %G: %G.type = struct_value () [template] // CHECK:STDOUT: %F.type: type = fn_type @F [template] // CHECK:STDOUT: %F: %F.type = struct_value () [template] -// CHECK:STDOUT: %.3: i32 = int_literal 1 [template] +// CHECK:STDOUT: %.3: i32 = int_value 1 [template] // CHECK:STDOUT: %.4: type = ptr_type %.2 [template] -// CHECK:STDOUT: %.5: i32 = int_literal 3 [template] +// CHECK:STDOUT: %.5: i32 = int_value 3 [template] // CHECK:STDOUT: %.6: type = struct_type {.a: i32, .b: %.2, .c: i32} [template] // CHECK:STDOUT: %.7: type = struct_type {.a: i32, .b: %.4, .c: i32} [template] // CHECK:STDOUT: %.8: type = ptr_type %.7 [template] @@ -84,11 +84,11 @@ fn F() -> i32 { // CHECK:STDOUT: // CHECK:STDOUT: fn @F() -> i32 { // CHECK:STDOUT: !entry: -// CHECK:STDOUT: %.loc14_16: i32 = int_literal 1 [template = constants.%.3] +// CHECK:STDOUT: %.loc14_16: i32 = int_value 1 [template = constants.%.3] // CHECK:STDOUT: %G.ref: %G.type = name_ref G, file.%G.decl [template = constants.%G] // CHECK:STDOUT: %.loc14_25.1: ref %.2 = temporary_storage // CHECK:STDOUT: %G.call: init %.2 = call %G.ref() to %.loc14_25.1 -// CHECK:STDOUT: %.loc14_34: i32 = int_literal 3 [template = constants.%.5] +// CHECK:STDOUT: %.loc14_34: i32 = int_value 3 [template = constants.%.5] // CHECK:STDOUT: %.loc14_35.1: %.6 = struct_literal (%.loc14_16, %G.call, %.loc14_34) // CHECK:STDOUT: %.loc14_25.2: ref %.2 = temporary %.loc14_25.1, %G.call // CHECK:STDOUT: %.loc14_25.3: ref i32 = struct_access %.loc14_25.2, element0 diff --git a/toolchain/check/testdata/struct/member_access.carbon b/toolchain/check/testdata/struct/member_access.carbon index 113c929fad21c..a5286f4b145f4 100644 --- a/toolchain/check/testdata/struct/member_access.carbon +++ b/toolchain/check/testdata/struct/member_access.carbon @@ -15,7 +15,7 @@ var z: i32 = y; // CHECK:STDOUT: --- member_access.carbon // CHECK:STDOUT: // CHECK:STDOUT: constants { -// CHECK:STDOUT: %.1: Core.BigInt = int_literal 64 [template] +// CHECK:STDOUT: %.1: Core.BigInt = int_value 64 [template] // CHECK:STDOUT: %Float.type: type = fn_type @Float [template] // CHECK:STDOUT: %.2: type = tuple_type () [template] // CHECK:STDOUT: %Float: %Float.type = struct_value () [template] @@ -24,7 +24,7 @@ var z: i32 = y; // CHECK:STDOUT: %.3: type = struct_type {.a: f64, .b: i32} [template] // CHECK:STDOUT: %.4: type = ptr_type %.3 [template] // CHECK:STDOUT: %.5: f64 = float_literal 0 [template] -// CHECK:STDOUT: %.6: i32 = int_literal 1 [template] +// CHECK:STDOUT: %.6: i32 = int_value 1 [template] // CHECK:STDOUT: %struct: %.3 = struct_value (%.5, %.6) [template] // CHECK:STDOUT: } // CHECK:STDOUT: @@ -47,7 +47,7 @@ var z: i32 = y; // CHECK:STDOUT: .z = %z // CHECK:STDOUT: } // CHECK:STDOUT: %Core.import = import Core -// CHECK:STDOUT: %.loc11_13.1: Core.BigInt = int_literal 64 [template = constants.%.1] +// CHECK:STDOUT: %.loc11_13.1: Core.BigInt = int_value 64 [template = constants.%.1] // CHECK:STDOUT: %float.make_type: init type = call constants.%Float(%.loc11_13.1) [template = f64] // CHECK:STDOUT: %.loc11_13.2: type = value_of_initializer %float.make_type [template = f64] // CHECK:STDOUT: %.loc11_13.3: type = converted %float.make_type, %.loc11_13.2 [template = f64] @@ -76,7 +76,7 @@ var z: i32 = y; // CHECK:STDOUT: fn @__global_init() { // CHECK:STDOUT: !entry: // CHECK:STDOUT: %.loc11_35: f64 = float_literal 0 [template = constants.%.5] -// CHECK:STDOUT: %.loc11_45: i32 = int_literal 1 [template = constants.%.6] +// CHECK:STDOUT: %.loc11_45: i32 = int_value 1 [template = constants.%.6] // CHECK:STDOUT: %.loc11_46.1: %.3 = struct_literal (%.loc11_35, %.loc11_45) // CHECK:STDOUT: %.loc11_46.2: ref f64 = struct_access file.%x.var, element0 // CHECK:STDOUT: %.loc11_46.3: init f64 = initialize_from %.loc11_35 to %.loc11_46.2 [template = constants.%.5] diff --git a/toolchain/check/testdata/struct/one_entry.carbon b/toolchain/check/testdata/struct/one_entry.carbon index 8ba7654b04144..12c4ac354cbc8 100644 --- a/toolchain/check/testdata/struct/one_entry.carbon +++ b/toolchain/check/testdata/struct/one_entry.carbon @@ -18,7 +18,7 @@ var y: {.a: i32} = x; // CHECK:STDOUT: %.1: type = tuple_type () [template] // CHECK:STDOUT: %Int32: %Int32.type = struct_value () [template] // CHECK:STDOUT: %.2: type = struct_type {.a: i32} [template] -// CHECK:STDOUT: %.3: i32 = int_literal 4 [template] +// CHECK:STDOUT: %.3: i32 = int_value 4 [template] // CHECK:STDOUT: %struct: %.2 = struct_value (%.3) [template] // CHECK:STDOUT: } // CHECK:STDOUT: @@ -56,7 +56,7 @@ var y: {.a: i32} = x; // CHECK:STDOUT: // CHECK:STDOUT: fn @__global_init() { // CHECK:STDOUT: !entry: -// CHECK:STDOUT: %.loc11_26: i32 = int_literal 4 [template = constants.%.3] +// CHECK:STDOUT: %.loc11_26: i32 = int_value 4 [template = constants.%.3] // CHECK:STDOUT: %.loc11_27.1: %.2 = struct_literal (%.loc11_26) // CHECK:STDOUT: %.loc11_27.2: init %.2 = struct_init (%.loc11_26) to file.%x.var [template = constants.%struct] // CHECK:STDOUT: %.loc11_28: init %.2 = converted %.loc11_27.1, %.loc11_27.2 [template = constants.%struct] diff --git a/toolchain/check/testdata/struct/reorder_fields.carbon b/toolchain/check/testdata/struct/reorder_fields.carbon index 4db17d0edcd10..9452d9b333538 100644 --- a/toolchain/check/testdata/struct/reorder_fields.carbon +++ b/toolchain/check/testdata/struct/reorder_fields.carbon @@ -25,7 +25,7 @@ fn F() -> {.a: i32, .b: f64} { // CHECK:STDOUT: %Int32: %Int32.type = struct_value () [template] // CHECK:STDOUT: %MakeI32.type: type = fn_type @MakeI32 [template] // CHECK:STDOUT: %MakeI32: %MakeI32.type = struct_value () [template] -// CHECK:STDOUT: %.2: Core.BigInt = int_literal 64 [template] +// CHECK:STDOUT: %.2: Core.BigInt = int_value 64 [template] // CHECK:STDOUT: %Float.type: type = fn_type @Float [template] // CHECK:STDOUT: %Float: %Float.type = struct_value () [template] // CHECK:STDOUT: %MakeF64.type: type = fn_type @MakeF64 [template] @@ -71,7 +71,7 @@ fn F() -> {.a: i32, .b: f64} { // CHECK:STDOUT: %return.patt: f64 = return_slot_pattern // CHECK:STDOUT: %return.param_patt: f64 = out_param_pattern %return.patt, runtime_param0 // CHECK:STDOUT: } { -// CHECK:STDOUT: %.loc12_17.1: Core.BigInt = int_literal 64 [template = constants.%.2] +// CHECK:STDOUT: %.loc12_17.1: Core.BigInt = int_value 64 [template = constants.%.2] // CHECK:STDOUT: %float.make_type: init type = call constants.%Float(%.loc12_17.1) [template = f64] // CHECK:STDOUT: %.loc12_17.2: type = value_of_initializer %float.make_type [template = f64] // CHECK:STDOUT: %.loc12_17.3: type = converted %float.make_type, %.loc12_17.2 [template = f64] @@ -85,7 +85,7 @@ fn F() -> {.a: i32, .b: f64} { // CHECK:STDOUT: %int.make_type_32.loc14: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc14_16.1: type = value_of_initializer %int.make_type_32.loc14 [template = i32] // CHECK:STDOUT: %.loc14_16.2: type = converted %int.make_type_32.loc14, %.loc14_16.1 [template = i32] -// CHECK:STDOUT: %.loc14_25.1: Core.BigInt = int_literal 64 [template = constants.%.2] +// CHECK:STDOUT: %.loc14_25.1: Core.BigInt = int_value 64 [template = constants.%.2] // CHECK:STDOUT: %float.make_type.loc14: init type = call constants.%Float(%.loc14_25.1) [template = f64] // CHECK:STDOUT: %.loc14_25.2: type = value_of_initializer %float.make_type.loc14 [template = f64] // CHECK:STDOUT: %.loc14_25.3: type = converted %float.make_type.loc14, %.loc14_25.2 [template = f64] @@ -108,7 +108,7 @@ fn F() -> {.a: i32, .b: f64} { // CHECK:STDOUT: %int.make_type_32.loc15: init type = call constants.%Int32() [template = i32] // CHECK:STDOUT: %.loc15_15.1: type = value_of_initializer %int.make_type_32.loc15 [template = i32] // CHECK:STDOUT: %.loc15_15.2: type = converted %int.make_type_32.loc15, %.loc15_15.1 [template = i32] -// CHECK:STDOUT: %.loc15_24.1: Core.BigInt = int_literal 64 [template = constants.%.2] +// CHECK:STDOUT: %.loc15_24.1: Core.BigInt = int_value 64 [template = constants.%.2] // CHECK:STDOUT: %float.make_type.loc15: init type = call constants.%Float(%.loc15_24.1) [template = f64] // CHECK:STDOUT: %.loc15_24.2: type = value_of_initializer %float.make_type.loc15 [template = f64] // CHECK:STDOUT: %.loc15_24.3: type = converted %float.make_type.loc15, %.loc15_24.2 [template = f64] @@ -125,7 +125,7 @@ fn F() -> {.a: i32, .b: f64} { // CHECK:STDOUT: %struct.loc15: %.3 = struct_value (%.loc15_62.3, %.loc15_62.5) // CHECK:STDOUT: %.loc15_63: %.3 = converted %.loc15_62.1, %struct.loc15 // CHECK:STDOUT: %x: %.3 = bind_name x, %.loc15_63 -// CHECK:STDOUT: %.loc16_15.1: Core.BigInt = int_literal 64 [template = constants.%.2] +// CHECK:STDOUT: %.loc16_15.1: Core.BigInt = int_value 64 [template = constants.%.2] // CHECK:STDOUT: %float.make_type.loc16: init type = call constants.%Float(%.loc16_15.1) [template = f64] // CHECK:STDOUT: %.loc16_15.2: type = value_of_initializer %float.make_type.loc16 [template = f64] // CHECK:STDOUT: %.loc16_15.3: type = converted %float.make_type.loc16, %.loc16_15.2 [template = f64] diff --git a/toolchain/check/testdata/struct/tuple_as_element.carbon b/toolchain/check/testdata/struct/tuple_as_element.carbon index b0864e650ecaa..a9b0bb7d60050 100644 --- a/toolchain/check/testdata/struct/tuple_as_element.carbon +++ b/toolchain/check/testdata/struct/tuple_as_element.carbon @@ -21,8 +21,8 @@ var y: {.a: i32, .b: (i32,)} = x; // CHECK:STDOUT: %.3: type = tuple_type (i32) [template] // CHECK:STDOUT: %.4: type = struct_type {.a: i32, .b: %.3} [template] // CHECK:STDOUT: %.5: type = ptr_type %.4 [template] -// CHECK:STDOUT: %.6: i32 = int_literal 1 [template] -// CHECK:STDOUT: %.7: i32 = int_literal 2 [template] +// CHECK:STDOUT: %.6: i32 = int_value 1 [template] +// CHECK:STDOUT: %.7: i32 = int_value 2 [template] // CHECK:STDOUT: %tuple: %.3 = tuple_value (%.7) [template] // CHECK:STDOUT: %struct: %.4 = struct_value (%.6, %tuple) [template] // CHECK:STDOUT: } @@ -71,8 +71,8 @@ var y: {.a: i32, .b: (i32,)} = x; // CHECK:STDOUT: // CHECK:STDOUT: fn @__global_init() { // CHECK:STDOUT: !entry: -// CHECK:STDOUT: %.loc11_38: i32 = int_literal 1 [template = constants.%.6] -// CHECK:STDOUT: %.loc11_47: i32 = int_literal 2 [template = constants.%.7] +// CHECK:STDOUT: %.loc11_38: i32 = int_value 1 [template = constants.%.6] +// CHECK:STDOUT: %.loc11_47: i32 = int_value 2 [template = constants.%.7] // CHECK:STDOUT: %.loc11_49.1: %.3 = tuple_literal (%.loc11_47) // CHECK:STDOUT: %.loc11_50.1: %.4 = struct_literal (%.loc11_38, %.loc11_49.1) // CHECK:STDOUT: %.loc11_50.2: ref i32 = struct_access file.%x.var, element0 diff --git a/toolchain/check/testdata/struct/two_entries.carbon b/toolchain/check/testdata/struct/two_entries.carbon index 22f24c734eed7..95516dfbaaa70 100644 --- a/toolchain/check/testdata/struct/two_entries.carbon +++ b/toolchain/check/testdata/struct/two_entries.carbon @@ -22,8 +22,8 @@ var y: {.a: i32, .b: i32} = x; // CHECK:STDOUT: %Int32: %Int32.type = struct_value () [template] // CHECK:STDOUT: %.2: type = struct_type {.a: i32, .b: i32} [template] // CHECK:STDOUT: %.3: type = ptr_type %.2 [template] -// CHECK:STDOUT: %.4: i32 = int_literal 1 [template] -// CHECK:STDOUT: %.5: i32 = int_literal 2 [template] +// CHECK:STDOUT: %.4: i32 = int_value 1 [template] +// CHECK:STDOUT: %.5: i32 = int_value 2 [template] // CHECK:STDOUT: %struct: %.2 = struct_value (%.4, %.5) [template] // CHECK:STDOUT: } // CHECK:STDOUT: @@ -83,16 +83,16 @@ var y: {.a: i32, .b: i32} = x; // CHECK:STDOUT: // CHECK:STDOUT: fn @__global_init() { // CHECK:STDOUT: !entry: -// CHECK:STDOUT: %.loc11_35: i32 = int_literal 1 [template = constants.%.4] -// CHECK:STDOUT: %.loc11_43: i32 = int_literal 2 [template = constants.%.5] +// CHECK:STDOUT: %.loc11_35: i32 = int_value 1 [template = constants.%.4] +// CHECK:STDOUT: %.loc11_43: i32 = int_value 2 [template = constants.%.5] // CHECK:STDOUT: %.loc11_44: %.2 = struct_literal (%.loc11_35, %.loc11_43) // CHECK:STDOUT: %struct: %.2 = struct_value (%.loc11_35, %.loc11_43) [template = constants.%struct] // CHECK:STDOUT: %.loc11_45: %.2 = converted %.loc11_44, %struct [template = constants.%struct] // CHECK:STDOUT: %v: %.2 = bind_name v, %.loc11_45 // CHECK:STDOUT: %v.ref: %.2 = name_ref v, %v // CHECK:STDOUT: %w: %.2 = bind_name w, %v.ref -// CHECK:STDOUT: %.loc14_35: i32 = int_literal 1 [template = constants.%.4] -// CHECK:STDOUT: %.loc14_43: i32 = int_literal 2 [template = constants.%.5] +// CHECK:STDOUT: %.loc14_35: i32 = int_value 1 [template = constants.%.4] +// CHECK:STDOUT: %.loc14_43: i32 = int_value 2 [template = constants.%.5] // CHECK:STDOUT: %.loc14_44.1: %.2 = struct_literal (%.loc14_35, %.loc14_43) // CHECK:STDOUT: %.loc14_44.2: ref i32 = struct_access file.%x.var, element0 // CHECK:STDOUT: %.loc14_44.3: init i32 = initialize_from %.loc14_35 to %.loc14_44.2 [template = constants.%.4] diff --git a/toolchain/check/testdata/tuple/access/element_access.carbon b/toolchain/check/testdata/tuple/access/element_access.carbon index c05570b5179c6..fbb8105fd507d 100644 --- a/toolchain/check/testdata/tuple/access/element_access.carbon +++ b/toolchain/check/testdata/tuple/access/element_access.carbon @@ -20,9 +20,9 @@ var c: i32 = b.0; // CHECK:STDOUT: %Int32: %Int32.type = struct_value () [template] // CHECK:STDOUT: %.2: type = tuple_type (type) [template] // CHECK:STDOUT: %.3: type = tuple_type (i32) [template] -// CHECK:STDOUT: %.4: i32 = int_literal 12 [template] +// CHECK:STDOUT: %.4: i32 = int_value 12 [template] // CHECK:STDOUT: %tuple: %.3 = tuple_value (%.4) [template] -// CHECK:STDOUT: %.5: i32 = int_literal 0 [template] +// CHECK:STDOUT: %.5: i32 = int_value 0 [template] // CHECK:STDOUT: } // CHECK:STDOUT: // CHECK:STDOUT: imports { @@ -67,7 +67,7 @@ var c: i32 = b.0; // CHECK:STDOUT: // CHECK:STDOUT: fn @__global_init() { // CHECK:STDOUT: !entry: -// CHECK:STDOUT: %.loc11_18: i32 = int_literal 12 [template = constants.%.4] +// CHECK:STDOUT: %.loc11_18: i32 = int_value 12 [template = constants.%.4] // CHECK:STDOUT: %.loc11_21.1: %.3 = tuple_literal (%.loc11_18) // CHECK:STDOUT: %.loc11_21.2: init %.3 = tuple_init (%.loc11_18) to file.%a.var [template = constants.%tuple] // CHECK:STDOUT: %.loc11_22: init %.3 = converted %.loc11_21.1, %.loc11_21.2 [template = constants.%tuple] @@ -79,7 +79,7 @@ var c: i32 = b.0; // CHECK:STDOUT: %.loc12_18: init %.3 = converted %a.ref, %.loc12_17.3 // CHECK:STDOUT: assign file.%b.var, %.loc12_18 // CHECK:STDOUT: %b.ref: ref %.3 = name_ref b, file.%b -// CHECK:STDOUT: %.loc13_16: i32 = int_literal 0 [template = constants.%.5] +// CHECK:STDOUT: %.loc13_16: i32 = int_value 0 [template = constants.%.5] // CHECK:STDOUT: %.loc13_15.1: ref i32 = tuple_access %b.ref, element0 // CHECK:STDOUT: %.loc13_15.2: i32 = bind_value %.loc13_15.1 // CHECK:STDOUT: assign file.%c.var, %.loc13_15.2 diff --git a/toolchain/check/testdata/tuple/access/fail_access_error.carbon b/toolchain/check/testdata/tuple/access/fail_access_error.carbon index eef63e54de813..bd36e5e748b66 100644 --- a/toolchain/check/testdata/tuple/access/fail_access_error.carbon +++ b/toolchain/check/testdata/tuple/access/fail_access_error.carbon @@ -23,8 +23,8 @@ var b: i32 = a.(oops); // CHECK:STDOUT: %.2: type = tuple_type (type, type) [template] // CHECK:STDOUT: %.3: type = tuple_type (i32, i32) [template] // CHECK:STDOUT: %.4: type = ptr_type %.3 [template] -// CHECK:STDOUT: %.5: i32 = int_literal 12 [template] -// CHECK:STDOUT: %.6: i32 = int_literal 6 [template] +// CHECK:STDOUT: %.5: i32 = int_value 12 [template] +// CHECK:STDOUT: %.6: i32 = int_value 6 [template] // CHECK:STDOUT: %tuple: %.3 = tuple_value (%.5, %.6) [template] // CHECK:STDOUT: } // CHECK:STDOUT: @@ -65,8 +65,8 @@ var b: i32 = a.(oops); // CHECK:STDOUT: // CHECK:STDOUT: fn @__global_init() { // CHECK:STDOUT: !entry: -// CHECK:STDOUT: %.loc11_22: i32 = int_literal 12 [template = constants.%.5] -// CHECK:STDOUT: %.loc11_26: i32 = int_literal 6 [template = constants.%.6] +// CHECK:STDOUT: %.loc11_22: i32 = int_value 12 [template = constants.%.5] +// CHECK:STDOUT: %.loc11_26: i32 = int_value 6 [template = constants.%.6] // CHECK:STDOUT: %.loc11_27.1: %.3 = tuple_literal (%.loc11_22, %.loc11_26) // CHECK:STDOUT: %.loc11_27.2: ref i32 = tuple_access file.%a.var, element0 // CHECK:STDOUT: %.loc11_27.3: init i32 = initialize_from %.loc11_22 to %.loc11_27.2 [template = constants.%.5] diff --git a/toolchain/check/testdata/tuple/access/fail_empty_access.carbon b/toolchain/check/testdata/tuple/access/fail_empty_access.carbon index 0b21527c5933f..f22af7e438d6f 100644 --- a/toolchain/check/testdata/tuple/access/fail_empty_access.carbon +++ b/toolchain/check/testdata/tuple/access/fail_empty_access.carbon @@ -25,7 +25,7 @@ fn Run() { // CHECK:STDOUT: %F: %F.type = struct_value () [template] // CHECK:STDOUT: %Run.type: type = fn_type @Run [template] // CHECK:STDOUT: %Run: %Run.type = struct_value () [template] -// CHECK:STDOUT: %.2: i32 = int_literal 0 [template] +// CHECK:STDOUT: %.2: i32 = int_value 0 [template] // CHECK:STDOUT: } // CHECK:STDOUT: // CHECK:STDOUT: imports { @@ -55,7 +55,7 @@ fn Run() { // CHECK:STDOUT: !entry: // CHECK:STDOUT: %F.ref: %F.type = name_ref F, file.%F.decl [template = constants.%F] // CHECK:STDOUT: %F.call: init %.1 = call %F.ref() -// CHECK:STDOUT: %.loc17_7: i32 = int_literal 0 [template = constants.%.2] +// CHECK:STDOUT: %.loc17_7: i32 = int_value 0 [template = constants.%.2] // CHECK:STDOUT: %.loc17_4.1: ref %.1 = temporary_storage // CHECK:STDOUT: %.loc17_4.2: ref %.1 = temporary %.loc17_4.1, %F.call // CHECK:STDOUT: return diff --git a/toolchain/check/testdata/tuple/access/fail_large_index.carbon b/toolchain/check/testdata/tuple/access/fail_large_index.carbon index 2a15628b77792..32b4694fc3b53 100644 --- a/toolchain/check/testdata/tuple/access/fail_large_index.carbon +++ b/toolchain/check/testdata/tuple/access/fail_large_index.carbon @@ -28,10 +28,10 @@ var d: i32 = b.(0x7FFF_FFFF); // CHECK:STDOUT: %Int32: %Int32.type = struct_value () [template] // CHECK:STDOUT: %.2: type = tuple_type (type) [template] // CHECK:STDOUT: %.3: type = tuple_type (i32) [template] -// CHECK:STDOUT: %.4: i32 = int_literal 12 [template] +// CHECK:STDOUT: %.4: i32 = int_value 12 [template] // CHECK:STDOUT: %tuple: %.3 = tuple_value (%.4) [template] -// CHECK:STDOUT: %.5: i32 = int_literal 1 [template] -// CHECK:STDOUT: %.6: i32 = int_literal 2147483647 [template] +// CHECK:STDOUT: %.5: i32 = int_value 1 [template] +// CHECK:STDOUT: %.6: i32 = int_value 2147483647 [template] // CHECK:STDOUT: } // CHECK:STDOUT: // CHECK:STDOUT: imports { @@ -82,7 +82,7 @@ var d: i32 = b.(0x7FFF_FFFF); // CHECK:STDOUT: // CHECK:STDOUT: fn @__global_init() { // CHECK:STDOUT: !entry: -// CHECK:STDOUT: %.loc11_18: i32 = int_literal 12 [template = constants.%.4] +// CHECK:STDOUT: %.loc11_18: i32 = int_value 12 [template = constants.%.4] // CHECK:STDOUT: %.loc11_21.1: %.3 = tuple_literal (%.loc11_18) // CHECK:STDOUT: %.loc11_21.2: init %.3 = tuple_init (%.loc11_18) to file.%a.var [template = constants.%tuple] // CHECK:STDOUT: %.loc11_22: init %.3 = converted %.loc11_21.1, %.loc11_21.2 [template = constants.%tuple] @@ -94,10 +94,10 @@ var d: i32 = b.(0x7FFF_FFFF); // CHECK:STDOUT: %.loc12_18: init %.3 = converted %a.ref, %.loc12_17.3 // CHECK:STDOUT: assign file.%b.var, %.loc12_18 // CHECK:STDOUT: %b.ref.loc17: ref %.3 = name_ref b, file.%b -// CHECK:STDOUT: %.loc17: i32 = int_literal 1 [template = constants.%.5] +// CHECK:STDOUT: %.loc17: i32 = int_value 1 [template = constants.%.5] // CHECK:STDOUT: assign file.%c.var, // CHECK:STDOUT: %b.ref.loc21: ref %.3 = name_ref b, file.%b -// CHECK:STDOUT: %.loc21: i32 = int_literal 2147483647 [template = constants.%.6] +// CHECK:STDOUT: %.loc21: i32 = int_value 2147483647 [template = constants.%.6] // CHECK:STDOUT: assign file.%d.var, // CHECK:STDOUT: return // CHECK:STDOUT: } diff --git a/toolchain/check/testdata/tuple/access/fail_negative_indexing.carbon b/toolchain/check/testdata/tuple/access/fail_negative_indexing.carbon index 5e57706dedd32..553c08c032a2e 100644 --- a/toolchain/check/testdata/tuple/access/fail_negative_indexing.carbon +++ b/toolchain/check/testdata/tuple/access/fail_negative_indexing.carbon @@ -23,10 +23,10 @@ var b: i32 = a.(-10); // CHECK:STDOUT: %.2: type = tuple_type (type, type) [template] // CHECK:STDOUT: %.3: type = tuple_type (i32, i32) [template] // CHECK:STDOUT: %.4: type = ptr_type %.3 [template] -// CHECK:STDOUT: %.5: i32 = int_literal 12 [template] -// CHECK:STDOUT: %.6: i32 = int_literal 6 [template] +// CHECK:STDOUT: %.5: i32 = int_value 12 [template] +// CHECK:STDOUT: %.6: i32 = int_value 6 [template] // CHECK:STDOUT: %tuple: %.3 = tuple_value (%.5, %.6) [template] -// CHECK:STDOUT: %.7: i32 = int_literal 10 [template] +// CHECK:STDOUT: %.7: i32 = int_value 10 [template] // CHECK:STDOUT: %Negate.type: type = interface_type @Negate [template] // CHECK:STDOUT: %Self: %Negate.type = bind_symbolic_name Self, 0 [symbolic] // CHECK:STDOUT: %Op.type: type = fn_type @Op [template] @@ -91,8 +91,8 @@ var b: i32 = a.(-10); // CHECK:STDOUT: // CHECK:STDOUT: fn @__global_init() { // CHECK:STDOUT: !entry: -// CHECK:STDOUT: %.loc11_22: i32 = int_literal 12 [template = constants.%.5] -// CHECK:STDOUT: %.loc11_26: i32 = int_literal 6 [template = constants.%.6] +// CHECK:STDOUT: %.loc11_22: i32 = int_value 12 [template = constants.%.5] +// CHECK:STDOUT: %.loc11_26: i32 = int_value 6 [template = constants.%.6] // CHECK:STDOUT: %.loc11_27.1: %.3 = tuple_literal (%.loc11_22, %.loc11_26) // CHECK:STDOUT: %.loc11_27.2: ref i32 = tuple_access file.%a.var, element0 // CHECK:STDOUT: %.loc11_27.3: init i32 = initialize_from %.loc11_22 to %.loc11_27.2 [template = constants.%.5] @@ -102,7 +102,7 @@ var b: i32 = a.(-10); // CHECK:STDOUT: %.loc11_28: init %.3 = converted %.loc11_27.1, %.loc11_27.6 [template = constants.%tuple] // CHECK:STDOUT: assign file.%a.var, %.loc11_28 // CHECK:STDOUT: %a.ref: ref %.3 = name_ref a, file.%a -// CHECK:STDOUT: %.loc15: i32 = int_literal 10 [template = constants.%.7] +// CHECK:STDOUT: %.loc15: i32 = int_value 10 [template = constants.%.7] // CHECK:STDOUT: %Op.ref: %.8 = name_ref Op, imports.%import_ref.4 [template = constants.%.9] // CHECK:STDOUT: assign file.%b.var, // CHECK:STDOUT: return diff --git a/toolchain/check/testdata/tuple/access/fail_non_deterministic_type.carbon b/toolchain/check/testdata/tuple/access/fail_non_deterministic_type.carbon index ac3a244f3ab54..381273852499c 100644 --- a/toolchain/check/testdata/tuple/access/fail_non_deterministic_type.carbon +++ b/toolchain/check/testdata/tuple/access/fail_non_deterministic_type.carbon @@ -24,10 +24,10 @@ var c: i32 = a.(b); // CHECK:STDOUT: %.2: type = tuple_type (type, type) [template] // CHECK:STDOUT: %.3: type = tuple_type (i32, i32) [template] // CHECK:STDOUT: %.4: type = ptr_type %.3 [template] -// CHECK:STDOUT: %.5: i32 = int_literal 2 [template] -// CHECK:STDOUT: %.6: i32 = int_literal 3 [template] +// CHECK:STDOUT: %.5: i32 = int_value 2 [template] +// CHECK:STDOUT: %.6: i32 = int_value 3 [template] // CHECK:STDOUT: %tuple: %.3 = tuple_value (%.5, %.6) [template] -// CHECK:STDOUT: %.7: i32 = int_literal 0 [template] +// CHECK:STDOUT: %.7: i32 = int_value 0 [template] // CHECK:STDOUT: } // CHECK:STDOUT: // CHECK:STDOUT: imports { @@ -73,8 +73,8 @@ var c: i32 = a.(b); // CHECK:STDOUT: // CHECK:STDOUT: fn @__global_init() { // CHECK:STDOUT: !entry: -// CHECK:STDOUT: %.loc11_22: i32 = int_literal 2 [template = constants.%.5] -// CHECK:STDOUT: %.loc11_25: i32 = int_literal 3 [template = constants.%.6] +// CHECK:STDOUT: %.loc11_22: i32 = int_value 2 [template = constants.%.5] +// CHECK:STDOUT: %.loc11_25: i32 = int_value 3 [template = constants.%.6] // CHECK:STDOUT: %.loc11_26.1: %.3 = tuple_literal (%.loc11_22, %.loc11_25) // CHECK:STDOUT: %.loc11_26.2: ref i32 = tuple_access file.%a.var, element0 // CHECK:STDOUT: %.loc11_26.3: init i32 = initialize_from %.loc11_22 to %.loc11_26.2 [template = constants.%.5] @@ -83,7 +83,7 @@ var c: i32 = a.(b); // CHECK:STDOUT: %.loc11_26.6: init %.3 = tuple_init (%.loc11_26.3, %.loc11_26.5) to file.%a.var [template = constants.%tuple] // CHECK:STDOUT: %.loc11_27: init %.3 = converted %.loc11_26.1, %.loc11_26.6 [template = constants.%tuple] // CHECK:STDOUT: assign file.%a.var, %.loc11_27 -// CHECK:STDOUT: %.loc12: i32 = int_literal 0 [template = constants.%.7] +// CHECK:STDOUT: %.loc12: i32 = int_value 0 [template = constants.%.7] // CHECK:STDOUT: assign file.%b.var, %.loc12 // CHECK:STDOUT: %a.ref: ref %.3 = name_ref a, file.%a // CHECK:STDOUT: %b.ref: ref i32 = name_ref b, file.%b diff --git a/toolchain/check/testdata/tuple/access/fail_non_int_indexing.carbon b/toolchain/check/testdata/tuple/access/fail_non_int_indexing.carbon index 7c6154c594391..8e1a36baba6db 100644 --- a/toolchain/check/testdata/tuple/access/fail_non_int_indexing.carbon +++ b/toolchain/check/testdata/tuple/access/fail_non_int_indexing.carbon @@ -26,8 +26,8 @@ var b: i32 = a.(2.6); // CHECK:STDOUT: %.2: type = tuple_type (type, type) [template] // CHECK:STDOUT: %.3: type = tuple_type (i32, i32) [template] // CHECK:STDOUT: %.4: type = ptr_type %.3 [template] -// CHECK:STDOUT: %.5: i32 = int_literal 12 [template] -// CHECK:STDOUT: %.6: i32 = int_literal 6 [template] +// CHECK:STDOUT: %.5: i32 = int_value 12 [template] +// CHECK:STDOUT: %.6: i32 = int_value 6 [template] // CHECK:STDOUT: %tuple: %.3 = tuple_value (%.5, %.6) [template] // CHECK:STDOUT: %.7: f64 = float_literal 2.6000000000000001 [template] // CHECK:STDOUT: %ImplicitAs.type.1: type = generic_interface_type @ImplicitAs [template] @@ -121,8 +121,8 @@ var b: i32 = a.(2.6); // CHECK:STDOUT: // CHECK:STDOUT: fn @__global_init() { // CHECK:STDOUT: !entry: -// CHECK:STDOUT: %.loc11_22: i32 = int_literal 12 [template = constants.%.5] -// CHECK:STDOUT: %.loc11_26: i32 = int_literal 6 [template = constants.%.6] +// CHECK:STDOUT: %.loc11_22: i32 = int_value 12 [template = constants.%.5] +// CHECK:STDOUT: %.loc11_26: i32 = int_value 6 [template = constants.%.6] // CHECK:STDOUT: %.loc11_27.1: %.3 = tuple_literal (%.loc11_22, %.loc11_26) // CHECK:STDOUT: %.loc11_27.2: ref i32 = tuple_access file.%a.var, element0 // CHECK:STDOUT: %.loc11_27.3: init i32 = initialize_from %.loc11_22 to %.loc11_27.2 [template = constants.%.5] diff --git a/toolchain/check/testdata/tuple/access/fail_non_tuple_access.carbon b/toolchain/check/testdata/tuple/access/fail_non_tuple_access.carbon index 87547d2fd61e6..1e85149ddec39 100644 --- a/toolchain/check/testdata/tuple/access/fail_non_tuple_access.carbon +++ b/toolchain/check/testdata/tuple/access/fail_non_tuple_access.carbon @@ -28,8 +28,8 @@ fn Main() { // CHECK:STDOUT: %Main.type: type = fn_type @Main [template] // CHECK:STDOUT: %.1: type = tuple_type () [template] // CHECK:STDOUT: %Main: %Main.type = struct_value () [template] -// CHECK:STDOUT: %.2: i32 = int_literal 0 [template] -// CHECK:STDOUT: %.3: i32 = int_literal 1 [template] +// CHECK:STDOUT: %.2: i32 = int_value 0 [template] +// CHECK:STDOUT: %.3: i32 = int_value 1 [template] // CHECK:STDOUT: %IndexWith.type.1: type = generic_interface_type @IndexWith [template] // CHECK:STDOUT: %IndexWith: %IndexWith.type.1 = struct_value () [template] // CHECK:STDOUT: %ElementType: type = bind_symbolic_name ElementType, 1 [symbolic] @@ -45,10 +45,10 @@ fn Main() { // CHECK:STDOUT: %.5: %.4 = assoc_entity element0, imports.%import_ref.5 [symbolic] // CHECK:STDOUT: %Int32.type: type = fn_type @Int32 [template] // CHECK:STDOUT: %Int32: %Int32.type = struct_value () [template] -// CHECK:STDOUT: %.6: i32 = int_literal 2 [template] +// CHECK:STDOUT: %.6: i32 = int_value 2 [template] // CHECK:STDOUT: %.7: type = array_type %.6, i32 [template] // CHECK:STDOUT: %.8: type = ptr_type %.7 [template] -// CHECK:STDOUT: %.9: i32 = int_literal 5 [template] +// CHECK:STDOUT: %.9: i32 = int_value 5 [template] // CHECK:STDOUT: %.10: type = tuple_type (i32, i32) [template] // CHECK:STDOUT: %array: %.7 = tuple_value (%.9, %.9) [template] // CHECK:STDOUT: } @@ -101,22 +101,22 @@ fn Main() { // CHECK:STDOUT: // CHECK:STDOUT: fn @Main() { // CHECK:STDOUT: !entry: -// CHECK:STDOUT: %.loc16_3: i32 = int_literal 0 [template = constants.%.2] -// CHECK:STDOUT: %.loc16_5: i32 = int_literal 1 [template = constants.%.3] +// CHECK:STDOUT: %.loc16_3: i32 = int_value 0 [template = constants.%.2] +// CHECK:STDOUT: %.loc16_5: i32 = int_value 1 [template = constants.%.3] // CHECK:STDOUT: %int.make_type_32.loc18: init type = call constants.%Int32() [template = i32] -// CHECK:STDOUT: %.loc18_24: i32 = int_literal 2 [template = constants.%.6] +// CHECK:STDOUT: %.loc18_24: i32 = int_value 2 [template = constants.%.6] // CHECK:STDOUT: %.loc18_19.1: type = value_of_initializer %int.make_type_32.loc18 [template = i32] // CHECK:STDOUT: %.loc18_19.2: type = converted %int.make_type_32.loc18, %.loc18_19.1 [template = i32] // CHECK:STDOUT: %.loc18_25: type = array_type %.loc18_24, i32 [template = constants.%.7] // CHECK:STDOUT: %non_tuple.var: ref %.7 = var non_tuple // CHECK:STDOUT: %non_tuple: ref %.7 = bind_name non_tuple, %non_tuple.var -// CHECK:STDOUT: %.loc18_30: i32 = int_literal 5 [template = constants.%.9] -// CHECK:STDOUT: %.loc18_33: i32 = int_literal 5 [template = constants.%.9] +// CHECK:STDOUT: %.loc18_30: i32 = int_value 5 [template = constants.%.9] +// CHECK:STDOUT: %.loc18_33: i32 = int_value 5 [template = constants.%.9] // CHECK:STDOUT: %.loc18_34.1: %.10 = tuple_literal (%.loc18_30, %.loc18_33) -// CHECK:STDOUT: %.loc18_34.2: i32 = int_literal 0 [template = constants.%.2] +// CHECK:STDOUT: %.loc18_34.2: i32 = int_value 0 [template = constants.%.2] // CHECK:STDOUT: %.loc18_34.3: ref i32 = array_index %non_tuple.var, %.loc18_34.2 // CHECK:STDOUT: %.loc18_34.4: init i32 = initialize_from %.loc18_30 to %.loc18_34.3 [template = constants.%.9] -// CHECK:STDOUT: %.loc18_34.5: i32 = int_literal 1 [template = constants.%.3] +// CHECK:STDOUT: %.loc18_34.5: i32 = int_value 1 [template = constants.%.3] // CHECK:STDOUT: %.loc18_34.6: ref i32 = array_index %non_tuple.var, %.loc18_34.5 // CHECK:STDOUT: %.loc18_34.7: init i32 = initialize_from %.loc18_33 to %.loc18_34.6 [template = constants.%.9] // CHECK:STDOUT: %.loc18_34.8: init %.7 = array_init (%.loc18_34.4, %.loc18_34.7) to %non_tuple.var [template = constants.%array] @@ -128,7 +128,7 @@ fn Main() { // CHECK:STDOUT: %first.var: ref i32 = var first // CHECK:STDOUT: %first: ref i32 = bind_name first, %first.var // CHECK:STDOUT: %non_tuple.ref: ref %.7 = name_ref non_tuple, %non_tuple -// CHECK:STDOUT: %.loc22_30: i32 = int_literal 0 [template = constants.%.2] +// CHECK:STDOUT: %.loc22_30: i32 = int_value 0 [template = constants.%.2] // CHECK:STDOUT: assign %first.var, // CHECK:STDOUT: return // CHECK:STDOUT: } diff --git a/toolchain/check/testdata/tuple/access/fail_out_of_bound_access.carbon b/toolchain/check/testdata/tuple/access/fail_out_of_bound_access.carbon index 5ed613868aeab..9728bff86e020 100644 --- a/toolchain/check/testdata/tuple/access/fail_out_of_bound_access.carbon +++ b/toolchain/check/testdata/tuple/access/fail_out_of_bound_access.carbon @@ -23,10 +23,10 @@ var b: i32 = a.2; // CHECK:STDOUT: %.2: type = tuple_type (type, type) [template] // CHECK:STDOUT: %.3: type = tuple_type (i32, i32) [template] // CHECK:STDOUT: %.4: type = ptr_type %.3 [template] -// CHECK:STDOUT: %.5: i32 = int_literal 12 [template] -// CHECK:STDOUT: %.6: i32 = int_literal 6 [template] +// CHECK:STDOUT: %.5: i32 = int_value 12 [template] +// CHECK:STDOUT: %.6: i32 = int_value 6 [template] // CHECK:STDOUT: %tuple: %.3 = tuple_value (%.5, %.6) [template] -// CHECK:STDOUT: %.7: i32 = int_literal 2 [template] +// CHECK:STDOUT: %.7: i32 = int_value 2 [template] // CHECK:STDOUT: } // CHECK:STDOUT: // CHECK:STDOUT: imports { @@ -66,8 +66,8 @@ var b: i32 = a.2; // CHECK:STDOUT: // CHECK:STDOUT: fn @__global_init() { // CHECK:STDOUT: !entry: -// CHECK:STDOUT: %.loc11_22: i32 = int_literal 12 [template = constants.%.5] -// CHECK:STDOUT: %.loc11_26: i32 = int_literal 6 [template = constants.%.6] +// CHECK:STDOUT: %.loc11_22: i32 = int_value 12 [template = constants.%.5] +// CHECK:STDOUT: %.loc11_26: i32 = int_value 6 [template = constants.%.6] // CHECK:STDOUT: %.loc11_27.1: %.3 = tuple_literal (%.loc11_22, %.loc11_26) // CHECK:STDOUT: %.loc11_27.2: ref i32 = tuple_access file.%a.var, element0 // CHECK:STDOUT: %.loc11_27.3: init i32 = initialize_from %.loc11_22 to %.loc11_27.2 [template = constants.%.5] @@ -77,7 +77,7 @@ var b: i32 = a.2; // CHECK:STDOUT: %.loc11_28: init %.3 = converted %.loc11_27.1, %.loc11_27.6 [template = constants.%tuple] // CHECK:STDOUT: assign file.%a.var, %.loc11_28 // CHECK:STDOUT: %a.ref: ref %.3 = name_ref a, file.%a -// CHECK:STDOUT: %.loc15: i32 = int_literal 2 [template = constants.%.7] +// CHECK:STDOUT: %.loc15: i32 = int_value 2 [template = constants.%.7] // CHECK:STDOUT: assign file.%b.var, // CHECK:STDOUT: return // CHECK:STDOUT: } diff --git a/toolchain/check/testdata/tuple/access/fail_out_of_bound_not_literal.carbon b/toolchain/check/testdata/tuple/access/fail_out_of_bound_not_literal.carbon index a7d783a9ed637..3cf3ee1fd68fa 100644 --- a/toolchain/check/testdata/tuple/access/fail_out_of_bound_not_literal.carbon +++ b/toolchain/check/testdata/tuple/access/fail_out_of_bound_not_literal.carbon @@ -23,10 +23,10 @@ var b: i32 = a.({.index = 2}.index); // CHECK:STDOUT: %.2: type = tuple_type (type, type) [template] // CHECK:STDOUT: %.3: type = tuple_type (i32, i32) [template] // CHECK:STDOUT: %.4: type = ptr_type %.3 [template] -// CHECK:STDOUT: %.5: i32 = int_literal 12 [template] -// CHECK:STDOUT: %.6: i32 = int_literal 34 [template] +// CHECK:STDOUT: %.5: i32 = int_value 12 [template] +// CHECK:STDOUT: %.6: i32 = int_value 34 [template] // CHECK:STDOUT: %tuple: %.3 = tuple_value (%.5, %.6) [template] -// CHECK:STDOUT: %.7: i32 = int_literal 2 [template] +// CHECK:STDOUT: %.7: i32 = int_value 2 [template] // CHECK:STDOUT: %.8: type = struct_type {.index: i32} [template] // CHECK:STDOUT: %struct: %.8 = struct_value (%.7) [template] // CHECK:STDOUT: } @@ -68,8 +68,8 @@ var b: i32 = a.({.index = 2}.index); // CHECK:STDOUT: // CHECK:STDOUT: fn @__global_init() { // CHECK:STDOUT: !entry: -// CHECK:STDOUT: %.loc11_22: i32 = int_literal 12 [template = constants.%.5] -// CHECK:STDOUT: %.loc11_26: i32 = int_literal 34 [template = constants.%.6] +// CHECK:STDOUT: %.loc11_22: i32 = int_value 12 [template = constants.%.5] +// CHECK:STDOUT: %.loc11_26: i32 = int_value 34 [template = constants.%.6] // CHECK:STDOUT: %.loc11_28.1: %.3 = tuple_literal (%.loc11_22, %.loc11_26) // CHECK:STDOUT: %.loc11_28.2: ref i32 = tuple_access file.%a.var, element0 // CHECK:STDOUT: %.loc11_28.3: init i32 = initialize_from %.loc11_22 to %.loc11_28.2 [template = constants.%.5] @@ -79,7 +79,7 @@ var b: i32 = a.({.index = 2}.index); // CHECK:STDOUT: %.loc11_29: init %.3 = converted %.loc11_28.1, %.loc11_28.6 [template = constants.%tuple] // CHECK:STDOUT: assign file.%a.var, %.loc11_29 // CHECK:STDOUT: %a.ref: ref %.3 = name_ref a, file.%a -// CHECK:STDOUT: %.loc15_27: i32 = int_literal 2 [template = constants.%.7] +// CHECK:STDOUT: %.loc15_27: i32 = int_value 2 [template = constants.%.7] // CHECK:STDOUT: %.loc15_28.1: %.8 = struct_literal (%.loc15_27) // CHECK:STDOUT: %struct: %.8 = struct_value (%.loc15_27) [template = constants.%struct] // CHECK:STDOUT: %.loc15_28.2: %.8 = converted %.loc15_28.1, %struct [template = constants.%struct] diff --git a/toolchain/check/testdata/tuple/access/index_not_literal.carbon b/toolchain/check/testdata/tuple/access/index_not_literal.carbon index 9fac99ab921f6..ac976b883e68c 100644 --- a/toolchain/check/testdata/tuple/access/index_not_literal.carbon +++ b/toolchain/check/testdata/tuple/access/index_not_literal.carbon @@ -20,10 +20,10 @@ var b: i32 = a.({.index = 1}.index); // CHECK:STDOUT: %.2: type = tuple_type (type, type) [template] // CHECK:STDOUT: %.3: type = tuple_type (i32, i32) [template] // CHECK:STDOUT: %.4: type = ptr_type %.3 [template] -// CHECK:STDOUT: %.5: i32 = int_literal 12 [template] -// CHECK:STDOUT: %.6: i32 = int_literal 34 [template] +// CHECK:STDOUT: %.5: i32 = int_value 12 [template] +// CHECK:STDOUT: %.6: i32 = int_value 34 [template] // CHECK:STDOUT: %tuple: %.3 = tuple_value (%.5, %.6) [template] -// CHECK:STDOUT: %.7: i32 = int_literal 1 [template] +// CHECK:STDOUT: %.7: i32 = int_value 1 [template] // CHECK:STDOUT: %.8: type = struct_type {.index: i32} [template] // CHECK:STDOUT: %struct: %.8 = struct_value (%.7) [template] // CHECK:STDOUT: } @@ -65,8 +65,8 @@ var b: i32 = a.({.index = 1}.index); // CHECK:STDOUT: // CHECK:STDOUT: fn @__global_init() { // CHECK:STDOUT: !entry: -// CHECK:STDOUT: %.loc11_22: i32 = int_literal 12 [template = constants.%.5] -// CHECK:STDOUT: %.loc11_26: i32 = int_literal 34 [template = constants.%.6] +// CHECK:STDOUT: %.loc11_22: i32 = int_value 12 [template = constants.%.5] +// CHECK:STDOUT: %.loc11_26: i32 = int_value 34 [template = constants.%.6] // CHECK:STDOUT: %.loc11_28.1: %.3 = tuple_literal (%.loc11_22, %.loc11_26) // CHECK:STDOUT: %.loc11_28.2: ref i32 = tuple_access file.%a.var, element0 // CHECK:STDOUT: %.loc11_28.3: init i32 = initialize_from %.loc11_22 to %.loc11_28.2 [template = constants.%.5] @@ -76,7 +76,7 @@ var b: i32 = a.({.index = 1}.index); // CHECK:STDOUT: %.loc11_29: init %.3 = converted %.loc11_28.1, %.loc11_28.6 [template = constants.%tuple] // CHECK:STDOUT: assign file.%a.var, %.loc11_29 // CHECK:STDOUT: %a.ref: ref %.3 = name_ref a, file.%a -// CHECK:STDOUT: %.loc12_27: i32 = int_literal 1 [template = constants.%.7] +// CHECK:STDOUT: %.loc12_27: i32 = int_value 1 [template = constants.%.7] // CHECK:STDOUT: %.loc12_28.1: %.8 = struct_literal (%.loc12_27) // CHECK:STDOUT: %struct: %.8 = struct_value (%.loc12_27) [template = constants.%struct] // CHECK:STDOUT: %.loc12_28.2: %.8 = converted %.loc12_28.1, %struct [template = constants.%struct] diff --git a/toolchain/check/testdata/tuple/access/return_value_access.carbon b/toolchain/check/testdata/tuple/access/return_value_access.carbon index f74d58aca0762..159d004329b57 100644 --- a/toolchain/check/testdata/tuple/access/return_value_access.carbon +++ b/toolchain/check/testdata/tuple/access/return_value_access.carbon @@ -24,7 +24,7 @@ fn Run() -> i32 { // CHECK:STDOUT: %.3: type = tuple_type (i32) [template] // CHECK:STDOUT: %F.type: type = fn_type @F [template] // CHECK:STDOUT: %F: %F.type = struct_value () [template] -// CHECK:STDOUT: %.4: i32 = int_literal 0 [template] +// CHECK:STDOUT: %.4: i32 = int_value 0 [template] // CHECK:STDOUT: %tuple: %.3 = tuple_value (%.4) [template] // CHECK:STDOUT: %Run.type: type = fn_type @Run [template] // CHECK:STDOUT: %Run: %Run.type = struct_value () [template] @@ -74,7 +74,7 @@ fn Run() -> i32 { // CHECK:STDOUT: // CHECK:STDOUT: fn @F() -> %.3 { // CHECK:STDOUT: !entry: -// CHECK:STDOUT: %.loc11_28: i32 = int_literal 0 [template = constants.%.4] +// CHECK:STDOUT: %.loc11_28: i32 = int_value 0 [template = constants.%.4] // CHECK:STDOUT: %.loc11_30: %.3 = tuple_literal (%.loc11_28) // CHECK:STDOUT: %tuple: %.3 = tuple_value (%.loc11_28) [template = constants.%tuple] // CHECK:STDOUT: %.loc11_31: %.3 = converted %.loc11_30, %tuple [template = constants.%tuple] @@ -85,7 +85,7 @@ fn Run() -> i32 { // CHECK:STDOUT: !entry: // CHECK:STDOUT: %F.ref: %F.type = name_ref F, file.%F.decl [template = constants.%F] // CHECK:STDOUT: %F.call: init %.3 = call %F.ref() -// CHECK:STDOUT: %.loc14_14: i32 = int_literal 0 [template = constants.%.4] +// CHECK:STDOUT: %.loc14_14: i32 = int_value 0 [template = constants.%.4] // CHECK:STDOUT: %.loc14_11.1: ref %.3 = temporary_storage // CHECK:STDOUT: %.loc14_11.2: ref %.3 = temporary %.loc14_11.1, %F.call // CHECK:STDOUT: %.loc14_13.1: ref i32 = tuple_access %.loc14_11.2, element0 diff --git a/toolchain/check/testdata/tuple/fail_assign_nested.carbon b/toolchain/check/testdata/tuple/fail_assign_nested.carbon index 0424de4ca7c0b..b52b39c3a607a 100644 --- a/toolchain/check/testdata/tuple/fail_assign_nested.carbon +++ b/toolchain/check/testdata/tuple/fail_assign_nested.carbon @@ -26,13 +26,13 @@ var x: ((i32, i32), (i32, i32)) = ((1, 2, 3), (4, 5, 6)); // CHECK:STDOUT: %.6: type = ptr_type %.4 [template] // CHECK:STDOUT: %.7: type = tuple_type (%.6, %.6) [template] // CHECK:STDOUT: %.8: type = ptr_type %.7 [template] -// CHECK:STDOUT: %.9: i32 = int_literal 1 [template] -// CHECK:STDOUT: %.10: i32 = int_literal 2 [template] -// CHECK:STDOUT: %.11: i32 = int_literal 3 [template] +// CHECK:STDOUT: %.9: i32 = int_value 1 [template] +// CHECK:STDOUT: %.10: i32 = int_value 2 [template] +// CHECK:STDOUT: %.11: i32 = int_value 3 [template] // CHECK:STDOUT: %.12: type = tuple_type (i32, i32, i32) [template] -// CHECK:STDOUT: %.13: i32 = int_literal 4 [template] -// CHECK:STDOUT: %.14: i32 = int_literal 5 [template] -// CHECK:STDOUT: %.15: i32 = int_literal 6 [template] +// CHECK:STDOUT: %.13: i32 = int_value 4 [template] +// CHECK:STDOUT: %.14: i32 = int_value 5 [template] +// CHECK:STDOUT: %.15: i32 = int_value 6 [template] // CHECK:STDOUT: %.16: type = tuple_type (%.12, %.12) [template] // CHECK:STDOUT: } // CHECK:STDOUT: @@ -77,13 +77,13 @@ var x: ((i32, i32), (i32, i32)) = ((1, 2, 3), (4, 5, 6)); // CHECK:STDOUT: // CHECK:STDOUT: fn @__global_init() { // CHECK:STDOUT: !entry: -// CHECK:STDOUT: %.loc14_37: i32 = int_literal 1 [template = constants.%.9] -// CHECK:STDOUT: %.loc14_40: i32 = int_literal 2 [template = constants.%.10] -// CHECK:STDOUT: %.loc14_43: i32 = int_literal 3 [template = constants.%.11] +// CHECK:STDOUT: %.loc14_37: i32 = int_value 1 [template = constants.%.9] +// CHECK:STDOUT: %.loc14_40: i32 = int_value 2 [template = constants.%.10] +// CHECK:STDOUT: %.loc14_43: i32 = int_value 3 [template = constants.%.11] // CHECK:STDOUT: %.loc14_44: %.12 = tuple_literal (%.loc14_37, %.loc14_40, %.loc14_43) -// CHECK:STDOUT: %.loc14_48: i32 = int_literal 4 [template = constants.%.13] -// CHECK:STDOUT: %.loc14_51: i32 = int_literal 5 [template = constants.%.14] -// CHECK:STDOUT: %.loc14_54: i32 = int_literal 6 [template = constants.%.15] +// CHECK:STDOUT: %.loc14_48: i32 = int_value 4 [template = constants.%.13] +// CHECK:STDOUT: %.loc14_51: i32 = int_value 5 [template = constants.%.14] +// CHECK:STDOUT: %.loc14_54: i32 = int_value 6 [template = constants.%.15] // CHECK:STDOUT: %.loc14_55: %.12 = tuple_literal (%.loc14_48, %.loc14_51, %.loc14_54) // CHECK:STDOUT: %.loc14_56: %.16 = tuple_literal (%.loc14_44, %.loc14_55) // CHECK:STDOUT: assign file.%x.var, diff --git a/toolchain/check/testdata/tuple/fail_element_type_mismatch.carbon b/toolchain/check/testdata/tuple/fail_element_type_mismatch.carbon index 9222862617e40..81a352736e322 100644 --- a/toolchain/check/testdata/tuple/fail_element_type_mismatch.carbon +++ b/toolchain/check/testdata/tuple/fail_element_type_mismatch.carbon @@ -25,7 +25,7 @@ var x: (i32, i32) = (2, 65.89); // CHECK:STDOUT: %.2: type = tuple_type (type, type) [template] // CHECK:STDOUT: %.3: type = tuple_type (i32, i32) [template] // CHECK:STDOUT: %.4: type = ptr_type %.3 [template] -// CHECK:STDOUT: %.5: i32 = int_literal 2 [template] +// CHECK:STDOUT: %.5: i32 = int_value 2 [template] // CHECK:STDOUT: %.6: f64 = float_literal 65.890000000000001 [template] // CHECK:STDOUT: %.7: type = tuple_type (i32, f64) [template] // CHECK:STDOUT: %ImplicitAs.type.1: type = generic_interface_type @ImplicitAs [template] @@ -113,7 +113,7 @@ var x: (i32, i32) = (2, 65.89); // CHECK:STDOUT: // CHECK:STDOUT: fn @__global_init() { // CHECK:STDOUT: !entry: -// CHECK:STDOUT: %.loc17_22: i32 = int_literal 2 [template = constants.%.5] +// CHECK:STDOUT: %.loc17_22: i32 = int_value 2 [template = constants.%.5] // CHECK:STDOUT: %.loc17_25: f64 = float_literal 65.890000000000001 [template = constants.%.6] // CHECK:STDOUT: %.loc17_30.1: %.7 = tuple_literal (%.loc17_22, %.loc17_25) // CHECK:STDOUT: %.loc17_30.2: ref i32 = tuple_access file.%x.var, element0 diff --git a/toolchain/check/testdata/tuple/fail_nested_incomplete.carbon b/toolchain/check/testdata/tuple/fail_nested_incomplete.carbon index 65f8c6641c3dc..218b93a422cfe 100644 --- a/toolchain/check/testdata/tuple/fail_nested_incomplete.carbon +++ b/toolchain/check/testdata/tuple/fail_nested_incomplete.carbon @@ -30,7 +30,7 @@ var p: Incomplete* = &t[1]; // CHECK:STDOUT: %.2: type = tuple_type (type, type) [template] // CHECK:STDOUT: %.3: type = tuple_type (i32, %Incomplete) [template] // CHECK:STDOUT: %.4: type = ptr_type %Incomplete [template] -// CHECK:STDOUT: %.5: i32 = int_literal 1 [template] +// CHECK:STDOUT: %.5: i32 = int_value 1 [template] // CHECK:STDOUT: } // CHECK:STDOUT: // CHECK:STDOUT: imports { @@ -72,7 +72,7 @@ var p: Incomplete* = &t[1]; // CHECK:STDOUT: fn @__global_init() { // CHECK:STDOUT: !entry: // CHECK:STDOUT: %t.ref: ref = name_ref t, file.%t -// CHECK:STDOUT: %.loc21_25: i32 = int_literal 1 [template = constants.%.5] +// CHECK:STDOUT: %.loc21_25: i32 = int_value 1 [template = constants.%.5] // CHECK:STDOUT: %.loc21_22: = addr_of [template = ] // CHECK:STDOUT: assign file.%p.var, // CHECK:STDOUT: return diff --git a/toolchain/check/testdata/tuple/fail_too_few_element.carbon b/toolchain/check/testdata/tuple/fail_too_few_element.carbon index 4cb9e9fdfa671..09280b614964a 100644 --- a/toolchain/check/testdata/tuple/fail_too_few_element.carbon +++ b/toolchain/check/testdata/tuple/fail_too_few_element.carbon @@ -22,7 +22,7 @@ var x: (i32, i32) = (2, ); // CHECK:STDOUT: %.2: type = tuple_type (type, type) [template] // CHECK:STDOUT: %.3: type = tuple_type (i32, i32) [template] // CHECK:STDOUT: %.4: type = ptr_type %.3 [template] -// CHECK:STDOUT: %.5: i32 = int_literal 2 [template] +// CHECK:STDOUT: %.5: i32 = int_value 2 [template] // CHECK:STDOUT: %.6: type = tuple_type (i32) [template] // CHECK:STDOUT: } // CHECK:STDOUT: @@ -57,7 +57,7 @@ var x: (i32, i32) = (2, ); // CHECK:STDOUT: // CHECK:STDOUT: fn @__global_init() { // CHECK:STDOUT: !entry: -// CHECK:STDOUT: %.loc14_22: i32 = int_literal 2 [template = constants.%.5] +// CHECK:STDOUT: %.loc14_22: i32 = int_value 2 [template = constants.%.5] // CHECK:STDOUT: %.loc14_25: %.6 = tuple_literal (%.loc14_22) // CHECK:STDOUT: assign file.%x.var, // CHECK:STDOUT: return diff --git a/toolchain/check/testdata/tuple/fail_value_as_type.carbon b/toolchain/check/testdata/tuple/fail_value_as_type.carbon index c398059f60a41..53bfd53149e0e 100644 --- a/toolchain/check/testdata/tuple/fail_value_as_type.carbon +++ b/toolchain/check/testdata/tuple/fail_value_as_type.carbon @@ -19,7 +19,7 @@ var x: (1, ); // CHECK:STDOUT: --- fail_value_as_type.carbon // CHECK:STDOUT: // CHECK:STDOUT: constants { -// CHECK:STDOUT: %.1: i32 = int_literal 1 [template] +// CHECK:STDOUT: %.1: i32 = int_value 1 [template] // CHECK:STDOUT: %.2: type = tuple_type (i32) [template] // CHECK:STDOUT: %ImplicitAs.type.1: type = generic_interface_type @ImplicitAs [template] // CHECK:STDOUT: %.3: type = tuple_type () [template] @@ -61,7 +61,7 @@ var x: (1, ); // CHECK:STDOUT: .x = %x // CHECK:STDOUT: } // CHECK:STDOUT: %Core.import = import Core -// CHECK:STDOUT: %.loc17_9: i32 = int_literal 1 [template = constants.%.1] +// CHECK:STDOUT: %.loc17_9: i32 = int_value 1 [template = constants.%.1] // CHECK:STDOUT: %.loc17_12.1: %.2 = tuple_literal (%.loc17_9) // CHECK:STDOUT: %ImplicitAs.type: type = interface_type @ImplicitAs, @ImplicitAs(type) [template = constants.%ImplicitAs.type.3] // CHECK:STDOUT: %.loc17_12.2: %.6 = specific_constant imports.%import_ref.3, @ImplicitAs(type) [template = constants.%.7] diff --git a/toolchain/check/testdata/tuple/import.carbon b/toolchain/check/testdata/tuple/import.carbon index 1e24332fbbe24..bbafa6fb9568b 100644 --- a/toolchain/check/testdata/tuple/import.carbon +++ b/toolchain/check/testdata/tuple/import.carbon @@ -61,7 +61,7 @@ var c_bad: C((3, 4)) = F(); // CHECK:STDOUT: %Int32: %Int32.type = struct_value () [template] // CHECK:STDOUT: %.2: type = tuple_type (type) [template] // CHECK:STDOUT: %.3: type = tuple_type (i32) [template] -// CHECK:STDOUT: %.4: i32 = int_literal 0 [template] +// CHECK:STDOUT: %.4: i32 = int_value 0 [template] // CHECK:STDOUT: %tuple.1: %.3 = tuple_value (%.4) [template] // CHECK:STDOUT: %.5: type = tuple_type (%.2, type) [template] // CHECK:STDOUT: %.6: type = tuple_type (type, type) [template] @@ -73,9 +73,9 @@ var c_bad: C((3, 4)) = F(); // CHECK:STDOUT: %.12: type = ptr_type %.8 [template] // CHECK:STDOUT: %.13: type = tuple_type (%.12, %.11) [template] // CHECK:STDOUT: %.14: type = ptr_type %.13 [template] -// CHECK:STDOUT: %.15: i32 = int_literal 1 [template] -// CHECK:STDOUT: %.16: i32 = int_literal 2 [template] -// CHECK:STDOUT: %.17: i32 = int_literal 3 [template] +// CHECK:STDOUT: %.15: i32 = int_value 1 [template] +// CHECK:STDOUT: %.16: i32 = int_value 2 [template] +// CHECK:STDOUT: %.17: i32 = int_value 3 [template] // CHECK:STDOUT: %tuple.2: %.8 = tuple_value (%tuple.1, %.15) [template] // CHECK:STDOUT: %tuple.3: %.9 = tuple_value (%.16, %.17) [template] // CHECK:STDOUT: %tuple.4: %.10 = tuple_value (%tuple.2, %tuple.3) [template] @@ -159,8 +159,8 @@ var c_bad: C((3, 4)) = F(); // CHECK:STDOUT: %return.param_patt: %C.3 = out_param_pattern %return.patt, runtime_param0 // CHECK:STDOUT: } { // CHECK:STDOUT: %C.ref: %C.type = name_ref C, file.%C.decl [template = constants.%C.1] -// CHECK:STDOUT: %.loc9_14: i32 = int_literal 1 [template = constants.%.15] -// CHECK:STDOUT: %.loc9_17: i32 = int_literal 2 [template = constants.%.16] +// CHECK:STDOUT: %.loc9_14: i32 = int_value 1 [template = constants.%.15] +// CHECK:STDOUT: %.loc9_17: i32 = int_value 2 [template = constants.%.16] // CHECK:STDOUT: %.loc9_18: %.9 = tuple_literal (%.loc9_14, %.loc9_17) // CHECK:STDOUT: %tuple: %.9 = tuple_value (%.loc9_14, %.loc9_17) [template = constants.%tuple.5] // CHECK:STDOUT: %.loc9_12: %.9 = converted %.loc9_18, %tuple [template = constants.%tuple.5] @@ -190,17 +190,17 @@ var c_bad: C((3, 4)) = F(); // CHECK:STDOUT: // CHECK:STDOUT: fn @__global_init() { // CHECK:STDOUT: !entry: -// CHECK:STDOUT: %.loc4_22: i32 = int_literal 0 [template = constants.%.4] +// CHECK:STDOUT: %.loc4_22: i32 = int_value 0 [template = constants.%.4] // CHECK:STDOUT: %.loc4_24.1: %.3 = tuple_literal (%.loc4_22) // CHECK:STDOUT: %.loc4_24.2: init %.3 = tuple_init (%.loc4_22) to file.%a_ref.var [template = constants.%tuple.1] // CHECK:STDOUT: %.loc4_25: init %.3 = converted %.loc4_24.1, %.loc4_24.2 [template = constants.%tuple.1] // CHECK:STDOUT: assign file.%a_ref.var, %.loc4_25 -// CHECK:STDOUT: %.loc5_45: i32 = int_literal 0 [template = constants.%.4] +// CHECK:STDOUT: %.loc5_45: i32 = int_value 0 [template = constants.%.4] // CHECK:STDOUT: %.loc5_47.1: %.3 = tuple_literal (%.loc5_45) -// CHECK:STDOUT: %.loc5_50: i32 = int_literal 1 [template = constants.%.15] +// CHECK:STDOUT: %.loc5_50: i32 = int_value 1 [template = constants.%.15] // CHECK:STDOUT: %.loc5_51.1: %.8 = tuple_literal (%.loc5_47.1, %.loc5_50) -// CHECK:STDOUT: %.loc5_55: i32 = int_literal 2 [template = constants.%.16] -// CHECK:STDOUT: %.loc5_58: i32 = int_literal 3 [template = constants.%.17] +// CHECK:STDOUT: %.loc5_55: i32 = int_value 2 [template = constants.%.16] +// CHECK:STDOUT: %.loc5_58: i32 = int_value 3 [template = constants.%.17] // CHECK:STDOUT: %.loc5_59.1: %.9 = tuple_literal (%.loc5_55, %.loc5_58) // CHECK:STDOUT: %.loc5_60.1: %.10 = tuple_literal (%.loc5_51.1, %.loc5_59.1) // CHECK:STDOUT: %.loc5_60.2: ref %.8 = tuple_access file.%b_ref.var, element0 @@ -260,8 +260,8 @@ var c_bad: C((3, 4)) = F(); // CHECK:STDOUT: %X: %.8 = bind_symbolic_name X, 0 [symbolic] // CHECK:STDOUT: %C.2: type = class_type @C, @C(%X) [symbolic] // CHECK:STDOUT: %X.patt: %.8 = symbolic_binding_pattern X, 0 [symbolic] -// CHECK:STDOUT: %.16: i32 = int_literal 1 [template] -// CHECK:STDOUT: %.17: i32 = int_literal 2 [template] +// CHECK:STDOUT: %.16: i32 = int_value 1 [template] +// CHECK:STDOUT: %.17: i32 = int_value 2 [template] // CHECK:STDOUT: %tuple: %.8 = tuple_value (%.16, %.17) [template] // CHECK:STDOUT: %C.3: type = class_type @C, @C(%tuple) [template] // CHECK:STDOUT: %.18: type = ptr_type %.14 [template] @@ -327,8 +327,8 @@ var c_bad: C((3, 4)) = F(); // CHECK:STDOUT: %b.var: ref %.9 = var b // CHECK:STDOUT: %b: ref %.9 = bind_name b, %b.var // CHECK:STDOUT: %C.ref: %C.type = name_ref C, imports.%import_ref.3 [template = constants.%C.1] -// CHECK:STDOUT: %.loc6_11: i32 = int_literal 1 [template = constants.%.16] -// CHECK:STDOUT: %.loc6_14: i32 = int_literal 2 [template = constants.%.17] +// CHECK:STDOUT: %.loc6_11: i32 = int_value 1 [template = constants.%.16] +// CHECK:STDOUT: %.loc6_14: i32 = int_value 2 [template = constants.%.17] // CHECK:STDOUT: %.loc6_15: %.8 = tuple_literal (%.loc6_11, %.loc6_14) // CHECK:STDOUT: %tuple: %.8 = tuple_value (%.loc6_11, %.loc6_14) [template = constants.%tuple] // CHECK:STDOUT: %.loc6_9: %.8 = converted %.loc6_15, %tuple [template = constants.%tuple] @@ -423,9 +423,9 @@ var c_bad: C((3, 4)) = F(); // CHECK:STDOUT: %X: %.4 = bind_symbolic_name X, 0 [symbolic] // CHECK:STDOUT: %C.2: type = class_type @C, @C(%X) [symbolic] // CHECK:STDOUT: %X.patt: %.4 = symbolic_binding_pattern X, 0 [symbolic] -// CHECK:STDOUT: %.5: i32 = int_literal 1 [template] -// CHECK:STDOUT: %.6: i32 = int_literal 2 [template] -// CHECK:STDOUT: %.7: i32 = int_literal 3 [template] +// CHECK:STDOUT: %.5: i32 = int_value 1 [template] +// CHECK:STDOUT: %.6: i32 = int_value 2 [template] +// CHECK:STDOUT: %.7: i32 = int_value 3 [template] // CHECK:STDOUT: %.8: type = tuple_type (i32, i32, i32) [template] // CHECK:STDOUT: %.9: type = ptr_type %.4 [template] // CHECK:STDOUT: %F.type: type = fn_type @F [template] @@ -460,9 +460,9 @@ var c_bad: C((3, 4)) = F(); // CHECK:STDOUT: %default.import = import // CHECK:STDOUT: %Core.import = import Core // CHECK:STDOUT: %C.ref: %C.type = name_ref C, imports.%import_ref.3 [template = constants.%C.1] -// CHECK:STDOUT: %.loc12_15: i32 = int_literal 1 [template = constants.%.5] -// CHECK:STDOUT: %.loc12_18: i32 = int_literal 2 [template = constants.%.6] -// CHECK:STDOUT: %.loc12_21: i32 = int_literal 3 [template = constants.%.7] +// CHECK:STDOUT: %.loc12_15: i32 = int_value 1 [template = constants.%.5] +// CHECK:STDOUT: %.loc12_18: i32 = int_value 2 [template = constants.%.6] +// CHECK:STDOUT: %.loc12_21: i32 = int_value 3 [template = constants.%.7] // CHECK:STDOUT: %.loc12_22: %.8 = tuple_literal (%.loc12_15, %.loc12_18, %.loc12_21) // CHECK:STDOUT: %c_bad.var: ref = var c_bad // CHECK:STDOUT: %c_bad: ref = bind_name c_bad, %c_bad.var @@ -515,16 +515,16 @@ var c_bad: C((3, 4)) = F(); // CHECK:STDOUT: %X: %.4 = bind_symbolic_name X, 0 [symbolic] // CHECK:STDOUT: %C.2: type = class_type @C, @C(%X) [symbolic] // CHECK:STDOUT: %X.patt: %.4 = symbolic_binding_pattern X, 0 [symbolic] -// CHECK:STDOUT: %.5: i32 = int_literal 3 [template] -// CHECK:STDOUT: %.6: i32 = int_literal 4 [template] +// CHECK:STDOUT: %.5: i32 = int_value 3 [template] +// CHECK:STDOUT: %.6: i32 = int_value 4 [template] // CHECK:STDOUT: %.7: type = ptr_type %.4 [template] // CHECK:STDOUT: %tuple.1: %.4 = tuple_value (%.5, %.6) [template] // CHECK:STDOUT: %C.3: type = class_type @C, @C(%tuple.1) [template] // CHECK:STDOUT: %.8: type = ptr_type %.2 [template] // CHECK:STDOUT: %F.type: type = fn_type @F [template] // CHECK:STDOUT: %F: %F.type = struct_value () [template] -// CHECK:STDOUT: %.9: i32 = int_literal 2 [template] -// CHECK:STDOUT: %.10: i32 = int_literal 1 [template] +// CHECK:STDOUT: %.9: i32 = int_value 2 [template] +// CHECK:STDOUT: %.10: i32 = int_value 1 [template] // CHECK:STDOUT: %tuple.2: %.4 = tuple_value (%.10, %.9) [template] // CHECK:STDOUT: %C.4: type = class_type @C, @C(%tuple.2) [template] // CHECK:STDOUT: %ImplicitAs.type.1: type = generic_interface_type @ImplicitAs [template] @@ -578,8 +578,8 @@ var c_bad: C((3, 4)) = F(); // CHECK:STDOUT: %default.import = import // CHECK:STDOUT: %Core.import = import Core // CHECK:STDOUT: %C.ref: %C.type = name_ref C, imports.%import_ref.3 [template = constants.%C.1] -// CHECK:STDOUT: %.loc10_15: i32 = int_literal 3 [template = constants.%.5] -// CHECK:STDOUT: %.loc10_18: i32 = int_literal 4 [template = constants.%.6] +// CHECK:STDOUT: %.loc10_15: i32 = int_value 3 [template = constants.%.5] +// CHECK:STDOUT: %.loc10_18: i32 = int_value 4 [template = constants.%.6] // CHECK:STDOUT: %.loc10_19: %.4 = tuple_literal (%.loc10_15, %.loc10_18) // CHECK:STDOUT: %tuple: %.4 = tuple_value (%.loc10_15, %.loc10_18) [template = constants.%tuple.1] // CHECK:STDOUT: %.loc10_13: %.4 = converted %.loc10_19, %tuple [template = constants.%tuple.1] diff --git a/toolchain/check/testdata/tuple/nested_tuple.carbon b/toolchain/check/testdata/tuple/nested_tuple.carbon index e56f6b546add6..51d9ec79e3b70 100644 --- a/toolchain/check/testdata/tuple/nested_tuple.carbon +++ b/toolchain/check/testdata/tuple/nested_tuple.carbon @@ -23,9 +23,9 @@ var x: ((i32, i32), i32) = ((12, 76), 6); // CHECK:STDOUT: %.6: type = ptr_type %.4 [template] // CHECK:STDOUT: %.7: type = tuple_type (%.6, i32) [template] // CHECK:STDOUT: %.8: type = ptr_type %.7 [template] -// CHECK:STDOUT: %.9: i32 = int_literal 12 [template] -// CHECK:STDOUT: %.10: i32 = int_literal 76 [template] -// CHECK:STDOUT: %.11: i32 = int_literal 6 [template] +// CHECK:STDOUT: %.9: i32 = int_value 12 [template] +// CHECK:STDOUT: %.10: i32 = int_value 76 [template] +// CHECK:STDOUT: %.11: i32 = int_value 6 [template] // CHECK:STDOUT: %tuple.1: %.4 = tuple_value (%.9, %.10) [template] // CHECK:STDOUT: %tuple.2: %.5 = tuple_value (%tuple.1, %.11) [template] // CHECK:STDOUT: } @@ -66,10 +66,10 @@ var x: ((i32, i32), i32) = ((12, 76), 6); // CHECK:STDOUT: // CHECK:STDOUT: fn @__global_init() { // CHECK:STDOUT: !entry: -// CHECK:STDOUT: %.loc11_30: i32 = int_literal 12 [template = constants.%.9] -// CHECK:STDOUT: %.loc11_34: i32 = int_literal 76 [template = constants.%.10] +// CHECK:STDOUT: %.loc11_30: i32 = int_value 12 [template = constants.%.9] +// CHECK:STDOUT: %.loc11_34: i32 = int_value 76 [template = constants.%.10] // CHECK:STDOUT: %.loc11_36.1: %.4 = tuple_literal (%.loc11_30, %.loc11_34) -// CHECK:STDOUT: %.loc11_39: i32 = int_literal 6 [template = constants.%.11] +// CHECK:STDOUT: %.loc11_39: i32 = int_value 6 [template = constants.%.11] // CHECK:STDOUT: %.loc11_40.1: %.5 = tuple_literal (%.loc11_36.1, %.loc11_39) // CHECK:STDOUT: %.loc11_40.2: ref %.4 = tuple_access file.%x.var, element0 // CHECK:STDOUT: %.loc11_36.2: ref i32 = tuple_access %.loc11_40.2, element0 diff --git a/toolchain/check/testdata/tuple/nested_tuple_in_place.carbon b/toolchain/check/testdata/tuple/nested_tuple_in_place.carbon index 345bfda5c103e..ca98baf37089e 100644 --- a/toolchain/check/testdata/tuple/nested_tuple_in_place.carbon +++ b/toolchain/check/testdata/tuple/nested_tuple_in_place.carbon @@ -41,8 +41,8 @@ fn H() { // CHECK:STDOUT: %.10: type = tuple_type (i32, %.3, i32) [template] // CHECK:STDOUT: %.11: type = tuple_type (i32, %.6, i32) [template] // CHECK:STDOUT: %.12: type = ptr_type %.11 [template] -// CHECK:STDOUT: %.13: i32 = int_literal 1 [template] -// CHECK:STDOUT: %.14: i32 = int_literal 2 [template] +// CHECK:STDOUT: %.13: i32 = int_value 1 [template] +// CHECK:STDOUT: %.14: i32 = int_value 2 [template] // CHECK:STDOUT: } // CHECK:STDOUT: // CHECK:STDOUT: imports { @@ -152,11 +152,11 @@ fn H() { // CHECK:STDOUT: %.loc18_36.13: type = converted %.loc18_36.1, constants.%.10 [template = constants.%.10] // CHECK:STDOUT: %v.var: ref %.10 = var v // CHECK:STDOUT: %v: ref %.10 = bind_name v, %v.var -// CHECK:STDOUT: %.loc18_41: i32 = int_literal 1 [template = constants.%.13] +// CHECK:STDOUT: %.loc18_41: i32 = int_value 1 [template = constants.%.13] // CHECK:STDOUT: %F.ref: %F.type = name_ref F, file.%F.decl [template = constants.%F] // CHECK:STDOUT: %.loc18_50.1: ref %.3 = tuple_access %v.var, element1 // CHECK:STDOUT: %F.call: init %.3 = call %F.ref() to %.loc18_50.1 -// CHECK:STDOUT: %.loc18_49: i32 = int_literal 2 [template = constants.%.14] +// CHECK:STDOUT: %.loc18_49: i32 = int_value 2 [template = constants.%.14] // CHECK:STDOUT: %.loc18_50.2: %.10 = tuple_literal (%.loc18_41, %F.call, %.loc18_49) // CHECK:STDOUT: %.loc18_50.3: ref i32 = tuple_access %v.var, element0 // CHECK:STDOUT: %.loc18_50.4: init i32 = initialize_from %.loc18_41 to %.loc18_50.3 [template = constants.%.13] diff --git a/toolchain/check/testdata/tuple/one_element.carbon b/toolchain/check/testdata/tuple/one_element.carbon index 42af27c2564cf..e054cd5b6817d 100644 --- a/toolchain/check/testdata/tuple/one_element.carbon +++ b/toolchain/check/testdata/tuple/one_element.carbon @@ -19,7 +19,7 @@ var y: (i32,) = x; // CHECK:STDOUT: %Int32: %Int32.type = struct_value () [template] // CHECK:STDOUT: %.2: type = tuple_type (type) [template] // CHECK:STDOUT: %.3: type = tuple_type (i32) [template] -// CHECK:STDOUT: %.4: i32 = int_literal 4 [template] +// CHECK:STDOUT: %.4: i32 = int_value 4 [template] // CHECK:STDOUT: %tuple: %.3 = tuple_value (%.4) [template] // CHECK:STDOUT: } // CHECK:STDOUT: @@ -59,7 +59,7 @@ var y: (i32,) = x; // CHECK:STDOUT: // CHECK:STDOUT: fn @__global_init() { // CHECK:STDOUT: !entry: -// CHECK:STDOUT: %.loc11_18: i32 = int_literal 4 [template = constants.%.4] +// CHECK:STDOUT: %.loc11_18: i32 = int_value 4 [template = constants.%.4] // CHECK:STDOUT: %.loc11_20.1: %.3 = tuple_literal (%.loc11_18) // CHECK:STDOUT: %.loc11_20.2: init %.3 = tuple_init (%.loc11_18) to file.%x.var [template = constants.%tuple] // CHECK:STDOUT: %.loc11_21: init %.3 = converted %.loc11_20.1, %.loc11_20.2 [template = constants.%tuple] diff --git a/toolchain/check/testdata/tuple/two_elements.carbon b/toolchain/check/testdata/tuple/two_elements.carbon index 0bd3b28997a62..67072f88612b7 100644 --- a/toolchain/check/testdata/tuple/two_elements.carbon +++ b/toolchain/check/testdata/tuple/two_elements.carbon @@ -23,8 +23,8 @@ var y: (i32, i32) = x; // CHECK:STDOUT: %.2: type = tuple_type (type, type) [template] // CHECK:STDOUT: %.3: type = tuple_type (i32, i32) [template] // CHECK:STDOUT: %.4: type = ptr_type %.3 [template] -// CHECK:STDOUT: %.5: i32 = int_literal 4 [template] -// CHECK:STDOUT: %.6: i32 = int_literal 102 [template] +// CHECK:STDOUT: %.5: i32 = int_value 4 [template] +// CHECK:STDOUT: %.6: i32 = int_value 102 [template] // CHECK:STDOUT: %tuple: %.3 = tuple_value (%.5, %.6) [template] // CHECK:STDOUT: } // CHECK:STDOUT: @@ -88,16 +88,16 @@ var y: (i32, i32) = x; // CHECK:STDOUT: // CHECK:STDOUT: fn @__global_init() { // CHECK:STDOUT: !entry: -// CHECK:STDOUT: %.loc11_22: i32 = int_literal 4 [template = constants.%.5] -// CHECK:STDOUT: %.loc11_25: i32 = int_literal 102 [template = constants.%.6] +// CHECK:STDOUT: %.loc11_22: i32 = int_value 4 [template = constants.%.5] +// CHECK:STDOUT: %.loc11_25: i32 = int_value 102 [template = constants.%.6] // CHECK:STDOUT: %.loc11_28: %.3 = tuple_literal (%.loc11_22, %.loc11_25) // CHECK:STDOUT: %tuple: %.3 = tuple_value (%.loc11_22, %.loc11_25) [template = constants.%tuple] // CHECK:STDOUT: %.loc11_29: %.3 = converted %.loc11_28, %tuple [template = constants.%tuple] // CHECK:STDOUT: %v: %.3 = bind_name v, %.loc11_29 // CHECK:STDOUT: %v.ref: %.3 = name_ref v, %v // CHECK:STDOUT: %w: %.3 = bind_name w, %v.ref -// CHECK:STDOUT: %.loc14_22: i32 = int_literal 4 [template = constants.%.5] -// CHECK:STDOUT: %.loc14_25: i32 = int_literal 102 [template = constants.%.6] +// CHECK:STDOUT: %.loc14_22: i32 = int_value 4 [template = constants.%.5] +// CHECK:STDOUT: %.loc14_25: i32 = int_value 102 [template = constants.%.6] // CHECK:STDOUT: %.loc14_28.1: %.3 = tuple_literal (%.loc14_22, %.loc14_25) // CHECK:STDOUT: %.loc14_28.2: ref i32 = tuple_access file.%x.var, element0 // CHECK:STDOUT: %.loc14_28.3: init i32 = initialize_from %.loc14_22 to %.loc14_28.2 [template = constants.%.5] diff --git a/toolchain/check/testdata/var/fail_storage_is_literal.carbon b/toolchain/check/testdata/var/fail_storage_is_literal.carbon index 8854f7438fc3e..9c2a12268e285 100644 --- a/toolchain/check/testdata/var/fail_storage_is_literal.carbon +++ b/toolchain/check/testdata/var/fail_storage_is_literal.carbon @@ -24,7 +24,7 @@ fn Main() { // CHECK:STDOUT: %Main.type: type = fn_type @Main [template] // CHECK:STDOUT: %.1: type = tuple_type () [template] // CHECK:STDOUT: %Main: %Main.type = struct_value () [template] -// CHECK:STDOUT: %.2: i32 = int_literal 1 [template] +// CHECK:STDOUT: %.2: i32 = int_value 1 [template] // CHECK:STDOUT: %ImplicitAs.type.1: type = generic_interface_type @ImplicitAs [template] // CHECK:STDOUT: %ImplicitAs: %ImplicitAs.type.1 = struct_value () [template] // CHECK:STDOUT: %Dest: type = bind_symbolic_name Dest, 0 [symbolic] @@ -89,14 +89,14 @@ fn Main() { // CHECK:STDOUT: // CHECK:STDOUT: fn @Main() { // CHECK:STDOUT: !entry: -// CHECK:STDOUT: %.loc18_10.1: i32 = int_literal 1 [template = constants.%.2] +// CHECK:STDOUT: %.loc18_10.1: i32 = int_value 1 [template = constants.%.2] // CHECK:STDOUT: %ImplicitAs.type: type = interface_type @ImplicitAs, @ImplicitAs(type) [template = constants.%ImplicitAs.type.3] // CHECK:STDOUT: %.loc18_10.2: %.5 = specific_constant imports.%import_ref.3, @ImplicitAs(type) [template = constants.%.6] // CHECK:STDOUT: %Convert.ref: %.5 = name_ref Convert, %.loc18_10.2 [template = constants.%.6] // CHECK:STDOUT: %.loc18_10.3: type = converted %.loc18_10.1, [template = ] // CHECK:STDOUT: %x.var: ref = var x // CHECK:STDOUT: %x: ref = bind_name x, %x.var -// CHECK:STDOUT: %.loc18_14: i32 = int_literal 1 [template = constants.%.2] +// CHECK:STDOUT: %.loc18_14: i32 = int_value 1 [template = constants.%.2] // CHECK:STDOUT: assign %x.var, // CHECK:STDOUT: return // CHECK:STDOUT: } diff --git a/toolchain/check/testdata/where_expr/constraints.carbon b/toolchain/check/testdata/where_expr/constraints.carbon index 37078824ab193..1dbaac83161c6 100644 --- a/toolchain/check/testdata/where_expr/constraints.carbon +++ b/toolchain/check/testdata/where_expr/constraints.carbon @@ -684,7 +684,7 @@ let B: type where .Self impls A = D; // CHECK:STDOUT: %.1: type = tuple_type () [template] // CHECK:STDOUT: %.2: type = assoc_entity_type %I.type, type [template] // CHECK:STDOUT: %.3: %.2 = assoc_entity element0, imports.%import_ref.11 [template] -// CHECK:STDOUT: %.4: i32 = int_literal 2 [template] +// CHECK:STDOUT: %.4: i32 = int_value 2 [template] // CHECK:STDOUT: %ImplicitAs.type.1: type = generic_interface_type @ImplicitAs [template] // CHECK:STDOUT: %ImplicitAs: %ImplicitAs.type.1 = struct_value () [template] // CHECK:STDOUT: %Dest: type = bind_symbolic_name Dest, 0 [symbolic] @@ -753,7 +753,7 @@ let B: type where .Self impls A = D; // CHECK:STDOUT: %.Self: %I.type = bind_symbolic_name .Self, 0 [symbolic = constants.%.Self] // CHECK:STDOUT: %.Self.ref: %I.type = name_ref .Self, %.Self [symbolic = constants.%.Self] // CHECK:STDOUT: %Member.ref: %.2 = name_ref Member, imports.%import_ref.7 [template = constants.%.3] -// CHECK:STDOUT: %.loc16_46.1: i32 = int_literal 2 [template = constants.%.4] +// CHECK:STDOUT: %.loc16_46.1: i32 = int_value 2 [template = constants.%.4] // CHECK:STDOUT: %ImplicitAs.type: type = interface_type @ImplicitAs, @ImplicitAs(constants.%.2) [template = constants.%ImplicitAs.type.3] // CHECK:STDOUT: %.loc16_46.2: %.7 = specific_constant imports.%import_ref.14, @ImplicitAs(constants.%.2) [template = constants.%.8] // CHECK:STDOUT: %Convert.ref: %.7 = name_ref Convert, %.loc16_46.2 [template = constants.%.8] @@ -852,7 +852,7 @@ let B: type where .Self impls A = D; // CHECK:STDOUT: // CHECK:STDOUT: constants { // CHECK:STDOUT: %.Self: type = bind_symbolic_name .Self, 0 [symbolic] -// CHECK:STDOUT: %.1: i32 = int_literal 7 [template] +// CHECK:STDOUT: %.1: i32 = int_value 7 [template] // CHECK:STDOUT: %ImplicitAs.type.1: type = generic_interface_type @ImplicitAs [template] // CHECK:STDOUT: %.2: type = tuple_type () [template] // CHECK:STDOUT: %ImplicitAs: %ImplicitAs.type.1 = struct_value () [template] @@ -902,7 +902,7 @@ let B: type where .Self impls A = D; // CHECK:STDOUT: %U.param_patt: type = value_param_pattern %U.patt.loc11_17.1, runtime_param [symbolic = %U.patt.loc11_17.2 (constants.%U.patt)] // CHECK:STDOUT: } { // CHECK:STDOUT: %.Self: type = bind_symbolic_name .Self, 0 [symbolic = constants.%.Self] -// CHECK:STDOUT: %.loc11_32.1: i32 = int_literal 7 [template = constants.%.1] +// CHECK:STDOUT: %.loc11_32.1: i32 = int_value 7 [template = constants.%.1] // CHECK:STDOUT: %ImplicitAs.type: type = interface_type @ImplicitAs, @ImplicitAs(type) [template = constants.%ImplicitAs.type.3] // CHECK:STDOUT: %.loc11_32.2: %.5 = specific_constant imports.%import_ref.3, @ImplicitAs(type) [template = constants.%.6] // CHECK:STDOUT: %Convert.ref: %.5 = name_ref Convert, %.loc11_32.2 [template = constants.%.6] @@ -993,7 +993,7 @@ let B: type where .Self impls A = D; // CHECK:STDOUT: // CHECK:STDOUT: constants { // CHECK:STDOUT: %.Self: type = bind_symbolic_name .Self, 0 [symbolic] -// CHECK:STDOUT: %.1: i32 = int_literal 7 [template] +// CHECK:STDOUT: %.1: i32 = int_value 7 [template] // CHECK:STDOUT: %ImplicitAs.type.1: type = generic_interface_type @ImplicitAs [template] // CHECK:STDOUT: %.2: type = tuple_type () [template] // CHECK:STDOUT: %ImplicitAs: %ImplicitAs.type.1 = struct_value () [template] @@ -1044,7 +1044,7 @@ let B: type where .Self impls A = D; // CHECK:STDOUT: } { // CHECK:STDOUT: %.Self: type = bind_symbolic_name .Self, 0 [symbolic = constants.%.Self] // CHECK:STDOUT: %.Self.ref: type = name_ref .Self, %.Self [symbolic = constants.%.Self] -// CHECK:STDOUT: %.loc11_44.1: i32 = int_literal 7 [template = constants.%.1] +// CHECK:STDOUT: %.loc11_44.1: i32 = int_value 7 [template = constants.%.1] // CHECK:STDOUT: %ImplicitAs.type: type = interface_type @ImplicitAs, @ImplicitAs(type) [template = constants.%ImplicitAs.type.3] // CHECK:STDOUT: %.loc11_44.2: %.5 = specific_constant imports.%import_ref.3, @ImplicitAs(type) [template = constants.%.6] // CHECK:STDOUT: %Convert.ref: %.5 = name_ref Convert, %.loc11_44.2 [template = constants.%.6] diff --git a/toolchain/check/testdata/where_expr/fail_not_facet.carbon b/toolchain/check/testdata/where_expr/fail_not_facet.carbon index 10314404eb535..d5149dff62133 100644 --- a/toolchain/check/testdata/where_expr/fail_not_facet.carbon +++ b/toolchain/check/testdata/where_expr/fail_not_facet.carbon @@ -173,7 +173,7 @@ var v: e where .x = 3; // CHECK:STDOUT: // CHECK:STDOUT: constants { // CHECK:STDOUT: %.Self: = bind_symbolic_name .Self, 0 [symbolic] -// CHECK:STDOUT: %.1: i32 = int_literal 3 [template] +// CHECK:STDOUT: %.1: i32 = int_value 3 [template] // CHECK:STDOUT: } // CHECK:STDOUT: // CHECK:STDOUT: imports { @@ -192,7 +192,7 @@ var v: e where .x = 3; // CHECK:STDOUT: %e.ref: = name_ref e, [template = ] // CHECK:STDOUT: %.Self: = bind_symbolic_name .Self, 0 [symbolic = constants.%.Self] // CHECK:STDOUT: %.Self.ref: = name_ref .Self, %.Self [symbolic = constants.%.Self] -// CHECK:STDOUT: %.loc11_21: i32 = int_literal 3 [template = constants.%.1] +// CHECK:STDOUT: %.loc11_21: i32 = int_value 3 [template = constants.%.1] // CHECK:STDOUT: %.loc11_10: type = where_expr %.Self [template = ] { // CHECK:STDOUT: requirement_rewrite , // CHECK:STDOUT: } diff --git a/toolchain/lower/constant.cpp b/toolchain/lower/constant.cpp index 1f6021fbf10e2..6f0c5b42ad680 100644 --- a/toolchain/lower/constant.cpp +++ b/toolchain/lower/constant.cpp @@ -204,7 +204,7 @@ static auto EmitAsConstant(ConstantContext& /*context*/, return nullptr; } -static auto EmitAsConstant(ConstantContext& context, SemIR::IntLiteral inst) +static auto EmitAsConstant(ConstantContext& context, SemIR::IntValue inst) -> llvm::Constant* { auto* type = context.GetType(inst.type_id); diff --git a/toolchain/lower/file_context.cpp b/toolchain/lower/file_context.cpp index 32523434fbebf..5960e91ef549d 100644 --- a/toolchain/lower/file_context.cpp +++ b/toolchain/lower/file_context.cpp @@ -534,7 +534,7 @@ static auto BuildTypeForInst(FileContext& context, SemIR::FloatType /*inst*/) static auto BuildTypeForInst(FileContext& context, SemIR::IntType inst) -> llvm::Type* { auto width = - context.sem_ir().insts().TryGetAs(inst.bit_width_id); + context.sem_ir().insts().TryGetAs(inst.bit_width_id); CARBON_CHECK(width, "Can't lower int type with symbolic width"); return llvm::IntegerType::get( context.llvm_context(), diff --git a/toolchain/sem_ir/file.cpp b/toolchain/sem_ir/file.cpp index cb5ca82946579..958c08c475e9d 100644 --- a/toolchain/sem_ir/file.cpp +++ b/toolchain/sem_ir/file.cpp @@ -267,7 +267,7 @@ auto GetExprCategory(const File& file, InstId inst_id) -> ExprCategory { case InterfaceType::Kind: case InterfaceWitness::Kind: case InterfaceWitnessAccess::Kind: - case IntLiteral::Kind: + case IntValue::Kind: case IntType::Kind: case PointerType::Kind: case SpecificFunction::Kind: diff --git a/toolchain/sem_ir/file.h b/toolchain/sem_ir/file.h index 7dcaccd3735a0..f4ca5dc3e5a71 100644 --- a/toolchain/sem_ir/file.h +++ b/toolchain/sem_ir/file.h @@ -60,9 +60,7 @@ class File : public Printable { // Returns array bound value from the bound instruction. auto GetArrayBoundValue(InstId bound_id) const -> uint64_t { - return ints() - .Get(insts().GetAs(bound_id).int_id) - .getZExtValue(); + return ints().Get(insts().GetAs(bound_id).int_id).getZExtValue(); } // Gets the pointee type of the given type, which must be a pointer type. diff --git a/toolchain/sem_ir/formatter.cpp b/toolchain/sem_ir/formatter.cpp index 30ece91301370..54f303fab02a3 100644 --- a/toolchain/sem_ir/formatter.cpp +++ b/toolchain/sem_ir/formatter.cpp @@ -866,7 +866,7 @@ class FormatterImpl { FormatTrailingBlock(inst.decl_block_id); } - auto FormatInstRHS(IntLiteral inst) -> void { + auto FormatInstRHS(IntValue inst) -> void { out_ << " "; sem_ir_.ints() .Get(inst.int_id) diff --git a/toolchain/sem_ir/inst_kind.def b/toolchain/sem_ir/inst_kind.def index 81edf22c3679b..71224a7305818 100644 --- a/toolchain/sem_ir/inst_kind.def +++ b/toolchain/sem_ir/inst_kind.def @@ -68,7 +68,7 @@ CARBON_SEM_IR_INST_KIND(InterfaceDecl) CARBON_SEM_IR_INST_KIND(InterfaceType) CARBON_SEM_IR_INST_KIND(InterfaceWitness) CARBON_SEM_IR_INST_KIND(InterfaceWitnessAccess) -CARBON_SEM_IR_INST_KIND(IntLiteral) +CARBON_SEM_IR_INST_KIND(IntValue) CARBON_SEM_IR_INST_KIND(IntType) CARBON_SEM_IR_INST_KIND(NameRef) CARBON_SEM_IR_INST_KIND(Namespace) diff --git a/toolchain/sem_ir/inst_kind.h b/toolchain/sem_ir/inst_kind.h index 0dbbb6463120e..efc047676aafb 100644 --- a/toolchain/sem_ir/inst_kind.h +++ b/toolchain/sem_ir/inst_kind.h @@ -55,7 +55,7 @@ enum class InstConstantKind : int8_t { // `TupleValue` can define a constant if its operands are constants. Conditional, // This instruction always has a constant value of the same kind. For example, - // `IntLiteral`. + // `IntValue`. Always, }; diff --git a/toolchain/sem_ir/stringify_type.cpp b/toolchain/sem_ir/stringify_type.cpp index abcbadd7670a1..d8a402b8a409b 100644 --- a/toolchain/sem_ir/stringify_type.cpp +++ b/toolchain/sem_ir/stringify_type.cpp @@ -130,7 +130,7 @@ auto StringifyTypeExpr(const SemIR::File& outer_sem_ir, InstId outer_inst_id) if (step.index == 1) { out << ")"; } else if (auto width_value = - sem_ir.insts().TryGetAs(inst.bit_width_id)) { + sem_ir.insts().TryGetAs(inst.bit_width_id)) { out << "f"; sem_ir.ints().Get(width_value->int_id).print(out, /*isSigned=*/false); } else { @@ -167,7 +167,7 @@ auto StringifyTypeExpr(const SemIR::File& outer_sem_ir, InstId outer_inst_id) if (step.index == 1) { out << ")"; } else if (auto width_value = - sem_ir.insts().TryGetAs(inst.bit_width_id)) { + sem_ir.insts().TryGetAs(inst.bit_width_id)) { out << (inst.int_kind.is_signed() ? "i" : "u"); sem_ir.ints().Get(width_value->int_id).print(out, /*isSigned=*/false); } else { @@ -297,7 +297,7 @@ auto StringifyTypeExpr(const SemIR::File& outer_sem_ir, InstId outer_inst_id) case InterfaceDecl::Kind: case InterfaceWitness::Kind: case InterfaceWitnessAccess::Kind: - case IntLiteral::Kind: + case IntValue::Kind: case Namespace::Kind: case OutParam::Kind: case OutParamPattern::Kind: diff --git a/toolchain/sem_ir/typed_insts.h b/toolchain/sem_ir/typed_insts.h index aaaa6de6ddce4..78cb6f2d645a0 100644 --- a/toolchain/sem_ir/typed_insts.h +++ b/toolchain/sem_ir/typed_insts.h @@ -777,10 +777,10 @@ struct InterfaceWitnessAccess { }; // A literal integer value. -struct IntLiteral { +struct IntValue { // TODO: Make Parse::NodeId more specific. - static constexpr auto Kind = InstKind::IntLiteral.Define( - {.ir_name = "int_literal", .constant_kind = InstConstantKind::Always}); + static constexpr auto Kind = InstKind::IntValue.Define( + {.ir_name = "int_value", .constant_kind = InstConstantKind::Always}); TypeId type_id; IntId int_id;