This should always be signed chars, so use int8_t. This fixes a miscompile when
[llvm/stm8.git] / test / CodeGen / X86 / 2004-02-13-FrameReturnAddress.ll
blobfea2b54d763053124fa845385d8d908e266e9065
1 ; RUN: llc < %s -march=x86 | grep {(%esp}
2 ; RUN: llc < %s -march=x86 | grep {pushl        %ebp} | count 1
3 ; RUN: llc < %s -march=x86 | grep {popl %ebp} | count 1
5 declare i8* @llvm.returnaddress(i32)
7 declare i8* @llvm.frameaddress(i32)
9 define i8* @test1() {
10         %X = call i8* @llvm.returnaddress( i32 0 )              ; <i8*> [#uses=1]
11         ret i8* %X
14 define i8* @test2() {
15         %X = call i8* @llvm.frameaddress( i32 0 )               ; <i8*> [#uses=1]
16         ret i8* %X