Declutter
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -8,3 +8,5 @@ DerivedData/
|
|||||||
.netrc
|
.netrc
|
||||||
run
|
run
|
||||||
bin/
|
bin/
|
||||||
|
*.out
|
||||||
|
*.s
|
||||||
|
|||||||
3
hard.c
3
hard.c
@@ -1,3 +0,0 @@
|
|||||||
int main() {
|
|
||||||
return !(2 * 3) + !2 * 3 + (4 + 5) * ~6 * 7 * (8 + -(!~9 * 10)) - -11 * ~12 + !~-13;
|
|
||||||
}
|
|
||||||
24
hard.s
24
hard.s
@@ -1,24 +0,0 @@
|
|||||||
.globl main
|
|
||||||
main:
|
|
||||||
cmpl $0, %eax
|
|
||||||
movl $0, %eax
|
|
||||||
sete %al
|
|
||||||
movl $2, %eax
|
|
||||||
cmpl $0, %eax
|
|
||||||
movl $0, %eax
|
|
||||||
sete %al
|
|
||||||
movl $3, %eax
|
|
||||||
movl $6, %eax
|
|
||||||
not %eax
|
|
||||||
movl $7, %eax
|
|
||||||
movl $11, %eax
|
|
||||||
neg %eax
|
|
||||||
movl $12, %eax
|
|
||||||
not %eax
|
|
||||||
movl $13, %eax
|
|
||||||
neg %eax
|
|
||||||
not %eax
|
|
||||||
cmpl $0, %eax
|
|
||||||
movl $0, %eax
|
|
||||||
sete %al
|
|
||||||
ret
|
|
||||||
111
test.s
111
test.s
@@ -1,111 +0,0 @@
|
|||||||
.globl main
|
|
||||||
main:
|
|
||||||
movl $4, %eax
|
|
||||||
push %eax
|
|
||||||
movl $4, %eax
|
|
||||||
neg %eax
|
|
||||||
pop %ecx
|
|
||||||
addl %ecx, %eax
|
|
||||||
cmpl $0, %eax
|
|
||||||
movl $0, %eax
|
|
||||||
sete %al
|
|
||||||
push %eax
|
|
||||||
movl $6, %eax
|
|
||||||
push %eax
|
|
||||||
movl $2, %eax
|
|
||||||
push %eax
|
|
||||||
movl $2, %eax
|
|
||||||
pop %ecx
|
|
||||||
addl %ecx, %eax
|
|
||||||
movl %eax, %ecx
|
|
||||||
pop %eax
|
|
||||||
cdq
|
|
||||||
idivl %ecx
|
|
||||||
push %eax
|
|
||||||
movl $4, %eax
|
|
||||||
neg %eax
|
|
||||||
pop %ecx
|
|
||||||
imul %ecx, %eax
|
|
||||||
push %eax
|
|
||||||
movl $4, %eax
|
|
||||||
not %eax
|
|
||||||
pop %ecx
|
|
||||||
imul %ecx, %eax
|
|
||||||
push %eax
|
|
||||||
movl $9, %eax
|
|
||||||
movl %eax, %ecx
|
|
||||||
pop %eax
|
|
||||||
cdq
|
|
||||||
idivl %ecx
|
|
||||||
pop %ecx
|
|
||||||
addl %ecx, %eax
|
|
||||||
push %eax
|
|
||||||
movl $4, %eax
|
|
||||||
push %eax
|
|
||||||
movl $5, %eax
|
|
||||||
push %eax
|
|
||||||
movl $32, %eax
|
|
||||||
push %eax
|
|
||||||
movl $2, %eax
|
|
||||||
movl %eax, %ecx
|
|
||||||
pop %eax
|
|
||||||
cdq
|
|
||||||
idivl %ecx
|
|
||||||
pop %ecx
|
|
||||||
imul %ecx, %eax
|
|
||||||
push %eax
|
|
||||||
movl $1, %eax
|
|
||||||
not %eax
|
|
||||||
pop %ecx
|
|
||||||
addl %ecx, %eax
|
|
||||||
movl %eax, %ecx
|
|
||||||
pop %eax
|
|
||||||
cdq
|
|
||||||
idivl %ecx
|
|
||||||
push %eax
|
|
||||||
movl $400, %eax
|
|
||||||
push %eax
|
|
||||||
movl $90, %eax
|
|
||||||
movl %eax, %ecx
|
|
||||||
pop %eax
|
|
||||||
cdq
|
|
||||||
idivl %ecx
|
|
||||||
push %eax
|
|
||||||
movl $1, %eax
|
|
||||||
pop %ecx
|
|
||||||
addl %ecx, %eax
|
|
||||||
pop %ecx
|
|
||||||
subl %eax, %ecx
|
|
||||||
movl %ecx, %eax
|
|
||||||
push %eax
|
|
||||||
movl $5, %eax
|
|
||||||
push %eax
|
|
||||||
movl $4, %eax
|
|
||||||
movl %eax, %ecx
|
|
||||||
pop %eax
|
|
||||||
cdq
|
|
||||||
idivl %ecx
|
|
||||||
push %eax
|
|
||||||
movl $2, %eax
|
|
||||||
push %eax
|
|
||||||
movl $3, %eax
|
|
||||||
pop %ecx
|
|
||||||
addl %ecx, %eax
|
|
||||||
pop %ecx
|
|
||||||
imul %ecx, %eax
|
|
||||||
push %eax
|
|
||||||
movl $9, %eax
|
|
||||||
neg %eax
|
|
||||||
movl %eax, %ecx
|
|
||||||
pop %eax
|
|
||||||
cdq
|
|
||||||
idivl %ecx
|
|
||||||
not %eax
|
|
||||||
neg %eax
|
|
||||||
pop %ecx
|
|
||||||
subl %eax, %ecx
|
|
||||||
movl %ecx, %eax
|
|
||||||
neg %eax
|
|
||||||
pop %ecx
|
|
||||||
addl %ecx, %eax
|
|
||||||
ret
|
|
||||||
Reference in New Issue
Block a user