Home | History | Annotate | Download | only in X86
      1 ; RUN: llc < %s -mtriple=i386-pc-win32 -mcpu=corei7 | FileCheck %s
      2 ; RUN: llc < %s -mtriple=x86_64-unknown-linux-gnu -mcpu=core-avx2 | FileCheck %s --check-prefix=X64
      3 
      4 ; ModuleID = 'a.bc'
      5 target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-f80:128:128-v64:64:64-v128:128:128-a0:0:64-f80:32:32-n8:16:32-S32"
      6 target triple = "i386-pc-win32"
      7 
      8 %v4_varying_big_struct = type { [4 x <4 x i32>] }
      9 
     10 declare <4 x i32> @"foo"(%v4_varying_big_struct, <4 x i32>) nounwind
     11 
     12 define <4 x i32> @"bar"(%v4_varying_big_struct %s, <4 x i32> %__mask) nounwind {
     13 allocas:
     14   %calltmp = call <4 x i32> @"foo"(%v4_varying_big_struct %s, <4 x i32> %__mask)
     15   ret <4 x i32> %calltmp
     16 ; CHECK: bar
     17 ; CHECK: andl
     18 ; CHECK: call
     19 ; CHECK: ret
     20 }
     21 
     22 declare <8 x float> @bar64(<8 x float> %i0, <8 x float> %i1,
     23                          <8 x float> %i2, <8 x float> %i3,
     24                          <8 x float> %i4, <8 x float> %i5,
     25                          <8 x float> %i6, <8 x float> %i7,
     26                          <8 x float> %i8, <8 x float> %i9)
     27 
     28 define <8 x float> @foo64(<8 x float>* %p) {
     29   %1 = load <8 x float>, <8 x float>* %p
     30   %idx1 = getelementptr inbounds <8 x float>, <8 x float>* %p, i64 1
     31   %2 = load <8 x float>, <8 x float>* %idx1
     32   %idx2 = getelementptr inbounds <8 x float>, <8 x float>* %p, i64 2
     33   %3 = load <8 x float>, <8 x float>* %idx2
     34   %idx3 = getelementptr inbounds <8 x float>, <8 x float>* %p, i64 3
     35   %4 = load <8 x float>, <8 x float>* %idx3
     36   %idx4 = getelementptr inbounds <8 x float>, <8 x float>* %p, i64 4
     37   %5 = load <8 x float>, <8 x float>* %idx4
     38   %idx5 = getelementptr inbounds <8 x float>, <8 x float>* %p, i64 5
     39   %6 = load <8 x float>, <8 x float>* %idx5
     40   %idx6 = getelementptr inbounds <8 x float>, <8 x float>* %p, i64 6
     41   %7 = load <8 x float>, <8 x float>* %idx6
     42   %idx7 = getelementptr inbounds <8 x float>, <8 x float>* %p, i64 7
     43   %8 = load <8 x float>, <8 x float>* %idx7
     44   %idx8 = getelementptr inbounds <8 x float>, <8 x float>* %p, i64 8
     45   %9 = load <8 x float>, <8 x float>* %idx8
     46   %idx9 = getelementptr inbounds <8 x float>, <8 x float>* %p, i64 9
     47   %10 = load <8 x float>, <8 x float>* %idx9
     48   %r = tail call <8 x float> @bar64(<8 x float> %1, <8 x float> %2,
     49                                     <8 x float> %3, <8 x float> %4,
     50                                     <8 x float> %5, <8 x float> %6,
     51                                     <8 x float> %7, <8 x float> %8,
     52                                     <8 x float> %9, <8 x float> %10)
     53   ret <8 x float> %r
     54 ; X64: foo
     55 ; X64: and
     56 ; X64: call
     57 ; X64: ret
     58 }
     59