diff options
author | Chad Rosier <mcrosier@apple.com> | 2012-10-04 23:59:54 +0000 |
---|---|---|
committer | Chad Rosier <mcrosier@apple.com> | 2012-10-04 23:59:54 +0000 |
commit | 76dd249b0f8ee1a1b89eee00b5a7514f69c0346a (patch) | |
tree | 750aad282e649b77eb9e54b652036a79e9935790 | |
parent | 36ef0d54cfddf31cd48816e78ab4db73b31a6c1d (diff) |
Test case for r165275.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@165276 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | test/CodeGen/ms-inline-asm.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/CodeGen/ms-inline-asm.c b/test/CodeGen/ms-inline-asm.c index 00643406a8..30d922040b 100644 --- a/test/CodeGen/ms-inline-asm.c +++ b/test/CodeGen/ms-inline-asm.c @@ -167,3 +167,12 @@ unsigned t19(void) { // CHECK: t19 // CHECK: call void asm sideeffect inteldialect "mov eax, $2\0A\09mov $0, eax\0A\09mov eax, $3\0A\09mov $1, eax", "=*m,=*m,*m,*m,~{eax},~{dirflag},~{fpsr},~{flags}"(i32* %{{.*}}, i32* %{{.*}}, i32* %{{.*}}, i32* %{{.*}}) nounwind } + +void t20(void) { + __asm { + mov eax, fs:[0x10] + mov eax, [eax] + } +// CHECK: t20 +// call void asm sideeffect inteldialect "mov eax, fs:[0x10]\0A\09mov eax, [eax]", "~{eax},~{dirflag},~{fpsr},~{flags}"() nounwind +} |