|
| 1 | +; REQUIRES: powerpc-registered-target |
1 | 2 | ; RUN: llc -filetype=obj -o %t -mtriple=powerpc-aix-ibm-xcoff < %s
|
2 | 3 | ; 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. |
4 | 9 |
|
5 | 10 | ; CHECK: bss_global
|
6 | 11 | ; CHECK-NEXT: 96 4
|
|
22 | 27 | ; CHECK-NEXT: /t.cpp:4
|
23 | 28 | ; CHECK-EMPTY:
|
24 | 29 |
|
25 |
| -; FIXME: fix the wrong size 152 |
| 30 | +;; FIXME: fix the wrong size 152 |
26 | 31 | ; CHECK: f()::function_global
|
27 | 32 | ; CHECK-NEXT: 144 152
|
28 | 33 | ; CHECK-NEXT: /t.cpp:8
|
29 | 34 | ; CHECK-EMPTY:
|
30 | 35 |
|
31 |
| -; FIXME: fix the wrong size 152 |
| 36 | +;; FIXME: fix the wrong size 152 |
32 | 37 | ; CHECK: beta
|
33 | 38 | ; CHECK-NEXT: 148 152
|
34 | 39 | ; CHECK-NEXT: /t.cpp:13
|
35 | 40 | ; CHECK-EMPTY:
|
36 | 41 |
|
37 |
| -; FIXME: fix the wrong size 152 |
| 42 | +;; FIXME: fix the wrong size 152 |
38 | 43 | ; CHECK: alpha
|
39 | 44 | ; CHECK-NEXT: 152 152
|
40 | 45 | ; CHECK-NEXT: /t.cpp:12
|
41 | 46 | ; CHECK-EMPTY:
|
42 | 47 |
|
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 : β } |
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 : β } |
| 66 | +;; 15 |
62 | 67 |
|
63 | 68 | ; ModuleID = 't.cpp'
|
64 | 69 | source_filename = "t.cpp"
|
|
0 commit comments