[InstCombine] Signed saturation patterns
[llvm-core.git] / test / CodeGen / ARM / usat-upper.ll
blob84ad694725b4ed71b66b08cf109dd4193ae5ab0a
1 ; RUN: not llc < %s -O1 -mtriple=armv6-none-none-eabi 2>&1 | FileCheck %s
2 ; RUN: not llc < %s -O1 -mtriple=thumbv7-none-none-eabi 2>&1 | FileCheck %s
4 ; immediate argument > upper-bound
5 ; CHECK: LLVM ERROR: Cannot select: intrinsic %llvm.arm.usat
6 define i32 @usat1() nounwind {
7   %tmp = call i32 @llvm.arm.usat(i32 128, i32 32)
8   ret i32 %tmp
11 declare i32 @llvm.arm.usat(i32, i32) nounwind readnone