File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 142
142
// / Darwin reserves the low 4GB of address space.
143
143
#define SWIFT_ABI_DARWIN_ARM64_LEAST_VALID_POINTER 0x100000000ULL
144
144
145
- // TBI guarantees the top byte of pointers is unused, but ARMv8.5-A
146
- // claims the bottom four bits of that for memory tagging.
145
+ // TBI guarantees the top byte of pointers is unused.
147
146
// Heap objects are eight-byte aligned.
148
- #define SWIFT_ABI_ARM64_SWIFT_SPARE_BITS_MASK 0xF000000000000007ULL
147
+ #define SWIFT_ABI_ARM64_SWIFT_SPARE_BITS_MASK \
148
+ SWIFT_ABI_DEFAULT_64BIT_SPARE_BITS_MASK
149
149
150
150
// Objective-C reserves just the high bit for tagged pointers.
151
151
#define SWIFT_ABI_ARM64_OBJC_RESERVED_BITS_MASK 0x8000000000000000ULL
Original file line number Diff line number Diff line change @@ -35,8 +35,8 @@ entry(%c : $C, %w : $Builtin.Word):
35
35
// CHECK: [[TAGGED_RESULT:%.*]] = bitcast [[BRIDGE]] %0 to [[C:%objc_object\*]]
36
36
// CHECK: br label %tagged-cont
37
37
// CHECK: not-tagged-pointer:
38
- // -- 0x0fff_ffff_ffff_fff8
39
- // CHECK: [[MASKED_BITS:%.*]] = and i64 [[BOBITS]], 1152921504606846968
38
+ // -- 0x00ff_ffff_ffff_fff8
39
+ // CHECK: [[MASKED_BITS:%.*]] = and i64 [[BOBITS]], 72057594037927928
40
40
// CHECK: [[MASKED_RESULT:%.*]] = inttoptr i64 [[MASKED_BITS]] to [[C]]
41
41
// CHECK: br label %tagged-cont
42
42
// CHECK: tagged-cont:
You can’t perform that action at this time.
0 commit comments