Revert " [LoongArch][ISel] Check the number of sign bits in `PatGprGpr_32` (#107432)"
[llvm-project.git] / llvm / test / CodeGen / AArch64 / sme-read-write-tpidr2.ll
blobc266aa2febd4a51b88f0deab01a2ed1e45af6230
1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc -mtriple=aarch64 -mattr=+sme < %s | FileCheck %s
4 define i64 @get_tpidr2_el0() {
5 ; CHECK-LABEL: get_tpidr2_el0:
6 ; CHECK:       // %bb.0:
7 ; CHECK-NEXT:    mrs x0, TPIDR2_EL0
8 ; CHECK-NEXT:    ret
9   %res = call i64 @llvm.aarch64.sme.get.tpidr2()
10   ret i64 %res
13 define void @set_tpidr2_el0(i64 %v) {
14 ; CHECK-LABEL: set_tpidr2_el0:
15 ; CHECK:       // %bb.0:
16 ; CHECK-NEXT:    msr TPIDR2_EL0, x0
17 ; CHECK-NEXT:    ret
18   call void @llvm.aarch64.sme.set.tpidr2(i64 %v)
19   ret void
22 declare i64 @llvm.aarch64.sme.get.tpidr2()
23 declare void @llvm.aarch64.sme.set.tpidr2(i64 %v)