aboutsummaryrefslogtreecommitdiff
path: root/llvm/test/CodeGen/ARM/ssat-upper.ll
blob: 9fcab67b4a73023ef559dbd79d3f7a08f03e46d0 (plain)
1
2
3
4
5
6
7
8
9
10
11
; RUN: not --crash llc < %s -O1 -mtriple=armv6-none-none-eabi 2>&1 | FileCheck %s
; RUN: not --crash llc < %s -O1 -mtriple=thumbv7-none-none-eabi 2>&1 | FileCheck %s

; immediate argument > upper-bound
; CHECK: LLVM ERROR: Cannot select: intrinsic %llvm.arm.ssat
define i32 @ssat1() nounwind {
  %tmp = call i32 @llvm.arm.ssat(i32 128, i32 33)
  ret i32 %tmp
}

declare i32 @llvm.arm.ssat(i32, i32) nounwind readnone