1 ; RUN: llc --mtriple=powerpc64le-linux-gnu < %s | FileCheck %s
3 ; It tests in function DAGCombiner::visitSIGN_EXTEND_INREG
4 ; signext will not be combined with extload, and causes extra zext.
6 declare void @g(i32 signext)
8 define void @foo(i8* %p) {
13 %0 = load i8, i8* %p, align 1
14 %conv = zext i8 %0 to i32
15 %cmp = icmp sgt i8 %0, 0
16 br i1 %cmp, label %if.then, label %while.body
23 tail call void @g(i32 signext %conv)