| 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 |
|
| 4 |
define zeroext i1 @testi1(i8 %in) nounwind { |
| 5 |
entry: |
| 6 |
%c = icmp eq i8 %in, 5 |
| 7 |
br i1 %c, label %true, label %false |
| 8 |
|
| 9 |
; PPC64-LABEL: @testi1 |
| 10 |
|
| 11 |
true: |
| 12 |
br label %end |
| 13 |
|
| 14 |
; PPC64-NOT: li {{[0-9]+}}, -1 |
| 15 |
; PPC64: li {{[0-9]+}}, 1 |
| 16 |
|
| 17 |
false: |
| 18 |
br label %end |
| 19 |
|
| 20 |
; PPC64: li {{[0-9]+}}, 0 |
| 21 |
|
| 22 |
end: |
| 23 |
%r = phi i1 [ 0, %false], [ 1, %true ] |
| 24 |
ret i1 %r |
| 25 |
|
| 26 |
; PPC64: blr |
| 27 |
} |
| 28 |
|