1 ; RUN: llc < %s -mtriple=aarch64 -mattr=+mte | FileCheck %s
3 define ptr @irg_imm16(ptr %p) {
5 ; CHECK-LABEL: irg_imm16:
6 ; CHECK: mov w[[R:[0-9]+]], #16
7 ; CHECK: irg x0, x0, x[[R]]
9 %q = call ptr @llvm.aarch64.irg(ptr %p, i64 16)
13 define ptr @irg_imm0(ptr %p) {
15 ; CHECK-LABEL: irg_imm0:
16 ; CHECK: irg x0, x0{{$}}
18 %q = call ptr @llvm.aarch64.irg(ptr %p, i64 0)
22 define ptr @irg_reg(ptr %p, i64 %ex) {
24 ; CHECK-LABEL: irg_reg:
25 ; CHECK: irg x0, x0, x1
27 %q = call ptr @llvm.aarch64.irg(ptr %p, i64 %ex)
31 ; undef argument in irg is treated specially
32 define ptr @irg_sp() {
34 ; CHECK-LABEL: irg_sp:
35 ; CHECK: irg x0, sp{{$}}
37 %q = call ptr @llvm.aarch64.irg.sp(i64 0)
41 declare ptr @llvm.aarch64.irg(ptr %p, i64 %exclude)
42 declare ptr @llvm.aarch64.irg.sp(i64 %exclude)