Skip to content

Commit 118ea54

Browse files
committed
test case updated
1 parent c8a44bf commit 118ea54

File tree

1 file changed

+12
-7
lines changed

1 file changed

+12
-7
lines changed

llvm/test/CodeGen/Hexagon/qfp-conv.ll

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,23 @@
55

66
; CHECK: v{{[0-9]+}}.hf = v{{[0-9]:[0-9]}}.qf32
77

8-
define void @test() local_unnamed_addr #0 {
8+
define void @test(
9+
<32 x i32>* %optr,
10+
<64 x i32> %in64,
11+
<32 x i32> %va,
12+
<32 x i32> %vb
13+
) local_unnamed_addr #0 {
914
entry:
1015
br label %for.body
1116

1217
for.body:
13-
%optr.068 = phi <32 x i32>* [ %ptr, %entry ], [ %incdec.ptr6, %for.body ]
14-
%0 = tail call <32 x i32> @llvm.hexagon.V6.vconv.hf.qf32.128B(<64 x i32> %input64) #2
18+
%optr.068 = phi <32 x i32>* [ %optr, %entry ], [ %incdec.ptr6, %for.body ]
19+
%0 = tail call <32 x i32> @llvm.hexagon.V6.vconv.hf.qf32.128B(<64 x i32> %in64) #2
1520
%1 = tail call <32 x i32> @llvm.hexagon.V6.vdealh.128B(<32 x i32> %0) #2
16-
%2 = tail call <128 x i1> @llvm.hexagon.V6.vgth.128B(<32 x i32> %input32a, <32 x i32> %1) #2
17-
%3 = tail call <32 x i32> @llvm.hexagon.V6.vmux.128B(<128 x i1> %2, <32 x i32> %input32b, <32 x i32> %input32c) #2
18-
%4 = tail call <32 x i32> @llvm.hexagon.V6.vaddhsat.128B(<32 x i32> %3, <32 x i32> %input32d) #2
19-
%5 = tail call <32 x i32> @llvm.hexagon.V6.vpackhub.sat.128B(<32 x i32> %input32e, <32 x i32> %4) #2
21+
%2 = tail call <128 x i1> @llvm.hexagon.V6.vgth.128B(<32 x i32> %va, <32 x i32> %1) #2
22+
%3 = tail call <32 x i32> @llvm.hexagon.V6.vmux.128B(<128 x i1> %2, <32 x i32> %va, <32 x i32> %vb) #2
23+
%4 = tail call <32 x i32> @llvm.hexagon.V6.vaddhsat.128B(<32 x i32> %3, <32 x i32> %vb) #2
24+
%5 = tail call <32 x i32> @llvm.hexagon.V6.vpackhub.sat.128B(<32 x i32> %va, <32 x i32> %4) #2
2025
store <32 x i32> %5, <32 x i32>* %optr.068, align 1
2126
%incdec.ptr6 = getelementptr inbounds <32 x i32>, <32 x i32>* %optr.068, i32 1
2227
br label %for.body

0 commit comments

Comments
 (0)