cttz-undef-arg.ll 518 B

12345678910111213141516
  1. ; RUN: not llvm-as < %s -o /dev/null 2>&1 | FileCheck %s
  2. declare i32 @llvm.ctlz.i32(i32, i1)
  3. declare i32 @llvm.cttz.i32(i32, i1)
  4. define void @f(i32 %x, i1 %is_not_zero) {
  5. entry:
  6. ; CHECK: is_zero_undef argument of bit counting intrinsics must be a constant int
  7. ; CHECK-NEXT: @llvm.ctlz.i32
  8. call i32 @llvm.ctlz.i32(i32 %x, i1 %is_not_zero)
  9. ; CHECK: is_zero_undef argument of bit counting intrinsics must be a constant int
  10. ; CHECK-NEXT: @llvm.cttz.i32
  11. call i32 @llvm.cttz.i32(i32 %x, i1 %is_not_zero)
  12. ret void
  13. }