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.
21 lines
311 B
Plaintext
21 lines
311 B
Plaintext
type :obj = { l, l, l, l }
|
|
|
|
export
|
|
function :obj $f(l %self) {
|
|
@_0
|
|
%_1 =l alloc8 16
|
|
storel 77, %_1
|
|
ret %_1
|
|
}
|
|
|
|
# >>> driver
|
|
# #include <stdio.h>
|
|
# typedef struct { long long a, b, c, d; } obj;
|
|
# extern obj f();
|
|
# int main() { obj ret = f(); printf("%lld\n", ret.a); return 0; }
|
|
# <<<
|
|
|
|
# >>> output
|
|
# 77
|
|
# <<<
|