Commit 9150e331 by Matthew Gretton-Dann Committed by Matthew Gretton-Dann

arm.md (mov_notscc): Use MVN for false condition.

	* gcc/config/arm/arm.md (mov_notscc): Use MVN for false condition.
	* gcc/testsuite/gcc.c-torture/execute/20120110-1.c: New testcase.

From-SVN: r183095
parent 4dec0a42
2012-01-11 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
* config/arm/arm.md (mov_notscc): Use MVN for false condition.
2012-01-11 Nick Clifton <nickc@redhat.com> 2012-01-11 Nick Clifton <nickc@redhat.com>
* config/rx/rx.md (return): Define pattern. * config/rx/rx.md (return): Define pattern.
......
...@@ -7726,7 +7726,7 @@ ...@@ -7726,7 +7726,7 @@
(not:SI (match_operator:SI 1 "arm_comparison_operator" (not:SI (match_operator:SI 1 "arm_comparison_operator"
[(match_operand 2 "cc_register" "") (const_int 0)])))] [(match_operand 2 "cc_register" "") (const_int 0)])))]
"TARGET_ARM" "TARGET_ARM"
"mov%D1\\t%0, #0\;mvn%d1\\t%0, #1" "mvn%D1\\t%0, #0\;mvn%d1\\t%0, #1"
[(set_attr "conds" "use") [(set_attr "conds" "use")
(set_attr "insn" "mov") (set_attr "insn" "mov")
(set_attr "length" "8")] (set_attr "length" "8")]
......
2012-01-11 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
* gcc.c-torture/execute/20120110-1.c: New testcase.
2012-01-10 Jason Merrill <jason@redhat.com> 2012-01-10 Jason Merrill <jason@redhat.com>
PR c++/51614 PR c++/51614
......
#include <stdlib.h>
#include <stdint.h>
uint32_t f0a (uint64_t arg2) __attribute__((noinline));
uint32_t
f0a (uint64_t arg)
{
return ~(arg > -3);
}
int main() {
uint32_t r1;
r1 = f0a (12094370573988097329ULL);
if (r1 != ~0U)
abort ();
return 0;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment