| 1 | // SPDX-License-Identifier: GPL-2.0-only |
|---|---|
| 2 | |
| 3 | #include "../../kselftest_harness.h" |
| 4 | #include "v_helpers.h" |
| 5 | |
| 6 | #define NEXT_PROGRAM "./v_exec_initval_nolibc" |
| 7 | |
| 8 | TEST(v_initval) |
| 9 | { |
| 10 | int xtheadvector = 0; |
| 11 | |
| 12 | if (!is_vector_supported()) { |
| 13 | if (is_xtheadvector_supported()) |
| 14 | xtheadvector = 1; |
| 15 | else |
| 16 | SKIP(return, "Vector not supported"); |
| 17 | } |
| 18 | |
| 19 | ASSERT_EQ(0, launch_test(NEXT_PROGRAM, 0, xtheadvector)); |
| 20 | } |
| 21 | |
| 22 | TEST_HARNESS_MAIN |
| 23 |
