Lines Matching refs:flag
76 long flag, expected; in main() local
108 flag = PR_RISCV_V_VSTATE_CTRL_ON; in main()
109 rc = prctl(PR_RISCV_V_SET_CONTROL, flag); in main()
115 flag = PR_RISCV_V_VSTATE_CTRL_OFF; in main()
116 rc = prctl(PR_RISCV_V_SET_CONTROL, flag); in main()
124 flag = PR_RISCV_V_VSTATE_CTRL_ON << PR_RISCV_V_VSTATE_CTRL_NEXT_SHIFT; in main()
125 if (test_and_compare_child(flag, PR_RISCV_V_VSTATE_CTRL_ON, 0)) in main()
129 flag = PR_RISCV_V_VSTATE_CTRL_OFF << PR_RISCV_V_VSTATE_CTRL_NEXT_SHIFT; in main()
130 if (test_and_compare_child(flag, PR_RISCV_V_VSTATE_CTRL_OFF, 0)) in main()
134 flag = PR_RISCV_V_VSTATE_CTRL_ON << PR_RISCV_V_VSTATE_CTRL_NEXT_SHIFT; in main()
135 flag |= PR_RISCV_V_VSTATE_CTRL_INHERIT; in main()
136 expected = flag | PR_RISCV_V_VSTATE_CTRL_ON; in main()
137 if (test_and_compare_child(flag, expected, 0)) in main()
140 if (test_and_compare_child(flag, expected, 1)) in main()
144 flag = PR_RISCV_V_VSTATE_CTRL_OFF << PR_RISCV_V_VSTATE_CTRL_NEXT_SHIFT; in main()
145 flag |= PR_RISCV_V_VSTATE_CTRL_INHERIT; in main()
146 expected = flag | PR_RISCV_V_VSTATE_CTRL_OFF; in main()
147 if (test_and_compare_child(flag, expected, 0)) in main()
150 if (test_and_compare_child(flag, expected, 1)) in main()