Page MenuHomePhabricator

[ARM] select is not lowered in branching

Authored by kamleshbhalui on May 23 2020, 5:56 AM.



for test case please see at

instruction vadd.f64 is executed even when if condition is false.
later we ignore the result but we ended up setting fp exception bit,
which breaks posix conformance.
This behavior is pops up when optimization enabled.

As part of this fix conversion of select to branching instruction is enabled.

Diff Detail

Event Timeline

kamleshbhalui created this revision.May 23 2020, 5:56 AM

fixed failing testcase.

kamleshbhalui abandoned this revision.May 25 2020, 11:18 PM

-ftrapping-math will do the work.
so abandoning it.