Skip to content

Commit 632a231

Browse files
SC llvm teamSC llvm team
authored andcommitted
Merged main:84447c044f23 into amd-gfx:7d9740049ca8
Local branch amd-gfx 7d97400 Merged main:625891288087 into amd-gfx:3533ef87d458 Remote branch main 84447c0 [DAG] Add SelectionDAG::isADDLike helper. NFC.
2 parents 7d97400 + 84447c0 commit 632a231

File tree

195 files changed

+1512
-1110
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

195 files changed

+1512
-1110
lines changed

compiler-rt/test/profile/Linux/binary-id-lookup.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@
2929
// CHECK: 3| 1|int main() {
3030

3131
// FOO-ONLY: 1| 1|void foo(void) {}
32-
// MISSING-BINARY-ID: error: Failed to load coverage: '[[FILENAME]]': Missing binary ID: abcd1234
33-
// NODATA: error: Failed to load coverage: '': No coverage data found
32+
// MISSING-BINARY-ID: error: failed to load coverage: '[[FILENAME]]': Missing binary ID: abcd1234
33+
// NODATA: error: failed to load coverage: '': no coverage data found
3434

3535
//--- foo.c
3636
void foo(void) {}

cross-project-tests/debuginfo-tests/dexter-tests/aggregate-indirect-arg.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
// REQUIRES: lldb
22
// UNSUPPORTED: system-windows
33
//
4+
// RUN: %clang -std=gnu++11 -O0 -g -lstdc++ %s -o %t
45
// RUN: %dexter --fail-lt 1.0 -w \
5-
// RUN: --builder 'clang' --debugger 'lldb' --cflags "-O0 -g" \
6-
// RUN: --ldflags="-lstdc++" -- %s
6+
// RUN: --binary %t --debugger 'lldb' -- %s
77
// Radar 8945514
88

99
class SVal {

cross-project-tests/debuginfo-tests/dexter-tests/asan-deque.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,9 @@
88
// lldb-8, even outside of dexter, will sometimes trigger an asan fault in
99
// the debugged process and generally freak out.
1010

11+
// RUN: %clang -std=gnu++11 -O1 -glldb -fsanitize=address -arch x86_64 %s -o %t
1112
// RUN: %dexter --fail-lt 1.0 -w \
12-
// RUN: --builder 'clang' --debugger 'lldb' \
13-
// RUN: --cflags "-O1 -glldb -fsanitize=address -arch x86_64" \
14-
// RUN: --ldflags="-fsanitize=address" -- %s
13+
// RUN: --binary %t --debugger 'lldb' -- %s
1514
#include <deque>
1615

1716
struct A {

cross-project-tests/debuginfo-tests/dexter-tests/asan.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
// Zorg configures the ASAN stage2 bots to not build the asan
44
// compiler-rt. Only run this test on non-asanified configurations.
55
//
6+
// RUN: %clang -std=gnu11 --driver-mode=gcc -O0 -glldb -fblocks -arch x86_64 \
7+
// RUN: -fsanitize=address %s -o %t
68
// RUN: %dexter --fail-lt 1.0 -w \
7-
// RUN: --builder 'clang-c' --debugger 'lldb' \
8-
// RUN: --cflags "--driver-mode=gcc -O0 -glldb -fblocks -arch x86_64 \
9-
// RUN: -fsanitize=address" --ldflags="-fsanitize=address" -- %s
9+
// RUN: --binary %t --debugger 'lldb' -- %s
1010

1111
struct S {
1212
int a[8];

cross-project-tests/debuginfo-tests/dexter-tests/ctor.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
// REQUIRES: lldb
22
// UNSUPPORTED: system-windows
33
//
4+
// RUN: %clang -std=gnu++11 -O0 -glldb %s -o %t
45
// RUN: %dexter --fail-lt 1.0 -w \
5-
// RUN: --builder 'clang' --debugger 'lldb' --cflags "-O0 -glldb" -- %s
6+
// RUN: --binary %t --debugger 'lldb' -- %s
67

78
class A {
89
public:

cross-project-tests/debuginfo-tests/dexter-tests/dbg-arg.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
// UNSUPPORTED: system-windows
33
//
44
// This test case checks debug info during register moves for an argument.
5+
// RUN: %clang -std=gnu11 -m64 -mllvm -fast-isel=false -g %s -o %t
56
// RUN: %dexter --fail-lt 1.0 -w \
6-
// RUN: --builder clang-c --debugger 'lldb' \
7-
// RUN: --cflags "-m64 -mllvm -fast-isel=false -g" -- %s
7+
// RUN: --binary %t --debugger 'lldb' -- %s
88
//
99
// Radar 8412415
1010

cross-project-tests/debuginfo-tests/dexter-tests/deferred_globals.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,9 @@
44

55
// REQUIRES: lldb
66
// UNSUPPORTED: system-windows
7-
7+
// RUN: %clang -std=gnu++11 -O0 -g %s -o %t
88
// RUN: %dexter --fail-lt 1.0 -w \
9-
// RUN: --builder 'clang' --debugger 'lldb' \
10-
// RUN: --cflags "-g -O0" -v -- %s
9+
// RUN: --binary %t --debugger 'lldb' -v -- %s
1110

1211
const int d = 100;
1312

cross-project-tests/debuginfo-tests/dexter-tests/global-constant.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// REQUIRES: system-windows
22
//
3-
// RUN: %dexter --fail-lt 1.0 -w --builder 'clang-cl_vs2015' \
4-
// RUN: --debugger 'dbgeng' --cflags '/Z7 /Zi' --ldflags '/Z7 /Zi' -- %s
3+
// RUN: %clang_cl /Z7 /Zi %s -o %t
4+
// RUN: %dexter --fail-lt 1.0 -w --binary %t --debugger 'dbgeng' -- %s
55

66
// Check that global constants have debug info.
77

cross-project-tests/debuginfo-tests/dexter-tests/hello.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// REQUIRES: system-windows
22
//
3-
// RUN: %dexter --fail-lt 1.0 -w --builder 'clang-cl_vs2015' \
4-
// RUN: --debugger 'dbgeng' --cflags '/Z7 /Zi' --ldflags '/Z7 /Zi' -- %s
3+
// RUN: %clang_cl /Z7 /Zi %s -o %t
4+
// RUN: %dexter --fail-lt 1.0 -w --binary %t --debugger 'dbgeng' -- %s
55

66
#include <stdio.h>
77
int main() {

cross-project-tests/debuginfo-tests/dexter-tests/inline-line-gap.cpp

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
// REQUIRES: system-windows
22
//
3-
// RUN: %dexter --fail-lt 1.0 -w --builder 'clang-cl_vs2015' \
4-
// RUN: --debugger 'dbgeng' --cflags '/Od /Z7 /Zi' \
5-
// RUN: --ldflags '/Od /Z7 /Zi' -- %s
3+
// RUN: %clang_cl /Od /Z7 /Zi %s -o %t
4+
// RUN: %dexter --fail-lt 1.0 -w --binary %t --debugger 'dbgeng' -- %s
65
//
7-
// RUN: %dexter --fail-lt 1.0 -w --builder 'clang-cl_vs2015' \
8-
// RUN: --debugger 'dbgeng' --cflags '/O2 /Z7 /Zi' \
9-
// RUN: --ldflags '/O2 /Z7 /Zi' -- %s
6+
// RUN: %clang_cl /O2 /Z7 /Zi %s -o %t
7+
// RUN: %dexter --fail-lt 1.0 -w --binary %t \
8+
// RUN: --debugger 'dbgeng' -- %s
109

1110
// This code is structured to have an early exit with an epilogue in the middle
1211
// of the function, which creates a gap between the beginning of the inlined

cross-project-tests/debuginfo-tests/dexter-tests/memvars/bitcast.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33

44
// REQUIRES: lldb
55
// UNSUPPORTED: system-windows
6-
// RUN: %dexter --fail-lt 1.0 -w --debugger lldb \
7-
// RUN: --builder 'clang-c' --cflags "-O3 -glldb" -- %s
6+
// RUN: %clang -std=gnu11 -O3 -glldb %s -o %t
7+
// RUN: %dexter --fail-lt 1.0 -w --debugger lldb --binary %t -- %s
88

99
//// Adapted from https://bugs.llvm.org/show_bug.cgi?id=34136#c1
1010
//// LowerDbgDeclare has since been updated to look through bitcasts. We still

cross-project-tests/debuginfo-tests/dexter-tests/memvars/const-branch.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33

44
// REQUIRES: lldb
55
// UNSUPPORTED: system-windows
6-
// RUN: %dexter --fail-lt 1.0 -w --debugger lldb \
7-
// RUN: --builder 'clang-c' --cflags "-O3 -glldb" -- %s
6+
// RUN: %clang -std=gnu11 -O3 -glldb %s -o %t
7+
// RUN: %dexter --fail-lt 1.0 -w --debugger lldb --binary %t -- %s
88

99
//// Adapted from https://bugs.llvm.org/show_bug.cgi?id=34136#c4
1010

cross-project-tests/debuginfo-tests/dexter-tests/memvars/ctrl-flow.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// REQUIRES: lldb
22
// UNSUPPORTED: system-windows
3-
// RUN: %dexter --fail-lt 1.0 -w --debugger lldb \
4-
// RUN: --builder clang-c --cflags "-O2 -glldb" -- %s
3+
// RUN: %clang -std=gnu11 -O2 -glldb %s -o %t
4+
// RUN: %dexter --fail-lt 1.0 -w --debugger lldb --binary %t -- %s
55

66
//// Check that we give good locations to a variable ('local') which is escaped
77
//// down some control paths and not others. This example is handled well currently.

cross-project-tests/debuginfo-tests/dexter-tests/memvars/implicit-ptr.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33

44
// REQUIRES: lldb
55
// UNSUPPORTED: system-windows
6-
// RUN: %dexter --fail-lt 1.0 -w --debugger lldb \
7-
// RUN: --builder 'clang-c' --cflags "-O3 -glldb" -- %s
6+
// RUN: %clang -std=gnu11 -O3 -glldb %s -o %t
7+
// RUN: %dexter --fail-lt 1.0 -w --debugger lldb --binary %t -- %s
88

99
//// Check that 'param' in 'fun' can be read throughout, and that 'pa' and 'pb'
1010
//// can be dereferenced in the debugger even if we can't provide the pointer

cross-project-tests/debuginfo-tests/dexter-tests/memvars/inline-escaping-function.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33

44
// REQUIRES: lldb
55
// UNSUPPORTED: system-windows
6-
// RUN: %dexter --fail-lt 1.0 -w --debugger lldb \
7-
// RUN: --builder 'clang-c' --cflags "-O3 -glldb" -- %s
6+
// RUN: %clang -std=gnu11 -O3 -glldb %s -o %t
7+
// RUN: %dexter --fail-lt 1.0 -w --debugger lldb --binary %t -- %s
88

99
// 1. param is escaped by inlineme(&param) so it is not promoted by
1010
// SROA/mem2reg.

cross-project-tests/debuginfo-tests/dexter-tests/memvars/inlining-dse.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33

44
// REQUIRES: lldb
55
// UNSUPPORTED: system-windows
6-
// RUN: %dexter --fail-lt 1.0 -w --debugger lldb \
7-
// RUN: --builder clang-c --cflags "-O2 -glldb" -- %s
6+
// RUN: %clang -std=gnu11 -O2 -glldb %s -o %t
7+
// RUN: %dexter --fail-lt 1.0 -w --debugger lldb --binary %t -- %s
88
//
99
//// Check that once-escaped variable 'param' can still be read after we
1010
//// perform inlining + mem2reg, and that we see the DSE'd value 255.

cross-project-tests/debuginfo-tests/dexter-tests/memvars/inlining.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// REQUIRES: lldb
22
// UNSUPPORTED: system-windows
3-
// RUN: %dexter --fail-lt 1.0 -w --debugger lldb \
4-
// RUN: --builder clang-c --cflags "-O2 -glldb" -- %s
3+
// RUN: %clang -std=gnu11 -O2 -glldb %s -o %t
4+
// RUN: %dexter --fail-lt 1.0 -w --debugger lldb --binary %t -- %s
55
//
66
//// Check that the once-escaped variable 'param' can still be read after
77
//// we perform inlining + mem2reg. See D89810 and D85555.

cross-project-tests/debuginfo-tests/dexter-tests/memvars/loop.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33

44
// REQUIRES: lldb
55
// UNSUPPORTED: system-windows
6-
// RUN: %dexter --fail-lt 1.0 -w --debugger lldb \
7-
// RUN: --builder 'clang-c' --cflags "-O3 -glldb" -- %s
6+
// RUN: %clang -std=gnu11 -O3 -glldb %s -o %t
7+
// RUN: %dexter --fail-lt 1.0 -w --debugger lldb --binary %t -- %s
88

99
//// Check that escaped local 'param' in function 'fun' has sensible debug info
1010
//// after the escaping function 'use' gets arg promotion (int* -> int). Currently

cross-project-tests/debuginfo-tests/dexter-tests/memvars/merged-store.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33

44
// REQUIRES: lldb
55
// UNSUPPORTED: system-windows
6-
// RUN: %dexter --fail-lt 1.0 -w --debugger lldb \
7-
// RUN: --builder 'clang-c' --cflags "-O3 -glldb" -- %s
6+
// RUN: %clang -std=gnu11 -O3 -glldb %s -o %t
7+
// RUN: %dexter --fail-lt 1.0 -w --debugger lldb --binary %t -- %s
88

99
// 1. parama is escaped by esc(&parama) so it is not promoted by
1010
// SROA/mem2reg.

cross-project-tests/debuginfo-tests/dexter-tests/memvars/ptr-to.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44

55
// REQUIRES: lldb
66
// UNSUPPORTED: system-windows
7-
// RUN: %dexter --fail-lt 1.0 -w --debugger lldb \
8-
// RUN: --builder clang-c --cflags "-O2 -glldb" -- %s
7+
// RUN: %clang -std=gnu11 -O2 -glldb %s -o %t
8+
// RUN: %dexter --fail-lt 1.0 -w --debugger lldb --binary %t -- %s
99
//
1010
//// Check that a pointer to a variable living on the stack dereferences to the
1111
//// variable value.

cross-project-tests/debuginfo-tests/dexter-tests/memvars/struct-dse.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44

55
// REQUIRES: lldb
66
// UNSUPPORTED: system-windows
7-
// RUN: %dexter --fail-lt 1.0 -w --debugger lldb \
8-
// RUN: --builder clang-c --cflags "-O2 -glldb" -- %s
7+
// RUN: %clang -std=gnu11 -O2 -glldb %s -o %t
8+
// RUN: %dexter --fail-lt 1.0 -w --debugger lldb --binary %t -- %s
99
//
1010
//// Check debug-info for the escaped struct variable num is reasonable.
1111

cross-project-tests/debuginfo-tests/dexter-tests/memvars/unused-merged-value.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55

66
// REQUIRES: lldb
77
// UNSUPPORTED: system-windows
8-
// RUN: %dexter --fail-lt 0.1 -w --debugger lldb \
9-
// RUN: --builder 'clang-c' --cflags "-O3 -glldb" -- %s
8+
// RUN: %clang -std=gnu11 -O3 -glldb %s -o %t
9+
// RUN: %dexter --fail-lt 0.1 -w --debugger lldb --binary %t -- %s
1010
// See NOTE at end for more info about the RUN command.
1111

1212
// 1. SROA/mem2reg fully promotes parama.

cross-project-tests/debuginfo-tests/dexter-tests/namespace.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
// REQUIRES: lldb
66
// UNSUPPORTED: system-windows
77

8+
// RUN: %clang -g -O0 %s -o %t
89
// RUN: %dexter --fail-lt 1.0 -w \
9-
// RUN: --builder 'clang' --debugger 'lldb' \
10-
// RUN: --cflags "-g -O0" -v -- %s
10+
// RUN: --binary %t --debugger 'lldb' -v -- %s
1111

1212
#include <stdio.h>
1313

cross-project-tests/debuginfo-tests/dexter-tests/nrvo-string.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@
77
// Zorg configures the ASAN stage2 bots to not build the asan
88
// compiler-rt. Only run this test on non-asanified configurations.
99
//
10+
// RUN: %clang -std=gnu++11 -O0 -glldb -fno-exceptions %s -o %t
1011
// RUN: %dexter --fail-lt 1.0 -w \
11-
// RUN: --builder 'clang' --debugger 'lldb' \
12-
// RUN: --cflags "-O0 -glldb -fno-exceptions" -- %s
12+
// RUN: --binary %t --debugger 'lldb' -- %s
1313
//
14+
// RUN: %clang -std=gnu++11 -O1 -glldb -fno-exceptions %s -o %t
1415
// RUN: %dexter --fail-lt 1.0 -w \
15-
// RUN: --builder 'clang' --debugger 'lldb' \
16-
// RUN: --cflags "-O1 -glldb -fno-exceptions" -- %s
16+
// RUN: --binary %t --debugger 'lldb' -- %s
1717
//
1818
// PR34513
1919
volatile int sideeffect = 0;

cross-project-tests/debuginfo-tests/dexter-tests/nrvo.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
//
44
// REQUIRES: system-windows
55
//
6-
// RUN: %dexter --fail-lt 1.0 -w --builder 'clang-cl_vs2015' \
7-
// RUN: --debugger 'dbgeng' --cflags '/Z7 /Zi' --ldflags '/Z7 /Zi' -- %s
6+
// RUN: %clang_cl /Z7 /Zi %s -o %t
7+
// RUN: %dexter --fail-lt 1.0 -w --binary %t --debugger 'dbgeng' -- %s
88

99
struct string {
1010
string() {}

cross-project-tests/debuginfo-tests/dexter-tests/optnone-fastmath.cpp

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
1+
// RUN: %clang -std=gnu++11 -O2 -ffast-math -g %s -o %t
12
// RUN: %dexter --fail-lt 1.0 -w \
2-
// RUN: --builder 'clang' --debugger 'lldb' \
3-
// RUN: --cflags "-ffast-math -O2 -g" -- %s
3+
// RUN: --binary %t --debugger 'lldb' -- %s
4+
// RUN: %clang -std=gnu++11 -O0 -ffast-math -g %s -o %t
45
// RUN: %dexter --fail-lt 1.0 -w \
5-
// RUN: --builder 'clang' --debugger 'lldb' \
6-
// RUN: --cflags "-ffast-math -O0 -g" -- %s
6+
// RUN: --binary %t --debugger 'lldb' -- %s
77

88
// REQUIRES: lldb
9-
// UNSUPPORTED: system-windows
9+
// Currently getting intermittent failures on darwin.
10+
// UNSUPPORTED: system-windows, system-darwin
1011

1112
//// Check that the debugging experience with __attribute__((optnone)) at O2
1213
//// matches O0. Test scalar floating point arithmetic with -ffast-math.

cross-project-tests/debuginfo-tests/dexter-tests/optnone-loops.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
// UNSUPPORTED: system-windows
66
// UNSUPPORTED: system-darwin
77

8+
// RUN: %clang -std=gnu++11 -O2 -g %s -o %t
89
// RUN: %dexter --fail-lt 1.0 -w \
9-
// RUN: --builder 'clang' --debugger 'lldb' \
10-
// RUN: --cflags "-O2 -g" -- %s
10+
// RUN: --binary %t --debugger 'lldb' -- %s
1111

1212
// A simple loop of assignments.
1313
// With optimization level > 0 the compiler reorders basic blocks

cross-project-tests/debuginfo-tests/dexter-tests/optnone-simple-functions.cpp

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
1+
// RUN: %clang++ -std=gnu++11 -O2 -g %s -o %t
12
// RUN: %dexter --fail-lt 1.0 -w \
2-
// RUN: --builder 'clang' --debugger 'lldb' \
3-
// RUN: --cflags "-O2 -g" -- %s
3+
// RUN: --binary %t --debugger 'lldb' -- %s
4+
// RUN: %clang++ -std=gnu++11 -O0 -g %s -o %t
45
// RUN: %dexter --fail-lt 1.0 -w \
5-
// RUN: --builder 'clang' --debugger 'lldb' \
6-
// RUN: --cflags "-O0 -g" -- %s
6+
// RUN: --binary %t --debugger 'lldb' -- %s
77

88
// REQUIRES: lldb, D136396
9-
// UNSUPPORTED: system-windows
9+
// Currently getting intermittent failures on darwin.
10+
// UNSUPPORTED: system-windows, system-darwin
1011

1112
//// Check that the debugging experience with __attribute__((optnone)) at O2
1213
//// matches O0. Test simple functions performing simple arithmetic

cross-project-tests/debuginfo-tests/dexter-tests/optnone-struct-and-methods.cpp

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
1+
// RUN: %clang++ -std=gnu++11 -O2 -g %s -o %t
12
// RUN: %dexter --fail-lt 1.0 -w \
2-
// RUN: --builder 'clang' --debugger 'lldb' \
3-
// RUN: --cflags "-g -O2" -v -- %s
3+
// RUN: --binary %t --debugger 'lldb' -v -- %s
4+
// RUN: %clang++ -std=gnu++11 -O0 -g %s -o %t
45
// RUN: %dexter --fail-lt 1.0 -w \
5-
// RUN: --builder 'clang' --debugger 'lldb' \
6-
// RUN: --cflags "-g -O0" -- %s
6+
// RUN: --binary %t --debugger 'lldb' -- %s
77

88
// REQUIRES: lldb
9-
// UNSUPPORTED: system-windows
9+
// Currently getting intermittent failures on darwin.
10+
// UNSUPPORTED: system-windows, system-darwin
1011

1112
//// Check that the debugging experience with __attribute__((optnone)) at O2
1213
//// matches O0. Test simple structs and methods.

cross-project-tests/debuginfo-tests/dexter-tests/optnone-vectors-and-functions.cpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
1+
// RUN: %clang++ -std=gnu++11 -O2 -g %s -o %t
12
// RUN: %dexter --fail-lt 1.0 -w \
2-
// RUN: --builder 'clang' --debugger 'lldb' \
3-
// RUN: --cflags "-g -O2" -v -- %s
3+
// RUN: --binary %t --debugger 'lldb' -v -- %s
4+
// RUN: %clang++ -std=gnu++11 -O0 -g %s -o %t
45
// RUN: %dexter --fail-lt 1.0 -w \
5-
// RUN: --builder 'clang' --debugger 'lldb' \
6-
// RUN: --cflags "-g -O0" -- %s
6+
// RUN: --binary %t --debugger 'lldb' -- %s
77

88
// REQUIRES: lldb
9-
// UNSUPPORTED: system-windows
9+
// Currently getting intermittent failures on darwin.
10+
// UNSUPPORTED: system-windows, system-darwin
1011

1112
//// Check that the debugging experience with __attribute__((optnone)) at O2
1213
//// matches O0. Test simple template functions performing simple arithmetic
@@ -77,12 +78,11 @@ T test2(T x, T y) {
7778
// DexExpectWatchValue('tmp[1]', 8, on_line=ref('break_2'))
7879
// DexExpectWatchValue('tmp[2]', 10, on_line=ref('break_2'))
7980
// DexExpectWatchValue('tmp[3]', 12, on_line=ref('break_2'))
80-
// DexLimitSteps('i', 3, on_line=ref('break_3'))
81+
// DexLimitSteps('i', 3, from_line=ref('break_3'), to_line=ref('break_5'))
8182
// DexExpectWatchValue('tmp[0]', 63, on_line=ref('break_3'))
8283
// DexExpectWatchValue('tmp[1]', 94, on_line=ref('break_3'))
8384
// DexExpectWatchValue('tmp[2]', 95, on_line=ref('break_3'))
8485
// DexExpectWatchValue('tmp[3]', 120, on_line=ref('break_3'))
85-
// DexLimitSteps('i', 3, on_line=ref('break_5'))
8686
// DexExpectWatchValue('tmp[0]', 15, on_line=ref('break_5'))
8787

8888
template<typename T>

0 commit comments

Comments
 (0)