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 | 3fd3330a62b7b01f689ef8552443f649b061084e (patch) | |
| tree | 06750fc031977e4a7d4447adfc5532e1d41222d8 /clang/test/CodeGen | |
| parent | 0397edd9c8d47ddf66ad967c7ed64c978c8309e8 (diff) | |
| download | bcm5719-llvm-3fd3330a62b7b01f689ef8552443f649b061084e.tar.gz bcm5719-llvm-3fd3330a62b7b01f689ef8552443f649b061084e.zip | |
Test case for r165275.
llvm-svn: 165276
Diffstat (limited to 'clang/test/CodeGen')
| -rw-r--r-- | clang/test/CodeGen/ms-inline-asm.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/clang/test/CodeGen/ms-inline-asm.c b/clang/test/CodeGen/ms-inline-asm.c index 00643406a89..30d922040b6 100644 --- a/clang/test/CodeGen/ms-inline-asm.c +++ b/clang/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 +} |

