1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-22 12:33:33 +02:00
llvm-mirror/test/CodeGen/Hexagon/M4_mpyri_addi_global.ll
Krzysztof Parzyszek 66abdd815e [Hexagon] Add more lit tests
llvm-svn: 327271
2018-03-12 14:01:28 +00:00

20 lines
485 B
LLVM

; RUN: llc -march=hexagon < %s | FileCheck %s
; CHECK: r{{[0-9]+}} = add(##g0,mpyi(r{{[0-9]+}},#24))
%s.0 = type { i32, i32, i32, i32, i32, i8 }
@g0 = common global [2 x %s.0] zeroinitializer, align 8
declare void @f0(%s.0*)
; Function Attrs: nounwind readnone
define void @f1(i32 %a0) #0 {
b0:
%v0 = getelementptr inbounds [2 x %s.0], [2 x %s.0]* @g0, i32 0, i32 %a0
call void @f0(%s.0* %v0) #1
ret void
}
attributes #0 = { nounwind readnone }
attributes #1 = { nounwind }