Krzysztof Parzyszek | fcbb7d1 | 2017-03-02 17:50:24 +0000 | [diff] [blame] | 1 | ; RUN: llc -march=hexagon < %s | FileCheck %s |
| 2 | ; REQUIRES: asserts |
| 3 | |
| 4 | ; Make sure we can handle the 'q' constraint in the 128-byte mode. |
| 5 | |
| 6 | target triple = "hexagon" |
| 7 | |
| 8 | ; CHECK-LABEL: fred |
| 9 | ; CHECK: if (q{{[0-3]}}) vmem |
| 10 | define void @fred() #0 { |
| 11 | tail call void asm sideeffect "if ($0) vmem($1) = $2;", "q,r,v,~{memory}"(<32 x i32> undef, <32 x i32>* undef, <32 x i32> undef) #0 |
| 12 | ret void |
| 13 | } |
| 14 | |
Sumanth Gundapaneni | e1983bc | 2017-10-18 18:07:07 +0000 | [diff] [blame] | 15 | attributes #0 = { nounwind "target-cpu"="hexagonv60" "target-features"="+hvx,+hvx-length128b" } |