1# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py 2# RUN: llc %s -o - -O3 -mtriple=x86_64-unknown-unknown -run-pass=greedy | FileCheck %s 3--- | 4 ; ModuleID = 'test.ll' 5 source_filename = "test.ll" 6 target datalayout = "e-m:o-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" 7 define <2 x double> @stack_fold_addpd(<2 x double> %a0, <2 x double> %a1) { 8 tail call void asm sideeffect "nop", "~{xmm1},~{xmm2},~{xmm3},~{xmm4},~{xmm5},~{xmm6},~{xmm7},~{xmm8},~{xmm9},~{xmm10},~{xmm11},~{xmm12},~{xmm13},~{xmm14},~{xmm15},~{flags}"() 9 %1 = fadd <2 x double> %a0, %a1 10 ret <2 x double> %1 11 } 12 ; Function Attrs: nounwind 13 declare void @llvm.stackprotector(i8*, i8**) #0 14 15 attributes #0 = { nounwind } 16 17... 18--- 19name: stack_fold_addpd 20alignment: 16 21tracksRegLiveness: true 22registers: 23 - { id: 0, class: vr128 } 24 - { id: 1, class: vr128 } 25 - { id: 2, class: vr128 } 26liveins: 27 - { reg: '$xmm0', virtual-reg: '%0' } 28 - { reg: '$xmm1', virtual-reg: '%1' } 29frameInfo: 30 maxAlignment: 1 31machineFunctionInfo: {} 32body: | 33 bb.0 (%ir-block.0): 34 liveins: $xmm0, $xmm1 35 36 ; CHECK-LABEL: name: stack_fold_addpd 37 ; CHECK: liveins: $xmm0, $xmm1 38 ; CHECK: MOVAPSmr %stack.0, 1, $noreg, 0, $noreg, $xmm1 :: (store 16 into %stack.0) 39 ; CHECK: [[COPY:%[0-9]+]]:vr128 = COPY $xmm0 40 ; CHECK: INLINEASM &nop, 1 /* sideeffect attdialect */, 12 /* clobber */, implicit-def dead early-clobber $xmm1, 12 /* clobber */, implicit-def dead early-clobber $xmm2, 12 /* clobber */, implicit-def dead early-clobber $xmm3, 12 /* clobber */, implicit-def dead early-clobber $xmm4, 12 /* clobber */, implicit-def dead early-clobber $xmm5, 12 /* clobber */, implicit-def dead early-clobber $xmm6, 12 /* clobber */, implicit-def dead early-clobber $xmm7, 12 /* clobber */, implicit-def dead early-clobber $xmm8, 12 /* clobber */, implicit-def dead early-clobber $xmm9, 12 /* clobber */, implicit-def dead early-clobber $xmm10, 12 /* clobber */, implicit-def dead early-clobber $xmm11, 12 /* clobber */, implicit-def dead early-clobber $xmm12, 12 /* clobber */, implicit-def dead early-clobber $xmm13, 12 /* clobber */, implicit-def dead early-clobber $xmm14, 12 /* clobber */, implicit-def dead early-clobber $xmm15, 12 /* clobber */, implicit-def dead early-clobber $eflags 41 ; CHECK: [[COPY]]:vr128 = nofpexcept ADDPDrm [[COPY]], %stack.0, 1, $noreg, 0, $noreg, implicit $mxcsr :: (load 16 from %stack.0) 42 ; CHECK: $xmm0 = COPY [[COPY]] 43 ; CHECK: RET 0, $xmm0 44 %1:vr128 = COPY $xmm1 45 %2:vr128 = COPY $xmm0 46 INLINEASM &nop, 1 /* sideeffect attdialect */, 12 /* clobber */, implicit-def dead early-clobber $xmm1, 12 /* clobber */, implicit-def dead early-clobber $xmm2, 12 /* clobber */, implicit-def dead early-clobber $xmm3, 12 /* clobber */, implicit-def dead early-clobber $xmm4, 12 /* clobber */, implicit-def dead early-clobber $xmm5, 12 /* clobber */, implicit-def dead early-clobber $xmm6, 12 /* clobber */, implicit-def dead early-clobber $xmm7, 12 /* clobber */, implicit-def dead early-clobber $xmm8, 12 /* clobber */, implicit-def dead early-clobber $xmm9, 12 /* clobber */, implicit-def dead early-clobber $xmm10, 12 /* clobber */, implicit-def dead early-clobber $xmm11, 12 /* clobber */, implicit-def dead early-clobber $xmm12, 12 /* clobber */, implicit-def dead early-clobber $xmm13, 12 /* clobber */, implicit-def dead early-clobber $xmm14, 12 /* clobber */, implicit-def dead early-clobber $xmm15, 12 /* clobber */, implicit-def dead early-clobber $eflags 47 %2:vr128 = nofpexcept ADDPDrr %2, %1, implicit $mxcsr 48 $xmm0 = COPY %2 49 RET 0, $xmm0 50 51... 52