llvm/test/CodeGen/MIR/AArch64/intrinsics.mir
Tim Northover 9c9955b41f CodeGen: add new "intrinsic" MachineOperand kind.
This will be used during GlobalISel, where we need a more robust and readable
way to write tests than a simple immediate ID.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@277209 91177308-0d34-0410-b5e6-96231b3b80d8
2016-07-29 20:32:59 +00:00

19 lines
385 B
YAML

# RUN: llc -mtriple=aarch64-none-linux-gnu -run-pass none -o - %s | FileCheck %s
--- |
define void @use_intrin() {
ret void
}
...
---
# Completely invalid code, but it checks that intrinsics round-trip properly.
# CHECK: %x0 = COPY intrinsic(@llvm.returnaddress)
name: use_intrin
body: |
bb.0:
%x0 = COPY intrinsic(@llvm.returnaddress)
RET_ReallyLR
...