[patch] Fix gcc.target/arm/thumb-cbranchqi.c.

2014-01-28 Thread Kazu_Hirata
Hi, Attached is a patch to fix gcc.target/arm/thumb-cbranchqi.c. Without this patch, the testcase fails because these days gcc generates: ldrb: ldrbr3, [r0, #8] mov r0, #2 cmp r3, #127 bls .L2 mov r0, #5 .L2: @ sp needed

[patch] ARM: Fix miscompilation in arm.md:*minmax_arithsi. (PR target/51408)

2011-12-04 Thread Kazu_Hirata
Hi, Attached is a patch to fix miscompilation in arm.md:*minmax_arithsi. The following testcase, reduced from efgcvt_r.c:fcvt_r in glibc, gets miscompiled: extern void abort (void); int __attribute__((noinline)) foo (int a, int b) { int max = (b > 0) ? b : 0; return max - a; } int main (vo