brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.3 KiB · 86fca90 Raw
39 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 52; RUN: llc < %s -mtriple=x86_64-unknown-unknown -mattr=+mmx | FileCheck %s3 4;; Verify that the mmx 'y' constraint works with arbitrary IR types.5define <2 x i32> @test_mmx_asm(<2 x i32> %a) nounwind {6; CHECK-LABEL: test_mmx_asm:7; CHECK:       # %bb.0:8; CHECK-NEXT:    movdq2q %xmm0, %mm09; CHECK-NEXT:    #APP10; CHECK-NEXT:    # %mm0 = %mm011; CHECK-NEXT:    #NO_APP12; CHECK-NEXT:    #APP13; CHECK-NEXT:    # %mm0 = %mm014; CHECK-NEXT:    #NO_APP15; CHECK-NEXT:    movq2dq %mm0, %xmm016; CHECK-NEXT:    retq17  %1 = tail call i64 asm sideeffect "# $0 = $1", "=y,y"(<2 x i32> %a)18  %2 = tail call <2 x i32> asm sideeffect "# $0 = $1", "=y,y"(i64 %1)19  ret <2 x i32> %220}21 22;; And same thing with the 'Ym' constraint.23define <2 x i32> @test_mmx_asm_Ym(<2 x i32> %a) nounwind {24; CHECK-LABEL: test_mmx_asm_Ym:25; CHECK:       # %bb.0:26; CHECK-NEXT:    movdq2q %xmm0, %mm027; CHECK-NEXT:    #APP28; CHECK-NEXT:    # %mm0 = %mm029; CHECK-NEXT:    #NO_APP30; CHECK-NEXT:    #APP31; CHECK-NEXT:    # %mm0 = %mm032; CHECK-NEXT:    #NO_APP33; CHECK-NEXT:    movq2dq %mm0, %xmm034; CHECK-NEXT:    retq35  %1 = tail call i64 asm sideeffect "# $0 = $1", "=^Ym,^Ym"(<2 x i32> %a)36  %2 = tail call <2 x i32> asm sideeffect "# $0 = $1", "=^Ym,^Ym"(i64 %1)37  ret <2 x i32> %238}39