llvm/mlir/test/Integration/Dialect/LLVMIR/CPU/X86/test-inline-asm.mlir

// RUN: mlir-cpu-runner %s -e entry -entry-point-result=void  \
// RUN: -shared-libs=%mlir_c_runner_utils | \
// RUN: FileCheck %s

module {
  llvm.func @printI64(i64)
  llvm.func @entry()  {
    %c2 = llvm.mlir.constant(-42: i64) :i64
    %val = llvm.inline_asm "xor $0, $0", "=r,r" %c2 :
      (i64) -> i64

    // CHECK: 0
    llvm.call @printI64(%val) : (i64) -> ()
    llvm.return
  }
}