CTS: Fix VM-tests new-instance VFE7 test
Rewrite the test to actually test what the constraint intends.
Bug: 22404333
Bug: 22411633
(cherry picked from commit 7ece45293b09faec9226e8917d62b1ea3a2e0f5c)
Change-Id: I258cd271d3cd0700ae4d5903656f755cac68a58c
diff --git a/tools/vm-tests-tf/src/dot/junit/opcodes/new_instance/d/T_new_instance_11.d b/tools/vm-tests-tf/src/dot/junit/opcodes/new_instance/d/T_new_instance_11.d
index 75fb804..0506be0 100644
--- a/tools/vm-tests-tf/src/dot/junit/opcodes/new_instance/d/T_new_instance_11.d
+++ b/tools/vm-tests-tf/src/dot/junit/opcodes/new_instance/d/T_new_instance_11.d
@@ -28,13 +28,16 @@
.limit regs 6
const v4, 5
- move-object v1, v5
-Label0:
- move-object v0, v1
+ goto LabelEntry
+
+LabelBwd:
+ invoke-virtual {v1}, java/lang/Object/hashCode()I
+
+LabelEntry:
new-instance v1, java/lang/Integer
-
+
add-int/lit8 v4, v4, -1
- if-nez v4, Label0
+ if-nez v4, LabelBwd
invoke-direct {v1, v4}, java/lang/Integer/<init>(I)V
return-void