bolt/deps/llvm-18.1.8/llvm/test/Assembler/implicit-intrinsic-declaration-invalid.ll
2025-02-14 19:21:04 +01:00

11 lines
310 B
LLVM

; RUN: not llvm-as < %s 2>&1 | FileCheck %s
; Check that intrinsics do not get automatically declared if they are used
; with different function types.
; CHECK: error: use of undefined value '@llvm.umax'
define void @test() {
call i8 @llvm.umax(i8 0, i8 1)
call i16 @llvm.umax(i16 0, i16 1)
ret void
}