Previously we just checked via S regs and were not checking
memory content after pushes.
The vpush test confirms that the fix in https://reviews.llvm.org/D130307
is working.
Memory will only be checked if an "after" state is provided.
Reviewed By: clayborg
Differential Revision: https://reviews.llvm.org/D130468
}
}
+ // other_state is the expected state. If it has memory, check it.
+ if (!other_state.m_memory.empty() && m_memory != other_state.m_memory) {
+ match = false;
+ out_stream->Printf("memory does not match\n");
+ out_stream->Printf("got memory:\n");
+ for (auto p : m_memory)
+ out_stream->Printf("0x%08lx: 0x%08x\n", p.first, p.second);
+ out_stream->Printf("expected memory:\n");
+ for (auto p : other_state.m_memory)
+ out_stream->Printf("0x%08lx: 0x%08x\n", p.first, p.second);
+ }
+
return match;
}
--- /dev/null
+InstructionEmulationState={
+assembly_string="vpop {d11, d12, d13, d14}"
+triple=thumb-apple-ios
+opcode=0xecbdbb08
+before_state={
+memory={
+address=0x2fdffe60
+data_encoding=uint32_t
+data=[
+0x22222222
+0x11111111
+0x44444444
+0x33333333
+0x66666666
+0x55555555
+0x88888888
+0x77777777
+]
+}
+registers={
+r0=0x00000000
+r1=0x00000001
+r2=0x00000002
+r3=0x00000003
+r4=0x00000004
+r5=0x00000005
+r6=0x00000006
+r7=0x2fdffe60
+r8=0x00000008
+r9=0x00000009
+r10=0x0000000a
+r11=0x0000000b
+r12=0x0000000c
+r13=0x2fdffe60
+r14=0x00002f80
+r15=0x00002ff8
+cpsr=0x60000030
+d0=0x0
+d1=0x0
+d2=0x0
+d3=0x0
+d4=0x0
+d5=0x0
+d6=0x0
+d7=0x0
+d8=0x0
+d9=0x0
+d10=0x0
+d11=0x0
+d12=0x0
+d13=0x0
+d14=0x0
+d15=0x0
+d16=0x0
+d17=0x0
+d18=0x0
+d19=0x0
+d20=0x0
+d21=0x0
+d22=0x0
+d23=0x0
+d24=0x0
+d25=0x0
+d26=0x0
+d27=0x0
+d28=0x0
+d29=0x0
+d30=0x0
+d31=0x0
+}
+}
+after_state={
+registers={
+r0=0x00000000
+r1=0x00000001
+r2=0x00000002
+r3=0x00000003
+r4=0x00000004
+r5=0x00000005
+r6=0x00000006
+r7=0x2fdffe60
+r8=0x00000008
+r9=0x00000009
+r10=0x0000000a
+r11=0x0000000b
+r12=0x0000000c
+r13=0x2fdffe80
+r14=0x00002f80
+r15=0x00002ffc
+cpsr=0x60000030
+d0=0x0000000000000000
+d1=0x0000000000000000
+d2=0x0000000000000000
+d3=0x0000000000000000
+d4=0x0000000000000000
+d5=0x0000000000000000
+d6=0x0000000000000000
+d7=0x0000000000000000
+d8=0x0000000000000000
+d9=0x0000000000000000
+d10=0x0000000000000000
+d11=0x1111111122222222
+d12=0x3333333344444444
+d13=0x5555555566666666
+d14=0x7777777788888888
+d15=0x0000000000000000
+d16=0x0000000000000000
+d17=0x0000000000000000
+d18=0x0000000000000000
+d19=0x0000000000000000
+d20=0x0000000000000000
+d21=0x0000000000000000
+d22=0x0000000000000000
+d23=0x0000000000000000
+d24=0x0000000000000000
+d25=0x0000000000000000
+d26=0x0000000000000000
+d27=0x0000000000000000
+d28=0x0000000000000000
+d29=0x0000000000000000
+d30=0x0000000000000000
+d31=0x0000000000000000
+}
+}
+}
--- /dev/null
+InstructionEmulationState={
+assembly_string="vpush {d11, d12, d13, d14}"
+triple=thumb-apple-ios
+opcode=0xed2dbb08
+before_state={
+registers={
+r0=0x00000000
+r1=0x00000001
+r2=0x00000002
+r3=0x00000003
+r4=0x00000004
+r5=0x00000005
+r6=0x00000006
+r7=0x2fdffe60
+r8=0x00000008
+r9=0x00000009
+r10=0x0000000a
+r11=0x0000000b
+r12=0x0000000c
+r13=0x2fdffe80
+r14=0x00002f80
+r15=0x00002ff8
+cpsr=0x60000030
+d0=0x0000000000000000
+d1=0x0000000000000000
+d2=0x0000000000000000
+d3=0x0000000000000000
+d4=0x0000000000000000
+d5=0x0000000000000000
+d6=0x0000000000000000
+d7=0x0000000000000000
+d8=0x0000000000000000
+d9=0x0000000000000000
+d10=0x0000000000000000
+d11=0x1111111122222222
+d12=0x3333333344444444
+d13=0x5555555566666666
+d14=0x7777777788888888
+d15=0x0000000000000000
+d16=0x0000000000000000
+d17=0x0000000000000000
+d18=0x0000000000000000
+d19=0x0000000000000000
+d20=0x0000000000000000
+d21=0x0000000000000000
+d22=0x0000000000000000
+d23=0x0000000000000000
+d24=0x0000000000000000
+d25=0x0000000000000000
+d26=0x0000000000000000
+d27=0x0000000000000000
+d28=0x0000000000000000
+d29=0x0000000000000000
+d30=0x0000000000000000
+d31=0x0000000000000000
+}
+}
+after_state={
+memory={
+address=0x2fdffe60
+data_encoding=uint32_t
+data=[
+0x22222222
+0x11111111
+0x44444444
+0x33333333
+0x66666666
+0x55555555
+0x88888888
+0x77777777
+]
+}
+registers={
+r0=0x00000000
+r1=0x00000001
+r2=0x00000002
+r3=0x00000003
+r4=0x00000004
+r5=0x00000005
+r6=0x00000006
+r7=0x2fdffe60
+r8=0x00000008
+r9=0x00000009
+r10=0x0000000a
+r11=0x0000000b
+r12=0x0000000c
+r13=0x2fdffe60
+r14=0x00002f80
+r15=0x00002ffc
+cpsr=0x60000030
+d0=0x0000000000000000
+d1=0x0000000000000000
+d2=0x0000000000000000
+d3=0x0000000000000000
+d4=0x0000000000000000
+d5=0x0000000000000000
+d6=0x0000000000000000
+d7=0x0000000000000000
+d8=0x0000000000000000
+d9=0x0000000000000000
+d10=0x0000000000000000
+d11=0x1111111122222222
+d12=0x3333333344444444
+d13=0x5555555566666666
+d14=0x7777777788888888
+d15=0x0000000000000000
+d16=0x0000000000000000
+d17=0x0000000000000000
+d18=0x0000000000000000
+d19=0x0000000000000000
+d20=0x0000000000000000
+d21=0x0000000000000000
+d22=0x0000000000000000
+d23=0x0000000000000000
+d24=0x0000000000000000
+d25=0x0000000000000000
+d26=0x0000000000000000
+d27=0x0000000000000000
+d28=0x0000000000000000
+d29=0x0000000000000000
+d30=0x0000000000000000
+d31=0x0000000000000000
+}
+}
+}