diff options
Diffstat (limited to 'test/Transforms/InstCombine/strcpy-1.ll')
-rw-r--r-- | test/Transforms/InstCombine/strcpy-1.ll | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/test/Transforms/InstCombine/strcpy-1.ll b/test/Transforms/InstCombine/strcpy-1.ll index 7c253f6..24c70c1 100644 --- a/test/Transforms/InstCombine/strcpy-1.ll +++ b/test/Transforms/InstCombine/strcpy-1.ll @@ -15,8 +15,8 @@ declare i8* @strcpy(i8*, i8*) define void @test_simplify1() { ; CHECK-LABEL: @test_simplify1( - %dst = getelementptr [32 x i8]* @a, i32 0, i32 0 - %src = getelementptr [6 x i8]* @hello, i32 0, i32 0 + %dst = getelementptr [32 x i8], [32 x i8]* @a, i32 0, i32 0 + %src = getelementptr [6 x i8], [6 x i8]* @hello, i32 0, i32 0 call i8* @strcpy(i8* %dst, i8* %src) ; CHECK: @llvm.memcpy.p0i8.p0i8.i32 @@ -26,18 +26,18 @@ define void @test_simplify1() { define i8* @test_simplify2() { ; CHECK-LABEL: @test_simplify2( - %dst = getelementptr [32 x i8]* @a, i32 0, i32 0 + %dst = getelementptr [32 x i8], [32 x i8]* @a, i32 0, i32 0 %ret = call i8* @strcpy(i8* %dst, i8* %dst) -; CHECK: ret i8* getelementptr inbounds ([32 x i8]* @a, i32 0, i32 0) +; CHECK: ret i8* getelementptr inbounds ([32 x i8], [32 x i8]* @a, i32 0, i32 0) ret i8* %ret } define i8* @test_no_simplify1() { ; CHECK-LABEL: @test_no_simplify1( - %dst = getelementptr [32 x i8]* @a, i32 0, i32 0 - %src = getelementptr [32 x i8]* @b, i32 0, i32 0 + %dst = getelementptr [32 x i8], [32 x i8]* @a, i32 0, i32 0 + %src = getelementptr [32 x i8], [32 x i8]* @b, i32 0, i32 0 %ret = call i8* @strcpy(i8* %dst, i8* %src) ; CHECK: call i8* @strcpy |