Prevent redundant field load elimination in 593-checker-long-2-float-regression

Test: art/test/testrunner/testrunner.py -b --host -t 593
Change-Id: I4517d3df0bad3a93aa5cb4e38900e5bc16b784c3
diff --git a/test/593-checker-long-2-float-regression/src/Main.java b/test/593-checker-long-2-float-regression/src/Main.java
index 9c07f3d..b31cbde 100644
--- a/test/593-checker-long-2-float-regression/src/Main.java
+++ b/test/593-checker-long-2-float-regression/src/Main.java
@@ -37,10 +37,15 @@
   static float $noinline$longToFloat() {
     if (doThrow) { throw new Error(); }
     longValue = $inline$returnConst();
+    // This call prevents D8 from replacing the result of the sget instruction
+    // in line 43 by the result of the call to $inline$returnConst() in line 39.
+    $inline$preventRedundantFieldLoadEliminationInD8();
     return (float) longValue;
   }
 
   static long $inline$returnConst() {
     return 1L;
   }
+
+  static void $inline$preventRedundantFieldLoadEliminationInD8() {}
 }