bgeu a3, a2, .L4 compares and branches in one instruction. How does that differ from processors with a flags register, and why is it bgeu rather than bge?
Xtensa has no condition flags: each branch compares its two registers itself and jumps on the result. The u means unsigned comparison, chosen because a and b are uint32_t.
On x86 or ARM, a conditional jump is two steps. A cmp instruction subtracts the operands and records the outcome in a flags register (zero, negative, carry, overflow), and a later jump instruction reads those flags. Xtensa merges the two: beq, bne, blt, bge, bltu, bgeu take two registers, compare them and branch, all in one instruction. There are also forms against zero (beqz, bnez) and against a small constant (beqi, bgei). That saves an instruction per test and keeps code small, and with no single flags register there is nothing to be overwritten by an instruction in between.
The u matters for correctness. The same 32 bits mean different numbers depending on signedness: 0xFFFFFFFF is 4 294 967 295 unsigned but −1 signed. With uint32_t arguments the compiler must compare unsigned, so it picks bgeu ("branch if greater or equal, unsigned"). Had the function used int32_t, it would have emitted the signed bge, and for large values the two would branch differently.
Reading it: bgeu a3, a2, .L4 means "if a3 >= a2, go to .L4". The first register is the left-hand side of the comparison.
Go deeper:
Wikipedia — Status register — the flags-based design Xtensa avoids.
Xtensa ISA Reference Manual, §3.8.5 "Conditional Branch Instructions" (PDF) — the full set of compare-and-branch forms.