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