1
- ; RUN: opt < %s -mattr=+sve -vector-library=ArmPL - passes=inject-tli-mappings,loop-vectorize -debug-only=loop-accesses -disable-output 2>&1 | FileCheck %s
1
+ ; RUN: opt < %s -passes='print<access-info>' -debug-only=loop-accesses -disable-output 2>&1 | FileCheck %s
2
2
3
3
; REQUIRES: asserts
4
4
5
- target triple = "aarch64-unknown-linux-gnu"
6
-
7
- ; TODO: add mappings for frexp/frexpf
8
5
9
6
define void @frexp_f64 (ptr %in , ptr %out1 , ptr %out2 , i32 %N ) {
7
+ ; CHECK: LAA: Allow to vectorize math function with write-only attribute: %call = tail call double @frexp
10
8
entry:
11
9
%cmp4 = icmp sgt i32 %N , 0
12
10
br i1 %cmp4 , label %for.body.preheader , label %for.cond.cleanup
@@ -33,6 +31,7 @@ for.body:
33
31
declare double @frexp (double , ptr ) #1
34
32
35
33
define void @frexp_f32 (ptr readonly %in , ptr %out1 , ptr %out2 , i32 %N ) {
34
+ ; CHECK: LAA: Allow to vectorize math function with write-only attribute: %call = tail call float @frexpf
36
35
entry:
37
36
%cmp4 = icmp sgt i32 %N , 0
38
37
br i1 %cmp4 , label %for.body.preheader , label %for.cond.cleanup
@@ -59,7 +58,7 @@ for.body:
59
58
declare float @frexpf (float , ptr ) #1
60
59
61
60
define void @modf_f64 (ptr %in , ptr %out1 , ptr %out2 , i32 %N ) {
62
- ; CHECK: LAA: allow math function with write-only attribute: %call = tail call double @modf
61
+ ; CHECK: LAA: Allow to vectorize math function with write-only attribute: %call = tail call double @modf
63
62
entry:
64
63
%cmp7 = icmp sgt i32 %N , 0
65
64
br i1 %cmp7 , label %for.body.preheader , label %for.cond.cleanup
@@ -87,7 +86,7 @@ for.body:
87
86
declare double @modf (double , ptr ) #1
88
87
89
88
define void @modf_f32 (ptr %in , ptr %out1 , ptr %out2 , i32 %N ) {
90
- ; CHECK: LAA: allow math function with write-only attribute: %call = tail call float @modff
89
+ ; CHECK: LAA: Allow to vectorize math function with write-only attribute: %call = tail call float @modff
91
90
entry:
92
91
%cmp7 = icmp sgt i32 %N , 0
93
92
br i1 %cmp7 , label %for.body.preheader , label %for.cond.cleanup
0 commit comments