mirror of
git://c9x.me/qbe.git
synced 2026-04-05 18:09:47 +00:00
- Many stylistic nits. - Removed blkmerge(). - Some minor bug fixes. - GCM reassoc is now "sink"; a pass that moves trivial ops in their target block with the same goal of reducing register pressure, but starting from instructions that benefit from having their inputs close.
16 lines
269 B
Plaintext
16 lines
269 B
Plaintext
export function w $f() {
|
|
@start
|
|
%x0 =w loadsb $a
|
|
# the extension must not be eliminated
|
|
# even though the load already extended
|
|
%x1 =l extsb %x0
|
|
%c =w ceql %x1, -1
|
|
ret %c
|
|
}
|
|
|
|
# >>> driver
|
|
# char a = -1;
|
|
# extern int f();
|
|
# int main() { return !(f() == 1); }
|
|
# <<<
|