R600: Improve texture handling
[oota-llvm.git] / test / CodeGen / ARM / 2007-01-19-InfiniteLoop.ll
index 3661c4c06d69e1b96404c3b9f319da46fa0a7279..0bfe33175196a738155d694cd2ce7de79aaad87d 100644 (file)
@@ -1,11 +1,16 @@
-; RUN: llvm-as < %s | llc -march=arm -mattr=+v6,+vfp2
+; RUN: llc < %s -mtriple=arm-apple-ios -mattr=+v6,+vfp2 | FileCheck %s
 
 @quant_coef = external global [6 x [4 x [4 x i32]]]            ; <[6 x [4 x [4 x i32]]]*> [#uses=1]
 @dequant_coef = external global [6 x [4 x [4 x i32]]]          ; <[6 x [4 x [4 x i32]]]*> [#uses=1]
 @A = external global [4 x [4 x i32]]           ; <[4 x [4 x i32]]*> [#uses=1]
 
+; CHECK: dct_luma_sp:
 define fastcc i32 @dct_luma_sp(i32 %block_x, i32 %block_y, i32* %coeff_cost) {
 entry:
+; Make sure to use base-updating stores for saving callee-saved registers.
+; CHECK: push
+; CHECK-NOT: sub sp
+; CHECK: push 
        %predicted_block = alloca [4 x [4 x i32]], align 4              ; <[4 x [4 x i32]]*> [#uses=1]
        br label %cond_next489
 
@@ -35,8 +40,8 @@ cond_next589:         ; preds = %cond_next489
        %tmp612 = load i32* null                ; <i32> [#uses=1]
        %tmp629 = load i32* null                ; <i32> [#uses=1]
        %tmp629a = sitofp i32 %tmp629 to double         ; <double> [#uses=1]
-       %tmp631 = mul double %tmp629a, 0.000000e+00             ; <double> [#uses=1]
-       %tmp632 = add double 0.000000e+00, %tmp631              ; <double> [#uses=1]
+       %tmp631 = fmul double %tmp629a, 0.000000e+00            ; <double> [#uses=1]
+       %tmp632 = fadd double 0.000000e+00, %tmp631             ; <double> [#uses=1]
        %tmp642 = call fastcc i32 @sign( i32 %tmp576, i32 %tmp561 )             ; <i32> [#uses=1]
        %tmp650 = mul i32 %tmp606, %tmp642              ; <i32> [#uses=1]
        %tmp656 = mul i32 %tmp650, %tmp612              ; <i32> [#uses=1]
@@ -46,8 +51,8 @@ cond_next589:         ; preds = %cond_next489
        %tmp666 = sub i32 %tmp660, %tmp496              ; <i32> [#uses=1]
        %tmp667 = sitofp i32 %tmp666 to double          ; <double> [#uses=2]
        call void @levrun_linfo_inter( i32 %tmp576, i32 0, i32* null, i32* null )
-       %tmp671 = mul double %tmp667, %tmp667           ; <double> [#uses=1]
-       %tmp675 = add double %tmp671, 0.000000e+00              ; <double> [#uses=1]
+       %tmp671 = fmul double %tmp667, %tmp667          ; <double> [#uses=1]
+       %tmp675 = fadd double %tmp671, 0.000000e+00             ; <double> [#uses=1]
        %tmp678 = fcmp oeq double %tmp632, %tmp675              ; <i1> [#uses=1]
        br i1 %tmp678, label %cond_true679, label %cond_false693