reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced
    1
    2
    3
    4
    5
    6
    7
    8
    9
   10
   11
   12
   13
   14
   15
   16
   17
   18
   19
   20
   21
; 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" }