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.
17 lines
267 B
Plaintext
17 lines
267 B
Plaintext
# make sure the local symbols used for
|
|
# fp constants do not get a _ prefix
|
|
# on apple arm hardware
|
|
|
|
export function w $main() {
|
|
@start
|
|
%r =d copy d_1.2
|
|
%x =w call $printf(l $fmt, ..., d %r)
|
|
ret 0
|
|
}
|
|
|
|
data $fmt = { b "%.06f\n", b 0 }
|
|
|
|
# >>> output
|
|
# 1.200000
|
|
# <<<
|