summaryrefslogtreecommitdiff
path: root/test/537-checker-arraycopy/src/Main.java
diff options
context:
space:
mode:
author Vladimir Marko <vmarko@google.com> 2016-08-12 13:37:55 +0100
committer Vladimir Marko <vmarko@google.com> 2016-08-23 11:41:44 +0100
commitccf06d8f19a37432de4a3b768747090adfbd18ec (patch)
treefcb3ba46184db6882e695cecf1cfe495417593ae /test/537-checker-arraycopy/src/Main.java
parentcf834d00de838272cf28f2382ffc26fe716aae5c (diff)
x86/x86-64: Avoid temporary for read barrier field load.
Add TEST instructions for memory and immediate. Use the byte version to avoid a temporary in read barrier field load. Test: Tested with ART_USE_READ_BARRIER=true on host. Test: Tested with ART_USE_READ_BARRIER=true ART_HEAP_POISONING=true on host. Bug: 29966877 Bug: 12687968 Change-Id: Ia415d3c2e1ae1ff6dff11d72bbb7d96d5deed6ee
Diffstat (limited to 'test/537-checker-arraycopy/src/Main.java')
-rw-r--r--test/537-checker-arraycopy/src/Main.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/537-checker-arraycopy/src/Main.java b/test/537-checker-arraycopy/src/Main.java
index 7c124caa8e..95a11ca010 100644
--- a/test/537-checker-arraycopy/src/Main.java
+++ b/test/537-checker-arraycopy/src/Main.java
@@ -51,10 +51,10 @@ public class Main {
/// CHECK-START-X86_64: void Main.arraycopy() disassembly (after)
/// CHECK: InvokeStaticOrDirect intrinsic:SystemArrayCopy
- /// CHECK-NOT: test
+ /// CHECK-NOT: test {{^[^\[].*}}, {{^[^\[].*}}
/// CHECK-NOT: call
/// CHECK: ReturnVoid
- // Checks that the call is intrinsified and that there is no test instruction
+ // Checks that the call is intrinsified and that there is no register test instruction
// when we know the source and destination are not null.
public static void arraycopy() {
Object[] obj = new Object[4];