• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// RUN: mlir-cpu-runner %s -e entry -entry-point-result=void  \
2// RUN: -shared-libs=%mlir_integration_test_dir/libmlir_c_runner_utils%shlibext | \
3// RUN: FileCheck %s
4
5module {
6  llvm.func @printI64(!llvm.i64)
7  llvm.func @entry()  {
8    %c2 = llvm.mlir.constant(-42: i64) :!llvm.i64
9    %val = llvm.inline_asm "xor $0, $0", "=r,r" %c2 :
10      (!llvm.i64) -> !llvm.i64
11
12    // CHECK: 0
13    llvm.call @printI64(%val) : (!llvm.i64) -> ()
14    llvm.return
15  }
16}
17