1 ; RUN: llc -verify-machineinstrs -enable-misched -misched=shuffle -enable-aa-sched-mi -use-tbaa-in-sched-mi=0 -post-RA-scheduler=0 -mcpu=ppc64 < %s | FileCheck %s
4 ; -misched=shuffle is NDEBUG only!
6 target datalayout = "E-m:e-i64:64-n32:64"
7 target triple = "powerpc64-unknown-linux-gnu"
9 %"class.llvm::MCOperand" = type { i8, %union.anon.110 }
10 %union.anon.110 = type { i64 }
12 define void @foo(i32 %v) {
14 %MCOp = alloca %"class.llvm::MCOperand", align 8
20 %sunkaddr18 = ptrtoint ptr %MCOp to i64
21 %sunkaddr19 = add i64 %sunkaddr18, 8
22 %sunkaddr20 = inttoptr i64 %sunkaddr19 to ptr
23 store double 0.000000e+00, ptr %sunkaddr20, align 8, !tbaa !1
24 %sunkaddr21 = ptrtoint ptr %MCOp to i64
25 %sunkaddr22 = add i64 %sunkaddr21, 8
26 %sunkaddr23 = inttoptr i64 %sunkaddr22 to ptr
27 store i32 %v, ptr %sunkaddr23, align 8, !tbaa !2
30 ; Make sure that the 64-bit store comes first, regardless of what TBAA says
31 ; about the two not aliasing!
32 ; CHECK: li [[REG:[0-9]+]], 0
33 ; CHECK: std [[REG]], -[[OFF:[0-9]+]](1)
34 ; CHECK: stw 3, -[[OFF]](1)