32 lines · plain
1# RUN: llc -run-pass postrapseudos -mtriple=x86_64-unknown-unknown -mattr=+mmx -o - %s | FileCheck %s2# This test verifies that the ExpandPostRA pass expands the GR64 <-> VR643# copies into appropriate MMX_MOV instructions.4 5--- |6 7 define <2 x i32> @test_paddw(<2 x i32> %a) nounwind readnone {8 entry:9 %0 = bitcast <2 x i32> %a to <1 x i64>10 %1 = tail call <1 x i64> @llvm.x86.mmx.padd.w(<1 x i64> %0, <1 x i64> %0)11 %2 = bitcast <1 x i64> %1 to <2 x i32>12 ret <2 x i32> %213 }14 15...16---17name: test_paddw18tracksRegLiveness: true19body: |20 bb.0.entry:21 liveins: $xmm022 $mm0 = MMX_MOVDQ2Qrr killed $xmm023 $mm0 = MMX_PADDWrr killed $mm0, $mm024 ; Inserted dummy copy here, for test:25 ; CHECK: $rax = MMX_MOVD64from64rr $mm026 ; CHECK-NEXT: $mm0 = MMX_MOVD64to64rr $rax27 $rax = COPY $mm028 $mm0 = COPY $rax29 $xmm0 = MMX_MOVQ2DQrr killed $mm030 RET 0, $xmm031...32