blob: 3987e54a8d1b605c22a9e046e8e52342ac32f162 [file] [log] [blame]
Mehdi Amini945a6602015-02-27 18:32:11 +00001; RUN: llc < %s -O0 -verify-machineinstrs -fast-isel-abort=1 -mtriple=powerpc64-unknown-linux-gnu -mcpu=pwr7 -mattr=-vsx | FileCheck %s --check-prefix=ELF64
Hal Finkel0c505b02014-12-25 23:08:25 +00002
Eric Christopher1fb23392015-07-24 01:07:50 +00003define zeroext i1 @testi1(i8 %in) nounwind {
Hal Finkel0c505b02014-12-25 23:08:25 +00004entry:
5 %c = icmp eq i8 %in, 5
6 br i1 %c, label %true, label %false
7
8; ELF64-LABEL: @testi1
9
10true:
11 br label %end
12
13; ELF64-NOT: li {{[0-9]+}}, -1
14; ELF64: li {{[0-9]+}}, 1
15
16false:
17 br label %end
18
19; ELF64: li {{[0-9]+}}, 0
20
21end:
22 %r = phi i1 [ 0, %false], [ 1, %true ]
23 ret i1 %r
24
25; ELF64: blr
26}
27