mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-23 13:02:52 +02:00
32420dd092
initialize fields of the class that it used. The result was nonsense code. Before: 0000000000000000 <foo>: 0: 00441100 0x441100 4: 03e00008 jr ra 8: 00000000 nop After: 0000000000000000 <foo>: 0: 00041000 sll v0,a0,0x0 4: 03e00008 jr ra 8: 00000000 nop llvm-svn: 161377
16 lines
528 B
LLVM
16 lines
528 B
LLVM
; 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 ${{[0-9]+}}, ${{[0-9]+}}, 0
|
|
|
|
; ModuleID = '../sext.c'
|
|
;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"
|
|
;target triple = "mips64el-unknown-linux"
|
|
|
|
define i64 @foo(i32 %ival) nounwind readnone {
|
|
entry:
|
|
%conv = sext i32 %ival to i64
|
|
ret i64 %conv
|
|
}
|