Dan Gohman | 0a06310 | 2009-09-08 23:54:48 +0000 | [diff] [blame^] | 1 | ; RUN: llc < %s -disable-fp-elim -march=x86 | not grep xor |
| 2 | ; RUN: llc < %s -disable-fp-elim -march=x86-64 | not grep xor |
Bill Wendling | 6ddc87b | 2009-01-16 19:25:27 +0000 | [diff] [blame] | 3 | |
| 4 | define i8* @h() nounwind readnone optsize { |
| 5 | entry: |
| 6 | %0 = tail call i8* @llvm.returnaddress(i32 2) ; <i8*> [#uses=1] |
| 7 | ret i8* %0 |
| 8 | } |
| 9 | |
| 10 | declare i8* @llvm.returnaddress(i32) nounwind readnone |
| 11 | |
| 12 | define i8* @g() nounwind readnone optsize { |
| 13 | entry: |
| 14 | %0 = tail call i8* @llvm.returnaddress(i32 1) ; <i8*> [#uses=1] |
| 15 | ret i8* %0 |
| 16 | } |
| 17 | |
| 18 | define i8* @f() nounwind readnone optsize { |
| 19 | entry: |
| 20 | %0 = tail call i8* @llvm.returnaddress(i32 0) ; <i8*> [#uses=1] |
| 21 | ret i8* %0 |
| 22 | } |