[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
This commit is contained in:
parent
48d67cdbb4
commit
e7b7290a9f
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue