diff options
author | Coby Tayree <coby.tayree@intel.com> | 2017-07-30 11:13:46 +0000 |
---|---|---|
committer | Coby Tayree <coby.tayree@intel.com> | 2017-07-30 11:13:46 +0000 |
commit | e7b7290a9f2d26ff07ef54c00e525069929829b5 (patch) | |
tree | d2b12d719c15c48426f1178edb7f0c01aeeb737b /clang/test/CodeGen/ms-inline-asm.c | |
parent | 48d67cdbb43c2a71d38ad32c7da0ab281de0727b (diff) | |
download | bcm5719-llvm-e7b7290a9f2d26ff07ef54c00e525069929829b5.tar.gz bcm5719-llvm-e7b7290a9f2d26ff07ef54c00e525069929829b5.zip |
[x86][inline-asm][ms-compat] legalize the use of "jc/jz short <op>"
MS ignores the keyword "short" when used after a jc/jz instruction, LLVM ought to do the same.
llvm: D35892
Differential Revision: https://reviews.llvm.org/D35893
llvm-svn: 309510
Diffstat (limited to 'clang/test/CodeGen/ms-inline-asm.c')
-rw-r--r-- | clang/test/CodeGen/ms-inline-asm.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/clang/test/CodeGen/ms-inline-asm.c b/clang/test/CodeGen/ms-inline-asm.c index ca4f8154064..a0af14d9d8d 100644 --- a/clang/test/CodeGen/ms-inline-asm.c +++ b/clang/test/CodeGen/ms-inline-asm.c @@ -704,10 +704,12 @@ void label5() { void label6(){ __asm { jmp short label + jc short label + jz short label label: } // CHECK-LABEL: define void @label6 - // CHECK: call void asm sideeffect inteldialect "jmp {{.*}}__MSASMLABEL_.${:uid}__label\0A\09{{.*}}__MSASMLABEL_.${:uid}__label:", "~{dirflag},~{fpsr},~{flags}"() + // CHECK: jmp {{.*}}__MSASMLABEL_.${:uid}__label\0A\09jc {{.*}}__MSASMLABEL_.${:uid}__label\0A\09jz {{.*}}__MSASMLABEL_.${:uid}__label\0A\09{{.*}}__MSASMLABEL_.${:uid}__label:" } // Don't include mxcsr in the clobber list. |