brintos

brintos / llvm-project-archived public Read only

0
0
Text · 505 B · 68bc13f Raw
16 lines · plain
1; RUN: llc -mtriple=hexagon < %s | FileCheck %s2; This test validates the generation of v66 only instruction M2_mnaci3; CHECK: r{{[0-9]+}} -= mpyi(r{{[0-9]+}},r{{[0-9]+}})4 5target triple = "hexagon-unknown--elf"6 7; Function Attrs: norecurse nounwind readnone8define i32 @_Z4testiii(i32 %a, i32 %b, i32 %c) #0 {9entry:10  %mul = mul nsw i32 %c, %b11  %sub = sub nsw i32 %a, %mul12  ret i32 %sub13}14 15attributes #0 = { norecurse nounwind readnone "target-cpu"="hexagonv66" "target-features"="-hvx,-long-calls" }16