Support for emitting libcalls for atomic_fetch_nand and
atomic_{add,sub,and,or,xor,nand}_fetch was missing; add it, and some
test cases.
Details
Diff Detail
Event Timeline
lib/CodeGen/CGAtomic.cpp | ||
---|---|---|
811–815 | Do any of the tests cover this part of the change? |
lib/CodeGen/CGAtomic.cpp | ||
---|---|---|
811–815 | None of the new ones do, but also note that this part is not a change in behavior, just changing from "default:" to listing all the options not listed above, so that missing a case emits a warning. These calls are at least mostly covered by other tests, although I did not audit them to ensure 100% coverage. |
Can you make this a bit more useful by indicating where it should have been handled (Id assume Sema).