summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAlon Zakai <azakai@google.com>2020-01-16 15:51:32 -0800
committerGitHub <noreply@github.com>2020-01-16 15:51:32 -0800
commit0ec999db121197d7da242dd4a1136997e02c67cc (patch)
tree603292a1441e3cd39157eb258f233f44f1a31a21 /test
parent0848a27fdecf3ffd5170986dceec7ba04c4e50a0 (diff)
downloadbinaryen-0ec999db121197d7da242dd4a1136997e02c67cc.tar.gz
binaryen-0ec999db121197d7da242dd4a1136997e02c67cc.tar.bz2
binaryen-0ec999db121197d7da242dd4a1136997e02c67cc.zip
DWARF: high_pc computation (#2595)
Update high_pc values. These are interesting as they may be a relative offset compared to the low_pc. For functions we already had both a start and an end. Add such tracking for instructions as well.
Diffstat (limited to 'test')
-rw-r--r--test/passes/dwarfdump_roundtrip_dwarfdump.bin.txt4
-rw-r--r--test/passes/fannkuch3.bin.txt6
-rw-r--r--test/passes/fannkuch3_manyopts.bin.txt6
-rw-r--r--test/passes/fib2.bin.txt2
-rw-r--r--test/passes/ignore_missing_func.bin.txt6
5 files changed, 12 insertions, 12 deletions
diff --git a/test/passes/dwarfdump_roundtrip_dwarfdump.bin.txt b/test/passes/dwarfdump_roundtrip_dwarfdump.bin.txt
index b20e0cf35..b6329275d 100644
--- a/test/passes/dwarfdump_roundtrip_dwarfdump.bin.txt
+++ b/test/passes/dwarfdump_roundtrip_dwarfdump.bin.txt
@@ -138,11 +138,11 @@ Abbrev table for offset: 0x00000000
DW_AT_stmt_list [DW_FORM_sec_offset] (0x00000000)
DW_AT_comp_dir [DW_FORM_strp] ( .debug_str[0x0000009b] = "/usr/local/google/home/azakai/Dev/emscripten")
DW_AT_low_pc [DW_FORM_addr] (0x0000000000000000)
- DW_AT_high_pc [DW_FORM_data4] (0x00000002)
+ DW_AT_high_pc [DW_FORM_data4] (0x00000000)
0x00000026: DW_TAG_subprogram [2]
DW_AT_low_pc [DW_FORM_addr] (0x0000000000000000)
- DW_AT_high_pc [DW_FORM_data4] (0x00000002)
+ DW_AT_high_pc [DW_FORM_data4] (0x00000000)
DW_AT_linkage_name [DW_FORM_strp] ( .debug_str[0x000000c8] = "_Z3foov")
DW_AT_name [DW_FORM_strp] ( .debug_str[0x000000d0] = "foo")
DW_AT_decl_file [DW_FORM_data1] ("/usr/local/google/home/azakai/Dev/emscripten/a.cpp")
diff --git a/test/passes/fannkuch3.bin.txt b/test/passes/fannkuch3.bin.txt
index fce67fe07..a2737ab9d 100644
--- a/test/passes/fannkuch3.bin.txt
+++ b/test/passes/fannkuch3.bin.txt
@@ -2534,7 +2534,7 @@ Abbrev table for offset: 0x00000000
0x00000082: DW_TAG_subprogram [10] *
DW_AT_low_pc [DW_FORM_addr] (0x0000000000000006)
- DW_AT_high_pc [DW_FORM_data4] (0x00000397)
+ DW_AT_high_pc [DW_FORM_data4] (0x00000383)
DW_AT_frame_base [DW_FORM_exprloc] (DW_OP_WASM_location 0x1 +0, DW_OP_stack_value)
DW_AT_GNU_all_call_sites [DW_FORM_flag_present] (true)
DW_AT_linkage_name [DW_FORM_strp] ( .debug_str[0x00000166] = "_Z15fannkuch_workerPv")
@@ -2818,7 +2818,7 @@ Abbrev table for offset: 0x00000000
0x0000023b: DW_TAG_subprogram [23] *
DW_AT_low_pc [DW_FORM_addr] (0x000000000000038b)
- DW_AT_high_pc [DW_FORM_data4] (0x00000342)
+ DW_AT_high_pc [DW_FORM_data4] (0x000002fb)
DW_AT_frame_base [DW_FORM_exprloc] (DW_OP_WASM_location 0x0 +2, DW_OP_stack_value)
DW_AT_GNU_all_call_sites [DW_FORM_flag_present] (true)
DW_AT_name [DW_FORM_strp] ( .debug_str[0x0000018c] = "main")
@@ -2851,7 +2851,7 @@ Abbrev table for offset: 0x00000000
0x00000278: DW_TAG_inlined_subroutine [24] *
DW_AT_abstract_origin [DW_FORM_ref4] (cu + 0x01a8 => {0x000001a8} "_ZL8fannkuchi")
DW_AT_low_pc [DW_FORM_addr] (0x00000000000003c6)
- DW_AT_high_pc [DW_FORM_data4] (0x000002c8)
+ DW_AT_high_pc [DW_FORM_data4] (0x0000026d)
DW_AT_call_file [DW_FORM_data1] ("/usr/local/google/home/azakai/Dev/emscripten/tests/fannkuch.cpp")
DW_AT_call_line [DW_FORM_data1] (159)
DW_AT_call_column [DW_FORM_data1] (0x29)
diff --git a/test/passes/fannkuch3_manyopts.bin.txt b/test/passes/fannkuch3_manyopts.bin.txt
index 7f9bacbd0..962aada36 100644
--- a/test/passes/fannkuch3_manyopts.bin.txt
+++ b/test/passes/fannkuch3_manyopts.bin.txt
@@ -2534,7 +2534,7 @@ Abbrev table for offset: 0x00000000
0x00000082: DW_TAG_subprogram [10] *
DW_AT_low_pc [DW_FORM_addr] (0x0000000000000007)
- DW_AT_high_pc [DW_FORM_data4] (0x00000397)
+ DW_AT_high_pc [DW_FORM_data4] (0x00000353)
DW_AT_frame_base [DW_FORM_exprloc] (DW_OP_WASM_location 0x1 +0, DW_OP_stack_value)
DW_AT_GNU_all_call_sites [DW_FORM_flag_present] (true)
DW_AT_linkage_name [DW_FORM_strp] ( .debug_str[0x00000166] = "_Z15fannkuch_workerPv")
@@ -2818,7 +2818,7 @@ Abbrev table for offset: 0x00000000
0x0000023b: DW_TAG_subprogram [23] *
DW_AT_low_pc [DW_FORM_addr] (0x000000000000035c)
- DW_AT_high_pc [DW_FORM_data4] (0x00000342)
+ DW_AT_high_pc [DW_FORM_data4] (0x000002cf)
DW_AT_frame_base [DW_FORM_exprloc] (DW_OP_WASM_location 0x0 +2, DW_OP_stack_value)
DW_AT_GNU_all_call_sites [DW_FORM_flag_present] (true)
DW_AT_name [DW_FORM_strp] ( .debug_str[0x0000018c] = "main")
@@ -2851,7 +2851,7 @@ Abbrev table for offset: 0x00000000
0x00000278: DW_TAG_inlined_subroutine [24] *
DW_AT_abstract_origin [DW_FORM_ref4] (cu + 0x01a8 => {0x000001a8} "_ZL8fannkuchi")
DW_AT_low_pc [DW_FORM_addr] (0x0000000000000000)
- DW_AT_high_pc [DW_FORM_data4] (0x000002c8)
+ DW_AT_high_pc [DW_FORM_data4] (0x00000000)
DW_AT_call_file [DW_FORM_data1] ("/usr/local/google/home/azakai/Dev/emscripten/tests/fannkuch.cpp")
DW_AT_call_line [DW_FORM_data1] (159)
DW_AT_call_column [DW_FORM_data1] (0x29)
diff --git a/test/passes/fib2.bin.txt b/test/passes/fib2.bin.txt
index c1fc6a6ac..22a0ccf5b 100644
--- a/test/passes/fib2.bin.txt
+++ b/test/passes/fib2.bin.txt
@@ -443,7 +443,7 @@ Abbrev table for offset: 0x00000000
0x00000082: DW_TAG_subprogram [6] *
DW_AT_low_pc [DW_FORM_addr] (0x000000000000003e)
- DW_AT_high_pc [DW_FORM_data4] (0x0000000a)
+ DW_AT_high_pc [DW_FORM_data4] (0x00000006)
DW_AT_frame_base [DW_FORM_exprloc] (DW_OP_WASM_location 0x1 +0, DW_OP_stack_value)
DW_AT_GNU_all_call_sites [DW_FORM_flag_present] (true)
DW_AT_name [DW_FORM_strp] ( .debug_str[0x000000a5] = "main")
diff --git a/test/passes/ignore_missing_func.bin.txt b/test/passes/ignore_missing_func.bin.txt
index 8fc468ea8..e1f766437 100644
--- a/test/passes/ignore_missing_func.bin.txt
+++ b/test/passes/ignore_missing_func.bin.txt
@@ -650,7 +650,7 @@ Abbrev table for offset: 0x00000000
0x0000004f: DW_TAG_subprogram [6] *
DW_AT_low_pc [DW_FORM_addr] (0x0000000000000005)
- DW_AT_high_pc [DW_FORM_data4] (0x0000005a)
+ DW_AT_high_pc [DW_FORM_data4] (0x00000056)
DW_AT_linkage_name [DW_FORM_strp] ( .debug_str[0x000000c4] = "_Z4usedi")
DW_AT_name [DW_FORM_strp] ( .debug_str[0x000000cd] = "used")
DW_AT_decl_file [DW_FORM_data1] ("/home/alon/Dev/emscripten/a.cpp")
@@ -669,7 +669,7 @@ Abbrev table for offset: 0x00000000
0x00000075: DW_TAG_subprogram [6] *
DW_AT_low_pc [DW_FORM_addr] (0x0000000000000000)
- DW_AT_high_pc [DW_FORM_data4] (0x0000005a)
+ DW_AT_high_pc [DW_FORM_data4] (0x00000000)
DW_AT_linkage_name [DW_FORM_strp] ( .debug_str[0x000000d2] = "_Z6unusedi")
DW_AT_name [DW_FORM_strp] ( .debug_str[0x000000dd] = "unused")
DW_AT_decl_file [DW_FORM_data1] ("/home/alon/Dev/emscripten/a.cpp")
@@ -688,7 +688,7 @@ Abbrev table for offset: 0x00000000
0x0000009b: DW_TAG_subprogram [8]
DW_AT_low_pc [DW_FORM_addr] (0x000000000000005c)
- DW_AT_high_pc [DW_FORM_data4] (0x00000064)
+ DW_AT_high_pc [DW_FORM_data4] (0x00000051)
DW_AT_name [DW_FORM_strp] ( .debug_str[0x000000e4] = "main")
DW_AT_decl_file [DW_FORM_data1] ("/home/alon/Dev/emscripten/a.cpp")
DW_AT_decl_line [DW_FORM_data1] (16)