1 ; RUN: llc < %s -march=arm -mattr=+v6,+vfp2 | FileCheck %s
3 @i = weak global i32 0 ; <i32*> [#uses=2]
4 @u = weak global i32 0 ; <i32*> [#uses=2]
6 define i32 @foo1(float *%x) {
8 %tmp2 = bitcast float %tmp1 to i32
12 define i64 @foo2(double *%x) {
13 %tmp1 = load double* %x
14 %tmp2 = bitcast double %tmp1 to i64
18 define void @foo5(float %x) {
19 %tmp1 = fptosi float %x to i32
20 store i32 %tmp1, i32* @i
24 define void @foo6(float %x) {
25 %tmp1 = fptoui float %x to i32
26 store i32 %tmp1, i32* @u
30 define void @foo7(double %x) {
31 %tmp1 = fptosi double %x to i32
32 store i32 %tmp1, i32* @i
36 define void @foo8(double %x) {
37 %tmp1 = fptoui double %x to i32
38 store i32 %tmp1, i32* @u
42 define void @foo9(double %x) {
43 %tmp = fptoui double %x to i16
44 store i16 %tmp, i16* null