1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: not llc < %s --mtriple=loongarch64 -mattr=+d 2>&1 | FileCheck %s
4 define i32 @read_sp() nounwind {
6 ; CHECK: On LA64, only 64-bit registers can be read.
7 %a1 = call i32 @llvm.read_register.i32(metadata !0)
11 define void @write_sp(i32 %val) nounwind {
13 ; CHECK: On LA64, only 64-bit registers can be written.
14 call void @llvm.write_register.i32(metadata !0, i32 %val)
18 declare i32 @llvm.read_register.i32(metadata) nounwind
19 declare void @llvm.write_register.i32(metadata, i32) nounwind