xref: /llvm-project/llvm/test/CodeGen/X86/pr29010.ll (revision 372ffa15cb0d62f0acfc596545733417822dfc0e)
1; RUN: llc < %s -mtriple=i386-linux -mattr=+avx | FileCheck %s
2
3; In i386 there are only 8 XMMs (xmm0-xmm7), make sure we are not creating illegal XMM
4define float @only_xmm0_7(i32 %arg) {
5top:
6  tail call void asm sideeffect "", "~{xmm0},~{xmm1},~{xmm2},~{xmm3},~{dirflag},~{fpsr},~{flags}"()
7  tail call void asm sideeffect "", "~{xmm4},~{xmm5},~{xmm6},~{xmm7},~{dirflag},~{fpsr},~{flags}"()
8  %tmp1 = sitofp i32 %arg to float
9  ret float %tmp1
10;CHECK-LABEL:@only_xmm0_7
11;CHECK: vcvtsi2ssl {{.*}}, {{%xmm[0-7]+}}, {{%xmm[0-7]+}}
12}
13