diff --git a/bolt/test/X86/Inputs/dwarf4-df-dualcu-helper.s b/bolt/test/X86/Inputs/dwarf4-df-dualcu-helper.s --- a/bolt/test/X86/Inputs/dwarf4-df-dualcu-helper.s +++ b/bolt/test/X86/Inputs/dwarf4-df-dualcu-helper.s @@ -1,3 +1,14 @@ +# clang++ -g -gdwarf-4 -emit-llvm -S helper.cpp +# llc -O0 -mtriple=x86_64-unknown-linux-gnu helper.ll +# int z = 0; +# int d = 0; +# +# int helper(int z_, int d_) { +# z += z_; +# d += d_; +# return z * d; +# } + .text .file "helper.cpp" .file 1 "." "helper.cpp" diff --git a/bolt/test/X86/Inputs/dwarf4-df-dualcu-loclist-helper.s b/bolt/test/X86/Inputs/dwarf4-df-dualcu-loclist-helper.s --- a/bolt/test/X86/Inputs/dwarf4-df-dualcu-loclist-helper.s +++ b/bolt/test/X86/Inputs/dwarf4-df-dualcu-loclist-helper.s @@ -1,3 +1,14 @@ +# clang++ -g -gdwarf-4 -emit-llvm -S helper.cpp +# llc -O2 -mtriple=x86_64-unknown-linux-gnu helper.ll +# int z = 0; +# int d = 0; +# +# int helper(int z_, int d_) { +# z += z_; +# d += d_; +# return z * d; +# } + .text .file "helper.cpp" .file 1 "." "helper.cpp" diff --git a/bolt/test/X86/Inputs/dwarf4-df-dualcu-loclist-main.s b/bolt/test/X86/Inputs/dwarf4-df-dualcu-loclist-main.s --- a/bolt/test/X86/Inputs/dwarf4-df-dualcu-loclist-main.s +++ b/bolt/test/X86/Inputs/dwarf4-df-dualcu-loclist-main.s @@ -1,3 +1,20 @@ +# clang++ -g -gdwarf-4 -emit-llvm -S main.cpp +# llc -O2 -mtriple=x86_64-unknown-linux-gnu main.ll +# void use(int * x, int * y) { +# *x += 4; +# *y -= 2; +# } +# +# int helper(int z_, int d_); +# int x = 0; +# int y = 1; +# int main(int argc, char *argv[]) { +# x = argc; +# y = argc + 3; +# use(&x, &y); +# return helper(x, y); +# } + .text .file "main.cpp" .file 1 "." "main.cpp" diff --git a/bolt/test/X86/Inputs/dwarf4-df-dualcu-main.s b/bolt/test/X86/Inputs/dwarf4-df-dualcu-main.s --- a/bolt/test/X86/Inputs/dwarf4-df-dualcu-main.s +++ b/bolt/test/X86/Inputs/dwarf4-df-dualcu-main.s @@ -1,3 +1,20 @@ +# clang++ -g -gdwarf-4 -emit-llvm -S main.cpp +# llc -O0 -mtriple=x86_64-unknown-linux-gnu main.ll +# void use(int * x, int * y) { +# *x += 4; +# *y -= 2; +# } +# +# int helper(int z_, int d_); +# int x = 0; +# int y = 1; +# int main(int argc, char *argv[]) { +# x = argc; +# y = argc + 3; +# use(&x, &y); +# return helper(x, y); +# } + .text .file "main.cpp" .file 1 "." "main.cpp" diff --git a/bolt/test/X86/Inputs/dwarf5-df-dualcu-helper.s b/bolt/test/X86/Inputs/dwarf5-df-dualcu-helper.s --- a/bolt/test/X86/Inputs/dwarf5-df-dualcu-helper.s +++ b/bolt/test/X86/Inputs/dwarf5-df-dualcu-helper.s @@ -1,3 +1,14 @@ +# clang++ -g -gdwarf-5 -emit-llvm -S helper.cpp +# llc -O0 -mtriple=x86_64-unknown-linux-gnu helper.ll +# int z = 0; +# int d = 0; +# +# int helper(int z_, int d_) { +# z += z_; +# d += d_; +# return z * d; +# } + .text .file "helper.cpp" .file 0 "." "helper.cpp" md5 0xe635924a35b65444173d0c76a54b866f diff --git a/bolt/test/X86/Inputs/dwarf5-df-dualcu-loclist-helper.s b/bolt/test/X86/Inputs/dwarf5-df-dualcu-loclist-helper.s --- a/bolt/test/X86/Inputs/dwarf5-df-dualcu-loclist-helper.s +++ b/bolt/test/X86/Inputs/dwarf5-df-dualcu-loclist-helper.s @@ -1,3 +1,14 @@ +# clang++ -g -gdwarf-5 -emit-llvm -S helper.cpp +# llc -O2 -mtriple=x86_64-unknown-linux-gnu helper.ll +# int z = 0; +# int d = 0; +# +# int helper(int z_, int d_) { +# z += z_; +# d += d_; +# return z * d; +# } + .text .file "helper.cpp" .file 0 "." "helper.cpp" md5 0xe635924a35b65444173d0c76a54b866f diff --git a/bolt/test/X86/Inputs/dwarf5-df-dualcu-loclist-main.s b/bolt/test/X86/Inputs/dwarf5-df-dualcu-loclist-main.s --- a/bolt/test/X86/Inputs/dwarf5-df-dualcu-loclist-main.s +++ b/bolt/test/X86/Inputs/dwarf5-df-dualcu-loclist-main.s @@ -1,3 +1,20 @@ +# clang++ -g -gdwarf-5 -emit-llvm -S main.cpp +# llc -O2 -mtriple=x86_64-unknown-linux-gnu main.ll +# void use(int * x, int * y) { +# *x += 4; +# *y -= 2; +# } +# +# int helper(int z_, int d_); +# int x = 0; +# int y = 1; +# int main(int argc, char *argv[]) { +# x = argc; +# y = argc + 3; +# use(&x, &y); +# return helper(x, y); +# } + .text .file "main.cpp" .file 0 "." "main.cpp" md5 0x1f627913a0daee879e00a3a51726f0ef diff --git a/bolt/test/X86/Inputs/dwarf5-df-dualcu-main.s b/bolt/test/X86/Inputs/dwarf5-df-dualcu-main.s --- a/bolt/test/X86/Inputs/dwarf5-df-dualcu-main.s +++ b/bolt/test/X86/Inputs/dwarf5-df-dualcu-main.s @@ -1,3 +1,20 @@ +# clang++ -g -gdwarf-5 -emit-llvm -S main.cpp +# llc -O0 -mtriple=x86_64-unknown-linux-gnu main.ll +# void use(int * x, int * y) { +# *x += 4; +# *y -= 2; +# } +# +# int helper(int z_, int d_); +# int x = 0; +# int y = 1; +# int main(int argc, char *argv[]) { +# x = argc; +# y = argc + 3; +# use(&x, &y); +# return helper(x, y); +# } + .text .file "main.cpp" .file 0 "." "main.cpp" md5 0x1f627913a0daee879e00a3a51726f0ef diff --git a/bolt/test/X86/Inputs/dwarf5-df-mono-helper.s b/bolt/test/X86/Inputs/dwarf5-df-mono-helper.s --- a/bolt/test/X86/Inputs/dwarf5-df-mono-helper.s +++ b/bolt/test/X86/Inputs/dwarf5-df-mono-helper.s @@ -1,3 +1,14 @@ +# clang++ -g -gdwarf-5 -emit-llvm -S helper.cpp +# llc -O0 -mtriple=x86_64-unknown-linux-gnu helper.ll +# int z = 0; +# int d = 0; +# +# int helper(int z_, int d_) { +# z += z_; +# d += d_; +# return z * d; +# } + .text .file "helper.cpp" .file 0 "." "helper.cpp" md5 0xe635924a35b65444173d0c76a54b866f diff --git a/bolt/test/X86/Inputs/dwarf5-df-mono-main.s b/bolt/test/X86/Inputs/dwarf5-df-mono-main.s --- a/bolt/test/X86/Inputs/dwarf5-df-mono-main.s +++ b/bolt/test/X86/Inputs/dwarf5-df-mono-main.s @@ -1,3 +1,20 @@ +# clang++ -g -gdwarf-5 -gsplit-dwarf=split -emit-llvm -S main.cpp +# llc -O0 -mtriple=x86_64-unknown-linux-gnu main.ll +# void use(int * x, int * y) { +# *x += 4; +# *y -= 2; +# } +# +# int helper(int z_, int d_); +# int x = 0; +# int y = 1; +# int main(int argc, char *argv[]) { +# x = argc; +# y = argc + 3; +# use(&x, &y); +# return helper(x, y); +# } + .text .file "main.cpp" .file 0 "." "main.cpp" md5 0x1f627913a0daee879e00a3a51726f0ef diff --git a/bolt/test/X86/dwarf5-df-dualcu.test b/bolt/test/X86/dwarf5-df-dualcu.test --- a/bolt/test/X86/dwarf5-df-dualcu.test +++ b/bolt/test/X86/dwarf5-df-dualcu.test @@ -111,7 +111,6 @@ ; BOLT-DWO-MAIN-NEXT: DW_AT_frame_base [DW_FORM_exprloc] (DW_OP_reg6 RBP) ; BOLT-DWO-MAIN-NEXT: DW_AT_name [DW_FORM_strx1] (indexed (00000005) string = "main") - ; PRE-BOLT-DWO-HELPER: version = 0x0005 ; PRE-BOLT-DWO-HELPER: DW_TAG_variable [2] ; PRE-BOLT-DWO-HELPER-NEXT: DW_AT_name [DW_FORM_strx1] (indexed (00000000) string = "z")