1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 19:52:54 +01:00
llvm-mirror/test/CodeGen/Hexagon/mnaci_v66.ll
2018-12-05 21:01:07 +00:00

16 lines
503 B
LLVM

; RUN: llc -march=hexagon < %s | FileCheck %s
; This test validates the generation of v66 only instruction M2_mnaci
; CHECK: r{{[0-9]+}} -= mpyi(r{{[0-9]+}},r{{[0-9]+}})
target triple = "hexagon-unknown--elf"
; Function Attrs: norecurse nounwind readnone
define i32 @_Z4testiii(i32 %a, i32 %b, i32 %c) #0 {
entry:
%mul = mul nsw i32 %c, %b
%sub = sub nsw i32 %a, %mul
ret i32 %sub
}
attributes #0 = { norecurse nounwind readnone "target-cpu"="hexagonv66" "target-features"="-hvx,-long-calls" }