On Tue, Jun 11, 2013 at 09:01:39AM -0600, Justin Bogner wrote: > Joerg Sonnenberg wrote: > > On Tue, Jun 11, 2013 at 12:18:55AM -0600, Justin Bogner wrote: > >> The clz, ctz, and popcount builtins are trivial to add constant folded > >> implementations of, and gcc accepts them in const contexts. > > > > Can you test the constant folding with > > char foo[f(x) == val ? 1 : -1]; > > > > or so? > > Do you mean something like this?
Yes, with a few more (non-trivial) test vectors. Joerg _______________________________________________ cfe-commits mailing list [email protected] http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
