You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

34 lines
1000 B

; RUN: llc -march=hexagon -O2 -disable-hexagon-shuffle=1 < %s | FileCheck %s
; CHECK: vmemu(r{{[0-9]+}}) = v{{[0-9]*}};
target triple = "hexagon"
; Function Attrs: nounwind
define void @f0(i8* %a0, i8* %a1) #0 {
b0:
%v0 = alloca i8*, align 4
%v1 = alloca i8*, align 4
%v2 = alloca <16 x i32>, align 64
store i8* %a0, i8** %v0, align 4
store i8* %a1, i8** %v1, align 4
%v3 = load i8*, i8** %v0, align 4
%v4 = load <16 x i32>, <16 x i32>* %v2, align 64
call void asm sideeffect " $1 = vmemu($0);\0A", "r,v"(i8* %v3, <16 x i32> %v4) #1, !srcloc !0
%v5 = load i8*, i8** %v1, align 4
%v6 = load <16 x i32>, <16 x i32>* %v2, align 64
call void asm sideeffect " vmemu($0) = $1;\0A", "r,v,~{memory}"(i8* %v5, <16 x i32> %v6) #1, !srcloc !1
ret void
}
; Function Attrs: nounwind
define i32 @f1() #0 {
b0:
ret i32 0
}
attributes #0 = { nounwind "target-cpu"="hexagonv60" "target-features"="+hvxv60,+hvx-length64b" }
attributes #1 = { nounwind }
!0 = !{i32 233}
!1 = !{i32 307}