1 ; RUN: not llc < %s -mtriple i386-unknown-linux-gnu -mattr +avx -o /dev/null 2> %t
2 ; RUN: FileCheck %s --input-file %t
4 define <4 x float> @testxmm_1(<4 x float> %_xmm0, i32 %_l) {
5 ; CHECK: error: inline assembly requires more registers than available
7 %0 = tail call <4 x float> asm "vmovhlps $1, $2, $0", "=v,v,v,~{xmm0},~{xmm1},~{xmm2},~{xmm3},~{xmm4},~{xmm5},~{xmm6},~{xmm7},~{dirflag},~{fpsr},~{flags}"(i32 %_l, <4 x float> %_xmm0)
11 define <4 x float> @testxmm_2(<4 x float> %_xmm0, i32 %_l) {
12 ; CHECK: error: inline assembly requires more registers than available
14 %0 = tail call <4 x float> asm "movapd $1, $0", "=v,v,~{xmm0},~{xmm1},~{xmm2},~{xmm3},~{xmm4},~{xmm5},~{xmm6},~{xmm7},~{dirflag},~{fpsr},~{flags}"(i32 %_l)
18 define <4 x float> @testxmm_3(<4 x float> %_xmm0, i32 %_l) {
19 ; CHECK: error: inline assembly requires more registers than available
21 %0 = tail call <4 x float> asm "vmovapd $1, $0", "=v,v,~{xmm0},~{xmm1},~{xmm2},~{xmm3},~{xmm4},~{xmm5},~{xmm6},~{xmm7},~{dirflag},~{fpsr},~{flags}"(i32 %_l)
25 define <4 x float> @testxmm_4(<4 x float> %_xmm0, i32 %_l) {
26 ; CHECK: error: inline assembly requires more registers than available
28 %0 = tail call <4 x float> asm "vmpsadbw $$0, $1, $2, $0", "=v,v,v,~{xmm0},~{xmm1},~{xmm2},~{xmm3},~{xmm4},~{xmm5},~{xmm6},~{xmm7},~{dirflag},~{fpsr},~{flags}"(i32 %_l, <4 x float> %_xmm0)
32 define <4 x float> @testxmm_5(<4 x float> %_xmm0, i32 %_l) {
33 ; CHECK: error: inline assembly requires more registers than available
35 %0 = tail call <4 x float> asm "vminpd $1, $2, $0", "=v,v,v,~{xmm0},~{xmm1},~{xmm2},~{xmm3},~{xmm4},~{xmm5},~{xmm6},~{xmm7},~{dirflag},~{fpsr},~{flags}"(i32 %_l, i32 %_l)
39 define i32 @testxmm_6(i32 returned %_l) {
40 ; CHECK: error: inline assembly requires more registers than available
42 tail call void asm sideeffect "vmovd $0, %eax", "v,~{xmm0},~{xmm1},~{xmm2},~{xmm3},~{xmm4},~{xmm5},~{xmm6},~{xmm7},~{dirflag},~{fpsr},~{flags}"(i32 %_l)
46 define <4 x float> @testxmm_7(<4 x float> returned %_xmm0) {
47 ; CHECK: error: inline assembly requires more registers than available
49 tail call void asm sideeffect "vmovmskps $0, %eax", "v,~{xmm0},~{xmm1},~{xmm2},~{xmm3},~{xmm4},~{xmm5},~{xmm6},~{xmm7},~{dirflag},~{fpsr},~{flags}"(<4 x float> %_xmm0)
50 ret <4 x float> %_xmm0
53 define i32 @testxmm_8(<4 x float> %_xmm0, i32 %_l) {
54 ; CHECK: error: inline assembly requires more registers than available
56 %0 = tail call i32 asm "vmulsd $1, $2, $0", "=v,v,v,~{xmm0},~{xmm1},~{xmm2},~{xmm3},~{xmm4},~{xmm5},~{xmm6},~{xmm7},~{dirflag},~{fpsr},~{flags}"(i32 %_l, <4 x float> %_xmm0)
60 define <4 x float> @testxmm_9(<4 x float> %_xmm0, i32 %_l) {
61 ; CHECK: error: inline assembly requires more registers than available
63 %0 = tail call <4 x float> asm "vorpd $1, $2, $0", "=v,v,v,~{xmm0},~{xmm1},~{xmm2},~{xmm3},~{xmm4},~{xmm5},~{xmm6},~{xmm7},~{dirflag},~{fpsr},~{flags}"(i32 %_l, <4 x float> %_xmm0)
67 define <4 x float> @testxmm_10(<4 x float> %_xmm0, i32 %_l) {
68 ; CHECK: error: inline assembly requires more registers than available
70 %0 = tail call <4 x float> asm "pabsb $1, $0", "=v,v,~{xmm0},~{xmm1},~{xmm2},~{xmm3},~{xmm4},~{xmm5},~{xmm6},~{xmm7},~{dirflag},~{fpsr},~{flags}"(i32 %_l)
74 define <4 x float> @testxmm_11(<4 x float> %_xmm0, i32 %_l) {
75 ; CHECK: error: inline assembly requires more registers than available
77 %0 = tail call <4 x float> asm "vpabsd $1, $0", "=v,v,~{xmm0},~{xmm1},~{xmm2},~{xmm3},~{xmm4},~{xmm5},~{xmm6},~{xmm7},~{dirflag},~{fpsr},~{flags}"(i32 %_l)
81 define <8 x float> @testymm_1(<8 x float> %_ymm0, <8 x float> %_ymm1) {
82 ; CHECK: error: inline assembly requires more registers than available
84 %0 = tail call <8 x float> asm "vmovsldup $1, $0", "=v,v,~{ymm0},~{ymm1},~{ymm2},~{ymm3},~{ymm4},~{ymm5},~{ymm6},~{ymm7},~{dirflag},~{fpsr},~{flags}"(<8 x float> %_ymm0)
88 define <8 x float> @testymm_2(<8 x float> %_ymm0, <8 x float> %_ymm1) {
89 ; CHECK: error: inline assembly requires more registers than available
91 %0 = tail call <8 x float> asm "vmovapd $1, $0", "=v,v,~{ymm0},~{ymm1},~{ymm2},~{ymm3},~{ymm4},~{ymm5},~{ymm6},~{ymm7},~{dirflag},~{fpsr},~{flags}"(<8 x float> %_ymm1)
95 define <8 x float> @testymm_3(<8 x float> %_ymm0, <8 x float> %_ymm1) {
96 ; CHECK: error: inline assembly requires more registers than available
98 %0 = tail call <8 x float> asm "vminpd $1, $2, $0", "=v,v,v,~{ymm0},~{ymm1},~{ymm2},~{ymm3},~{ymm4},~{ymm5},~{ymm6},~{ymm7},~{dirflag},~{fpsr},~{flags}"(<8 x float> %_ymm1, <8 x float> %_ymm0)
102 define <8 x float> @testymm_4(<8 x float> %_ymm0, <8 x float> %_ymm1) {
103 ; CHECK: error: inline assembly requires more registers than available
105 %0 = tail call <8 x float> asm "vorpd $1, $2, $0", "=v,v,v,~{ymm0},~{ymm1},~{ymm2},~{ymm3},~{ymm4},~{ymm5},~{ymm6},~{ymm7},~{dirflag},~{fpsr},~{flags}"(<8 x float> %_ymm1, <8 x float> %_ymm0)
109 define <8 x float> @testymm(<8 x float> %_ymm0, <8 x float> %_ymm1) {
110 ; CHECK: error: inline assembly requires more registers than available
112 %0 = tail call <8 x float> asm "vmulps $1, $2, $0", "=v,v,v,~{ymm0},~{ymm1},~{ymm2},~{ymm3},~{ymm4},~{ymm5},~{ymm6},~{ymm7},~{dirflag},~{fpsr},~{flags}"(<8 x float> %_ymm1, <8 x float> %_ymm0)
116 define <8 x float> @testymm_6(<8 x float> %_ymm0, <8 x float> %_ymm1) {
117 ; CHECK: error: inline assembly requires more registers than available
119 %0 = tail call <8 x float> asm "vmulpd $1, $2, $0", "=v,v,v,~{ymm0},~{ymm1},~{ymm2},~{ymm3},~{ymm4},~{ymm5},~{ymm6},~{ymm7},~{dirflag},~{fpsr},~{flags}"(<8 x float> %_ymm1, <8 x float> %_ymm0)
123 define <8 x float> @testymm_7(<8 x float> %_ymm0, <8 x float> %_ymm1) {
124 ; CHECK: error: inline assembly requires more registers than available
126 %0 = tail call <8 x float> asm "vmovups $1, $0", "=v,v,~{ymm0},~{ymm1},~{ymm2},~{ymm3},~{ymm4},~{ymm5},~{ymm6},~{ymm7},~{dirflag},~{fpsr},~{flags}"(<8 x float> %_ymm1)
130 define <8 x float> @testymm_8(<8 x float> %_ymm0, <8 x float> %_ymm1) {
131 ; CHECK: error: inline assembly requires more registers than available
133 %0 = tail call <8 x float> asm "vmovupd $1, $0", "=v,v,~{ymm0},~{ymm1},~{ymm2},~{ymm3},~{ymm4},~{ymm5},~{ymm6},~{ymm7},~{dirflag},~{fpsr},~{flags}"(<8 x float> %_ymm1)