xref: /llvm-project/llvm/test/CodeGen/PowerPC/fast-isel-const.ll (revision d0f9553ef564de1ea0749ee3519d5505920dc29f)
1; RUN: llc < %s -O0 -verify-machineinstrs -fast-isel-abort=1 -mtriple=powerpc64-unknown-linux-gnu -mcpu=pwr7 | FileCheck %s --check-prefix=PPC64
2; RUN: llc < %s -O0 -verify-machineinstrs -fast-isel-abort=1 -mtriple=powerpc64-ibm-aix-xcoff -mcpu=pwr7 | FileCheck %s --check-prefix=PPC64
3
4define zeroext i1 @testi1(i8 %in) nounwind {
5entry:
6  %c = icmp eq i8 %in, 5
7  br i1 %c, label %true, label %false
8
9; PPC64-LABEL: @testi1
10
11true:
12  br label %end
13
14; PPC64-NOT: li {{[0-9]+}}, -1
15; PPC64: li {{[0-9]+}}, 1
16
17false:
18  br label %end
19
20; PPC64: li {{[0-9]+}}, 0
21
22end:
23  %r = phi i1 [ 0, %false], [ 1, %true ]
24  ret i1 %r
25
26; PPC64: blr
27}
28
29