Krzysztof Parzyszek | 046090d | 2018-03-12 14:01:28 +0000 | [diff] [blame] | 1 | ; RUN: llc -march=hexagon -O3 < %s | FileCheck %s |
| 2 | ; CHECK-NOT: vmem |
| 3 | |
| 4 | target triple = "hexagon-unknown--elf" |
| 5 | |
| 6 | @g0 = common global [32 x i16] zeroinitializer, align 8 |
| 7 | |
| 8 | ; Function Attrs: nounwind |
| 9 | define i32 @f0() #0 { |
| 10 | b0: |
| 11 | call void @llvm.memset.p0i8.i32(i8* align 8 bitcast ([32 x i16]* @g0 to i8*), i8 0, i32 64, i1 false) |
| 12 | ret i32 0 |
| 13 | } |
| 14 | |
| 15 | ; Function Attrs: argmemonly nounwind |
| 16 | declare void @llvm.memset.p0i8.i32(i8* nocapture writeonly, i8, i32, i1) #1 |
| 17 | |
| 18 | attributes #0 = { nounwind "target-cpu"="hexagonv60" "target-features"="+hvx,+hvx-length64b" } |
| 19 | attributes #1 = { argmemonly nounwind } |