Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a baseline test for llvm.annotation IR upgrade
This will be overloaded in the next commit.
- Loading branch information
1 parent
53445f5
commit e114979
Showing
4 changed files
with
17 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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) |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters