mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 11:13:28 +01:00
[AST[Tests] Shorten tests using noalias params
llvm-svn: 340099
This commit is contained in:
parent
96303e96c2
commit
151ff803ae
@ -26,10 +26,8 @@ entry:
|
||||
; CHECK-NEXT: Unknown instructions: call void @my_memmove(i8* %d, i8* %s, i64 1)
|
||||
|
||||
; CHECK-NEXT: AliasSet[0x{{[0-9a-f]+}}, 1] must alias, Mod Pointers: (i8* %b, 1)
|
||||
define void @test3(i8* %s, i8* %d) {
|
||||
define void @test3(i8* noalias %a, i8* noalias %b, i8* %s, i8* %d) {
|
||||
entry:
|
||||
%a = alloca i8, align 1
|
||||
%b = alloca i8, align 1
|
||||
store i8 1, i8* %a, align 1
|
||||
call void @my_memmove(i8* %d, i8* %s, i64 1)
|
||||
store i8 1, i8* %b, align 1
|
||||
@ -40,10 +38,8 @@ entry:
|
||||
; CHECK-NEXT: Alias Set Tracker: 1 alias sets for 2 pointer values.
|
||||
; CHECK-NEXT: AliasSet[0x{{[0-9a-f]+}}, 3] may alias, Mod/Ref Pointers: (i8* %a, 1), (i8* %b, 1)
|
||||
; CHECK-NEXT: 1 Unknown instructions: call void @my_memcpy(i8* %b, i8* %a, i64 1)
|
||||
define void @test5() {
|
||||
define void @test5(i8* noalias %a, i8* noalias %b) {
|
||||
entry:
|
||||
%a = alloca i8, align 1
|
||||
%b = alloca i8, align 1
|
||||
store i8 1, i8* %a, align 1
|
||||
call void @my_memcpy(i8* %b, i8* %a, i64 1)
|
||||
store i8 1, i8* %b, align 1
|
||||
@ -54,10 +50,8 @@ entry:
|
||||
; CHECK-NEXT: Alias Set Tracker: 1 alias sets for 2 pointer values.
|
||||
; CHECK-NEXT: AliasSet[0x{{[0-9a-f]+}}, 3] may alias, Mod/Ref Pointers: (i8* %a, 1), (i8* %b, 1)
|
||||
; CHECK-NEXT: 1 Unknown instructions: call void @my_memmove(i8* %b, i8* %a, i64 1)
|
||||
define void @test6() {
|
||||
define void @test6(i8* noalias %a, i8* noalias %b) {
|
||||
entry:
|
||||
%a = alloca i8, align 1
|
||||
%b = alloca i8, align 1
|
||||
store i8 1, i8* %a, align 1
|
||||
call void @my_memmove(i8* %b, i8* %a, i64 1)
|
||||
store i8 1, i8* %b, align 1
|
||||
@ -69,10 +63,8 @@ entry:
|
||||
; CHECK-NEXT: AliasSet[0x{{[0-9a-f]+}}, 3] may alias, Mod/Ref Pointers: (i8* %a, 1), (i8* %b, 1)
|
||||
; CHECK-NEXT: 2 Unknown instructions: call void @my_memcpy(i8* %b, i8* %a, i64 1), call void @my_memcpy(i8* %a, i8* %b, i64 1)
|
||||
|
||||
define void @test7() {
|
||||
define void @test7(i8* noalias %a, i8* noalias %b) {
|
||||
entry:
|
||||
%a = alloca i8, align 1
|
||||
%b = alloca i8, align 1
|
||||
store i8 1, i8* %a, align 1
|
||||
call void @my_memcpy(i8* %b, i8* %a, i64 1)
|
||||
call void @my_memcpy(i8* %a, i8* %b, i64 1)
|
||||
|
Loading…
Reference in New Issue
Block a user