aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Forney <mforney@mforney.org>2019-02-15 16:29:32 -0800
committerMichael Forney <mforney@mforney.org>2019-02-15 16:50:24 -0800
commitc0984480b6d6688d32e1023caba6a97beb3fa4e7 (patch)
tree4121345d41492a7506c7c640dae89fcf76543431
parentd31d1b2b20291ef8bceaf17444843b11558a3c25 (diff)
downloadcproc-c0984480b6d6688d32e1023caba6a97beb3fa4e7.tar.xz
Remove a dead conditional in ftou
-rw-r--r--qbe.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/qbe.c b/qbe.c
index fd1515b..72f4a2e 100644
--- a/qbe.c
+++ b/qbe.c
@@ -502,8 +502,8 @@ ftou(struct function *f, struct representation *r, struct value *v)
phi[2] = mkblock("ftou_big");
join = mkblock("ftou_join");
- maxflt = mkfltconst(v->repr, r->base == 'w' ? 0x1p31 : 0x1p63);
- maxint = mkintconst(&i64, r->base == 'w' ? 1ull<<31 : 1ull<<63);
+ maxflt = mkfltconst(v->repr, 0x1p63);
+ maxint = mkintconst(&i64, 1ull<<63);
big = funcinst(f, v->repr->base == 's' ? ICGES : ICGED, &i32, (struct value *[]){v, maxflt});
funcjnz(f, big, phi[2], phi[0]);