Commit Graph

6 Commits

Author SHA1 Message Date
Arnold Schwaighofer
0e2f63a12c Disable some tests that will fail on back deployment library configurations
rdar://76567524
rdar://76567105
2021-04-13 07:48:03 -07:00
Mishal Shah
a3cd8bc9e9 [Tests] Codesign the binary before executing the test 2020-08-07 00:26:07 -07:00
Arnold Schwaighofer
51193f4c82 These tests require __swift_debug_verifyTypeLayoutAttribute which is not ABI or available on OS stdlibs
Interpreter/multi_payload_extra_inhabitant.swift
  Interpreter/struct_extra_inhabitants.swift

Mark the test as unsupported when running the tests with the OS' stdlib.

rdar://54749176
2019-08-27 09:06:12 -07:00
Joe Groff
bf593b420c IRGen: Fix extra inhabitants of multi-payload enums with more spare bits than tag bits.
Because layout minimizes the number of tag bits used, and favors high spare bits, the
spare bit representations end up overlapping the extra inhabitant representations, since we
just counted down from -1. If there are fewer tag bits than total spare bits, rotate the
extra inhabitant values so they correctly line up with the tag representations in this
situation. rdar://problem/46468090
2018-12-06 13:01:04 -08:00
Joe Groff
4428d479aa Fix ClusteredBitVector::fromAPInt for zero-sized vectors.
A one-bit zero APInt is a reasonable stand-in for everywhere we need this.
2018-11-14 14:05:21 -08:00
Joe Groff
ca402f19b1 Give multi-payload enums extra inhabitants.
Previously, they would forward their unused spare bits to be used by other multi-payload enums, but
did not implement anything for single-payload extra inhabitants.
2018-11-13 18:08:01 -08:00