Go to file
Richard Sandiford 3d768e334b [SystemZ] Be more careful about inverting CC masks
System z branches have a mask to select which of the 4 CC values should
cause the branch to be taken.  We can invert a branch by inverting the mask.
However, not all instructions can produce all 4 CC values, so inverting
the branch like this can lead to some oddities.  For example, integer
comparisons only produce a CC of 0 (equal), 1 (less) or 2 (greater).
If an integer EQ is reversed to NE before instruction selection,
the branch will test for 1 or 2.  If instead the branch is reversed
after instruction selection (by inverting the mask), it will test for
1, 2 or 3.  Both are correct, but the second isn't really canonical.
This patch therefore keeps track of which CC values are possible
and uses this when inverting a mask.

Although this is mostly cosmestic, it fixes undefined behavior
for the CIJNLH in branch-08.ll.  Another fix would have been
to mask out bit 0 when generating the fused compare and branch,
but the point of this patch is that we shouldn't need to do that
in the first place.

The patch also makes it easier to reuse CC results from other instructions.

llvm-svn: 187495
2013-07-31 12:30:20 +00:00
clang With help from chapuni on IRC, I think this is right now. =] The issue 2013-07-31 11:14:13 +00:00
clang-tools-extra Fixed path differences when using include/exclude headers 2013-07-31 04:00:28 +00:00
compiler-rt [msan] Fix msan tests with pipefail option. 2013-07-31 09:14:55 +00:00
debuginfo-tests Now that we get non-trivial value parameters locations correct, un-XFAIL these tests. 2013-06-19 22:07:11 +00:00
libclc Add missing integer min/max definitions 2013-07-26 13:02:02 +00:00
libcxx Debug mode for unordered_multimap. Some mods were done for unordered_map as well to keep all the tests passing. However unordered_map is at the very least still missing tests, if not functionality (if it isn't tested, it probably isn't working). 2013-07-30 21:04:42 +00:00
libcxxabi tip-of-trunk clang has corrected some access checks for special members in a virtual inheritance hierarchy. Change a few private inheritances to protected. This change will not impact what the test was testing. This fixes http://llvm.org/bugs/show_bug.cgi?id=16753. 2013-07-30 19:00:45 +00:00
lld [PECOFF] Add a comment on the idata section fragments. 2013-07-31 05:10:20 +00:00
lldb Reverts r187449 (report_fatal_error) in favor of a log message since 2013-07-31 03:56:45 +00:00
llvm [SystemZ] Be more careful about inverting CC masks 2013-07-31 12:30:20 +00:00
polly Remove '-debug-only' from test case 2013-07-29 05:35:11 +00:00