diff options
Diffstat (limited to 'llvm/test')
| -rw-r--r-- | llvm/test/CodeGen/X86/pr29010.ll | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/X86/pr29010.ll b/llvm/test/CodeGen/X86/pr29010.ll new file mode 100644 index 00000000000..a2d5ff69a35 --- /dev/null +++ b/llvm/test/CodeGen/X86/pr29010.ll @@ -0,0 +1,12 @@ +; RUN: llc < %s -mtriple=i386-linux -mattr=+avx | FileCheck %s + +; In i386 there are only 8 XMMs (xmm0-xmm7), make sure we we are not creating illegal XMM +define float @only_xmm0_7(i32 %arg) { +top: + tail call void asm sideeffect "", "~{xmm0},~{xmm1},~{xmm2},~{xmm3},~{dirflag},~{fpsr},~{flags}"() + tail call void asm sideeffect "", "~{xmm4},~{xmm5},~{xmm6},~{xmm7},~{dirflag},~{fpsr},~{flags}"() + %tmp1 = sitofp i32 %arg to float + ret float %tmp1 +;CHECK-LABEL:@only_xmm0_7 +;CHECK: vcvtsi2ssl {{.*}}, {{%xmm[0-7]+}}, {{%xmm[0-7]+}} +} |

