diff options
author | krebbel <krebbel@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-04-11 10:42:27 +0000 |
---|---|---|
committer | krebbel <krebbel@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-04-11 10:42:27 +0000 |
commit | cfa0a736a566e1a125df35e13c9fb1416ee967c3 (patch) | |
tree | 5252b1c1b1eb89237d703ff6aa43e8d452f14ad2 /gcc/config/s390 | |
parent | 0f2bdcecd65242eb5722a68c5c5d5d8b62b08757 (diff) | |
download | gcc-cfa0a736a566e1a125df35e13c9fb1416ee967c3.tar.gz |
2014-04-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
* config/s390/s390.md: Add a splitter for NOT rtx.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@209295 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/s390')
-rw-r--r-- | gcc/config/s390/s390.md | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/gcc/config/s390/s390.md b/gcc/config/s390/s390.md index 7d9d1ad7ecd..b17c1fac875 100644 --- a/gcc/config/s390/s390.md +++ b/gcc/config/s390/s390.md @@ -7001,6 +7001,21 @@ "" "s390_expand_logical_operator (XOR, <MODE>mode, operands); DONE;") +; Combine replaces (xor (x) (const_int -1)) with (not (x)) when doing +; simplifications. So its better to have something matching. +(define_split + [(set (match_operand:INT 0 "nonimmediate_operand" "") + (not:INT (match_operand:INT 1 "nonimmediate_operand" "")))] + "" + [(parallel + [(set (match_dup 0) (xor:INT (match_dup 1) (match_dup 2))) + (clobber (reg:CC CC_REGNUM))])] +{ + operands[2] = constm1_rtx; + if (!s390_logical_operator_ok_p (operands)) + FAIL; +}) + ; ; xordi3 instruction pattern(s). ; |