Skip to content

Commit a1f4350

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

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

test/IRGen/debug_fragment_merge.sil

Lines changed: 1 addition & 1 deletion
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
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

Lines changed: 1 addition & 1 deletion
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
55

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

test/IRGen/debug_scope_distinct.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
// RUN: %target-swiftc_driver -O -g -I %t -c %s -emit-ir -o - | %FileCheck %s
44
// RUN: %target-swiftc_driver -O -g -I %t -c %s -o /dev/null
55

6+
// REQUIRES: CPU=arm64 || CPU=x86_64
7+
68
// CHECK: define {{.*}} void @"$s4main1TV4move2byyAC13TangentVectorV_tF"
79
// CHECK-SAME: ptr {{.*}} %[[ARG_PTR:.*]],
810
//

0 commit comments

Comments
 (0)