1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-30 15:32:52 +01:00
llvm-mirror/test/MC/Mips/lea_64.ll
Jack Carter 3f30c3effe The Mips64InstrInfo.td definitions DynAlloc64 LEA_ADDiu64
were using a class defined for 32 bit instructions and 
thus the instruction was for addiu instead of daddiu.

This was corrected by adding the instruction opcode as a 
field in the  base class to be filled in by the defs.

llvm-svn: 161359
2012-08-06 23:29:06 +00:00

19 lines
465 B
LLVM

; RUN: llc -march=mips64el -filetype=obj -mcpu=mips64r2 %s -o - \
; RUN: | llvm-objdump -disassemble -triple mips64el - \
; RUN: | FileCheck %s
@p = external global i32*
define void @f1() nounwind {
entry:
; CHECK: .text:
; CHECK-NOT: addiu {{[0-9,a-f]+}}, {{[0-9,a-f]+}}, {{[0-9]+}}
%a = alloca [10 x i32], align 4
%arraydecay = getelementptr inbounds [10 x i32]* %a, i64 0, i64 0
store i32* %arraydecay, i32** @p, align 8
ret void
; CHECK: jr $ra
}