x86/x86-64: Fix BoundsCheck slow path clobbering EDX/RDX.

Test: New run-test 731-bounds-check-slow-path.
Test: m test-art-host-gtest
Test: testrunner.py --host --optimizing --interpreter --jit --jvm
Bug: 227613778
Bug: 227365246
Bug: 216608614
Bug: 216629762
Change-Id: Ia5fd372128f4c5d40a482491b7f9a4b8772f579c
diff --git a/test/731-bounds-check-slow-path/info.txt b/test/731-bounds-check-slow-path/info.txt
new file mode 100644
index 0000000..0129f67
--- /dev/null
+++ b/test/731-bounds-check-slow-path/info.txt
@@ -0,0 +1,3 @@
+Regression tests for x86-64 bug in bounds check slow path that resulted
+in a live register being clobbered when throwing AIOOBE. The value must
+be correctly preserved for a catch handler in the same method.