diff options
author | Pirama Arumuga Nainar <pirama@google.com> | 2015-04-08 08:55:49 -0700 |
---|---|---|
committer | Pirama Arumuga Nainar <pirama@google.com> | 2015-04-09 15:04:38 -0700 |
commit | 4c5e43da7792f75567b693105cc53e3f1992ad98 (patch) | |
tree | 1b2c9792582e12f5af0b1512e3094425f0dc0df9 /test/Transforms/InstCombine/strstr-1.ll | |
parent | c75239e6119d0f9a74c57099d91cbc9bde56bf33 (diff) | |
download | external_llvm-4c5e43da7792f75567b693105cc53e3f1992ad98.zip external_llvm-4c5e43da7792f75567b693105cc53e3f1992ad98.tar.gz external_llvm-4c5e43da7792f75567b693105cc53e3f1992ad98.tar.bz2 |
Update aosp/master llvm for rebase to r233350
Change-Id: I07d935f8793ee8ec6b7da003f6483046594bca49
Diffstat (limited to 'test/Transforms/InstCombine/strstr-1.ll')
-rw-r--r-- | test/Transforms/InstCombine/strstr-1.ll | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/Transforms/InstCombine/strstr-1.ll b/test/Transforms/InstCombine/strstr-1.ll index a946dd3..d57e56c 100644 --- a/test/Transforms/InstCombine/strstr-1.ll +++ b/test/Transforms/InstCombine/strstr-1.ll @@ -15,7 +15,7 @@ declare i8* @strstr(i8*, i8*) define i8* @test_simplify1(i8* %str) { ; CHECK-LABEL: @test_simplify1( - %pat = getelementptr inbounds [1 x i8]* @.str, i32 0, i32 0 + %pat = getelementptr inbounds [1 x i8], [1 x i8]* @.str, i32 0, i32 0 %ret = call i8* @strstr(i8* %str, i8* %pat) ret i8* %ret ; CHECK-NEXT: ret i8* %str @@ -25,7 +25,7 @@ define i8* @test_simplify1(i8* %str) { define i8* @test_simplify2(i8* %str) { ; CHECK-LABEL: @test_simplify2( - %pat = getelementptr inbounds [2 x i8]* @.str1, i32 0, i32 0 + %pat = getelementptr inbounds [2 x i8], [2 x i8]* @.str1, i32 0, i32 0 %ret = call i8* @strstr(i8* %str, i8* %pat) ret i8* %ret ; CHECK-NEXT: @strchr(i8* %str, i32 97) @@ -35,11 +35,11 @@ define i8* @test_simplify2(i8* %str) { define i8* @test_simplify3() { ; CHECK-LABEL: @test_simplify3( - %str = getelementptr inbounds [6 x i8]* @.str2, i32 0, i32 0 - %pat = getelementptr inbounds [4 x i8]* @.str3, i32 0, i32 0 + %str = getelementptr inbounds [6 x i8], [6 x i8]* @.str2, i32 0, i32 0 + %pat = getelementptr inbounds [4 x i8], [4 x i8]* @.str3, i32 0, i32 0 %ret = call i8* @strstr(i8* %str, i8* %pat) ret i8* %ret -; CHECK-NEXT: getelementptr inbounds ([6 x i8]* @.str2, i64 0, i64 1) +; CHECK-NEXT: getelementptr inbounds ([6 x i8], [6 x i8]* @.str2, i64 0, i64 1) } ; Check strstr(str, str) -> str. |