42 lines · plain
1; RUN: llc -mtriple=hexagon -disable-hexagon-amodeopt < %s | FileCheck %s --check-prefix=CHECK-NO-AMODE12 3; RUN: llc -mtriple=hexagon -disable-hexagon-amodeopt=0 < %s | FileCheck %s --check-prefix=CHECK-AMODE4 5; CHECK-NO-AMODE1: r{{[0-9]+}} = add([[REG1:(r[0-9]+)]],#{{[0-9]+}})6; CHECK-NO-AMODE1: r{{[0-9]+}} = add([[REG1]],#{{[0-9]+}})7 8; CHECK-AMODE: [[REG3:(r[0-9]+)]] = add(r{{[0-9]+}},#{{[0-9]+}})9; CHECK-AMODE: v{{.*}} = vmem([[REG3]]+#{{[0-9]+}})10; CHECK-AMODE: v{{.*}} = vmem([[REG3]]+#{{[0-9]+}})11 12target datalayout = "e-m:e-p:32:32:32-a:0-n16:32-i64:64:64-i32:32:32-i16:16:16-i1:8:8-f32:32:32-f64:64:64-v32:32:32-v64:64:64-v512:512:512-v1024:1024:1024-v2048:2048:2048"13target triple = "hexagon"14 15define dllexport void @foo() local_unnamed_addr #0 {16entry:17 %0 = load i8*, i8** undef, align 418 %1 = bitcast i8* %0 to half*19 %2 = or i32 undef, 12820 %3 = getelementptr half, half* %1, i32 %221 %4 = bitcast half* %3 to <64 x half>*22 %5 = load i8*, i8** undef, align 423 %6 = getelementptr i8, i8* %5, i32 102424 %7 = bitcast i8* %6 to <64 x half>*25 %8 = load <64 x half>, <64 x half>* %726 %9 = getelementptr i8, i8* %5, i32 115227 %10 = bitcast i8* %9 to <64 x half>*28 %11 = load <64 x half>, <64 x half>* %1029 %12 = fadd <64 x half> %8, %1130 store <64 x half> %12, <64 x half>* %4, align 12831 call void @llvm.assume(i1 true) [ "align"(i8* undef, i32 128) ]32 ret void33}34 35; Function Attrs: inaccessiblememonly nofree nosync nounwind willreturn36declare void @llvm.assume(i1 noundef) #137 38; Function Attrs: argmemonly nofree nosync nounwind readonly willreturn39declare <64 x half> @llvm.masked.load.v64f16.p0v64f16(<64 x half>*, i32 immarg, <64 x i1>, <64 x half>) #240 41attributes #0 = { "target-features"="+hvxv68,+hvx-length128b,+hvx-qfloat" }42