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 --disable-fp-elim %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() {
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: mov
21; CHECK-NOT: mov
22
23; CHECK-FP-ELIM-LABEL: main
24; CHECK-FP-ELIM: mov
25; CHECK-FP-ELIM: mov
26; CHECK-FP-ELIM-NOT: mov
27
28