This reverts commit 5561e17411
The logic was moved from cmake into lit fixing the issue that lead to the revert and potentially others with multi-config cmake generators
Differential Revision: https://reviews.llvm.org/D143925
17 lines
392 B
MLIR
17 lines
392 B
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
|
|
}
|
|
}
|