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