Add a baseline test for llvm.annotation IR upgrade
This will be overloaded in the next commit.
This commit is contained in:
parent
53445f5b1c
commit
e114979dce
15
llvm/test/Bitcode/upgrade-annotation.ll
Normal file
15
llvm/test/Bitcode/upgrade-annotation.ll
Normal file
|
@ -0,0 +1,15 @@
|
|||
; Test upgrade of llvm.annotation intrinsics.
|
||||
;
|
||||
; RUN: llvm-as < %s | llvm-dis | FileCheck %s
|
||||
; RUN: llvm-dis < %s.bc | FileCheck %s
|
||||
|
||||
|
||||
; CHECK: define i32 @f(i32 [[ARG0:%.*]], i8* [[ARG1:%.*]], i8* [[ARG2:%.*]], i32 [[ARG3:%.*]])
|
||||
define i32 @f(i32 %arg0, i8* %arg1, i8* %arg2, i32 %arg3) {
|
||||
%result = call i32 @llvm.annotation.i32(i32 %arg0, i8* %arg1, i8* %arg2, i32 %arg3)
|
||||
; CHECK: [[RESULT:%.*]] = call i32 @llvm.annotation.i32(i32 [[ARG0]], i8* [[ARG1]], i8* [[ARG2]], i32 [[ARG3]])
|
||||
ret i32 %result
|
||||
}
|
||||
|
||||
declare i32 @llvm.annotation.i32(i32, i8*, i8*, i32)
|
||||
; CHECK: declare i32 @llvm.annotation.i32(i32, i8*, i8*, i32)
|
BIN
llvm/test/Bitcode/upgrade-annotation.ll.bc
Normal file
BIN
llvm/test/Bitcode/upgrade-annotation.ll.bc
Normal file
Binary file not shown.
|
@ -1,5 +1,6 @@
|
|||
; Test upgrade of ptr.annotation intrinsics.
|
||||
;
|
||||
; RUN: llvm-as < %s | llvm-dis | FileCheck %s
|
||||
; RUN: llvm-dis < %s.bc | FileCheck %s
|
||||
|
||||
; Unused return values
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
; Test upgrade of var.annotation intrinsics.
|
||||
;
|
||||
; RUN: llvm-as < %s | llvm-dis | FileCheck %s
|
||||
; RUN: llvm-dis < %s.bc | FileCheck %s
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user