llvm.org GIT mirror llvm / 93c65c8
Fix off-by-one error in traversing an array; this fixes a test. The error was reported by gcc-4.3.0 during compilation. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@61896 91177308-0d34-0410-b5e6-96231b3b80d8 Misha Brukman 11 years ago
2 changed file(s) with 1 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
677677
678678 unsigned Opc = unsigned(Cond[0].getImm());
679679 // Pretty dull mapping between the two conditions that SPU can generate:
680 for (int i = sizeof(revconds)/sizeof(revconds[0]); i >= 0; --i) {
680 for (int i = sizeof(revconds)/sizeof(revconds[0]) - 1; i >= 0; --i) {
681681 if (revconds[i].Opc == Opc) {
682682 Cond[0].setImm(revconds[i].RevCondOpc);
683683 return false;
1515 ; RUN: grep -w rotqbybi %t1.s | count 1
1616 ; RUN: grep -w sfi %t1.s | count 3
1717
18 ; XFAIL: alpha|linux|sparc|ia64|arm
19
2018 target datalayout = "E-p:32:32:128-f64:64:128-f32:32:128-i64:32:128-i32:32:128-i16:16:128-i8:8:128-i1:8:128-a0:0:128-v128:128:128-s0:128:128"
2119 target triple = "spu"
2220