45 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py2; RUN: llc -O0 -mtriple=aarch64-unknown-linux-gnu < %s | FileCheck %s --check-prefix=GISEL3; RUN: llc -O0 -global-isel=0 -mtriple=aarch64-unknown-linux-gnu < %s | FileCheck %s --check-prefix=SDAG4 5; Verify that GISel and SDAG do the same thing for this phi (modulo regalloc)6define void @test() nounwind {7; GISEL-LABEL: test:8; GISEL: // %bb.0: // %entry9; GISEL-NEXT: sub sp, sp, #1610; GISEL-NEXT: mov x8, xzr11; GISEL-NEXT: mov x9, x812; GISEL-NEXT: str x9, [sp] // 8-byte Spill13; GISEL-NEXT: str x8, [sp, #8] // 8-byte Spill14; GISEL-NEXT: b .LBB0_115; GISEL-NEXT: .LBB0_1: // %loop16; GISEL-NEXT: // =>This Inner Loop Header: Depth=117; GISEL-NEXT: ldr x8, [sp, #8] // 8-byte Reload18; GISEL-NEXT: ldr x9, [sp] // 8-byte Reload19; GISEL-NEXT: str x9, [sp] // 8-byte Spill20; GISEL-NEXT: str x8, [sp, #8] // 8-byte Spill21; GISEL-NEXT: b .LBB0_122;23; SDAG-LABEL: test:24; SDAG: // %bb.0: // %entry25; SDAG-NEXT: sub sp, sp, #1626; SDAG-NEXT: mov x1, xzr27; SDAG-NEXT: mov x0, x128; SDAG-NEXT: str x1, [sp] // 8-byte Spill29; SDAG-NEXT: str x0, [sp, #8] // 8-byte Spill30; SDAG-NEXT: b .LBB0_131; SDAG-NEXT: .LBB0_1: // %loop32; SDAG-NEXT: // =>This Inner Loop Header: Depth=133; SDAG-NEXT: ldr x0, [sp, #8] // 8-byte Reload34; SDAG-NEXT: ldr x1, [sp] // 8-byte Reload35; SDAG-NEXT: str x1, [sp] // 8-byte Spill36; SDAG-NEXT: str x0, [sp, #8] // 8-byte Spill37; SDAG-NEXT: b .LBB0_138entry:39 br label %loop40 41loop:42 %p = phi i72 [ 0, %entry ], [ %p, %loop ]43 br label %loop44}45