From 29202436ca7086e875689e5043d1a6ba18f415b7 Mon Sep 17 00:00:00 2001 From: Slava Pestov Date: Mon, 10 Nov 2025 13:45:36 -0500 Subject: [PATCH] Try to fix test/IRGen/fulfillment_map_key_equality.swift for 32-bit targets --- test/IRGen/fulfillment_map_key_equality.swift | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/test/IRGen/fulfillment_map_key_equality.swift b/test/IRGen/fulfillment_map_key_equality.swift index 29a8b35d5af51..a9c5e5bb22404 100644 --- a/test/IRGen/fulfillment_map_key_equality.swift +++ b/test/IRGen/fulfillment_map_key_equality.swift @@ -1,13 +1,5 @@ // RUN: %target-swift-frontend -emit-ir %s -enable-library-evolution | %FileCheck %s -// FIXME: We just need to adjust the check line below, there's no inherent -// reason for this not to be tested on wasm. - -// UNSUPPORTED: CPU=wasm32 - -// This test does not support 32 bit right now. -// UNSUPPORTED: PTRSIZE=32 - // rdar://160649141 public protocol P1 {} @@ -24,7 +16,7 @@ public protocol P3 where A4.A1 == A3.A2.A1 { associatedtype A3: P5 associatedtype A4: P2 - var x: Int { get } + var x: Int32 { get } } public protocol P6: P3 {} @@ -43,6 +35,6 @@ public struct G3: P3 where T.A4.A1: P1 { // Make sure this witness thunk doesn't have any additional bogus parameters. - // CHECK-LABEL: define internal swiftcc i64 @"$s28fulfillment_map_key_equality2G3VyxGAA2P3A2aEP1xSivgTW"(ptr noalias swiftself captures(none) %0, ptr %Self, ptr %SelfWitnessTable) {{.*}} { - public var x: Int { fatalError() } + // CHECK-LABEL: define internal swiftcc i32 @"$s28fulfillment_map_key_equality2G3VyxGAA2P3A2aEP1xs5Int32VvgTW"(ptr noalias swiftself captures(none) %0, ptr %Self, ptr %SelfWitnessTable) {{.*}} { + public var x: Int32 { fatalError() } }