Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
llvm-epi-0.8
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Roger Ferrer
llvm-epi-0.8
Commits
cd598aba
Commit
cd598aba
authored
12 years ago
by
Fariborz Jahanian
Browse files
Options
Downloads
Patches
Plain Diff
Fix up the test.
for //
rdar://11861085
llvm-svn: 173543
parent
e00c8b20
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
clang/test/CodeGenCXX/no-opt-volatile-memcpy.cpp
+15
-9
15 additions, 9 deletions
clang/test/CodeGenCXX/no-opt-volatile-memcpy.cpp
with
15 additions
and
9 deletions
clang/test/CodeGenCXX/no-opt-volatile-memcpy.cpp
+
15
−
9
View file @
cd598aba
// RUN: %clang_cc1 -O -triple=x86_64-apple-darwin -emit-llvm -o - %s | FileCheck %s
// RUN: %clang_cc1 -O
0
-triple=x86_64-apple-darwin -emit-llvm -o - %s | FileCheck %s
// rdar://11861085
struct
s
{
...
...
@@ -14,9 +14,15 @@ void foo (void) {
gs
=
gs
;
ls
=
gs
;
}
// CHECK: call void @llvm.memcpy
// CHECK: call void @llvm.memcpy
// CHECK: call void @llvm.memcpy
// CHECK: define void @_Z3foov()
// CHECK: %[[LS:.*]] = alloca %struct.s, align 4
// CHECK-NEXT: %[[ZERO:.*]] = bitcast %struct.s* %[[LS]] to i8*
// CHECK-NEXT: %[[ONE:.*]] = bitcast %struct.s* %[[LS]] to i8*
// CHECK-NEXT: call void @llvm.memcpy.{{.*}}(i8* %[[ZERO]], i8* %[[ONE]], i64 132, i32 4, i1 true)
// CHECK-NEXT: call void @llvm.memcpy.{{.*}}(i8* getelementptr inbounds (%struct.s* @gs, i32 0, i32 0, i32 0), i8* getelementptr inbounds (%struct.s* @gs, i32 0, i32 0, i32 0), i64 132, i32 4, i1 true)
// CHECK-NEXT: %[[TWO:.*]] = bitcast %struct.s* %[[LS]] to i8*
// CHECK-NEXT: call void @llvm.memcpy.{{.*}}(i8* %[[TWO]], i8* getelementptr inbounds (%struct.s* @gs, i32 0, i32 0, i32 0), i64 132, i32 4, i1 true)
struct
s1
{
struct
s
y
;
...
...
@@ -28,9 +34,9 @@ void fee (void) {
s
=
s
;
s
.
y
=
gs
;
}
// CHECK:
call
void @
llvm.memcpy
// CHECK: call void @llvm.memcpy
// CHECK:
define
void @
_Z3feev()
// CHECK: call void @llvm.memcpy
.{{.*}}(i8* getelementptr inbounds (%struct.s1* @s, i32 0, i32 0, i32 0, i32 0), i8* getelementptr inbounds (%struct.s1* @s, i32 0, i32 0, i32 0, i32 0), i64 132, i32 4, i1 true)
// CHECK-NEXT: call void @llvm.memcpy.{{.*}}(i8* getelementptr inbounds (%struct.s1* @s, i32 0, i32 0, i32 0, i32 0), i8* getelementptr inbounds (%struct.s* @gs, i32 0, i32 0, i32 0), i64 132, i32 4, i1 true)
struct
d
:
s1
{
};
...
...
@@ -40,5 +46,5 @@ d gd;
void
gorf
(
void
)
{
gd
=
gd
;
}
// CHECK:
call
void @
llvm.memcpy
// CHECK:
define
void @
_Z4gorfv()
// CHECK: call void @llvm.memcpy.{{.*}}(i8* getelementptr inbounds (%struct.d* @gd, i32 0, i32 0, i32 0, i32 0, i32 0), i8* getelementptr inbounds (%struct.d* @gd, i32 0, i32 0, i32 0, i32 0, i32 0), i64 132, i32 4, i1 true)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment