Mercurial > hg > CbC > CbC_llvm
view test/MC/Mips/sext_64_32.ll @ 17:5e1f5bc27634
remove codeFlag for llvm type and add __CodeTy
author | Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp> |
---|---|
date | Sat, 05 Oct 2013 22:04:18 +0900 |
parents | 9ad51c7bc036 |
children | 1172e4bd9c6f |
line wrap: on
line source
; RUN: llc -march=mips64el -filetype=obj -mcpu=mips64r2 %s -o - | llvm-objdump -disassemble -triple mips64el - | FileCheck %s ; Sign extend from 32 to 64 was creating nonsense opcodes ; CHECK: sll ${{[a-z0-9]+}}, ${{[a-z0-9]+}}, 0 define i64 @foo(i32 %ival) nounwind readnone { entry: %conv = sext i32 %ival to i64 ret i64 %conv } ; CHECK: dsll32 ${{[a-z0-9]+}}, ${{[a-z0-9]+}}, 0 define i64 @foo_2(i32 %ival_2) nounwind readnone { entry: %conv_2 = zext i32 %ival_2 to i64 ret i64 %conv_2 }