1; RUN: not llvm-as < %s -o /dev/null 2>&1 | FileCheck %s 2 3declare <4 x i32> @llvm.get.active.lane.mask.v4i32.i32(i32, i32) 4 5define <4 x i32> @t1(i32 %IV, i32 %TC) { 6; CHECK: get_active_lane_mask: element type is not i1 7; CHECK-NEXT: %res = call <4 x i32> @llvm.get.active.lane.mask.v4i32.i32(i32 %IV, i32 %TC) 8 9 %res = call <4 x i32> @llvm.get.active.lane.mask.v4i32.i32(i32 %IV, i32 %TC) 10 ret <4 x i32> %res 11} 12 13declare i32 @llvm.get.active.lane.mask.i32.i32(i32, i32) 14 15define i32 @t2(i32 %IV, i32 %TC) { 16; CHECK: Intrinsic has incorrect return type! 17; CHECK-NEXT: i32 (i32, i32)* @llvm.get.active.lane.mask.i32.i32 18 19 %res = call i32 @llvm.get.active.lane.mask.i32.i32(i32 %IV, i32 %TC) 20 ret i32 %res 21} 22