07/12/11 22:36:05 9UwQI84H
RISCだからってのは理由にならないと思います。
SPARCはRISCだけど割算命令あるよ。PowerPCはアセンブラ調べた事ないけど、
今試したらあった。
% cat tmp.c
int test(int x, int y)
{
return x/y;
}
$ gcc -O -S -o - tmp.c
.file "tmp.c"
.section ".text"
.align 2
.globl test
.type test, @function
test:
divw 3,3,4
blr
.size test,.-test
.ident "GCC: (GNU) 4.1.2 20070925 (Red Hat 4.1.2-27)"
.section .note.GNU-stack,"",@progbits