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 ${{[a-z0-9]+}}, ${{[a-z0-9]+}}, 0 6 7 define i64 @foo(i32 %ival) nounwind readnone { 8 entry: 9 %conv = sext i32 %ival to i64 10 ret i64 %conv 11 } 12 13 ; CHECK: dsll32 ${{[a-z0-9]+}}, ${{[a-z0-9]+}}, 0 14 15 define i64 @foo_2(i32 %ival_2) nounwind readnone { 16 entry: 17 %conv_2 = zext i32 %ival_2 to i64 18 ret i64 %conv_2 19 } 20 21