cui 1f83848a4c
dwarf/op: fix DW_OP_shr and DW_OP_shra evaluation (#4296)
* dwarf/op: fix DW_OP_shr and DW_OP_shra evaluation

DW_OP_shr must perform a logical right shift (zero-fill) and DW_OP_shra an
arithmetic right shift (sign-extend). The two cases were swapped, so
negative values were wrong for location expressions.

Add a regression test that exercises both opcodes with a negative value.

* add,space,trigger ci

* revert

* Update go.mod

* Update go.mod
2026-03-25 10:38:54 -07:00
..