Skip to content

Commit f3c6eae

Browse files
authored
[DebugInfo] Require 64-bit arch for debug info fragment LIT tests (#67699)
These tests depend on the target layout, and there were issues reported for Android armv7 (see #66744) and watchOS (#66879) targets.
1 parent 9668f04 commit f3c6eae

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

test/IRGen/debug_fragment_merge.sil

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// Checking the below on 32 bit architectures would be cumbersome: each
44
// fragment is 32 bits long, which changes the number of checks as well as the
55
// arithmethic on the bounds of each fragment.
6-
// UNSUPPORTED: OS=watchos
6+
// REQUIRES: CPU=arm64 || CPU=x86_64 || CPU=arm64e
77

88
// CHECK-DAG: llvm.dbg.value{{.*}} metadata ![[VAR:[0-9]+]], metadata !DIExpression(DW_OP_LLVM_fragment, 192, 64){{.*}} !dbg ![[LOC1:[0-9]+]]
99
// CHECK-DAG: llvm.dbg.value{{.*}} metadata ![[VAR]], metadata !DIExpression(DW_OP_LLVM_fragment, 128, 64){{.*}} !dbg ![[LOC1]]

test/IRGen/debug_fragment_merge.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// RUN: %target-swift-frontend -disable-availability-checking -primary-file %s -emit-sil -O -g | %FileCheck %s --check-prefix CHECK-SIL
22
// RUN: %target-swift-frontend -disable-availability-checking -primary-file %s -emit-ir -disable-llvm-optzns -O -g | %FileCheck %s
33

4-
// UNSUPPORTED: OS=watchos
4+
// REQUIRES: CPU=arm64 || CPU=x86_64 || CPU=arm64e
55

66
protocol External {
77
func use(str: String);

test/IRGen/debug_scope_distinct.swift

+2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
// RUN: %target-swiftc_driver -O -g -I %t -c %s -emit-ir -o - | %FileCheck %s
66
// RUN: %target-swiftc_driver -O -g -I %t -c %s -o /dev/null
77

8+
// REQUIRES: CPU=arm64 || CPU=x86_64 || CPU=arm64e
9+
810
// CHECK: define {{.*}} void @"$s4main1TV4move2byyAC13TangentVectorV_tF"
911
// CHECK-SAME: ptr {{.*}} %[[ARG_PTR:.*]],
1012
//

0 commit comments

Comments
 (0)