mirror of
git://c9x.me/qbe.git
synced 2026-04-07 10:59:47 +00:00
add test in fpcnv.ssa
This commit is contained in:
parent
cebec4dd47
commit
096b447699
@ -19,8 +19,9 @@ function d $ftrunc(d %f) {
|
|||||||
# extern float fneg(float);
|
# extern float fneg(float);
|
||||||
# extern double ftrunc(double);
|
# extern double ftrunc(double);
|
||||||
# int main() {
|
# int main() {
|
||||||
# if (fneg(1.234f) != -1.234f) return 1;
|
# if (fneg(1.23f) != -1.23f) return 1;
|
||||||
# if (ftrunc(3.1415) != 3.0) return 2;
|
# if (ftrunc(3.1415) != 3.0) return 2;
|
||||||
|
# if (ftrunc(-1.234) != -1.0) return 3;
|
||||||
# return 0;
|
# return 0;
|
||||||
# }
|
# }
|
||||||
# <<<
|
# <<<
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user