Skip to content

Commit 8b27c18

Browse files
committed
Checking with finalize-isel
1 parent a95ff19 commit 8b27c18

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

llvm/test/CodeGen/X86/atomic-scalarization.ll

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
1-
; RUN: llc %s --mtriple=x86_64 -print-after=unpack-mi-bundles -disable-verify 2>&1 | FileCheck %s
1+
; RUN: llc %s --mtriple=x86_64 -print-after=finalize-isel -disable-verify 2>&1 | FileCheck %s
22

33
define i32 @atomic_scalar() {
4-
; CHECK: # *** IR Dump After Unpack machine instruction bundles (unpack-mi-bundles) ***:
5-
; CHECK-NEXT: # Machine code for function atomic_scalar: NoPHIs, TracksLiveness, NoVRegs, TiedOpsRewritten, TracksDebugUserValues
4+
; CHECK: # *** IR Dump After Finalize ISel and expand pseudo-instructions (finalize-isel) ***:
5+
; CHECK-NEXT: # Machine code for function atomic_scalar: IsSSA, TracksLiveness
66
; CHECK-NEXT: Frame Objects:
7-
; CHECK-NEXT: fi#0: size=4, align=4, at location [SP-4]
7+
; CHECK-NEXT: fi#0: size=4, align=4, at location [SP+8]
88
; CHECK: bb.0 (%ir-block.0):
9-
; CHECK-NEXT: renamable $eax = MOV32rm $rsp, 1, $noreg, -4, $noreg :: (dereferenceable load acquire (s32) from %ir.1)
10-
; CHECK-NEXT: RET64 $eax
9+
; CHECK-NEXT: %0:gr32 = MOV32rm %stack.0, 1, $noreg, 0, $noreg :: (dereferenceable load acquire (s32) from %ir.1)
10+
; CHECK-NEXT: $eax = COPY %0:gr32
11+
; CHECK-NEXT: RET 0, $eax
1112
; CHECK: # End machine code for function atomic_scalar.
1213
%1 = alloca <1 x i32>
1314
%2 = load atomic <1 x i32>, ptr %1 acquire, align 4

0 commit comments

Comments
 (0)