Adding vmsum4fp128 test.

This commit is contained in:
Ben Vanik 2015-05-25 12:28:32 -07:00
parent c616104574
commit 148c40554b
2 changed files with 14 additions and 2 deletions

View File

@ -0,0 +1,8 @@
test_vmsum4fp128_1:
#_ REGISTER_IN v3 [3f800000, 3fc00000, 3f8ccccd, 3ff33333]
#_ REGISTER_IN v4 [40000000, 40700000, 4013d70a, 40b051eb]
vmsum4fp128 v5, v3, v4
blr
#_ REGISTER_OUT v3 [3f800000, 3fc00000, 3f8ccccd, 3ff33333]
#_ REGISTER_OUT v4 [40000000, 40700000, 4013d70a, 40b051eb]
#_ REGISTER_OUT v5 [41A5147B, 41A5147B, 41A5147B, 41A5147B]

View File

@ -105,11 +105,15 @@ ThreadState::ThreadState(Processor* processor, uint32_t thread_id,
context_->r[1] = stack_base_;
context_->r[13] = pcr_address_;
processor_->debugger()->OnThreadCreated(this);
if (processor_->debugger()) {
processor_->debugger()->OnThreadCreated(this);
}
}
ThreadState::~ThreadState() {
processor_->debugger()->OnThreadDestroyed(this);
if (processor_->debugger()) {
processor_->debugger()->OnThreadDestroyed(this);
}
if (backend_data_) {
processor_->backend()->FreeThreadData(backend_data_);