Lines Matching refs:flag
84 long flag, expected; in main() local
116 flag = PR_RISCV_V_VSTATE_CTRL_ON; in main()
117 rc = prctl(PR_RISCV_V_SET_CONTROL, flag); in main()
123 flag = PR_RISCV_V_VSTATE_CTRL_OFF; in main()
124 rc = prctl(PR_RISCV_V_SET_CONTROL, flag); in main()
132 flag = PR_RISCV_V_VSTATE_CTRL_ON << PR_RISCV_V_VSTATE_CTRL_NEXT_SHIFT; in main()
133 if (test_and_compare_child(flag, PR_RISCV_V_VSTATE_CTRL_ON, 0)) in main()
137 flag = PR_RISCV_V_VSTATE_CTRL_OFF << PR_RISCV_V_VSTATE_CTRL_NEXT_SHIFT; in main()
138 if (test_and_compare_child(flag, PR_RISCV_V_VSTATE_CTRL_OFF, 0)) in main()
142 flag = PR_RISCV_V_VSTATE_CTRL_ON << PR_RISCV_V_VSTATE_CTRL_NEXT_SHIFT; in main()
143 flag |= PR_RISCV_V_VSTATE_CTRL_INHERIT; in main()
144 expected = flag | PR_RISCV_V_VSTATE_CTRL_ON; in main()
145 if (test_and_compare_child(flag, expected, 0)) in main()
148 if (test_and_compare_child(flag, expected, 1)) in main()
152 flag = PR_RISCV_V_VSTATE_CTRL_OFF << PR_RISCV_V_VSTATE_CTRL_NEXT_SHIFT; in main()
153 flag |= PR_RISCV_V_VSTATE_CTRL_INHERIT; in main()
154 expected = flag | PR_RISCV_V_VSTATE_CTRL_OFF; in main()
155 if (test_and_compare_child(flag, expected, 0)) in main()
158 if (test_and_compare_child(flag, expected, 1)) in main()