Skip to content

Commit a95ff19

Browse files
committed
Moved test and checking mir after last X86 pass
1 parent 10b57a1 commit a95ff19

File tree

2 files changed

+16
-17
lines changed

2 files changed

+16
-17
lines changed

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

Lines changed: 0 additions & 17 deletions
This file was deleted.
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
; RUN: llc %s --mtriple=x86_64 -print-after=unpack-mi-bundles -disable-verify 2>&1 | FileCheck %s
2+
3+
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
6+
; CHECK-NEXT: Frame Objects:
7+
; CHECK-NEXT: fi#0: size=4, align=4, at location [SP-4]
8+
; 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
11+
; CHECK: # End machine code for function atomic_scalar.
12+
%1 = alloca <1 x i32>
13+
%2 = load atomic <1 x i32>, ptr %1 acquire, align 4
14+
%3 = extractelement <1 x i32> %2, i32 0
15+
ret i32 %3
16+
}

0 commit comments

Comments
 (0)