xref: /llvm-project/llvm/test/CodeGen/AArch64/misched-fusion-cmp.mir (revision decb743e80df803dfcb32ac8d175f9641af2f21c)
1# RUN: llc -o /dev/null 2>&1 %s -mtriple aarch64-unknown -mcpu=cortex-x1 -run-pass=machine-scheduler
2# Just ensure this doesn't crash.
3
4---
5name: crash
6tracksRegLiveness: true
7body: |
8  bb.0:
9    successors: %bb.1(0x00000000), %bb.2(0x80000000)
10    liveins: $w0, $x1
11
12    %1:gpr64common = COPY $x1
13    %0:gpr32common = COPY $w0
14    %3:gpr64sp = COPY $xzr
15    INLINEASM &"", 9 /* sideeffect mayload attdialect */, 196622 /* mem:m */, %3
16    %4:gpr32 = ADDSWri %0, 1, 0, implicit-def $nzcv
17    STRWui %4, %1, 0 :: (store (s32))
18    Bcc 3, %bb.2, implicit killed $nzcv
19    B %bb.1
20
21  bb.1:
22    successors:
23
24    ADJCALLSTACKDOWN 0, 0, implicit-def dead $sp, implicit $sp
25    ADJCALLSTACKUP 0, 0, implicit-def dead $sp, implicit $sp
26
27  bb.2:
28    RET_ReallyLR
29...
30