Asiri Rathnayake | 1040a53 | 2015-10-19 11:44:24 +0000 | [diff] [blame] | 1 | ; RUN: not llc < %s -O1 -mtriple=armv6-none-none-eabi 2>&1 | FileCheck %s |
Weiming Zhao | 613c686 | 2015-12-20 06:41:44 +0000 | [diff] [blame] | 2 | ; RUN: not llc < %s -O1 -mtriple=thumbv7-none-none-eabi 2>&1 | FileCheck %s |
Asiri Rathnayake | 1040a53 | 2015-10-19 11:44:24 +0000 | [diff] [blame] | 3 | |
| 4 | ; immediate argument < lower-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 -1) |
| 8 | ret i32 %tmp |
| 9 | } |
| 10 | |
| 11 | declare i32 @llvm.arm.usat(i32, i32) nounwind readnone |