1 ; RUN: llc < %s -march=mips64el -mcpu=mips4 -target-abi=n64 | FileCheck %s
2 ; RUN: llc < %s -march=mips64el -mcpu=mips64 -target-abi=n64 | FileCheck %s
4 define i64 @zext64_32(i32 %a) nounwind readnone {
6 ; CHECK: addiu $[[R0:[0-9]+]], ${{[0-9]+}}, 2
7 ; CHECK: dsll $[[R1:[0-9]+]], $[[R0]], 32
8 ; CHECK: dsrl ${{[0-9]+}}, $[[R1]], 32
10 %conv = zext i32 %add to i64
14 define i64 @sext64_32(i32 %a) nounwind readnone {
16 ; CHECK: sll ${{[0-9]+}}, ${{[0-9]+}}, 0
17 %conv = sext i32 %a to i64
21 define i64 @i64_float(float %f) nounwind readnone {
24 %conv = fptosi float %f to i64