blob: 26f4ac0bd03847ccccbcede42387f61fe1444f46 [file] [log] [blame]
Krzysztof Parzyszekca3b5322016-05-18 14:34:51 +00001; RUN: llc -march=hexagon < %s | FileCheck %s
2
3; Check that constraints q and v are handled correctly.
4; CHECK: q{{.}} = vgtw(v{{.}}.w,v{{.}}.w)
5; CHECK: vand
6; CHECK: vmem
7
8target triple = "hexagon"
9
10; Function Attrs: nounwind
11define void @foo(<16 x i32> %v0, <16 x i32> %v1, <16 x i32>* nocapture %p) #0 {
12entry:
13 %0 = tail call <16 x i32> asm "$0 = vgtw($1.w,$2.w)", "=q,v,v"(<16 x i32> %v0, <16 x i32> %v1) #1
14 store <16 x i32> %0, <16 x i32>* %p, align 64
15 ret void
16}
17
Krzysztof Parzyszek6acecc92017-11-22 20:43:00 +000018attributes #0 = { nounwind "target-cpu"="hexagonv60" "target-features"="+hvxv60,+hvx-length64b" }
Krzysztof Parzyszekca3b5322016-05-18 14:34:51 +000019attributes #1 = { nounwind readnone }