blob: 48cd061d32219e128ca599637fb88a1e37c718ab [file] [log] [blame]
Chandler Carruthc4eab902011-12-12 04:36:02 +00001; RUN: not llvm-as < %s -o /dev/null |& FileCheck %s
2
3declare i32 @llvm.ctlz.i32(i32, i1)
4declare i32 @llvm.cttz.i32(i32, i1)
5
6define void @f(i32 %x, i1 %is_not_zero) {
7entry:
8; CHECK: is_zero_undef argument of bit counting intrinsics must be a constant int
9; CHECK-NEXT: @llvm.ctlz.i32
10 call i32 @llvm.ctlz.i32(i32 %x, i1 %is_not_zero)
11
12; CHECK: is_zero_undef argument of bit counting intrinsics must be a constant int
13; CHECK-NEXT: @llvm.cttz.i32
14 call i32 @llvm.cttz.i32(i32 %x, i1 %is_not_zero)
15 ret void
16}