Skip to content

Commit bc010ce

Browse files
committed
[AArch64][SME]: Add precursory tests for D138281
1 parent 82a46cd commit bc010ce

File tree

4 files changed

+3263
-0
lines changed

4 files changed

+3263
-0
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2+
; RUN: llc -force-streaming-compatible-sve < %s | FileCheck %s
3+
4+
target triple = "aarch64-unknown-linux-gnu"
5+
6+
; Ensure we don't crash when trying to combine fp<->int conversions
7+
define void @fp_convert_combine_crash(<8 x float> *%a, <8 x i32> *%b) #0 {
8+
; CHECK-LABEL: fp_convert_combine_crash:
9+
; CHECK: // %bb.0:
10+
; CHECK-NEXT: ldp q0, q1, [x0]
11+
; CHECK-NEXT: fcvtzs v0.4s, v0.4s, #3
12+
; CHECK-NEXT: fcvtzs v1.4s, v1.4s, #3
13+
; CHECK-NEXT: stp q0, q1, [x1]
14+
; CHECK-NEXT: ret
15+
%f = load <8 x float>, <8 x float>* %a
16+
%mul.i = fmul <8 x float> %f, <float 8.000000e+00, float 8.000000e+00, float 8.000000e+00, float 8.000000e+00,
17+
float 8.000000e+00, float 8.000000e+00, float 8.000000e+00, float 8.000000e+00>
18+
%vcvt.i = fptosi <8 x float> %mul.i to <8 x i32>
19+
store <8 x i32> %vcvt.i, <8 x i32>* %b
20+
ret void
21+
}
22+
23+
attributes #0 = { "target-features"="+sve" }

0 commit comments

Comments
 (0)