bc0b5b184fd7248c00695a53273b26372b978e1e
[oota-llvm.git] / test / MC / Mips / sext_64_32.ll
1 ; RUN: llc -march=mips64el -filetype=obj -mcpu=mips64r2 %s -o - | llvm-objdump -disassemble -triple mips64el - | FileCheck %s
2
3 ; Sign extend from 32 to 64 was creating nonsense opcodes
4
5 ; CHECK: sll ${{[0-9]+}}, ${{[0-9]+}}, 0
6
7 ; ModuleID = '../sext.c'
8 ;target datalayout = "e-p:64:64:64-i1:8:8-i8:8:32-i16:16:32-i32:32:32-i64:64:64-f32:32:32-f64:64:64-f128:128:128-v64:64:64-n32"
9 ;target triple = "mips64el-unknown-linux"
10
11 define i64 @foo(i32 %ival) nounwind readnone {
12 entry:
13   %conv = sext i32 %ival to i64
14   ret i64 %conv
15 }