1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 5
2 ; RUN: llc < %s -mtriple=x86_64-unknown-unknown -mattr=+mmx | FileCheck %s
4 ;; Verify that the mmx 'y' constraint works with arbitrary IR types.
5 define <2 x i32> @test_mmx_asm(<2 x i32> %a) nounwind {
6 ; CHECK-LABEL: test_mmx_asm:
8 ; CHECK-NEXT: movdq2q %xmm0, %mm0
10 ; CHECK-NEXT: # %mm0 = %mm0
13 ; CHECK-NEXT: # %mm0 = %mm0
15 ; CHECK-NEXT: movq2dq %mm0, %xmm0
17 %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)
22 ;; And same thing with the 'Ym' constraint.
23 define <2 x i32> @test_mmx_asm_Ym(<2 x i32> %a) nounwind {
24 ; CHECK-LABEL: test_mmx_asm_Ym:
26 ; CHECK-NEXT: movdq2q %xmm0, %mm0
28 ; CHECK-NEXT: # %mm0 = %mm0
31 ; CHECK-NEXT: # %mm0 = %mm0
33 ; CHECK-NEXT: movq2dq %mm0, %xmm0
35 %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)