[mips][mips64r6] Improve tests affected by the changes to multiplies and divides
[oota-llvm.git] / test / CodeGen / Mips / 2008-07-07-IntDoubleConvertions.ll
index 2f10a3f2a4c0650b36f0b3a9d6f6efd7b8533288..9a6bbdfb22ff5be0bd7221005713f18f41e93c87 100644 (file)
@@ -1,32 +1,33 @@
-; RUN: llvm-as < %s | llc -march=mips -o %t
-; RUN: grep __floatsidf   %t | count 1
-; RUN: grep __floatunsidf %t | count 1
-; RUN: grep __fixdfsi %t | count 1
-; RUN: grep __fixunsdfsi %t  | count 1
-
-target datalayout = "e-p:32:32:32-i1:8:8-i8:8:32-i16:16:32-i32:32:32-i64:32:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64"
-target triple = "mipsallegrexel-psp-elf"
+; RUN: llc -march=mips -mattr=single-float  < %s | FileCheck %s
 
 define double @int2fp(i32 %a) nounwind {
 entry:
+; CHECK: int2fp
+; CHECK: __floatsidf
        sitofp i32 %a to double         ; <double>:0 [#uses=1]
        ret double %0
 }
 
 define double @uint2double(i32 %a) nounwind {
 entry:
+; CHECK: uint2double
+; CHECK: __floatunsidf
        uitofp i32 %a to double         ; <double>:0 [#uses=1]
        ret double %0
 }
 
 define i32 @double2int(double %a) nounwind {
 entry:
+; CHECK: double2int
+; CHECK: __fixdfsi
   fptosi double %a to i32   ; <i32>:0 [#uses=1]
   ret i32 %0
 }
 
 define i32 @double2uint(double %a) nounwind {
 entry:
+; CHECK: double2uint
+; CHECK: __fixunsdfsi
   fptoui double %a to i32   ; <i32>:0 [#uses=1]
   ret i32 %0
 }