OSDN Git Service

Set the type of a RegStorage correctly
authorMark Mendell <mark.p.mendell@intel.com>
Tue, 27 May 2014 19:52:21 +0000 (15:52 -0400)
committerMark Mendell <mark.p.mendell@intel.com>
Tue, 27 May 2014 19:52:21 +0000 (15:52 -0400)
This will be used as a FP value, so call the right function to create
the RegStorage.

Change-Id: I2bd832746afac509d20f195a7770f2fbd215cbd7
Signed-off-by: Mark Mendell <mark.p.mendell@intel.com>
compiler/dex/quick/x86/utility_x86.cc

index fed31c1..e6759ed 100644 (file)
@@ -559,7 +559,7 @@ LIR* X86Mir2Lir::LoadConstantWide(RegStorage r_dest, int64_t value) {
         // We don't know the proper offset for the value, so pick one that will force
         // 4 byte offset.  We will fix this up in the assembler later to have the right
         // value.
-        res = LoadBaseDisp(rl_method.reg, 256 /* bogus */, RegStorage::Solo64(low_reg_val),
+        res = LoadBaseDisp(rl_method.reg, 256 /* bogus */, RegStorage::FloatSolo64(low_reg_val),
                            kDouble);
         res->target = data_target;
         res->flags.fixup = kFixupLoad;