[mips] Don't use odd-numbered single precision registers for fastcc calling
[oota-llvm.git] / test / CodeGen / Mips / mips16_fpret.ll
index ae0d1b44ae19b01557044312ab9a0ef4bcf814f9..fe87604d61073565783092ecab88d1c49c0b3903 100644 (file)
@@ -1,7 +1,7 @@
-; RUN: llc -march=mipsel -mcpu=mips16 -soft-float -mips16-hard-float -relocation-model=static < %s | FileCheck %s -check-prefix=1
-; RUN: llc -march=mipsel -mcpu=mips16 -soft-float -mips16-hard-float -relocation-model=static < %s | FileCheck %s -check-prefix=2
-; RUN: llc -march=mipsel -mcpu=mips16 -soft-float -mips16-hard-float -relocation-model=static < %s | FileCheck %s -check-prefix=3
-; RUN: llc -march=mipsel -mcpu=mips16 -soft-float -mips16-hard-float -relocation-model=static < %s | FileCheck %s -check-prefix=4
+; RUN: llc -mtriple=mipsel-linux-gnu -march=mipsel -mcpu=mips16 -relocation-model=static < %s | FileCheck %s -check-prefix=1
+; RUN: llc -mtriple=mipsel-linux-gnu -march=mipsel -mcpu=mips16 -relocation-model=static < %s | FileCheck %s -check-prefix=2
+; RUN: llc -mtriple=mipsel-linux-gnu  -march=mipsel -mcpu=mips16 -relocation-model=static < %s | FileCheck %s -check-prefix=3
+; RUN: llc -mtriple=mipsel-linux-gnu -march=mipsel -mcpu=mips16 -relocation-model=static < %s | FileCheck %s -check-prefix=4
 
 
 @x = global float 0x41F487E980000000, align 4
@@ -62,10 +62,10 @@ entry:
   %0 = load { double, double }* %retval
   ret { double, double } %0
 ; 1:   .ent    foodcx
-; 1:   lw      $2, %lo(dcx)(${{[0-9]+}})
+; 1:   lw      ${{[0-9]}}, %lo(dcx)(${{[0-9]+}})
 ; 1:   jal     __mips16_ret_dc
 ; 2:   .ent    foodcx
-; 2:   lw      $3, 4(${{[0-9]+}})
+; 2:   lw      ${{[0-9]}}, 4(${{[0-9]+}})
 ; 2:   jal     __mips16_ret_dc
 ; 3:   .ent    foodcx
 ; 3:   lw      $4, 8(${{[0-9]+}})
@@ -74,4 +74,3 @@ entry:
 ; 4:   lw      $5, 12(${{[0-9]+}})
 ; 4:   jal     __mips16_ret_dc
 }
-