Skip to content

Commit d90635c

Browse files
author
Chen Zheng
committed
address comments
1 parent f839048 commit d90635c

File tree

1 file changed

+28
-23
lines changed

1 file changed

+28
-23
lines changed

llvm/test/DebugInfo/Symbolize/XCOFF/xcoff-symbolize-data.ll

+28-23
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
1+
; REQUIRES: powerpc-registered-target
12
; RUN: llc -filetype=obj -o %t -mtriple=powerpc-aix-ibm-xcoff < %s
23
; RUN: llvm-symbolizer --obj=%t 'DATA 0x60' 'DATA 0x61' 'DATA 0x64' 'DATA 0X68' \
3-
; RUN: 'DATA 0x90' 'DATA 0x94' 'DATA 0X98' | FileCheck %s
4+
; RUN: 'DATA 0x90' 'DATA 0x94' 'DATA 0X98' | \
5+
; RUN: FileCheck %s
6+
7+
;; This files tests llvm-symbolizer can successfully symbolize the data symbol
8+
;; from the DWARF info on AIX. Note that AIX is big endian.
49

510
; CHECK: bss_global
611
; CHECK-NEXT: 96 4
@@ -22,43 +27,43 @@
2227
; CHECK-NEXT: /t.cpp:4
2328
; CHECK-EMPTY:
2429

25-
; FIXME: fix the wrong size 152
30+
;; FIXME: fix the wrong size 152
2631
; CHECK: f()::function_global
2732
; CHECK-NEXT: 144 152
2833
; CHECK-NEXT: /t.cpp:8
2934
; CHECK-EMPTY:
3035

31-
; FIXME: fix the wrong size 152
36+
;; FIXME: fix the wrong size 152
3237
; CHECK: beta
3338
; CHECK-NEXT: 148 152
3439
; CHECK-NEXT: /t.cpp:13
3540
; CHECK-EMPTY:
3641

37-
; FIXME: fix the wrong size 152
42+
;; FIXME: fix the wrong size 152
3843
; CHECK: alpha
3944
; CHECK-NEXT: 152 152
4045
; CHECK-NEXT: /t.cpp:12
4146
; CHECK-EMPTY:
4247

43-
; The case is from `test/tools/llvm-symbolizer/data-location.yaml`, compiled with:
44-
; clang++ -g -gdwarf-3 -O3 t.cpp -nostdlib -target powerpc-aix-ibm-xcoff -S -emit-llvm
45-
46-
; cat t.cpp
47-
; 1 int bss_global;
48-
; 2 int data_global = 2;
49-
; 3
50-
; 4 const char* str =
51-
; 5 "12345678";
52-
; 6
53-
; 7 int* f() {
54-
; 8 static int function_global;
55-
; 9 return &function_global;
56-
; 10 }
57-
; 11
58-
; 12 static int alpha;
59-
; 13 static int beta;
60-
; 14 int *f(bool b) { return beta ? &alpha : &beta; }
61-
; 15
48+
;; The case is from `test/tools/llvm-symbolizer/data-location.yaml`, compiled with:
49+
;; clang++ -g -gdwarf-3 -O3 t.cpp -nostdlib -target powerpc-aix-ibm-xcoff -S -emit-llvm
50+
51+
;; cat t.cpp
52+
;; 1 int bss_global;
53+
;; 2 int data_global = 2;
54+
;; 3
55+
;; 4 const char* str =
56+
;; 5 "12345678";
57+
;; 6
58+
;; 7 int* f() {
59+
;; 8 static int function_global;
60+
;; 9 return &function_global;
61+
;; 10 }
62+
;; 11
63+
;; 12 static int alpha;
64+
;; 13 static int beta;
65+
;; 14 int *f(bool b) { return beta ? &alpha : &beta; }
66+
;; 15
6267

6368
; ModuleID = 't.cpp'
6469
source_filename = "t.cpp"

0 commit comments

Comments
 (0)