blob: 06a10c6a30f07fc307874cbd927076e9af2898ca [file] [log] [blame]
Bill Wendling6ddc87b2009-01-16 19:25:27 +00001; RUN: llvm-as < %s | llc -disable-fp-elim -march=x86 | not grep xor
2; RUN: llvm-as < %s | llc -disable-fp-elim -march=x86-64 | not grep xor
3
4define i8* @h() nounwind readnone optsize {
5entry:
6 %0 = tail call i8* @llvm.returnaddress(i32 2) ; <i8*> [#uses=1]
7 ret i8* %0
8}
9
10declare i8* @llvm.returnaddress(i32) nounwind readnone
11
12define i8* @g() nounwind readnone optsize {
13entry:
14 %0 = tail call i8* @llvm.returnaddress(i32 1) ; <i8*> [#uses=1]
15 ret i8* %0
16}
17
18define i8* @f() nounwind readnone optsize {
19entry:
20 %0 = tail call i8* @llvm.returnaddress(i32 0) ; <i8*> [#uses=1]
21 ret i8* %0
22}