1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-26 04:32:44 +01:00
llvm-mirror/test/CodeGen/Hexagon/mpy.ll
Krzysztof Parzyszek f9268a010f [Hexagon] Remove support for V4
llvm-svn: 344791
2018-10-19 17:31:11 +00:00

22 lines
574 B
LLVM

; RUN: llc -march=hexagon < %s | FileCheck %s
; CHECK: += mpyi
define void @f0(i32 %a0, i32 %a1, i32 %a2) #0 {
b0:
%v0 = alloca i32, align 4
%v1 = alloca i32, align 4
%v2 = alloca i32, align 4
store i32 %a0, i32* %v0, align 4
store i32 %a1, i32* %v1, align 4
store i32 %a2, i32* %v2, align 4
%v3 = load i32, i32* %v1, align 4
%v4 = load i32, i32* %v0, align 4
%v5 = mul nsw i32 %v3, %v4
%v6 = load i32, i32* %v2, align 4
%v7 = add nsw i32 %v5, %v6
store i32 %v7, i32* %v1, align 4
ret void
}
attributes #0 = { nounwind "target-cpu"="hexagonv5" }