ICGPR_SextI32, ICGPR_ZextI64, ICGPR_SextI64 };
static cl::opt<ICmpInGPRType> CmpInGPR(
- "ppc-gpr-icmps", cl::Hidden, cl::init(ICGPR_None),
+ "ppc-gpr-icmps", cl::Hidden, cl::init(ICGPR_All),
cl::desc("Specify the types of comparisons to emit GPR-only code for."),
cl::values(clEnumValN(ICGPR_None, "none", "Do not modify integer comparisons."),
clEnumValN(ICGPR_All, "all", "All possible int comparisons in GPRs."),
; CHECK: # BB#0:
; CHECK-NEXT: ldbrx 3, 0, 3
; CHECK-NEXT: ldbrx 4, 0, 4
-; CHECK-NEXT: li 5, 0
-; CHECK-NEXT: cmpld 3, 4
-; CHECK-NEXT: li 3, 1
-; CHECK-NEXT: isel 4, 3, 5, 1
-; CHECK-NEXT: isel 3, 3, 5, 0
+; CHECK-NEXT: subfc 5, 3, 4
+; CHECK-NEXT: subfe 5, 4, 4
+; CHECK-NEXT: subfc 4, 4, 3
+; CHECK-NEXT: subfe 3, 3, 3
+; CHECK-NEXT: neg 4, 5
+; CHECK-NEXT: neg 3, 3
; CHECK-NEXT: subf 3, 3, 4
; CHECK-NEXT: extsw 3, 3
; CHECK-NEXT: blr