Skip to content

Commit b2cce99

Browse files
committed
[test] SILOptimizer/string_literals.swift: Mark as unsupported on 32-bit
We can’t currently constant-fold away the initialization of StringObject’s 7-bit discriminator field, so string literal initialization is a bit more complicated on 32-bit platforms. rdar://problem/45845142
1 parent fcff56d commit b2cce99

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test/SILOptimizer/string_literals.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
// RUN: %target-swift-frontend -parse-as-library -Osize -emit-ir %s | %FileCheck %s
33
// REQUIRES: swift_stdlib_no_asserts,optimized_stdlib
44

5+
// The 7-bit discriminator complicates codegen on 32-bit platforms.
6+
// UNSUPPORTED: PTRSIZE=32
7+
58
// This is an end-to-end test to ensure that the optimizer generates
69
// optimal code for string literals
710

0 commit comments

Comments
 (0)