Skip to content

Commit dd21ffe

Browse files
committed
Fixups
1 parent c4d1c6d commit dd21ffe

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

libunwind/test/aarch64_vg_unwind.pass.cpp

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// -*- C++ -*-
21
//===----------------------------------------------------------------------===//
32
//
43
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
@@ -20,7 +19,7 @@
2019

2120
__attribute__((noinline)) void baz() {
2221
// The previous value of VG is 2
23-
asm volatile(".cfi_escape 0x16, 0x2e, 0x01, 0x32");
22+
asm(".cfi_escape 0x16, 0x2e, 0x01, 0x32");
2423

2524
unw_context_t context;
2625
unw_cursor_t cursor;
@@ -44,19 +43,19 @@ __attribute__((noinline)) void qux() { baz(); }
4443

4544
__attribute__((noinline)) void bar() {
4645
// The previous value of VG is 8
47-
asm volatile(".cfi_escape 0x16, 0x2e, 0x01, 0x38");
46+
asm(".cfi_escape 0x16, 0x2e, 0x01, 0x38");
4847
// The previous value of W21 is VG (used to force an evaluation of VG).
49-
asm volatile(".cfi_escape 0x16, 0x15, 0x03, 0x92, 0x2e, 0x00");
48+
asm(".cfi_escape 0x16, 0x15, 0x03, 0x92, 0x2e, 0x00");
5049

5150
// smstop sm
5251
qux();
5352
// smstart sm
5453
}
5554
__attribute__((noinline)) void foo() {
5655
// The previous value of VG is 2
57-
asm volatile(".cfi_escape 0x16, 0x2e, 0x01, 0x32");
56+
asm(".cfi_escape 0x16, 0x2e, 0x01, 0x32");
5857
// The previous value of W21 is VG (used to force an evaluation of VG).
59-
asm volatile(".cfi_escape 0x16, 0x15, 0x03, 0x92, 0x2e, 0x00");
58+
asm(".cfi_escape 0x16, 0x15, 0x03, 0x92, 0x2e, 0x00");
6059

6160
// smstart sm
6261
bar();

0 commit comments

Comments
 (0)