|
13 | 13 | ; RUN: llc -aarch64-sve-vector-bits-min=1664 -aarch64-enable-atomic-cfg-tidy=false < %s | FileCheck %s -check-prefixes=CHECK,VBITS_GE_512,VBITS_GE_1024
|
14 | 14 | ; RUN: llc -aarch64-sve-vector-bits-min=1792 -aarch64-enable-atomic-cfg-tidy=false < %s | FileCheck %s -check-prefixes=CHECK,VBITS_GE_512,VBITS_GE_1024
|
15 | 15 | ; RUN: llc -aarch64-sve-vector-bits-min=1920 -aarch64-enable-atomic-cfg-tidy=false < %s | FileCheck %s -check-prefixes=CHECK,VBITS_GE_512,VBITS_GE_1024
|
16 |
| -; RUN: llc -aarch64-sve-vector-bits-min=2048 -aarch64-enable-atomic-cfg-tidy=false < %s | FileCheck %s -check-prefixes=CHECK,VBITS_GE_512,VBITS_GE_1024,VBITS_GE_2048 |
| 16 | +; RUN: llc -aarch64-sve-vector-bits-min=2048 -aarch64-enable-atomic-cfg-tidy=false < %s 2>%t | FileCheck %s -check-prefixes=CHECK,VBITS_GE_512,VBITS_GE_1024,VBITS_GE_2048 |
| 17 | +; RUN: FileCheck --check-prefix=WARN --allow-empty %s <%t |
| 18 | + |
| 19 | +; WARN-NOT: warning |
17 | 20 |
|
18 | 21 | ; Test we can code generater patterns of the form:
|
19 | 22 | ; fixed_length_vector = ISD::EXTRACT_SUBVECTOR scalable_vector, 0
|
|
85 | 88 | ret void
|
86 | 89 | }
|
87 | 90 |
|
| 91 | +; |
| 92 | +define <8 x i1> @no_warn_dropped_scalable(<8 x i32>* %in) #0 { |
| 93 | +; CHECK-LABEL: no_warn_dropped_scalable: |
| 94 | +; CHECK: ptrue [[PG:p[0-9]+]].s, vl8 |
| 95 | +; CHECK: ld1w { z{{[0-9]+}}.s }, [[PG]]/z, [x0] |
| 96 | +; CHECK-COUNT-8: cmp w{{[0-9]+}}, #0 |
| 97 | +; CHECK: ret |
| 98 | + %a = load <8 x i32>, <8 x i32>* %in |
| 99 | + br label %bb1 |
| 100 | + |
| 101 | +bb1: |
| 102 | + %cond = icmp sgt <8 x i32> %a, zeroinitializer |
| 103 | + ret <8 x i1> %cond |
| 104 | +} |
| 105 | + |
88 | 106 | attributes #0 = { "target-features"="+sve" }
|
0 commit comments