|
| 1 | +# RUN: llc -mtriple=aarch64 -run-pass=machine-outliner \ |
| 2 | +# RUN: -verify-machineinstrs %s -o - | FileCheck %s |
| 3 | + |
| 4 | +# CHECK: name: OUTLINED_FUNCTION_0 |
| 5 | +# CHECK-NOT: name: |
| 6 | +# CHECK: BUNDLE implicit-def $z3, implicit-def $q3, implicit-def $d3, implicit-def $s3, implicit-def $h3, implicit-def $b3, implicit $z19, implicit $p0, implicit $z16 { |
| 7 | +# CHECK: $z3 = MOVPRFX_ZZ $z19 |
| 8 | +# CHECK: $z3 = FMUL_ZPmZ_S renamable $p0, killed $z3, renamable $z16 |
| 9 | +# CHECK: } |
| 10 | + |
| 11 | +--- |
| 12 | +name: bundled |
| 13 | +alignment: 4 |
| 14 | +tracksRegLiveness: true |
| 15 | +frameInfo: |
| 16 | + maxAlignment: 1 |
| 17 | + maxCallFrameSize: 0 |
| 18 | +machineFunctionInfo: |
| 19 | + hasRedZone: false |
| 20 | +body: | |
| 21 | + bb.0.entry: |
| 22 | + liveins: $z3, $z19, $p0, $z16 |
| 23 | + renamable $q0 = LDRQui $sp, 1 :: (load 16) |
| 24 | + STRSui renamable $s0, $sp, 9, implicit killed $q0 :: (store (s32)) |
| 25 | + BUNDLE implicit-def $z3, implicit-def $q3, implicit-def $d3, implicit-def $s3, implicit-def $h3, implicit-def $b3, implicit $z19, implicit $p0, implicit $z16 { |
| 26 | + $z3 = MOVPRFX_ZZ $z19 |
| 27 | + $z3 = FMUL_ZPmZ_S renamable $p0, killed $z3, renamable $z16 |
| 28 | + } |
| 29 | + renamable $q0 = LDRQui $sp, 0 :: (load 16, align 32) |
| 30 | + STRSui renamable $s0, $sp, 10, implicit killed $q0 :: (store (s32)) |
| 31 | + RET undef $lr |
| 32 | +... |
| 33 | +--- |
| 34 | +name: bundled_clone |
| 35 | +alignment: 4 |
| 36 | +tracksRegLiveness: true |
| 37 | +frameInfo: |
| 38 | + maxAlignment: 1 |
| 39 | + maxCallFrameSize: 0 |
| 40 | +machineFunctionInfo: |
| 41 | + hasRedZone: false |
| 42 | +body: | |
| 43 | + bb.0.entry: |
| 44 | + liveins: $z3, $z19, $p0, $z16 |
| 45 | + renamable $q0 = LDRQui $sp, 1 :: (load 16) |
| 46 | + STRSui renamable $s0, $sp, 9, implicit killed $q0 :: (store (s32)) |
| 47 | + BUNDLE implicit-def $z3, implicit-def $q3, implicit-def $d3, implicit-def $s3, implicit-def $h3, implicit-def $b3, implicit $z19, implicit $p0, implicit $z16 { |
| 48 | + $z3 = MOVPRFX_ZZ $z19 |
| 49 | + $z3 = FMUL_ZPmZ_S renamable $p0, killed $z3, renamable $z16 |
| 50 | + } |
| 51 | + renamable $q0 = LDRQui $sp, 0 :: (load 16, align 32) |
| 52 | + STRSui renamable $s0, $sp, 10, implicit killed $q0 :: (store (s32)) |
| 53 | + RET undef $lr |
| 54 | +... |
0 commit comments