1 ; RUN: llc -mtriple=powerpc64le-linux-gnu -mcpu=pwr8 < %s | FileCheck %s
3 ; https://bugs.llvm.org/show_bug.cgi?id=32442
4 ; Don't generate zero extension for the return value.
7 define zeroext i1 @foo(i32 signext %i, ptr %p) {
9 %cmp = icmp eq i32 %i, 0
10 br i1 %cmp, label %return, label %if.end
13 store i32 %i, ptr %p, align 4
17 %retval = phi i1 [ true, %if.end ], [ false, %entry ]