[llvm] 9de81ce - NFC: Another pre-commit test change.
Amara Emerson via llvm-commits
llvm-commits at lists.llvm.org
Sun Jan 7 23:22:34 PST 2024
Author: Amara Emerson
Date: 2024-01-07T23:22:14-08:00
New Revision: 9de81ce87d9f99850d427c9e0440440b5ef9ebbf
URL: https://github.com/llvm/llvm-project/commit/9de81ce87d9f99850d427c9e0440440b5ef9ebbf
DIFF: https://github.com/llvm/llvm-project/commit/9de81ce87d9f99850d427c9e0440440b5ef9ebbf.diff
LOG: NFC: Another pre-commit test change.
Added:
Modified:
llvm/test/CodeGen/AArch64/GlobalISel/irtranslator-switch-split.ll
Removed:
################################################################################
diff --git a/llvm/test/CodeGen/AArch64/GlobalISel/irtranslator-switch-split.ll b/llvm/test/CodeGen/AArch64/GlobalISel/irtranslator-switch-split.ll
index ee0dd985c1c6b9..54c8eb913d5d40 100644
--- a/llvm/test/CodeGen/AArch64/GlobalISel/irtranslator-switch-split.ll
+++ b/llvm/test/CodeGen/AArch64/GlobalISel/irtranslator-switch-split.ll
@@ -1,5 +1,5 @@
-; NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py UTC_ARGS: --version 4
-; RUN: llc -stop-after=irtranslator -o - %s | FileCheck %s --check-prefix=CHECK-TRANSLATOR
+; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 4
+; RUN: llc -global-isel -o - %s | FileCheck %s
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128"
target triple = "arm64-apple-macosx14.0.0"
@@ -10,80 +10,40 @@ declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0
declare i32 @logg(...)
define i32 @scanfile(i32 %call148) {
- ; CHECK-TRANSLATOR-LABEL: name: scanfile
- ; CHECK-TRANSLATOR: bb.0.entry:
- ; CHECK-TRANSLATOR-NEXT: successors: %bb.1(0x40000000), %bb.5(0x40000000)
- ; CHECK-TRANSLATOR-NEXT: liveins: $w0, $lr
- ; CHECK-TRANSLATOR-NEXT: {{ $}}
- ; CHECK-TRANSLATOR-NEXT: early-clobber $sp = frame-setup STPXpre $fp, killed $lr, $sp, -2 :: (store (s64) into %stack.1), (store (s64) into %stack.0)
- ; CHECK-TRANSLATOR-NEXT: frame-setup CFI_INSTRUCTION def_cfa_offset 16
- ; CHECK-TRANSLATOR-NEXT: frame-setup CFI_INSTRUCTION offset $w30, -8
- ; CHECK-TRANSLATOR-NEXT: frame-setup CFI_INSTRUCTION offset $w29, -16
- ; CHECK-TRANSLATOR-NEXT: $w8 = ORRWrs $wzr, $w0, 0
- ; CHECK-TRANSLATOR-NEXT: dead $wzr = SUBSWri killed $w0, 0, 0, implicit-def $nzcv
- ; CHECK-TRANSLATOR-NEXT: $w0 = ORRWrs $wzr, $wzr, 0
- ; CHECK-TRANSLATOR-NEXT: Bcc 12, %bb.5, implicit killed $nzcv
- ; CHECK-TRANSLATOR-NEXT: {{ $}}
- ; CHECK-TRANSLATOR-NEXT: bb.1.entry:
- ; CHECK-TRANSLATOR-NEXT: successors: %bb.9(0x55555555), %bb.2(0x2aaaaaab)
- ; CHECK-TRANSLATOR-NEXT: liveins: $w0, $w8
- ; CHECK-TRANSLATOR-NEXT: {{ $}}
- ; CHECK-TRANSLATOR-NEXT: CBZW renamable $w8, %bb.9
- ; CHECK-TRANSLATOR-NEXT: {{ $}}
- ; CHECK-TRANSLATOR-NEXT: bb.2.entry:
- ; CHECK-TRANSLATOR-NEXT: successors: %bb.10(0x00000000), %bb.3(0x80000000)
- ; CHECK-TRANSLATOR-NEXT: liveins: $w0, $w8
- ; CHECK-TRANSLATOR-NEXT: {{ $}}
- ; CHECK-TRANSLATOR-NEXT: dead $wzr = ADDSWri renamable $w8, 2, 0, implicit-def $nzcv
- ; CHECK-TRANSLATOR-NEXT: Bcc 0, %bb.10, implicit $nzcv
- ; CHECK-TRANSLATOR-NEXT: {{ $}}
- ; CHECK-TRANSLATOR-NEXT: bb.3.entry:
- ; CHECK-TRANSLATOR-NEXT: successors: %bb.10(0x00000000), %bb.4(0x80000000)
- ; CHECK-TRANSLATOR-NEXT: liveins: $w0, $w8
- ; CHECK-TRANSLATOR-NEXT: {{ $}}
- ; CHECK-TRANSLATOR-NEXT: dead $wzr = ADDSWri killed renamable $w8, 1, 0, implicit-def $nzcv
- ; CHECK-TRANSLATOR-NEXT: Bcc 0, %bb.10, implicit $nzcv
- ; CHECK-TRANSLATOR-NEXT: {{ $}}
- ; CHECK-TRANSLATOR-NEXT: bb.4.common.ret1:
- ; CHECK-TRANSLATOR-NEXT: liveins: $w0
- ; CHECK-TRANSLATOR-NEXT: {{ $}}
- ; CHECK-TRANSLATOR-NEXT: early-clobber $sp, $fp, $lr = frame-destroy LDPXpost $sp, 2 :: (load (s64) from %stack.1), (load (s64) from %stack.0)
- ; CHECK-TRANSLATOR-NEXT: RET undef $lr, implicit killed $w0
- ; CHECK-TRANSLATOR-NEXT: {{ $}}
- ; CHECK-TRANSLATOR-NEXT: bb.5.entry:
- ; CHECK-TRANSLATOR-NEXT: successors: %bb.9(0x24924925), %bb.6(0x5b6db6db)
- ; CHECK-TRANSLATOR-NEXT: liveins: $w0, $w8
- ; CHECK-TRANSLATOR-NEXT: {{ $}}
- ; CHECK-TRANSLATOR-NEXT: dead $wzr = SUBSWri renamable $w8, 1, 0, implicit-def $nzcv
- ; CHECK-TRANSLATOR-NEXT: Bcc 0, %bb.9, implicit $nzcv
- ; CHECK-TRANSLATOR-NEXT: {{ $}}
- ; CHECK-TRANSLATOR-NEXT: bb.6.entry:
- ; CHECK-TRANSLATOR-NEXT: successors: %bb.8(0x33333333), %bb.7(0x4ccccccd)
- ; CHECK-TRANSLATOR-NEXT: liveins: $w0, $w8
- ; CHECK-TRANSLATOR-NEXT: {{ $}}
- ; CHECK-TRANSLATOR-NEXT: dead $wzr = SUBSWri renamable $w8, 2, 0, implicit-def $nzcv
- ; CHECK-TRANSLATOR-NEXT: Bcc 0, %bb.8, implicit $nzcv
- ; CHECK-TRANSLATOR-NEXT: {{ $}}
- ; CHECK-TRANSLATOR-NEXT: bb.7.entry:
- ; CHECK-TRANSLATOR-NEXT: successors: %bb.8(0x55555555), %bb.4(0x2aaaaaab)
- ; CHECK-TRANSLATOR-NEXT: liveins: $w0, $w8
- ; CHECK-TRANSLATOR-NEXT: {{ $}}
- ; CHECK-TRANSLATOR-NEXT: dead $wzr = SUBSWri killed renamable $w8, 3, 0, implicit-def $nzcv
- ; CHECK-TRANSLATOR-NEXT: Bcc 1, %bb.4, implicit $nzcv
- ; CHECK-TRANSLATOR-NEXT: {{ $}}
- ; CHECK-TRANSLATOR-NEXT: bb.8.sw.bb300:
- ; CHECK-TRANSLATOR-NEXT: BL @logg, csr_darwin_aarch64_aapcs, implicit-def dead $lr, implicit $sp, implicit-def $sp, implicit-def $w0
- ; CHECK-TRANSLATOR-NEXT: early-clobber $sp, $fp, $lr = frame-destroy LDPXpost $sp, 2 :: (load (s64) from %stack.1), (load (s64) from %stack.0)
- ; CHECK-TRANSLATOR-NEXT: RET undef $lr, implicit killed $w0
- ; CHECK-TRANSLATOR-NEXT: {{ $}}
- ; CHECK-TRANSLATOR-NEXT: bb.9.sw.bb178:
- ; CHECK-TRANSLATOR-NEXT: $w0 = ORRWrs $wzr, $wzr, 0
- ; CHECK-TRANSLATOR-NEXT: early-clobber $sp, $fp, $lr = frame-destroy LDPXpost $sp, 2 :: (load (s64) from %stack.1), (load (s64) from %stack.0)
- ; CHECK-TRANSLATOR-NEXT: RET undef $lr, implicit killed $w0
- ; CHECK-TRANSLATOR-NEXT: {{ $}}
- ; CHECK-TRANSLATOR-NEXT: bb.10.sw.bb150:
- ; CHECK-TRANSLATOR-NEXT: BL @logg, csr_darwin_aarch64_aapcs, implicit-def dead $lr, implicit $sp, implicit-def $sp, implicit-def dead $w0
- ; CHECK-TRANSLATOR-NEXT: BRK 1
+; CHECK-LABEL: scanfile:
+; CHECK: ; %bb.0: ; %entry
+; CHECK-NEXT: stp x29, x30, [sp, #-16]! ; 16-byte Folded Spill
+; CHECK-NEXT: .cfi_def_cfa_offset 16
+; CHECK-NEXT: .cfi_offset w30, -8
+; CHECK-NEXT: .cfi_offset w29, -16
+; CHECK-NEXT: mov w8, w0
+; CHECK-NEXT: mov w0, wzr
+; CHECK-NEXT: cbz w8, LBB0_7
+; CHECK-NEXT: ; %bb.1: ; %entry
+; CHECK-NEXT: cmp w8, #1
+; CHECK-NEXT: b.eq LBB0_7
+; CHECK-NEXT: ; %bb.2: ; %entry
+; CHECK-NEXT: cmp w8, #2
+; CHECK-NEXT: b.eq LBB0_4
+; CHECK-NEXT: ; %bb.3: ; %entry
+; CHECK-NEXT: cmp w8, #3
+; CHECK-NEXT: b.ne LBB0_5
+; CHECK-NEXT: LBB0_4: ; %sw.bb300
+; CHECK-NEXT: bl _logg
+; CHECK-NEXT: ldp x29, x30, [sp], #16 ; 16-byte Folded Reload
+; CHECK-NEXT: ret
+; CHECK-NEXT: LBB0_5: ; %entry
+; CHECK-NEXT: cmn w8, #2
+; CHECK-NEXT: b.eq LBB0_8
+; CHECK-NEXT: ; %bb.6: ; %entry
+; CHECK-NEXT: cmn w8, #1
+; CHECK-NEXT: b.eq LBB0_8
+; CHECK-NEXT: LBB0_7: ; %common.ret1
+; CHECK-NEXT: ldp x29, x30, [sp], #16 ; 16-byte Folded Reload
+; CHECK-NEXT: ret
+; CHECK-NEXT: LBB0_8: ; %sw.bb150
+; CHECK-NEXT: bl _logg
+; CHECK-NEXT: brk #0x1
entry:
switch i32 %call148, label %common.ret [
i32 -1, label %sw.bb
More information about the llvm-commits
mailing list