1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 5
2 ; RUN: llc -mtriple=xtensa < %s \
5 declare ptr @llvm.frameaddress(i32)
6 declare ptr @llvm.returnaddress(i32)
8 define ptr @test_frameaddress_0() nounwind {
9 ; CHECK-LABEL: test_frameaddress_0:
10 ; CHECK: or a2, a1, a1
12 %frameaddr = call ptr @llvm.frameaddress(i32 0)
16 define ptr @test_returnaddress_0() nounwind {
17 ; CHECK-LABEL: test_returnaddress_0:
18 ; CHECK: or a2, a0, a0
20 %retaddr = call ptr @llvm.returnaddress(i32 0)
24 define ptr @test_frameaddress_1() nounwind {
25 ; CHECK-LABEL: test_frameaddress_1:
28 %frameaddr = call ptr @llvm.frameaddress(i32 1)
32 define ptr @test_returnaddress_1() nounwind {
33 ; CHECK-LABEL: test_returnaddress_1:
36 %retaddr = call ptr @llvm.returnaddress(i32 1)