• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1; RUN: llc -mtriple=arm-eabi %s -o /dev/null
2; RUN: llc -mtriple=armv6-linux-gnueabi %s -o - | FileCheck %s
3
4; RUN: llc -mtriple=armv6-linux-gnu --frame-pointer=all %s -o - \
5; RUN:  | FileCheck %s -check-prefix CHECK-FP-ELIM
6
7; RUN: llc -mtriple=armv6-apple-ios %s -o - \
8; RUN:  | FileCheck %s -check-prefix CHECK-FP-ELIM
9
10@str = internal constant [12 x i8] c"Hello World\00"
11
12define i32 @main() "frame-pointer"="all" {
13	%tmp = call i32 @puts( i8* getelementptr ([12 x i8], [12 x i8]* @str, i32 0, i64 0) )		; <i32> [#uses=0]
14	ret i32 0
15}
16
17declare i32 @puts(i8*)
18
19; CHECK-LABEL: main
20; CHECK-NOT: mov
21; CHECK: mov r11, sp
22; CHECK-NOT: mov
23; CHECK: mov r0, #0
24; CHECK-NOT: mov
25
26; CHECK-FP-ELIM-LABEL: main
27; CHECK-FP-ELIM: mov
28; CHECK-FP-ELIM: mov
29; CHECK-FP-ELIM-NOT: mov
30
31