Skip to content

Commit d74b59f

Browse files
author
badumbatish
committed
Added vector support for pow[i] poison
1 parent 4001e1e commit d74b59f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

llvm/test/Transforms/InstSimplify/fold-intrinsics.ll

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ define void @pow_poison(i16 %arg_int,float %arg_flt, ptr %P) {
6161
; CHECK-NEXT: store volatile float poison, ptr [[P]], align 4
6262
; CHECK-NEXT: store volatile float poison, ptr [[P]], align 4
6363
; CHECK-NEXT: store volatile float poison, ptr [[P]], align 4
64+
; CHECK-NEXT: store volatile <2 x float> poison, ptr [[P]], align 8
6465
; CHECK-NEXT: ret void
6566
;
6667
%2 = tail call float @llvm.powi(float poison, i16 %arg_int) nounwind
@@ -80,5 +81,9 @@ define void @pow_poison(i16 %arg_int,float %arg_flt, ptr %P) {
8081

8182
%7 = tail call float @llvm.pow(float poison, float poison) nounwind
8283
store volatile float %7, ptr %P
84+
85+
%8 = tail call <2 x float> @llvm.pow(<2 x float> poison, <2 x float> poison) nounwind
86+
store volatile <2 x float> %8, ptr %P
87+
8388
ret void
8489
}

0 commit comments

Comments
 (0)