brintos

brintos / llvm-project-archived public Read only

0
0
Text · 970 B · 513fdcc Raw
24 lines · plain
1; RUN: llc < %s -mtriple armv7-none-linux-gnueabi -fast-isel -O1 | FileCheck %s --check-prefix=DISABLE-FP-ELIM2; RUN: llc < %s -mtriple armv7-none-linux-gnueabi -frame-pointer=all -O1 | FileCheck %s --check-prefix=DISABLE-FP-ELIM3; RUN: llc < %s -mtriple armv7-none-linux-gnueabi -frame-pointer=none -O1 | FileCheck %s --check-prefix=ENABLE-FP-ELIM4; RUN: llc < %s -mtriple armv7-none-linux-gnueabi -frame-pointer=none -O0 | FileCheck %s --check-prefix=DISABLE-FP-ELIM5 6; Check that command line option "-frame-pointer=all" sets function7; attribute "frame-pointer"="all". Also, check frame pointer8; elimination is disabled when fast-isel is used.9 10; ENABLE-FP-ELIM-NOT: .setfp11; DISABLE-FP-ELIM: .setfp r11, sp12 13define i32 @foo1(i32 %a, i32 %b, i32 %c, i32 %d, i32 %e) {14entry:15  %call = tail call i32 @foo2(i32 %a)16  %add = add i32 %c, %b17  %add1 = add i32 %add, %d18  %add2 = add i32 %add1, %e19  %add3 = add i32 %add2, %call20  ret i32 %add321}22 23declare i32 @foo2(i32)24