xref: /aosp_15_r20/external/llvm/test/CodeGen/PowerPC/compare-simm.ll (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1; RUN: llc < %s -march=ppc32 -mtriple=powerpc-apple-darwin8 | FileCheck %s
2
3define i32 @test(i32 %x) nounwind {
4; CHECK-LABEL: @test
5; CHECK: cmpwi r3, -1
6
7        %c = icmp eq i32 %x, -1
8	br i1 %c, label %T, label %F
9T:
10	%A = call i32 @test(i32 123)
11	%B = add i32 %A, 43
12	ret i32 %B
13F:
14	%G = add i32 %x, 1234
15	ret i32 %G
16}
17