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
d35ae732
Commit
d35ae732
authored
12 years ago
by
Chad Rosier
Browse files
Options
Downloads
Patches
Plain Diff
[ms-inline asm] Add a test case for the offset operator where the operand is a
global variable. llvm-svn: 171919
parent
bd491984
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/CodeGen/ms-inline-asm.c
+6
-3
6 additions, 3 deletions
clang/test/CodeGen/ms-inline-asm.c
with
6 additions
and
3 deletions
clang/test/CodeGen/ms-inline-asm.c
+
6
−
3
View file @
d35ae732
...
...
@@ -138,13 +138,16 @@ void t14() {
// CHECK: call void asm sideeffect inteldialect ".if 1\0A\09mov eax, dword ptr $0\0A\09.else\0A\09mov ebx, j\0A\09.endif", "*m,~{eax},~{dirflag},~{fpsr},~{flags}"(i32* %{{.*}}) nounwind
}
int
gvar
=
10
;
void
t15
()
{
int
var
=
10
;
__asm
mov
eax
,
var
;
eax
=
10
__asm
mov
eax
,
offset
var
;
eax
=
address
of
myvar
int
lvar
=
10
;
__asm
mov
eax
,
lvar
;
eax
=
10
__asm
mov
eax
,
offset
lvar
;
eax
=
address
of
lvar
__asm
mov
eax
,
offset
gvar
;
eax
=
address
of
gvar
// CHECK: t15
// CHECK: call void asm sideeffect inteldialect "mov eax, dword ptr $0", "*m,~{eax},~{dirflag},~{fpsr},~{flags}"(i32* %{{.*}}) nounwind
// CHECK: call void asm sideeffect inteldialect "mov eax, $0", "r,~{eax},~{dirflag},~{fpsr},~{flags}"(i32* %{{.*}}) nounwind
// CHECK: call void asm sideeffect inteldialect "mov eax, $0", "r,~{eax},~{dirflag},~{fpsr},~{flags}"(i32* @{{.*}}) nounwind
}
void
t16
()
{
...
...
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