diff options
| author | Yunzhong Gao <Yunzhong.Gao@sony.com> | 2016-09-02 23:16:06 +0000 |
|---|---|---|
| committer | Yunzhong Gao <Yunzhong.Gao@sony.com> | 2016-09-02 23:16:06 +0000 |
| commit | f4903a3675a9b0c66ea3a1ddc713e2465a273745 (patch) | |
| tree | a4ebc80de31a30b4da2efd3ff769a25befd37d1b /clang/test/Parser/ms-inline-asm.c | |
| parent | 27ea29b3b74900be58b77eb148b61fe7f6d8d97f (diff) | |
| download | bcm5719-llvm-f4903a3675a9b0c66ea3a1ddc713e2465a273745.tar.gz bcm5719-llvm-f4903a3675a9b0c66ea3a1ddc713e2465a273745.zip | |
(clang part) Implement MASM-flavor intel syntax behavior for inline MS asm block.
Clang tests for verifying the following syntaxes:
1. 0xNN and NNh are accepted as valid hexadecimal numbers, but 0xNNh is not.
0xNN and NNh may come with optional U or L suffix.
2. NNb is accepted as a valid binary (base-2) number, but 0bNN is not.
NNb may come with optional U or L suffix.
Differential Revision: https://reviews.llvm.org/D22112
llvm-svn: 280556
Diffstat (limited to 'clang/test/Parser/ms-inline-asm.c')
| -rw-r--r-- | clang/test/Parser/ms-inline-asm.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/clang/test/Parser/ms-inline-asm.c b/clang/test/Parser/ms-inline-asm.c index 7db4720b9fc..0170b2b84fa 100644 --- a/clang/test/Parser/ms-inline-asm.c +++ b/clang/test/Parser/ms-inline-asm.c @@ -7,9 +7,9 @@ #define M2 int void t1(void) { M } -void t2(void) { __asm int 0x2c } -void t3(void) { __asm M2 0x2c } -void t4(void) { __asm mov eax, fs:[0x10] } +void t2(void) { __asm int 2ch } +void t3(void) { __asm M2 2ch } +void t4(void) { __asm mov eax, fs:[10h] } void t5() { __asm { int 0x2c ; } asm comments are fun! }{ @@ -26,7 +26,7 @@ int t6() { void t7() { __asm { push ebx - mov ebx, 0x07 + mov ebx, 07h pop ebx } } |

