nixify
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
export
|
||||
function w $test(w %p1, w %p2) {
|
||||
@start
|
||||
@entry
|
||||
%t1 =w copy 1
|
||||
jnz %t1, @live, @dead1
|
||||
@live
|
||||
%t2 =w add %p1, %p2
|
||||
ret %t2
|
||||
@dead1
|
||||
%t2 =w add %p1, %p2 # live ins in dead blk
|
||||
@dead2
|
||||
jnz %t1, @live, @dead1
|
||||
}
|
||||
|
||||
# >>> driver
|
||||
# extern int test(int p1, int p2);
|
||||
# int main() { return test(1, 2) != 3; }
|
||||
# <<<
|
||||
Reference in New Issue
Block a user