xref: /llvm-project/llvm/test/MC/AsmParser/pr28805.ll (revision 270f63b84a612dfa438df3d59903bb76fa0c7740)
1; RUN: llc %s -o - | FileCheck %s
2
3target datalayout = "e-m:w-i64:64-f80:128-n8:16:32:64-S128"
4target triple = "x86_64-pc-windows-msvc18.0.31101"
5
6define i32 @_xbegin() {
7entry:
8  %res = alloca i32, align 4
9  store i32 -1, ptr %res, align 4
10  call void asm sideeffect inteldialect ".byte 0xC7\0A\09.byte 0xF8\0A\09.byte 2\0A\09.byte 0\0A\09.byte 0\0A\09.byte 0\0A\09jmp .L__MSASMLABEL_.0__L2\0A\09mov dword ptr $0, eax\0A\09.L__MSASMLABEL_.0__L2:", "=*m,~{dirflag},~{fpsr},~{flags}"(ptr elementtype(i32) nonnull %res)
11  %0 = load i32, ptr %res, align 4
12  ret i32 %0
13}
14
15; CHECK-NOT: Error parsing inline asm
16
17; CHECK-LABEL: _xbegin:
18; CHECK: jmp .L__MSASMLABEL_.0__L2
19; CHECK: .L__MSASMLABEL_.0__L2:
20