Home
last modified time | relevance | path

Searched refs:shift (Results 1 – 25 of 44) sorted by relevance

12

/art/runtime/interpreter/mterp/arm64ng/
Darray.S1 %def op_aget(load="ldr", shift="2", data_offset="MIRROR_INT_ARRAY_DATA_OFFSET", wide="0", is_object…
15 add x0, x0, w1, uxtw #$shift // w0<- arrayObj + index*width
40 % op_aget(load="ldrb", shift="0", data_offset="MIRROR_BOOLEAN_ARRAY_DATA_OFFSET", is_object="0")
43 % op_aget(load="ldrsb", shift="0", data_offset="MIRROR_BYTE_ARRAY_DATA_OFFSET", is_object="0")
46 % op_aget(load="ldrh", shift="1", data_offset="MIRROR_CHAR_ARRAY_DATA_OFFSET", is_object="0")
49 % op_aget(load="ldr", shift="2", data_offset="MIRROR_OBJECT_ARRAY_DATA_OFFSET", is_object="1")
52 % op_aget(load="ldrsh", shift="1", data_offset="MIRROR_SHORT_ARRAY_DATA_OFFSET", is_object="0")
55 % op_aget(load="ldr", shift="3", data_offset="MIRROR_WIDE_ARRAY_DATA_OFFSET", wide="1", is_object=…
57 %def op_aput(store="str", shift="2", data_offset="MIRROR_INT_ARRAY_DATA_OFFSET", wide="0", is_objec…
72 add x0, x0, w1, uxtw #$shift // w0<- arrayObj + index*width
[all …]
/art/runtime/interpreter/mterp/x86_64ng/
Darray.S1 %def op_aget(load="movl", shift="4", data_offset="MIRROR_INT_ARRAY_DATA_OFFSET", wide="0", is_objec…
23 $load $data_offset(%rdi,%rsi,$shift), %eax
33 $load $data_offset(%rdi,%rsi,$shift), %eax
39 % op_aget(load="movzbl", shift="1", data_offset="MIRROR_BOOLEAN_ARRAY_DATA_OFFSET", is_object="0")
42 % op_aget(load="movsbl", shift="1", data_offset="MIRROR_BYTE_ARRAY_DATA_OFFSET", is_object="0")
45 % op_aget(load="movzwl", shift="2", data_offset="MIRROR_CHAR_ARRAY_DATA_OFFSET", is_object="0")
48 % op_aget(load="movl", shift="4", data_offset="MIRROR_OBJECT_ARRAY_DATA_OFFSET", is_object="1")
51 % op_aget(load="movswl", shift="2", data_offset="MIRROR_SHORT_ARRAY_DATA_OFFSET", is_object="0")
54 % op_aget(load="movq", shift="8", data_offset="MIRROR_WIDE_ARRAY_DATA_OFFSET", wide="1", is_object…
56 %def op_aput(rINST_reg="rINST", store="movl", shift="4", data_offset="MIRROR_INT_ARRAY_DATA_OFFSET"…
[all …]
/art/test/436-shift-constant/
DAndroid.bp3 // Build rules for ART run-test `436-shift-constant`.
16 name: "art-run-test-436-shift-constant",
21 ":art-run-test-436-shift-constant-expected-stdout",
22 ":art-run-test-436-shift-constant-expected-stderr",
28 name: "art-run-test-436-shift-constant-expected-stdout",
29 out: ["art-run-test-436-shift-constant-expected-stdout.txt"],
36 name: "art-run-test-436-shift-constant-expected-stderr",
37 out: ["art-run-test-436-shift-constant-expected-stderr.txt"],
Dinfo.txt1 Regression tests for shift instructions and constants larger than 8bits.
/art/runtime/gc/accounting/
Dbitmap-inl.h89 const size_t shift = CTZ(left_edge); in VisitSetBits() local
90 visitor(ptr_base + shift); in VisitSetBits()
91 left_edge ^= static_cast<uintptr_t>(1) << shift; in VisitSetBits()
101 const size_t shift = CTZ(w); in VisitSetBits() local
102 visitor(ptr_base + shift); in VisitSetBits()
103 w ^= static_cast<uintptr_t>(1) << shift; in VisitSetBits()
125 const size_t shift = CTZ(right_edge); in VisitSetBits() local
126 visitor(ptr_base + shift); in VisitSetBits()
127 right_edge ^= (static_cast<uintptr_t>(1)) << shift; in VisitSetBits()
Dspace_bitmap-inl.h114 const size_t shift = CTZ(left_edge); in VisitMarkedRange() local
115 mirror::Object* obj = reinterpret_cast<mirror::Object*>(ptr_base + shift * kAlignment); in VisitMarkedRange()
117 left_edge ^= (static_cast<uintptr_t>(1)) << shift; in VisitMarkedRange()
128 const size_t shift = CTZ(w); in VisitMarkedRange() local
129 mirror::Object* obj = reinterpret_cast<mirror::Object*>(ptr_base + shift * kAlignment); in VisitMarkedRange()
131 w ^= (static_cast<uintptr_t>(1)) << shift; in VisitMarkedRange()
155 const size_t shift = CTZ(right_edge); in VisitMarkedRange() local
156 mirror::Object* obj = reinterpret_cast<mirror::Object*>(ptr_base + shift * kAlignment); in VisitMarkedRange()
158 right_edge ^= (static_cast<uintptr_t>(1)) << shift; in VisitMarkedRange()
176 const size_t shift = CTZ(w); in Walk() local
[all …]
Dspace_bitmap.cc199 const size_t shift = CTZ(garbage); in SweepWalk() local
200 garbage ^= (static_cast<uintptr_t>(1)) << shift; in SweepWalk()
201 *cur_pointer++ = reinterpret_cast<mirror::Object*>(ptr_base + shift * kAlignment); in SweepWalk()
/art/runtime/interpreter/mterp/x86_64/
Darray.S1 %def op_aget(load="movl", shift="4", data_offset="MIRROR_INT_ARRAY_DATA_OFFSET", wide="0"):
21 $load $data_offset(%rax,%rcx,$shift), %eax
27 % op_aget(load="movzbl", shift="1", data_offset="MIRROR_BOOLEAN_ARRAY_DATA_OFFSET")
30 % op_aget(load="movsbl", shift="1", data_offset="MIRROR_BYTE_ARRAY_DATA_OFFSET")
33 % op_aget(load="movzwl", shift="2", data_offset="MIRROR_CHAR_ARRAY_DATA_OFFSET")
55 % op_aget(load="movswl", shift="2", data_offset="MIRROR_SHORT_ARRAY_DATA_OFFSET")
58 % op_aget(load="movq", shift="8", data_offset="MIRROR_WIDE_ARRAY_DATA_OFFSET", wide="1")
60 %def op_aput(reg="rINST", store="movl", shift="4", data_offset="MIRROR_INT_ARRAY_DATA_OFFSET", wide…
81 $store $reg, $data_offset(%rax,%rcx,$shift)
85 % op_aput(reg="rINSTbl", store="movb", shift="1", data_offset="MIRROR_BOOLEAN_ARRAY_DATA_OFFSET")
[all …]
/art/runtime/interpreter/mterp/armng/
Darray.S1 %def op_aget(load="ldr", shift="2", data_offset="MIRROR_INT_ARRAY_DATA_OFFSET", wide="0", is_object…
16 add r0, r0, r1, lsl #$shift @ r0<- arrayObj + index*width
46 % op_aget(load="ldrb", shift="0", data_offset="MIRROR_BOOLEAN_ARRAY_DATA_OFFSET", wide="0", is_obj…
49 % op_aget(load="ldrsb", shift="0", data_offset="MIRROR_BYTE_ARRAY_DATA_OFFSET", wide="0", is_objec…
52 % op_aget(load="ldrh", shift="1", data_offset="MIRROR_CHAR_ARRAY_DATA_OFFSET", wide="0", is_object…
55 % op_aget(load="ldr", shift="2", data_offset="MIRROR_OBJECT_ARRAY_DATA_OFFSET", wide="0", is_objec…
58 % op_aget(load="ldrsh", shift="1", data_offset="MIRROR_SHORT_ARRAY_DATA_OFFSET", wide="0", is_obje…
61 % op_aget(load="ldrd", shift="3", data_offset="MIRROR_WIDE_ARRAY_DATA_OFFSET", wide="1", is_object…
63 %def op_aput(store="str", shift="2", data_offset="MIRROR_INT_ARRAY_DATA_OFFSET", wide="0", is_objec…
87 add r0, r0, r1, lsl #$shift @ r0<- arrayObj + index*width
[all …]
/art/runtime/interpreter/mterp/arm64/
Darray.S1 %def op_aget(load="ldr", shift="2", data_offset="MIRROR_INT_ARRAY_DATA_OFFSET"):
21 add x0, x0, w1, uxtw #$shift // w0<- arrayObj + index*width
31 % op_aget(load="ldrb", shift="0", data_offset="MIRROR_BOOLEAN_ARRAY_DATA_OFFSET")
34 % op_aget(load="ldrsb", shift="0", data_offset="MIRROR_BYTE_ARRAY_DATA_OFFSET")
37 % op_aget(load="ldrh", shift="1", data_offset="MIRROR_CHAR_ARRAY_DATA_OFFSET")
62 % op_aget(load="ldrsh", shift="1", data_offset="MIRROR_SHORT_ARRAY_DATA_OFFSET")
87 %def op_aput(store="str", shift="2", data_offset="MIRROR_INT_ARRAY_DATA_OFFSET"):
107 add x0, x0, w1, uxtw #$shift // w0<- arrayObj + index*width
117 % op_aput(store="strb", shift="0", data_offset="MIRROR_BOOLEAN_ARRAY_DATA_OFFSET")
120 % op_aput(store="strb", shift="0", data_offset="MIRROR_BYTE_ARRAY_DATA_OFFSET")
[all …]
/art/tools/dexfuzz/src/dexfuzz/rawdex/
DDexRandomAccessFile.java99 int shift = 0; in readUleb128() local
106 value |= ((rawByte & 0x7f) << shift); in readUleb128()
107 shift += 7; in readUleb128()
179 int shift = 0; in readSleb128() local
187 value |= ((rawByte & 0x7f) << shift); in readSleb128()
188 shift += 7; in readSleb128()
213 int upperOnes = ~((1 << shift) - 1); in readSleb128()
/art/runtime/interpreter/mterp/x86/
Darray.S1 %def op_aget(load="movl", shift="4", data_offset="MIRROR_INT_ARRAY_DATA_OFFSET"):
17 $load $data_offset(%eax,%ecx,$shift), %eax
22 % op_aget(load="movzbl", shift="1", data_offset="MIRROR_BOOLEAN_ARRAY_DATA_OFFSET")
25 % op_aget(load="movsbl", shift="1", data_offset="MIRROR_BYTE_ARRAY_DATA_OFFSET")
28 % op_aget(load="movzwl", shift="2", data_offset="MIRROR_CHAR_ARRAY_DATA_OFFSET")
53 % op_aget(load="movswl", shift="2", data_offset="MIRROR_SHORT_ARRAY_DATA_OFFSET")
73 %def op_aput(reg="rINST", store="movl", shift="4", data_offset="MIRROR_INT_ARRAY_DATA_OFFSET"):
89 leal $data_offset(%eax,%ecx,$shift), %eax
95 % op_aput(reg="rINSTbl", store="movb", shift="1", data_offset="MIRROR_BOOLEAN_ARRAY_DATA_OFFSET")
98 % op_aput(reg="rINSTbl", store="movb", shift="1", data_offset="MIRROR_BYTE_ARRAY_DATA_OFFSET")
[all …]
/art/runtime/interpreter/mterp/arm/
Darray.S1 %def op_aget(load="ldr", shift="2", data_offset="MIRROR_INT_ARRAY_DATA_OFFSET"):
22 add r0, r0, r1, lsl #$shift @ r0<- arrayObj + index*width
32 % op_aget(load="ldrb", shift="0", data_offset="MIRROR_BOOLEAN_ARRAY_DATA_OFFSET")
35 % op_aget(load="ldrsb", shift="0", data_offset="MIRROR_BYTE_ARRAY_DATA_OFFSET")
38 % op_aget(load="ldrh", shift="1", data_offset="MIRROR_CHAR_ARRAY_DATA_OFFSET")
64 % op_aget(load="ldrsh", shift="1", data_offset="MIRROR_SHORT_ARRAY_DATA_OFFSET")
93 %def op_aput(store="str", shift="2", data_offset="MIRROR_INT_ARRAY_DATA_OFFSET"):
114 add r0, r0, r1, lsl #$shift @ r0<- arrayObj + index*width
124 % op_aput(store="strb", shift="0", data_offset="MIRROR_BOOLEAN_ARRAY_DATA_OFFSET")
127 % op_aput(store="strb", shift="0", data_offset="MIRROR_BYTE_ARRAY_DATA_OFFSET")
[all …]
/art/libartbase/base/
Dbit_memory_region.h91 size_t shift = (bit_start_ + bit_offset) % kBitsPerByte; in LoadBit() local
92 return ((data_[index] >> shift) & 1) != 0; in LoadBit()
98 size_t shift = (bit_start_ + bit_offset) % kBitsPerByte; in StoreBit() local
99 data_[index] &= ~(1 << shift); // Clear bit. in StoreBit()
100 data_[index] |= (value ? 1 : 0) << shift; // Set bit. in StoreBit()
123 size_t shift = (bit_start_ + bit_offset) % width; in LoadBits() local
124 Result value = data[index] >> shift; in LoadBits()
127 Result extra = data[index + (shift + (bit_length - 1)) / width]; in LoadBits()
134 return (value | (extra << ((width - shift) & (width - 1)))) & ~clear; in LoadBits()
151 size_t shift = (bit_start_ + bit_offset) % kBitsPerByte; in StoreBits() local
[all …]
/art/test/458-checker-instruct-simplification/src/
DMain.java1851 public static int $noinline$intUnnecessaryShiftMasking(int value, int shift) { in $noinline$intUnnecessaryShiftMasking() argument
1852 return value << (shift & 31); in $noinline$intUnnecessaryShiftMasking()
1869 public static long $noinline$longUnnecessaryShiftMasking(long value, int shift) { in $noinline$longUnnecessaryShiftMasking() argument
1870 return value >> (shift & 63); in $noinline$longUnnecessaryShiftMasking()
1887 public static int $noinline$intUnnecessaryWiderShiftMasking(int value, int shift) { in $noinline$intUnnecessaryWiderShiftMasking() argument
1888 return value >>> (shift & 0xff); in $noinline$intUnnecessaryWiderShiftMasking()
1907 public static long $noinline$longSmallerShiftMasking(long value, int shift) { in $noinline$longSmallerShiftMasking() argument
1908 return value << (shift & 3); in $noinline$longSmallerShiftMasking()
1929 public static int $noinline$otherUseOfUnnecessaryShiftMasking(int value, int shift) { in $noinline$otherUseOfUnnecessaryShiftMasking() argument
1930 int temp = shift & 31; in $noinline$otherUseOfUnnecessaryShiftMasking()
[all …]
/art/tools/
Ddex2oat_wrapper44 shift
50 shift
55 shift
60 shift
64 shift
/art/test/685-shifts/
Dinfo.txt1 Tests for the compiler when shift instructions have 0 or 1 as constant shifts.
/art/compiler/optimizing/
Dnodes_shared.h151 HInstruction* index, HInstruction* offset, HInstruction* shift, uint32_t dex_pc) in HIntermediateAddressIndex() argument
158 SetRawInputAt(2, shift); in HIntermediateAddressIndex()
203 int shift = 0,
207 shift_amount_(shift & (instr->GetType() == DataType::Type::kInt32
Dcode_generator_utils.h30 void CalculateMagicAndShiftForDivRem(int64_t divisor, bool is_long, int64_t* magic, int* shift);
Dcode_generator_utils.cc26 int64_t* magic, int* shift) { in CalculateMagicAndShiftForDivRem() argument
96 *shift = is_long ? p - 64 : p - 32; in CalculateMagicAndShiftForDivRem()
Dstack_map_stream.cc122 uint32_t shift = LeastSignificantBit(register_mask); in BeginStackMapEntry() local
124 entry[RegisterMask::kValue] = register_mask >> shift; in BeginStackMapEntry()
125 entry[RegisterMask::kShift] = shift; in BeginStackMapEntry()
/art/test/083-compiler-regressions/
Dinfo.txt8 2296099 JIT shift bug
/art/test/593-checker-shift-and-simplifier/smali/
DSmaliTests.smali30 ## CHECK-DAG: DataProcWithShifterOp [<<Not>>,<<Get>>] kind:And+LSL shift:2
41 ## CHECK-DAG: DataProcWithShifterOp [<<Not>>,<<Get>>] kind:And+LSL shift:2
/art/dex2oat/linker/arm64/
Drelative_patcher_arm64.cc215 uint32_t shift = wide ? 3u : 2u; in PatchPcRelativeReference() local
231 insn = (out_disp & 0x0fffffffu) >> shift; in PatchPcRelativeReference()
270 shift = 0u; // No shift for ADD. in PatchPcRelativeReference()
303 uint32_t imm12 = (disp & 0xfffu) >> shift; in PatchPcRelativeReference()
/art/compiler/jni/quick/arm/
Dcalling_convention_arm.cc302 size_t shift = 0; in ArmJniCallingConvention() local
346 shift += 4; in ArmJniCallingConvention()
370 padding_ = shift; in ArmJniCallingConvention()

12