brintos

brintos / llvm-project-archived public Read only

0
0
Text · 536 B · 4f1f739 Raw
23 lines · plain
1; RUN: llc -mtriple=mips64el -filetype=obj -mcpu=mips64r2 %s -o - | \2; RUN:   llvm-objdump --no-print-imm-hex -d - | FileCheck %s3 4; Sign extend from 32 to 64 was creating nonsense opcodes5 6; CHECK: sll ${{[a-z0-9]+}}, ${{[a-z0-9]+}}, 07 8define i64 @foo(i32 %ival) nounwind readnone {9entry:10  %conv = sext i32 %ival to i6411  ret i64 %conv12}13 14; CHECK-LABEL: <foo_2>:15; CHECK: dext ${{[a-z0-9]+}}, ${{[a-z0-9]+}}, 0, 3216 17define i64 @foo_2(i32 %ival_2) nounwind readnone {18entry:19  %conv_2 = zext i32 %ival_2 to i6420  ret i64 %conv_221}22 23