Lines Matching +full:- +full:w

4  * SPDX-License-Identifier: Apache-2.0
6 * The purpose of this test is to exercize and validate the on-demand and
45 __asm__ volatile ("fcvt.s.w fa0, %0" : : "r" (42) : "fa0"); in ZTEST()
54 /* read the FP reg back which should re-enable the FPU */ in ZTEST()
55 __asm__ volatile ("fcvt.w.s %0, fa0, rtz" : "=r" (val)); in ZTEST()
79 * are expected to be "NaN-boxed" to be valid. So don't use the s in new_thread_check()
84 __asm__ volatile ("fcvt.w.d %0, fa0, rtz" : "=r" (val)); in new_thread_check()
86 __asm__ volatile ("fcvt.w.s %0, fa0, rtz" : "=r" (val)); in new_thread_check()
140 __asm__ volatile ("fcvt.s.w fa1, %0" : : "r" (42) : "fa1"); in thread1_entry()
163 __asm__ volatile ("fcvt.w.s %0, fa1, rtz" : "=r" (val)); in thread1_entry()
213 __asm__ volatile ("fcvt.s.w fa1, %0" : : "r" (37) : "fa1"); in thread2_entry()
223 __asm__ volatile ("fcvt.w.s %0, fa1" : "=r" (val)); in thread2_entry()
235 __asm__ volatile ("fcvt.w.s %0, fa1" : "=r" (val)); in thread2_entry()
243 -1, 0, K_NO_WAIT); in ZTEST()
246 -1, 0, K_NO_WAIT); in ZTEST()
279 __asm__ volatile ("fcvt.s.w fa1, %0" : : "r" (987) : "fa1"); in exception_context()
293 __asm__ volatile ("fcvt.s.w fa1, %0" : : "r" (654) : "fa1"); in ZTEST()
303 __asm__ volatile ("fcvt.w.s %0, fa1" : "=r" (val)); in ZTEST()
316 __asm__ volatile ("fcvt.w.s %0, fa1" : "=r" (val)); in ZTEST()
329 __asm__ volatile ("fcvt.w.s %0, fa1" : "=r" (val)); in ZTEST()
337 * There is no dedicated FPU trap flag bit on RISC-V. FPU specific opcodes
367 /* OP-FP major opcode space */ in ZTEST()
369 TEST_TRAP("fcvt.s.w fa1, %0"); in ZTEST()
371 TEST_TRAP("fcvt.w.s %0, fa0"); in ZTEST()
374 /* LOAD-FP / STORE-FP space */ in ZTEST()
423 TEST_TRAP("fcvt.s.w fa1, %0"); in ZTEST()
425 TEST_TRAP("fcvt.w.s %0, fa0"); in ZTEST()
430 TEST_TRAP("fcvt.s.w fa1, %0"); in ZTEST()
432 TEST_TRAP("fcvt.w.s %0, fa0"); in ZTEST()
433 zassert_true(reg == -11290064, "got %ld instead", reg); in ZTEST()
436 reg = -23; in ZTEST()
437 TEST_TRAP("fcvt.s.w fa1, %0"); in ZTEST()
439 TEST_TRAP("fcvt.w.s %0, fa0"); in ZTEST()
440 zassert_true(reg == -11290593, "got %ld instead", reg); in ZTEST()
444 TEST_TRAP("fcvt.s.w fa1, %0"); in ZTEST()
446 TEST_TRAP("fcvt.w.s %0, fa0"); in ZTEST()
447 zassert_true(reg == -585990, "got %ld instead", reg); in ZTEST()