1 ; RUN: opt -S -instsimplify < %s | FileCheck %s
3 target datalayout = "E-m:e-i64:64-n32:64"
4 target triple = "powerpc64-unknown-linux-gnu"
6 define zeroext i1 @_Z10isNegativemj(i64 %Val, i32 zeroext %IntegerBitWidth) {
8 %conv = zext i32 %IntegerBitWidth to i64
9 %sub = sub i64 128, %conv
10 %conv1 = trunc i64 %sub to i32
11 %conv2 = zext i64 %Val to i128
12 %sh_prom = zext i32 %conv1 to i128
13 %shl = shl i128 %conv2, %sh_prom
14 %shr = ashr i128 %shl, %sh_prom
15 %cmp = icmp slt i128 %shr, 0
19 ; CHECK-LABEL: @_Z10isNegativemj
20 ; CHECK-NOT: ret i1 false