mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 04:02:41 +01:00
57cdb5383f
The saturation instructions appeared in v6T2, with DSP extensions, but they were being accepted / generated on any, with the new introduction of the saturation detection in the back-end. This commit restricts the usage to DSP-enable only cores. Fixes PR28607. llvm-svn: 276701
10 lines
280 B
LLVM
10 lines
280 B
LLVM
; RUN: not llc -O1 -mtriple=armv4t-none-none-eabi %s -o - 2>&1 | FileCheck %s
|
|
|
|
; CHECK: Cannot select: intrinsic %llvm.arm.ssat
|
|
define i32 @ssat() nounwind {
|
|
%tmp = call i32 @llvm.arm.ssat(i32 128, i32 1)
|
|
ret i32 %tmp
|
|
}
|
|
|
|
declare i32 @llvm.arm.ssat(i32, i32) nounwind readnone
|