xref: /llvm-project/llvm/test/CodeGen/ARM/ssat-upper.ll (revision 4ad76852584480b646d1ce360202e18591ea8938)
1; RUN: not --crash llc < %s -O1 -mtriple=armv6-none-none-eabi 2>&1 | FileCheck %s
2; RUN: not --crash llc < %s -O1 -mtriple=thumbv7-none-none-eabi 2>&1 | FileCheck %s
3
4; immediate argument > upper-bound
5; CHECK: LLVM ERROR: Cannot select: intrinsic %llvm.arm.ssat
6define i32 @ssat1() nounwind {
7  %tmp = call i32 @llvm.arm.ssat(i32 128, i32 33)
8  ret i32 %tmp
9}
10
11declare i32 @llvm.arm.ssat(i32, i32) nounwind readnone
12