|
1 | 1 | ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 5
|
2 |
| -; RUN: llc -mtriple=arm64-apple-macosx -O3 -early-ifcvt-limit=0 -select-opti-loop-cycle-gain-threshold=2 -select-opti-loop-gradient-gain-threshold=10 -mcpu=apple-a7 -o - %s | FileCheck %s |
3 |
| -; RUN: llc -mtriple=arm64-apple-macosx -O3 -early-ifcvt-limit=0 -select-opti-loop-cycle-gain-threshold=2 -select-opti-loop-gradient-gain-threshold=10 -mcpu=apple-m1 -o - %s | FileCheck %s |
4 |
| -; RUN: llc -mtriple=arm64-apple-macosx -O3 -early-ifcvt-limit=0 -select-opti-loop-cycle-gain-threshold=2 -select-opti-loop-gradient-gain-threshold=10 -mcpu=apple-m2 -o - %s | FileCheck %s |
5 |
| -; RUN: llc -mtriple=arm64-apple-macosx -O3 -early-ifcvt-limit=0 -select-opti-loop-cycle-gain-threshold=2 -select-opti-loop-gradient-gain-threshold=10 -mcpu=apple-m3 -o - %s | FileCheck %s |
6 |
| -; RUN: llc -mtriple=arm64-apple-macosx -O3 -early-ifcvt-limit=0 -select-opti-loop-cycle-gain-threshold=2 -select-opti-loop-gradient-gain-threshold=10 -mcpu=apple-m4 -o - %s | FileCheck %s |
| 2 | +; RUN: llc -mtriple=arm64-apple-macosx -O3 -early-ifcvt-limit=0 -select-opti-loop-cycle-gain-threshold=2 -select-opti-loop-gradient-gain-threshold=10 -mcpu=apple-a7 -o - %s | FileCheck --check-prefix=DISABLED %s |
| 3 | +; RUN: llc -mtriple=arm64-apple-macosx -O3 -early-ifcvt-limit=0 -select-opti-loop-cycle-gain-threshold=2 -select-opti-loop-gradient-gain-threshold=10 -mcpu=apple-m1 -o - %s | FileCheck --check-prefix=ENABLED %s |
| 4 | +; RUN: llc -mtriple=arm64-apple-macosx -O3 -early-ifcvt-limit=0 -select-opti-loop-cycle-gain-threshold=2 -select-opti-loop-gradient-gain-threshold=10 -mcpu=apple-m2 -o - %s | FileCheck --check-prefix=ENABLED %s |
| 5 | +; RUN: llc -mtriple=arm64-apple-macosx -O3 -early-ifcvt-limit=0 -select-opti-loop-cycle-gain-threshold=2 -select-opti-loop-gradient-gain-threshold=10 -mcpu=apple-m3 -o - %s | FileCheck --check-prefix=ENABLED %s |
| 6 | +; RUN: llc -mtriple=arm64-apple-macosx -O3 -early-ifcvt-limit=0 -select-opti-loop-cycle-gain-threshold=2 -select-opti-loop-gradient-gain-threshold=10 -mcpu=apple-m4 -o - %s | FileCheck --check-prefix=ENABLED %s |
7 | 7 |
|
8 | 8 | define void @test_select_opt(ptr %dst, ptr %src, i64 %j.start, i64 %p, i64 %i.start) {
|
9 |
| -; CHECK-LABEL: test_select_opt: |
10 |
| -; CHECK: ; %bb.0: ; %entry |
11 |
| -; CHECK-NEXT: add x8, x2, #1 |
12 |
| -; CHECK-NEXT: LBB0_1: ; %loop |
13 |
| -; CHECK-NEXT: ; =>This Inner Loop Header: Depth=1 |
14 |
| -; CHECK-NEXT: ldr x9, [x1, x4, lsl #3] |
15 |
| -; CHECK-NEXT: ldr x10, [x1, x2, lsl #3] |
16 |
| -; CHECK-NEXT: cmp x9, x10 |
17 |
| -; CHECK-NEXT: cset w9, lo |
18 |
| -; CHECK-NEXT: cinc x2, x2, lo |
19 |
| -; CHECK-NEXT: sub x9, x4, x9 |
20 |
| -; CHECK-NEXT: str x2, [x0, x9, lsl #3] |
21 |
| -; CHECK-NEXT: mov x4, x2 |
22 |
| -; CHECK-NEXT: subs x8, x8, #1 |
23 |
| -; CHECK-NEXT: b.ne LBB0_1 |
24 |
| -; CHECK-NEXT: ; %bb.2: ; %exit |
25 |
| -; CHECK-NEXT: ret |
| 9 | +; DISABLED-LABEL: test_select_opt: |
| 10 | +; DISABLED: ; %bb.0: ; %entry |
| 11 | +; DISABLED-NEXT: add x8, x2, #1 |
| 12 | +; DISABLED-NEXT: LBB0_1: ; %loop |
| 13 | +; DISABLED-NEXT: ; =>This Inner Loop Header: Depth=1 |
| 14 | +; DISABLED-NEXT: ldr x9, [x1, x4, lsl #3] |
| 15 | +; DISABLED-NEXT: ldr x10, [x1, x2, lsl #3] |
| 16 | +; DISABLED-NEXT: cmp x9, x10 |
| 17 | +; DISABLED-NEXT: cset w9, lo |
| 18 | +; DISABLED-NEXT: cinc x2, x2, lo |
| 19 | +; DISABLED-NEXT: sub x9, x4, x9 |
| 20 | +; DISABLED-NEXT: str x2, [x0, x9, lsl #3] |
| 21 | +; DISABLED-NEXT: mov x4, x2 |
| 22 | +; DISABLED-NEXT: subs x8, x8, #1 |
| 23 | +; DISABLED-NEXT: b.ne LBB0_1 |
| 24 | +; DISABLED-NEXT: ; %bb.2: ; %exit |
| 25 | +; DISABLED-NEXT: ret |
| 26 | +; |
| 27 | +; ENABLED-LABEL: test_select_opt: |
| 28 | +; ENABLED: ; %bb.0: ; %entry |
| 29 | +; ENABLED-NEXT: add x8, x2, #1 |
| 30 | +; ENABLED-NEXT: b LBB0_2 |
| 31 | +; ENABLED-NEXT: LBB0_1: ; %select.end |
| 32 | +; ENABLED-NEXT: ; in Loop: Header=BB0_2 Depth=1 |
| 33 | +; ENABLED-NEXT: str x2, [x0, x4, lsl #3] |
| 34 | +; ENABLED-NEXT: mov x4, x2 |
| 35 | +; ENABLED-NEXT: subs x8, x8, #1 |
| 36 | +; ENABLED-NEXT: b.eq LBB0_4 |
| 37 | +; ENABLED-NEXT: LBB0_2: ; %loop |
| 38 | +; ENABLED-NEXT: ; =>This Inner Loop Header: Depth=1 |
| 39 | +; ENABLED-NEXT: ldr x9, [x1, x4, lsl #3] |
| 40 | +; ENABLED-NEXT: ldr x10, [x1, x2, lsl #3] |
| 41 | +; ENABLED-NEXT: cmp x9, x10 |
| 42 | +; ENABLED-NEXT: b.hs LBB0_1 |
| 43 | +; ENABLED-NEXT: ; %bb.3: ; %select.true.sink |
| 44 | +; ENABLED-NEXT: ; in Loop: Header=BB0_2 Depth=1 |
| 45 | +; ENABLED-NEXT: add x2, x2, #1 |
| 46 | +; ENABLED-NEXT: sub x4, x4, #1 |
| 47 | +; ENABLED-NEXT: b LBB0_1 |
| 48 | +; ENABLED-NEXT: LBB0_4: ; %exit |
| 49 | +; ENABLED-NEXT: ret |
26 | 50 | entry:
|
27 | 51 | br label %loop
|
28 | 52 |
|
|
0 commit comments