QBE 1.3 (released 2026-06-01) adds Windows AMD64 ABI support (amd64_win target), improved PIC via extern symbol constants, GVN/GCM optimisation passes, if-conversion, and various correctness and performance fixes. All 2293 compiler tests pass against the new QBE binary.
18 lines
264 B
Plaintext
18 lines
264 B
Plaintext
# GCM can eliminate unused add/load instructions
|
|
|
|
export
|
|
function w $f(l %p, w %c) {
|
|
@start
|
|
jnz %c, @true, @false
|
|
@true
|
|
%p1 =l add %p, 4
|
|
%v1 =w loaduw %p1
|
|
jmp @end
|
|
@false
|
|
%p2 =l add %p, 4
|
|
%v2 =w loaduw %p2
|
|
jmp @end
|
|
@end
|
|
ret 0
|
|
}
|