brintos

brintos / llvm-project-archived public Read only

0
0
Text · 990 B · a5cc5fa Raw
20 lines · plain
1; Tests if the flag to disable qfp optimizer pass works or not.2 3; RUN: llc -march=hexagon -mcpu=hexagonv69 -mattr=+hvxv69,+hvx-length128b \4; RUN: < %s -o -| FileCheck %s --check-prefix=ENABLED5; RUN: llc -march=hexagon -mcpu=hexagonv69 -mattr=+hvxv69,+hvx-length128b \6; RUN: -disable-qfp-opt < %s -o -| FileCheck %s --check-prefix=DISABLED7 8define dso_local <32 x i32> @conv1_qf32(<32 x i32> noundef %input1, <32 x i32> noundef %input2) local_unnamed_addr {9entry:10; DISABLED: [[V2:v[0-9]+]].qf32 = vadd(v0.sf,v1.sf)11; DISABLED: [[V3:v[0-9]+]].sf = [[V2]].qf3212; DISABLED: qf32 = vadd(v0.sf,[[V3]].sf)13; ENABLED: [[V4:v[0-9]+]].qf32 = vadd(v0.sf,v1.sf)14; ENABLED: qf32 = vadd([[V4]].qf32,v0.sf)15  %0 = tail call <32 x i32> @llvm.hexagon.V6.vadd.sf.128B(<32 x i32> %input1, <32 x i32> %input2)16  %1 = tail call <32 x i32> @llvm.hexagon.V6.vconv.sf.qf32.128B(<32 x i32> %0)17  %2 = tail call <32 x i32> @llvm.hexagon.V6.vadd.sf.128B(<32 x i32> %input1, <32 x i32> %1)18  ret <32 x i32> %219}20