| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 1 | ; RUN: llc < %s -mcpu=x86-64 -mattr=+avx512f -x86-experimental-vector-shuffle-lowering | FileCheck %s --check-prefix=ALL --check-prefix=AVX512 --check-prefix=AVX512F | 
|  | 2 | ; RUN: llc < %s -mcpu=x86-64 -mattr=+avx512bw -x86-experimental-vector-shuffle-lowering | FileCheck %s --check-prefix=ALL --check-prefix=AVX512 --check-prefix=AVX512BW | 
|  | 3 |  | 
|  | 4 | target triple = "x86_64-unknown-unknown" | 
|  | 5 |  | 
|  | 6 | define <8 x double> @shuffle_v8f64_00000000(<8 x double> %a, <8 x double> %b) { | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 7 | ; ALL-LABEL: shuffle_v8f64_00000000: | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 8 | ; ALL:       # BB#0: | 
| Chandler Carruth | 77e1a0a | 2014-11-21 12:33:46 +0000 | [diff] [blame] | 9 | ; ALL-NEXT:    vbroadcastsd %xmm0, %zmm0 | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 10 | ; ALL-NEXT:    retq | 
|  | 11 | %shuffle = shufflevector <8 x double> %a, <8 x double> %b, <8 x i32> <i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0> | 
|  | 12 | ret <8 x double> %shuffle | 
|  | 13 | } | 
|  | 14 |  | 
|  | 15 | define <8 x double> @shuffle_v8f64_00000010(<8 x double> %a, <8 x double> %b) { | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 16 | ; ALL-LABEL: shuffle_v8f64_00000010: | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 17 | ; ALL:       # BB#0: | 
| Chandler Carruth | b9d3fa1 | 2014-10-01 00:41:21 +0000 | [diff] [blame] | 18 | ; ALL-NEXT:    vbroadcastsd %xmm0, %ymm1 | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 19 | ; ALL-NEXT:    vpermpd {{.*#+}} ymm0 = ymm0[0,0,1,0] | 
| Chandler Carruth | c712927 | 2014-09-29 00:37:27 +0000 | [diff] [blame] | 20 | ; ALL-NEXT:    vinsertf64x4 $1, %ymm0, %zmm1, %zmm0 | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 21 | ; ALL-NEXT:    retq | 
|  | 22 | %shuffle = shufflevector <8 x double> %a, <8 x double> %b, <8 x i32> <i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 1, i32 0> | 
|  | 23 | ret <8 x double> %shuffle | 
|  | 24 | } | 
|  | 25 |  | 
|  | 26 | define <8 x double> @shuffle_v8f64_00000200(<8 x double> %a, <8 x double> %b) { | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 27 | ; ALL-LABEL: shuffle_v8f64_00000200: | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 28 | ; ALL:       # BB#0: | 
| Chandler Carruth | b9d3fa1 | 2014-10-01 00:41:21 +0000 | [diff] [blame] | 29 | ; ALL-NEXT:    vbroadcastsd %xmm0, %ymm1 | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 30 | ; ALL-NEXT:    vpermpd {{.*#+}} ymm0 = ymm0[0,2,0,0] | 
| Chandler Carruth | c712927 | 2014-09-29 00:37:27 +0000 | [diff] [blame] | 31 | ; ALL-NEXT:    vinsertf64x4 $1, %ymm0, %zmm1, %zmm0 | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 32 | ; ALL-NEXT:    retq | 
|  | 33 | %shuffle = shufflevector <8 x double> %a, <8 x double> %b, <8 x i32> <i32 0, i32 0, i32 0, i32 0, i32 0, i32 2, i32 0, i32 0> | 
|  | 34 | ret <8 x double> %shuffle | 
|  | 35 | } | 
|  | 36 |  | 
|  | 37 | define <8 x double> @shuffle_v8f64_00003000(<8 x double> %a, <8 x double> %b) { | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 38 | ; ALL-LABEL: shuffle_v8f64_00003000: | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 39 | ; ALL:       # BB#0: | 
| Chandler Carruth | b9d3fa1 | 2014-10-01 00:41:21 +0000 | [diff] [blame] | 40 | ; ALL-NEXT:    vbroadcastsd %xmm0, %ymm1 | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 41 | ; ALL-NEXT:    vpermpd {{.*#+}} ymm0 = ymm0[3,0,0,0] | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 42 | ; ALL-NEXT:    vinsertf64x4 $1, %ymm0, %zmm1, %zmm0 | 
|  | 43 | ; ALL-NEXT:    retq | 
|  | 44 | %shuffle = shufflevector <8 x double> %a, <8 x double> %b, <8 x i32> <i32 0, i32 0, i32 0, i32 0, i32 3, i32 0, i32 0, i32 0> | 
|  | 45 | ret <8 x double> %shuffle | 
|  | 46 | } | 
|  | 47 |  | 
|  | 48 | define <8 x double> @shuffle_v8f64_00040000(<8 x double> %a, <8 x double> %b) { | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 49 | ; ALL-LABEL: shuffle_v8f64_00040000: | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 50 | ; ALL:       # BB#0: | 
| Chandler Carruth | 77e1a0a | 2014-11-21 12:33:46 +0000 | [diff] [blame] | 51 | ; ALL-NEXT:    vextractf64x4 $1, %zmm0, %ymm1 | 
| Chandler Carruth | b9d3fa1 | 2014-10-01 00:41:21 +0000 | [diff] [blame] | 52 | ; ALL-NEXT:    vbroadcastsd %xmm1, %ymm1 | 
|  | 53 | ; ALL-NEXT:    vbroadcastsd %xmm0, %ymm0 | 
|  | 54 | ; ALL-NEXT:    vblendpd {{.*#+}} ymm1 = ymm0[0,1,2],ymm1[3] | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 55 | ; ALL-NEXT:    vinsertf64x4 $1, %ymm0, %zmm1, %zmm0 | 
|  | 56 | ; ALL-NEXT:    retq | 
|  | 57 | %shuffle = shufflevector <8 x double> %a, <8 x double> %b, <8 x i32> <i32 0, i32 0, i32 0, i32 4, i32 0, i32 0, i32 0, i32 0> | 
|  | 58 | ret <8 x double> %shuffle | 
|  | 59 | } | 
|  | 60 |  | 
|  | 61 | define <8 x double> @shuffle_v8f64_00500000(<8 x double> %a, <8 x double> %b) { | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 62 | ; ALL-LABEL: shuffle_v8f64_00500000: | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 63 | ; ALL:       # BB#0: | 
| Chandler Carruth | 77e1a0a | 2014-11-21 12:33:46 +0000 | [diff] [blame] | 64 | ; ALL-NEXT:    vextractf64x4 $1, %zmm0, %ymm1 | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 65 | ; ALL-NEXT:    vpermpd {{.*#+}} ymm1 = ymm1[0,1,1,3] | 
| Chandler Carruth | b9d3fa1 | 2014-10-01 00:41:21 +0000 | [diff] [blame] | 66 | ; ALL-NEXT:    vbroadcastsd %xmm0, %ymm0 | 
|  | 67 | ; ALL-NEXT:    vblendpd {{.*#+}} ymm1 = ymm0[0,1],ymm1[2],ymm0[3] | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 68 | ; ALL-NEXT:    vinsertf64x4 $1, %ymm0, %zmm1, %zmm0 | 
|  | 69 | ; ALL-NEXT:    retq | 
|  | 70 | %shuffle = shufflevector <8 x double> %a, <8 x double> %b, <8 x i32> <i32 0, i32 0, i32 5, i32 0, i32 0, i32 0, i32 0, i32 0> | 
|  | 71 | ret <8 x double> %shuffle | 
|  | 72 | } | 
|  | 73 |  | 
|  | 74 | define <8 x double> @shuffle_v8f64_06000000(<8 x double> %a, <8 x double> %b) { | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 75 | ; ALL-LABEL: shuffle_v8f64_06000000: | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 76 | ; ALL:       # BB#0: | 
| Chandler Carruth | 77e1a0a | 2014-11-21 12:33:46 +0000 | [diff] [blame] | 77 | ; ALL-NEXT:    vextractf64x4 $1, %zmm0, %ymm1 | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 78 | ; ALL-NEXT:    vpermpd {{.*#+}} ymm1 = ymm1[0,2,2,3] | 
| Chandler Carruth | b9d3fa1 | 2014-10-01 00:41:21 +0000 | [diff] [blame] | 79 | ; ALL-NEXT:    vbroadcastsd %xmm0, %ymm0 | 
|  | 80 | ; ALL-NEXT:    vblendpd {{.*#+}} ymm1 = ymm0[0],ymm1[1],ymm0[2,3] | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 81 | ; ALL-NEXT:    vinsertf64x4 $1, %ymm0, %zmm1, %zmm0 | 
|  | 82 | ; ALL-NEXT:    retq | 
|  | 83 | %shuffle = shufflevector <8 x double> %a, <8 x double> %b, <8 x i32> <i32 0, i32 6, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0> | 
|  | 84 | ret <8 x double> %shuffle | 
|  | 85 | } | 
|  | 86 |  | 
|  | 87 | define <8 x double> @shuffle_v8f64_70000000(<8 x double> %a, <8 x double> %b) { | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 88 | ; ALL-LABEL: shuffle_v8f64_70000000: | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 89 | ; ALL:       # BB#0: | 
| Chandler Carruth | 77e1a0a | 2014-11-21 12:33:46 +0000 | [diff] [blame] | 90 | ; ALL-NEXT:    vextractf64x4 $1, %zmm0, %ymm1 | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 91 | ; ALL-NEXT:    vpermpd {{.*#+}} ymm1 = ymm1[3,1,2,3] | 
| Chandler Carruth | b9d3fa1 | 2014-10-01 00:41:21 +0000 | [diff] [blame] | 92 | ; ALL-NEXT:    vbroadcastsd %xmm0, %ymm0 | 
| Chandler Carruth | f3e8806 | 2014-10-03 22:43:17 +0000 | [diff] [blame] | 93 | ; ALL-NEXT:    vblendpd {{.*#+}} ymm1 = ymm1[0],ymm0[1,2,3] | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 94 | ; ALL-NEXT:    vinsertf64x4 $1, %ymm0, %zmm1, %zmm0 | 
|  | 95 | ; ALL-NEXT:    retq | 
|  | 96 | %shuffle = shufflevector <8 x double> %a, <8 x double> %b, <8 x i32> <i32 7, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0> | 
|  | 97 | ret <8 x double> %shuffle | 
|  | 98 | } | 
|  | 99 |  | 
|  | 100 | define <8 x double> @shuffle_v8f64_01014545(<8 x double> %a, <8 x double> %b) { | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 101 | ; ALL-LABEL: shuffle_v8f64_01014545: | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 102 | ; ALL:       # BB#0: | 
| Chandler Carruth | 77e1a0a | 2014-11-21 12:33:46 +0000 | [diff] [blame] | 103 | ; ALL-NEXT:    vextractf64x4 $1, %zmm0, %ymm1 | 
| Chandler Carruth | 9f4d9fa | 2014-10-05 11:41:36 +0000 | [diff] [blame] | 104 | ; ALL-NEXT:    vinsertf128 $1, %xmm1, %ymm1, %ymm1 | 
|  | 105 | ; ALL-NEXT:    vinsertf128 $1, %xmm0, %ymm0, %ymm0 | 
|  | 106 | ; ALL-NEXT:    vinsertf64x4 $1, %ymm1, %zmm0, %zmm0 | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 107 | ; ALL-NEXT:    retq | 
|  | 108 | %shuffle = shufflevector <8 x double> %a, <8 x double> %b, <8 x i32> <i32 0, i32 1, i32 0, i32 1, i32 4, i32 5, i32 4, i32 5> | 
|  | 109 | ret <8 x double> %shuffle | 
|  | 110 | } | 
|  | 111 |  | 
|  | 112 | define <8 x double> @shuffle_v8f64_00112233(<8 x double> %a, <8 x double> %b) { | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 113 | ; ALL-LABEL: shuffle_v8f64_00112233: | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 114 | ; ALL:       # BB#0: | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 115 | ; ALL-NEXT:    vpermpd {{.*#+}} ymm1 = ymm0[0,0,1,1] | 
|  | 116 | ; ALL-NEXT:    vpermpd {{.*#+}} ymm0 = ymm0[2,2,3,3] | 
| Chandler Carruth | c712927 | 2014-09-29 00:37:27 +0000 | [diff] [blame] | 117 | ; ALL-NEXT:    vinsertf64x4 $1, %ymm0, %zmm1, %zmm0 | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 118 | ; ALL-NEXT:    retq | 
|  | 119 | %shuffle = shufflevector <8 x double> %a, <8 x double> %b, <8 x i32> <i32 0, i32 0, i32 1, i32 1, i32 2, i32 2, i32 3, i32 3> | 
|  | 120 | ret <8 x double> %shuffle | 
|  | 121 | } | 
|  | 122 |  | 
|  | 123 | define <8 x double> @shuffle_v8f64_00001111(<8 x double> %a, <8 x double> %b) { | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 124 | ; ALL-LABEL: shuffle_v8f64_00001111: | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 125 | ; ALL:       # BB#0: | 
| Chandler Carruth | b9d3fa1 | 2014-10-01 00:41:21 +0000 | [diff] [blame] | 126 | ; ALL-NEXT:    vbroadcastsd %xmm0, %ymm1 | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 127 | ; ALL-NEXT:    vpermpd {{.*#+}} ymm0 = ymm0[1,1,1,1] | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 128 | ; ALL-NEXT:    vinsertf64x4 $1, %ymm0, %zmm1, %zmm0 | 
|  | 129 | ; ALL-NEXT:    retq | 
|  | 130 | %shuffle = shufflevector <8 x double> %a, <8 x double> %b, <8 x i32> <i32 0, i32 0, i32 0, i32 0, i32 1, i32 1, i32 1, i32 1> | 
|  | 131 | ret <8 x double> %shuffle | 
|  | 132 | } | 
|  | 133 |  | 
|  | 134 | define <8 x double> @shuffle_v8f64_81a3c5e7(<8 x double> %a, <8 x double> %b) { | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 135 | ; ALL-LABEL: shuffle_v8f64_81a3c5e7: | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 136 | ; ALL:       # BB#0: | 
| Chandler Carruth | 77e1a0a | 2014-11-21 12:33:46 +0000 | [diff] [blame] | 137 | ; ALL-NEXT:    vextractf64x4 $1, %zmm0, %ymm2 | 
|  | 138 | ; ALL-NEXT:    vextractf64x4 $1, %zmm1, %ymm3 | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 139 | ; ALL-NEXT:    vblendpd {{.*#+}} ymm2 = ymm3[0],ymm2[1],ymm3[2],ymm2[3] | 
|  | 140 | ; ALL-NEXT:    vblendpd {{.*#+}} ymm0 = ymm1[0],ymm0[1],ymm1[2],ymm0[3] | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 141 | ; ALL-NEXT:    vinsertf64x4 $1, %ymm2, %zmm0, %zmm0 | 
|  | 142 | ; ALL-NEXT:    retq | 
|  | 143 | %shuffle = shufflevector <8 x double> %a, <8 x double> %b, <8 x i32> <i32 8, i32 1, i32 10, i32 3, i32 12, i32 5, i32 14, i32 7> | 
|  | 144 | ret <8 x double> %shuffle | 
|  | 145 | } | 
|  | 146 |  | 
|  | 147 | define <8 x double> @shuffle_v8f64_08080808(<8 x double> %a, <8 x double> %b) { | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 148 | ; ALL-LABEL: shuffle_v8f64_08080808: | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 149 | ; ALL:       # BB#0: | 
| Chandler Carruth | 9f4d9fa | 2014-10-05 11:41:36 +0000 | [diff] [blame] | 150 | ; ALL-NEXT:    vinsertf128 $1, %xmm0, %ymm0, %ymm0 | 
| Chandler Carruth | b9d3fa1 | 2014-10-01 00:41:21 +0000 | [diff] [blame] | 151 | ; ALL-NEXT:    vbroadcastsd %xmm1, %ymm1 | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 152 | ; ALL-NEXT:    vblendpd {{.*#+}} ymm0 = ymm0[0],ymm1[1],ymm0[2],ymm1[3] | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 153 | ; ALL-NEXT:    vinsertf64x4 $1, %ymm0, %zmm0, %zmm0 | 
|  | 154 | ; ALL-NEXT:    retq | 
|  | 155 | %shuffle = shufflevector <8 x double> %a, <8 x double> %b, <8 x i32> <i32 0, i32 8, i32 0, i32 8, i32 0, i32 8, i32 0, i32 8> | 
|  | 156 | ret <8 x double> %shuffle | 
|  | 157 | } | 
|  | 158 |  | 
|  | 159 | define <8 x double> @shuffle_v8f64_08084c4c(<8 x double> %a, <8 x double> %b) { | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 160 | ; ALL-LABEL: shuffle_v8f64_08084c4c: | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 161 | ; ALL:       # BB#0: | 
| Chandler Carruth | 77e1a0a | 2014-11-21 12:33:46 +0000 | [diff] [blame] | 162 | ; ALL-NEXT:    vextractf64x4 $1, %zmm0, %ymm2 | 
| Chandler Carruth | 9f4d9fa | 2014-10-05 11:41:36 +0000 | [diff] [blame] | 163 | ; ALL-NEXT:    vinsertf128 $1, %xmm2, %ymm2, %ymm2 | 
| Chandler Carruth | 77e1a0a | 2014-11-21 12:33:46 +0000 | [diff] [blame] | 164 | ; ALL-NEXT:    vextractf64x4 $1, %zmm1, %ymm3 | 
| Chandler Carruth | b9d3fa1 | 2014-10-01 00:41:21 +0000 | [diff] [blame] | 165 | ; ALL-NEXT:    vbroadcastsd %xmm3, %ymm3 | 
| Chandler Carruth | 9f4d9fa | 2014-10-05 11:41:36 +0000 | [diff] [blame] | 166 | ; ALL-NEXT:    vblendpd {{.*#+}} ymm2 = ymm2[0],ymm3[1],ymm2[2],ymm3[3] | 
|  | 167 | ; ALL-NEXT:    vinsertf128 $1, %xmm0, %ymm0, %ymm0 | 
| Chandler Carruth | b9d3fa1 | 2014-10-01 00:41:21 +0000 | [diff] [blame] | 168 | ; ALL-NEXT:    vbroadcastsd %xmm1, %ymm1 | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 169 | ; ALL-NEXT:    vblendpd {{.*#+}} ymm0 = ymm0[0],ymm1[1],ymm0[2],ymm1[3] | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 170 | ; ALL-NEXT:    vinsertf64x4 $1, %ymm2, %zmm0, %zmm0 | 
|  | 171 | ; ALL-NEXT:    retq | 
|  | 172 | %shuffle = shufflevector <8 x double> %a, <8 x double> %b, <8 x i32> <i32 0, i32 8, i32 0, i32 8, i32 4, i32 12, i32 4, i32 12> | 
|  | 173 | ret <8 x double> %shuffle | 
|  | 174 | } | 
|  | 175 |  | 
|  | 176 | define <8 x double> @shuffle_v8f64_8823cc67(<8 x double> %a, <8 x double> %b) { | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 177 | ; ALL-LABEL: shuffle_v8f64_8823cc67: | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 178 | ; ALL:       # BB#0: | 
| Chandler Carruth | 77e1a0a | 2014-11-21 12:33:46 +0000 | [diff] [blame] | 179 | ; ALL-NEXT:    vextractf64x4 $1, %zmm0, %ymm2 | 
|  | 180 | ; ALL-NEXT:    vextractf64x4 $1, %zmm1, %ymm3 | 
| Chandler Carruth | b9d3fa1 | 2014-10-01 00:41:21 +0000 | [diff] [blame] | 181 | ; ALL-NEXT:    vbroadcastsd %xmm3, %ymm3 | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 182 | ; ALL-NEXT:    vblendpd {{.*#+}} ymm2 = ymm3[0,1],ymm2[2,3] | 
| Chandler Carruth | b9d3fa1 | 2014-10-01 00:41:21 +0000 | [diff] [blame] | 183 | ; ALL-NEXT:    vbroadcastsd %xmm1, %ymm1 | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 184 | ; ALL-NEXT:    vblendpd {{.*#+}} ymm0 = ymm1[0,1],ymm0[2,3] | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 185 | ; ALL-NEXT:    vinsertf64x4 $1, %ymm2, %zmm0, %zmm0 | 
|  | 186 | ; ALL-NEXT:    retq | 
|  | 187 | %shuffle = shufflevector <8 x double> %a, <8 x double> %b, <8 x i32> <i32 8, i32 8, i32 2, i32 3, i32 12, i32 12, i32 6, i32 7> | 
|  | 188 | ret <8 x double> %shuffle | 
|  | 189 | } | 
|  | 190 |  | 
|  | 191 | define <8 x double> @shuffle_v8f64_9832dc76(<8 x double> %a, <8 x double> %b) { | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 192 | ; ALL-LABEL: shuffle_v8f64_9832dc76: | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 193 | ; ALL:       # BB#0: | 
| Chandler Carruth | ce5a26b | 2014-11-21 14:53:03 +0000 | [diff] [blame] | 194 | ; ALL-NEXT:    vblendpd {{.*#+}} ymm2 = ymm1[0,1],ymm0[2,3] | 
|  | 195 | ; ALL-NEXT:    vpermilpd {{.*#+}} ymm2 = ymm2[1,0,3,2] | 
|  | 196 | ; ALL-NEXT:    vextractf64x4 $1, %zmm0, %ymm0 | 
|  | 197 | ; ALL-NEXT:    vextractf64x4 $1, %zmm1, %ymm1 | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 198 | ; ALL-NEXT:    vblendpd {{.*#+}} ymm0 = ymm1[0,1],ymm0[2,3] | 
| Chandler Carruth | ce5a26b | 2014-11-21 14:53:03 +0000 | [diff] [blame] | 199 | ; ALL-NEXT:    vpermilpd {{.*#+}} ymm0 = ymm0[1,0,3,2] | 
|  | 200 | ; ALL-NEXT:    vinsertf64x4 $1, %ymm0, %zmm2, %zmm0 | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 201 | ; ALL-NEXT:    retq | 
|  | 202 | %shuffle = shufflevector <8 x double> %a, <8 x double> %b, <8 x i32> <i32 9, i32 8, i32 3, i32 2, i32 13, i32 12, i32 7, i32 6> | 
|  | 203 | ret <8 x double> %shuffle | 
|  | 204 | } | 
|  | 205 |  | 
|  | 206 | define <8 x double> @shuffle_v8f64_9810dc54(<8 x double> %a, <8 x double> %b) { | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 207 | ; ALL-LABEL: shuffle_v8f64_9810dc54: | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 208 | ; ALL:       # BB#0: | 
| Chandler Carruth | d2b19bc | 2014-11-21 13:56:05 +0000 | [diff] [blame] | 209 | ; ALL-NEXT:    vinsertf128 $1, %xmm0, %ymm1, %ymm2 | 
|  | 210 | ; ALL-NEXT:    vpermilpd {{.*#+}} ymm2 = ymm2[1,0,3,2] | 
|  | 211 | ; ALL-NEXT:    vextractf64x4 $1, %zmm1, %ymm1 | 
|  | 212 | ; ALL-NEXT:    vextractf64x4 $1, %zmm0, %ymm0 | 
|  | 213 | ; ALL-NEXT:    vinsertf128 $1, %xmm0, %ymm1, %ymm0 | 
|  | 214 | ; ALL-NEXT:    vpermilpd {{.*#+}} ymm0 = ymm0[1,0,3,2] | 
|  | 215 | ; ALL-NEXT:    vinsertf64x4 $1, %ymm0, %zmm2, %zmm0 | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 216 | ; ALL-NEXT:    retq | 
|  | 217 | %shuffle = shufflevector <8 x double> %a, <8 x double> %b, <8 x i32> <i32 9, i32 8, i32 1, i32 0, i32 13, i32 12, i32 5, i32 4> | 
|  | 218 | ret <8 x double> %shuffle | 
|  | 219 | } | 
|  | 220 |  | 
|  | 221 | define <8 x double> @shuffle_v8f64_08194c5d(<8 x double> %a, <8 x double> %b) { | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 222 | ; ALL-LABEL: shuffle_v8f64_08194c5d: | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 223 | ; ALL:       # BB#0: | 
| Chandler Carruth | 77e1a0a | 2014-11-21 12:33:46 +0000 | [diff] [blame] | 224 | ; ALL-NEXT:    vextractf64x4 $1, %zmm1, %ymm2 | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 225 | ; ALL-NEXT:    vpermpd {{.*#+}} ymm2 = ymm2[0,0,2,1] | 
| Chandler Carruth | 77e1a0a | 2014-11-21 12:33:46 +0000 | [diff] [blame] | 226 | ; ALL-NEXT:    vextractf64x4 $1, %zmm0, %ymm3 | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 227 | ; ALL-NEXT:    vpermpd {{.*#+}} ymm3 = ymm3[0,1,1,3] | 
|  | 228 | ; ALL-NEXT:    vblendpd {{.*#+}} ymm2 = ymm3[0],ymm2[1],ymm3[2],ymm2[3] | 
|  | 229 | ; ALL-NEXT:    vpermpd {{.*#+}} ymm1 = ymm1[0,0,2,1] | 
|  | 230 | ; ALL-NEXT:    vpermpd {{.*#+}} ymm0 = ymm0[0,1,1,3] | 
|  | 231 | ; ALL-NEXT:    vblendpd {{.*#+}} ymm0 = ymm0[0],ymm1[1],ymm0[2],ymm1[3] | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 232 | ; ALL-NEXT:    vinsertf64x4 $1, %ymm2, %zmm0, %zmm0 | 
|  | 233 | ; ALL-NEXT:    retq | 
|  | 234 | %shuffle = shufflevector <8 x double> %a, <8 x double> %b, <8 x i32> <i32 0, i32 8, i32 1, i32 9, i32 4, i32 12, i32 5, i32 13> | 
|  | 235 | ret <8 x double> %shuffle | 
|  | 236 | } | 
|  | 237 |  | 
|  | 238 | define <8 x double> @shuffle_v8f64_2a3b6e7f(<8 x double> %a, <8 x double> %b) { | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 239 | ; ALL-LABEL: shuffle_v8f64_2a3b6e7f: | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 240 | ; ALL:       # BB#0: | 
| Chandler Carruth | 77e1a0a | 2014-11-21 12:33:46 +0000 | [diff] [blame] | 241 | ; ALL-NEXT:    vextractf64x4 $1, %zmm1, %ymm2 | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 242 | ; ALL-NEXT:    vpermpd {{.*#+}} ymm2 = ymm2[0,2,2,3] | 
| Chandler Carruth | 77e1a0a | 2014-11-21 12:33:46 +0000 | [diff] [blame] | 243 | ; ALL-NEXT:    vextractf64x4 $1, %zmm0, %ymm3 | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 244 | ; ALL-NEXT:    vpermpd {{.*#+}} ymm3 = ymm3[2,1,3,3] | 
|  | 245 | ; ALL-NEXT:    vblendpd {{.*#+}} ymm2 = ymm3[0],ymm2[1],ymm3[2],ymm2[3] | 
|  | 246 | ; ALL-NEXT:    vpermpd {{.*#+}} ymm1 = ymm1[0,2,2,3] | 
|  | 247 | ; ALL-NEXT:    vpermpd {{.*#+}} ymm0 = ymm0[2,1,3,3] | 
|  | 248 | ; ALL-NEXT:    vblendpd {{.*#+}} ymm0 = ymm0[0],ymm1[1],ymm0[2],ymm1[3] | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 249 | ; ALL-NEXT:    vinsertf64x4 $1, %ymm2, %zmm0, %zmm0 | 
|  | 250 | ; ALL-NEXT:    retq | 
|  | 251 | %shuffle = shufflevector <8 x double> %a, <8 x double> %b, <8 x i32> <i32 2, i32 10, i32 3, i32 11, i32 6, i32 14, i32 7, i32 15> | 
|  | 252 | ret <8 x double> %shuffle | 
|  | 253 | } | 
|  | 254 |  | 
|  | 255 | define <8 x double> @shuffle_v8f64_08192a3b(<8 x double> %a, <8 x double> %b) { | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 256 | ; ALL-LABEL: shuffle_v8f64_08192a3b: | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 257 | ; ALL:       # BB#0: | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 258 | ; ALL-NEXT:    vpermpd {{.*#+}} ymm2 = ymm1[0,2,2,3] | 
|  | 259 | ; ALL-NEXT:    vpermpd {{.*#+}} ymm3 = ymm0[2,1,3,3] | 
|  | 260 | ; ALL-NEXT:    vblendpd {{.*#+}} ymm2 = ymm3[0],ymm2[1],ymm3[2],ymm2[3] | 
|  | 261 | ; ALL-NEXT:    vpermpd {{.*#+}} ymm1 = ymm1[0,0,2,1] | 
|  | 262 | ; ALL-NEXT:    vpermpd {{.*#+}} ymm0 = ymm0[0,1,1,3] | 
|  | 263 | ; ALL-NEXT:    vblendpd {{.*#+}} ymm0 = ymm0[0],ymm1[1],ymm0[2],ymm1[3] | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 264 | ; ALL-NEXT:    vinsertf64x4 $1, %ymm2, %zmm0, %zmm0 | 
|  | 265 | ; ALL-NEXT:    retq | 
|  | 266 | %shuffle = shufflevector <8 x double> %a, <8 x double> %b, <8 x i32> <i32 0, i32 8, i32 1, i32 9, i32 2, i32 10, i32 3, i32 11> | 
|  | 267 | ret <8 x double> %shuffle | 
|  | 268 | } | 
|  | 269 |  | 
|  | 270 | define <8 x double> @shuffle_v8f64_08991abb(<8 x double> %a, <8 x double> %b) { | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 271 | ; ALL-LABEL: shuffle_v8f64_08991abb: | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 272 | ; ALL:       # BB#0: | 
| Chandler Carruth | f3e8806 | 2014-10-03 22:43:17 +0000 | [diff] [blame] | 273 | ; ALL-NEXT:    vpermilpd {{.*#+}} ymm2 = ymm0[1,0,2,2] | 
|  | 274 | ; ALL-NEXT:    vpermpd {{.*#+}} ymm3 = ymm1[0,2,3,3] | 
|  | 275 | ; ALL-NEXT:    vblendpd {{.*#+}} ymm2 = ymm2[0],ymm3[1,2,3] | 
|  | 276 | ; ALL-NEXT:    vpermpd {{.*#+}} ymm1 = ymm1[0,0,1,1] | 
|  | 277 | ; ALL-NEXT:    vblendpd {{.*#+}} ymm0 = ymm0[0],ymm1[1,2,3] | 
|  | 278 | ; ALL-NEXT:    vinsertf64x4 $1, %ymm2, %zmm0, %zmm0 | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 279 | ; ALL-NEXT:    retq | 
|  | 280 | %shuffle = shufflevector <8 x double> %a, <8 x double> %b, <8 x i32> <i32 0, i32 8, i32 9, i32 9, i32 1, i32 10, i32 11, i32 11> | 
|  | 281 | ret <8 x double> %shuffle | 
|  | 282 | } | 
|  | 283 |  | 
|  | 284 | define <8 x double> @shuffle_v8f64_091b2d3f(<8 x double> %a, <8 x double> %b) { | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 285 | ; ALL-LABEL: shuffle_v8f64_091b2d3f: | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 286 | ; ALL:       # BB#0: | 
| Chandler Carruth | 77e1a0a | 2014-11-21 12:33:46 +0000 | [diff] [blame] | 287 | ; ALL-NEXT:    vextractf64x4 $1, %zmm1, %ymm2 | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 288 | ; ALL-NEXT:    vpermpd {{.*#+}} ymm3 = ymm0[2,1,3,3] | 
|  | 289 | ; ALL-NEXT:    vblendpd {{.*#+}} ymm2 = ymm3[0],ymm2[1],ymm3[2],ymm2[3] | 
|  | 290 | ; ALL-NEXT:    vpermpd {{.*#+}} ymm0 = ymm0[0,1,1,3] | 
|  | 291 | ; ALL-NEXT:    vblendpd {{.*#+}} ymm0 = ymm0[0],ymm1[1],ymm0[2],ymm1[3] | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 292 | ; ALL-NEXT:    vinsertf64x4 $1, %ymm2, %zmm0, %zmm0 | 
|  | 293 | ; ALL-NEXT:    retq | 
|  | 294 | %shuffle = shufflevector <8 x double> %a, <8 x double> %b, <8 x i32> <i32 0, i32 9, i32 1, i32 11, i32 2, i32 13, i32 3, i32 15> | 
|  | 295 | ret <8 x double> %shuffle | 
|  | 296 | } | 
|  | 297 |  | 
|  | 298 | define <8 x double> @shuffle_v8f64_09ab1def(<8 x double> %a, <8 x double> %b) { | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 299 | ; ALL-LABEL: shuffle_v8f64_09ab1def: | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 300 | ; ALL:       # BB#0: | 
| Chandler Carruth | 77e1a0a | 2014-11-21 12:33:46 +0000 | [diff] [blame] | 301 | ; ALL-NEXT:    vextractf64x4 $1, %zmm1, %ymm2 | 
| Chandler Carruth | f3e8806 | 2014-10-03 22:43:17 +0000 | [diff] [blame] | 302 | ; ALL-NEXT:    vpermilpd {{.*#+}} ymm3 = ymm0[1,0,2,2] | 
|  | 303 | ; ALL-NEXT:    vblendpd {{.*#+}} ymm2 = ymm3[0],ymm2[1,2,3] | 
|  | 304 | ; ALL-NEXT:    vblendpd {{.*#+}} ymm0 = ymm0[0],ymm1[1,2,3] | 
|  | 305 | ; ALL-NEXT:    vinsertf64x4 $1, %ymm2, %zmm0, %zmm0 | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 306 | ; ALL-NEXT:    retq | 
|  | 307 | %shuffle = shufflevector <8 x double> %a, <8 x double> %b, <8 x i32> <i32 0, i32 9, i32 10, i32 11, i32 1, i32 13, i32 14, i32 15> | 
|  | 308 | ret <8 x double> %shuffle | 
|  | 309 | } | 
|  | 310 |  | 
|  | 311 | define <8 x double> @shuffle_v8f64_00014445(<8 x double> %a, <8 x double> %b) { | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 312 | ; ALL-LABEL: shuffle_v8f64_00014445: | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 313 | ; ALL:       # BB#0: | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 314 | ; ALL-NEXT:    vpermpd {{.*#+}} ymm1 = ymm0[0,0,0,1] | 
| Chandler Carruth | 77e1a0a | 2014-11-21 12:33:46 +0000 | [diff] [blame] | 315 | ; ALL-NEXT:    vextractf64x4 $1, %zmm0, %ymm0 | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 316 | ; ALL-NEXT:    vpermpd {{.*#+}} ymm0 = ymm0[0,0,0,1] | 
| Chandler Carruth | c712927 | 2014-09-29 00:37:27 +0000 | [diff] [blame] | 317 | ; ALL-NEXT:    vinsertf64x4 $1, %ymm0, %zmm1, %zmm0 | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 318 | ; ALL-NEXT:    retq | 
|  | 319 | %shuffle = shufflevector <8 x double> %a, <8 x double> %b, <8 x i32> <i32 0, i32 0, i32 0, i32 1, i32 4, i32 4, i32 4, i32 5> | 
|  | 320 | ret <8 x double> %shuffle | 
|  | 321 | } | 
|  | 322 |  | 
|  | 323 | define <8 x double> @shuffle_v8f64_00204464(<8 x double> %a, <8 x double> %b) { | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 324 | ; ALL-LABEL: shuffle_v8f64_00204464: | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 325 | ; ALL:       # BB#0: | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 326 | ; ALL-NEXT:    vpermpd {{.*#+}} ymm1 = ymm0[0,0,2,0] | 
| Chandler Carruth | 77e1a0a | 2014-11-21 12:33:46 +0000 | [diff] [blame] | 327 | ; ALL-NEXT:    vextractf64x4 $1, %zmm0, %ymm0 | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 328 | ; ALL-NEXT:    vpermpd {{.*#+}} ymm0 = ymm0[0,0,2,0] | 
| Chandler Carruth | c712927 | 2014-09-29 00:37:27 +0000 | [diff] [blame] | 329 | ; ALL-NEXT:    vinsertf64x4 $1, %ymm0, %zmm1, %zmm0 | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 330 | ; ALL-NEXT:    retq | 
|  | 331 | %shuffle = shufflevector <8 x double> %a, <8 x double> %b, <8 x i32> <i32 0, i32 0, i32 2, i32 0, i32 4, i32 4, i32 6, i32 4> | 
|  | 332 | ret <8 x double> %shuffle | 
|  | 333 | } | 
|  | 334 |  | 
|  | 335 | define <8 x double> @shuffle_v8f64_03004744(<8 x double> %a, <8 x double> %b) { | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 336 | ; ALL-LABEL: shuffle_v8f64_03004744: | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 337 | ; ALL:       # BB#0: | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 338 | ; ALL-NEXT:    vpermpd {{.*#+}} ymm1 = ymm0[0,3,0,0] | 
| Chandler Carruth | 77e1a0a | 2014-11-21 12:33:46 +0000 | [diff] [blame] | 339 | ; ALL-NEXT:    vextractf64x4 $1, %zmm0, %ymm0 | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 340 | ; ALL-NEXT:    vpermpd {{.*#+}} ymm0 = ymm0[0,3,0,0] | 
| Chandler Carruth | c712927 | 2014-09-29 00:37:27 +0000 | [diff] [blame] | 341 | ; ALL-NEXT:    vinsertf64x4 $1, %ymm0, %zmm1, %zmm0 | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 342 | ; ALL-NEXT:    retq | 
|  | 343 | %shuffle = shufflevector <8 x double> %a, <8 x double> %b, <8 x i32> <i32 0, i32 3, i32 0, i32 0, i32 4, i32 7, i32 4, i32 4> | 
|  | 344 | ret <8 x double> %shuffle | 
|  | 345 | } | 
|  | 346 |  | 
|  | 347 | define <8 x double> @shuffle_v8f64_10005444(<8 x double> %a, <8 x double> %b) { | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 348 | ; ALL-LABEL: shuffle_v8f64_10005444: | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 349 | ; ALL:       # BB#0: | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 350 | ; ALL-NEXT:    vpermpd {{.*#+}} ymm1 = ymm0[1,0,0,0] | 
| Chandler Carruth | 77e1a0a | 2014-11-21 12:33:46 +0000 | [diff] [blame] | 351 | ; ALL-NEXT:    vextractf64x4 $1, %zmm0, %ymm0 | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 352 | ; ALL-NEXT:    vpermpd {{.*#+}} ymm0 = ymm0[1,0,0,0] | 
| Chandler Carruth | c712927 | 2014-09-29 00:37:27 +0000 | [diff] [blame] | 353 | ; ALL-NEXT:    vinsertf64x4 $1, %ymm0, %zmm1, %zmm0 | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 354 | ; ALL-NEXT:    retq | 
|  | 355 | %shuffle = shufflevector <8 x double> %a, <8 x double> %b, <8 x i32> <i32 1, i32 0, i32 0, i32 0, i32 5, i32 4, i32 4, i32 4> | 
|  | 356 | ret <8 x double> %shuffle | 
|  | 357 | } | 
|  | 358 |  | 
|  | 359 | define <8 x double> @shuffle_v8f64_22006644(<8 x double> %a, <8 x double> %b) { | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 360 | ; ALL-LABEL: shuffle_v8f64_22006644: | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 361 | ; ALL:       # BB#0: | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 362 | ; ALL-NEXT:    vpermpd {{.*#+}} ymm1 = ymm0[2,2,0,0] | 
| Chandler Carruth | 77e1a0a | 2014-11-21 12:33:46 +0000 | [diff] [blame] | 363 | ; ALL-NEXT:    vextractf64x4 $1, %zmm0, %ymm0 | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 364 | ; ALL-NEXT:    vpermpd {{.*#+}} ymm0 = ymm0[2,2,0,0] | 
| Chandler Carruth | c712927 | 2014-09-29 00:37:27 +0000 | [diff] [blame] | 365 | ; ALL-NEXT:    vinsertf64x4 $1, %ymm0, %zmm1, %zmm0 | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 366 | ; ALL-NEXT:    retq | 
|  | 367 | %shuffle = shufflevector <8 x double> %a, <8 x double> %b, <8 x i32> <i32 2, i32 2, i32 0, i32 0, i32 6, i32 6, i32 4, i32 4> | 
|  | 368 | ret <8 x double> %shuffle | 
|  | 369 | } | 
|  | 370 |  | 
|  | 371 | define <8 x double> @shuffle_v8f64_33307774(<8 x double> %a, <8 x double> %b) { | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 372 | ; ALL-LABEL: shuffle_v8f64_33307774: | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 373 | ; ALL:       # BB#0: | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 374 | ; ALL-NEXT:    vpermpd {{.*#+}} ymm1 = ymm0[3,3,3,0] | 
| Chandler Carruth | 77e1a0a | 2014-11-21 12:33:46 +0000 | [diff] [blame] | 375 | ; ALL-NEXT:    vextractf64x4 $1, %zmm0, %ymm0 | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 376 | ; ALL-NEXT:    vpermpd {{.*#+}} ymm0 = ymm0[3,3,3,0] | 
| Chandler Carruth | c712927 | 2014-09-29 00:37:27 +0000 | [diff] [blame] | 377 | ; ALL-NEXT:    vinsertf64x4 $1, %ymm0, %zmm1, %zmm0 | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 378 | ; ALL-NEXT:    retq | 
|  | 379 | %shuffle = shufflevector <8 x double> %a, <8 x double> %b, <8 x i32> <i32 3, i32 3, i32 3, i32 0, i32 7, i32 7, i32 7, i32 4> | 
|  | 380 | ret <8 x double> %shuffle | 
|  | 381 | } | 
|  | 382 |  | 
|  | 383 | define <8 x double> @shuffle_v8f64_32107654(<8 x double> %a, <8 x double> %b) { | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 384 | ; ALL-LABEL: shuffle_v8f64_32107654: | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 385 | ; ALL:       # BB#0: | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 386 | ; ALL-NEXT:    vpermpd {{.*#+}} ymm1 = ymm0[3,2,1,0] | 
| Chandler Carruth | 77e1a0a | 2014-11-21 12:33:46 +0000 | [diff] [blame] | 387 | ; ALL-NEXT:    vextractf64x4 $1, %zmm0, %ymm0 | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 388 | ; ALL-NEXT:    vpermpd {{.*#+}} ymm0 = ymm0[3,2,1,0] | 
| Chandler Carruth | c712927 | 2014-09-29 00:37:27 +0000 | [diff] [blame] | 389 | ; ALL-NEXT:    vinsertf64x4 $1, %ymm0, %zmm1, %zmm0 | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 390 | ; ALL-NEXT:    retq | 
|  | 391 | %shuffle = shufflevector <8 x double> %a, <8 x double> %b, <8 x i32> <i32 3, i32 2, i32 1, i32 0, i32 7, i32 6, i32 5, i32 4> | 
|  | 392 | ret <8 x double> %shuffle | 
|  | 393 | } | 
|  | 394 |  | 
|  | 395 | define <8 x double> @shuffle_v8f64_00234467(<8 x double> %a, <8 x double> %b) { | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 396 | ; ALL-LABEL: shuffle_v8f64_00234467: | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 397 | ; ALL:       # BB#0: | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 398 | ; ALL-NEXT:    vpermilpd {{.*#+}} ymm1 = ymm0[0,0,2,3] | 
| Chandler Carruth | 77e1a0a | 2014-11-21 12:33:46 +0000 | [diff] [blame] | 399 | ; ALL-NEXT:    vextractf64x4 $1, %zmm0, %ymm0 | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 400 | ; ALL-NEXT:    vpermilpd {{.*#+}} ymm0 = ymm0[0,0,2,3] | 
| Chandler Carruth | c712927 | 2014-09-29 00:37:27 +0000 | [diff] [blame] | 401 | ; ALL-NEXT:    vinsertf64x4 $1, %ymm0, %zmm1, %zmm0 | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 402 | ; ALL-NEXT:    retq | 
|  | 403 | %shuffle = shufflevector <8 x double> %a, <8 x double> %b, <8 x i32> <i32 0, i32 0, i32 2, i32 3, i32 4, i32 4, i32 6, i32 7> | 
|  | 404 | ret <8 x double> %shuffle | 
|  | 405 | } | 
|  | 406 |  | 
|  | 407 | define <8 x double> @shuffle_v8f64_00224466(<8 x double> %a, <8 x double> %b) { | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 408 | ; ALL-LABEL: shuffle_v8f64_00224466: | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 409 | ; ALL:       # BB#0: | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 410 | ; ALL-NEXT:    vpermilpd {{.*#+}} ymm1 = ymm0[0,0,2,2] | 
| Chandler Carruth | 77e1a0a | 2014-11-21 12:33:46 +0000 | [diff] [blame] | 411 | ; ALL-NEXT:    vextractf64x4 $1, %zmm0, %ymm0 | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 412 | ; ALL-NEXT:    vpermilpd {{.*#+}} ymm0 = ymm0[0,0,2,2] | 
| Chandler Carruth | c712927 | 2014-09-29 00:37:27 +0000 | [diff] [blame] | 413 | ; ALL-NEXT:    vinsertf64x4 $1, %ymm0, %zmm1, %zmm0 | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 414 | ; ALL-NEXT:    retq | 
|  | 415 | %shuffle = shufflevector <8 x double> %a, <8 x double> %b, <8 x i32> <i32 0, i32 0, i32 2, i32 2, i32 4, i32 4, i32 6, i32 6> | 
|  | 416 | ret <8 x double> %shuffle | 
|  | 417 | } | 
|  | 418 |  | 
|  | 419 | define <8 x double> @shuffle_v8f64_10325476(<8 x double> %a, <8 x double> %b) { | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 420 | ; ALL-LABEL: shuffle_v8f64_10325476: | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 421 | ; ALL:       # BB#0: | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 422 | ; ALL-NEXT:    vpermilpd {{.*#+}} ymm1 = ymm0[1,0,3,2] | 
| Chandler Carruth | 77e1a0a | 2014-11-21 12:33:46 +0000 | [diff] [blame] | 423 | ; ALL-NEXT:    vextractf64x4 $1, %zmm0, %ymm0 | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 424 | ; ALL-NEXT:    vpermilpd {{.*#+}} ymm0 = ymm0[1,0,3,2] | 
| Chandler Carruth | c712927 | 2014-09-29 00:37:27 +0000 | [diff] [blame] | 425 | ; ALL-NEXT:    vinsertf64x4 $1, %ymm0, %zmm1, %zmm0 | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 426 | ; ALL-NEXT:    retq | 
|  | 427 | %shuffle = shufflevector <8 x double> %a, <8 x double> %b, <8 x i32> <i32 1, i32 0, i32 3, i32 2, i32 5, i32 4, i32 7, i32 6> | 
|  | 428 | ret <8 x double> %shuffle | 
|  | 429 | } | 
|  | 430 |  | 
|  | 431 | define <8 x double> @shuffle_v8f64_11335577(<8 x double> %a, <8 x double> %b) { | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 432 | ; ALL-LABEL: shuffle_v8f64_11335577: | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 433 | ; ALL:       # BB#0: | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 434 | ; ALL-NEXT:    vpermilpd {{.*#+}} ymm1 = ymm0[1,1,3,3] | 
| Chandler Carruth | 77e1a0a | 2014-11-21 12:33:46 +0000 | [diff] [blame] | 435 | ; ALL-NEXT:    vextractf64x4 $1, %zmm0, %ymm0 | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 436 | ; ALL-NEXT:    vpermilpd {{.*#+}} ymm0 = ymm0[1,1,3,3] | 
| Chandler Carruth | c712927 | 2014-09-29 00:37:27 +0000 | [diff] [blame] | 437 | ; ALL-NEXT:    vinsertf64x4 $1, %ymm0, %zmm1, %zmm0 | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 438 | ; ALL-NEXT:    retq | 
|  | 439 | %shuffle = shufflevector <8 x double> %a, <8 x double> %b, <8 x i32> <i32 1, i32 1, i32 3, i32 3, i32 5, i32 5, i32 7, i32 7> | 
|  | 440 | ret <8 x double> %shuffle | 
|  | 441 | } | 
|  | 442 |  | 
|  | 443 | define <8 x double> @shuffle_v8f64_10235467(<8 x double> %a, <8 x double> %b) { | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 444 | ; ALL-LABEL: shuffle_v8f64_10235467: | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 445 | ; ALL:       # BB#0: | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 446 | ; ALL-NEXT:    vpermilpd {{.*#+}} ymm1 = ymm0[1,0,2,3] | 
| Chandler Carruth | 77e1a0a | 2014-11-21 12:33:46 +0000 | [diff] [blame] | 447 | ; ALL-NEXT:    vextractf64x4 $1, %zmm0, %ymm0 | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 448 | ; ALL-NEXT:    vpermilpd {{.*#+}} ymm0 = ymm0[1,0,2,3] | 
| Chandler Carruth | c712927 | 2014-09-29 00:37:27 +0000 | [diff] [blame] | 449 | ; ALL-NEXT:    vinsertf64x4 $1, %ymm0, %zmm1, %zmm0 | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 450 | ; ALL-NEXT:    retq | 
|  | 451 | %shuffle = shufflevector <8 x double> %a, <8 x double> %b, <8 x i32> <i32 1, i32 0, i32 2, i32 3, i32 5, i32 4, i32 6, i32 7> | 
|  | 452 | ret <8 x double> %shuffle | 
|  | 453 | } | 
|  | 454 |  | 
|  | 455 | define <8 x double> @shuffle_v8f64_10225466(<8 x double> %a, <8 x double> %b) { | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 456 | ; ALL-LABEL: shuffle_v8f64_10225466: | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 457 | ; ALL:       # BB#0: | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 458 | ; ALL-NEXT:    vpermilpd {{.*#+}} ymm1 = ymm0[1,0,2,2] | 
| Chandler Carruth | 77e1a0a | 2014-11-21 12:33:46 +0000 | [diff] [blame] | 459 | ; ALL-NEXT:    vextractf64x4 $1, %zmm0, %ymm0 | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 460 | ; ALL-NEXT:    vpermilpd {{.*#+}} ymm0 = ymm0[1,0,2,2] | 
| Chandler Carruth | c712927 | 2014-09-29 00:37:27 +0000 | [diff] [blame] | 461 | ; ALL-NEXT:    vinsertf64x4 $1, %ymm0, %zmm1, %zmm0 | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 462 | ; ALL-NEXT:    retq | 
|  | 463 | %shuffle = shufflevector <8 x double> %a, <8 x double> %b, <8 x i32> <i32 1, i32 0, i32 2, i32 2, i32 5, i32 4, i32 6, i32 6> | 
|  | 464 | ret <8 x double> %shuffle | 
|  | 465 | } | 
|  | 466 |  | 
|  | 467 | define <8 x double> @shuffle_v8f64_00015444(<8 x double> %a, <8 x double> %b) { | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 468 | ; ALL-LABEL: shuffle_v8f64_00015444: | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 469 | ; ALL:       # BB#0: | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 470 | ; ALL-NEXT:    vpermpd {{.*#+}} ymm1 = ymm0[0,0,0,1] | 
| Chandler Carruth | 77e1a0a | 2014-11-21 12:33:46 +0000 | [diff] [blame] | 471 | ; ALL-NEXT:    vextractf64x4 $1, %zmm0, %ymm0 | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 472 | ; ALL-NEXT:    vpermpd {{.*#+}} ymm0 = ymm0[1,0,0,0] | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 473 | ; ALL-NEXT:    vinsertf64x4 $1, %ymm0, %zmm1, %zmm0 | 
|  | 474 | ; ALL-NEXT:    retq | 
|  | 475 | %shuffle = shufflevector <8 x double> %a, <8 x double> %b, <8 x i32> <i32 0, i32 0, i32 0, i32 1, i32 5, i32 4, i32 4, i32 4> | 
|  | 476 | ret <8 x double> %shuffle | 
|  | 477 | } | 
|  | 478 |  | 
|  | 479 | define <8 x double> @shuffle_v8f64_00204644(<8 x double> %a, <8 x double> %b) { | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 480 | ; ALL-LABEL: shuffle_v8f64_00204644: | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 481 | ; ALL:       # BB#0: | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 482 | ; ALL-NEXT:    vpermpd {{.*#+}} ymm1 = ymm0[0,0,2,0] | 
| Chandler Carruth | 77e1a0a | 2014-11-21 12:33:46 +0000 | [diff] [blame] | 483 | ; ALL-NEXT:    vextractf64x4 $1, %zmm0, %ymm0 | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 484 | ; ALL-NEXT:    vpermpd {{.*#+}} ymm0 = ymm0[0,2,0,0] | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 485 | ; ALL-NEXT:    vinsertf64x4 $1, %ymm0, %zmm1, %zmm0 | 
|  | 486 | ; ALL-NEXT:    retq | 
|  | 487 | %shuffle = shufflevector <8 x double> %a, <8 x double> %b, <8 x i32> <i32 0, i32 0, i32 2, i32 0, i32 4, i32 6, i32 4, i32 4> | 
|  | 488 | ret <8 x double> %shuffle | 
|  | 489 | } | 
|  | 490 |  | 
|  | 491 | define <8 x double> @shuffle_v8f64_03004474(<8 x double> %a, <8 x double> %b) { | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 492 | ; ALL-LABEL: shuffle_v8f64_03004474: | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 493 | ; ALL:       # BB#0: | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 494 | ; ALL-NEXT:    vpermpd {{.*#+}} ymm1 = ymm0[0,3,0,0] | 
| Chandler Carruth | 77e1a0a | 2014-11-21 12:33:46 +0000 | [diff] [blame] | 495 | ; ALL-NEXT:    vextractf64x4 $1, %zmm0, %ymm0 | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 496 | ; ALL-NEXT:    vpermpd {{.*#+}} ymm0 = ymm0[0,0,3,0] | 
| Chandler Carruth | c712927 | 2014-09-29 00:37:27 +0000 | [diff] [blame] | 497 | ; ALL-NEXT:    vinsertf64x4 $1, %ymm0, %zmm1, %zmm0 | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 498 | ; ALL-NEXT:    retq | 
|  | 499 | %shuffle = shufflevector <8 x double> %a, <8 x double> %b, <8 x i32> <i32 0, i32 3, i32 0, i32 0, i32 4, i32 4, i32 7, i32 4> | 
|  | 500 | ret <8 x double> %shuffle | 
|  | 501 | } | 
|  | 502 |  | 
|  | 503 | define <8 x double> @shuffle_v8f64_10004444(<8 x double> %a, <8 x double> %b) { | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 504 | ; ALL-LABEL: shuffle_v8f64_10004444: | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 505 | ; ALL:       # BB#0: | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 506 | ; ALL-NEXT:    vpermpd {{.*#+}} ymm1 = ymm0[1,0,0,0] | 
| Chandler Carruth | 77e1a0a | 2014-11-21 12:33:46 +0000 | [diff] [blame] | 507 | ; ALL-NEXT:    vextractf64x4 $1, %zmm0, %ymm0 | 
| Chandler Carruth | b9d3fa1 | 2014-10-01 00:41:21 +0000 | [diff] [blame] | 508 | ; ALL-NEXT:    vbroadcastsd %xmm0, %ymm0 | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 509 | ; ALL-NEXT:    vinsertf64x4 $1, %ymm0, %zmm1, %zmm0 | 
|  | 510 | ; ALL-NEXT:    retq | 
|  | 511 | %shuffle = shufflevector <8 x double> %a, <8 x double> %b, <8 x i32> <i32 1, i32 0, i32 0, i32 0, i32 4, i32 4, i32 4, i32 4> | 
|  | 512 | ret <8 x double> %shuffle | 
|  | 513 | } | 
|  | 514 |  | 
|  | 515 | define <8 x double> @shuffle_v8f64_22006446(<8 x double> %a, <8 x double> %b) { | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 516 | ; ALL-LABEL: shuffle_v8f64_22006446: | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 517 | ; ALL:       # BB#0: | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 518 | ; ALL-NEXT:    vpermpd {{.*#+}} ymm1 = ymm0[2,2,0,0] | 
| Chandler Carruth | 77e1a0a | 2014-11-21 12:33:46 +0000 | [diff] [blame] | 519 | ; ALL-NEXT:    vextractf64x4 $1, %zmm0, %ymm0 | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 520 | ; ALL-NEXT:    vpermpd {{.*#+}} ymm0 = ymm0[2,0,0,2] | 
| Chandler Carruth | c712927 | 2014-09-29 00:37:27 +0000 | [diff] [blame] | 521 | ; ALL-NEXT:    vinsertf64x4 $1, %ymm0, %zmm1, %zmm0 | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 522 | ; ALL-NEXT:    retq | 
|  | 523 | %shuffle = shufflevector <8 x double> %a, <8 x double> %b, <8 x i32> <i32 2, i32 2, i32 0, i32 0, i32 6, i32 4, i32 4, i32 6> | 
|  | 524 | ret <8 x double> %shuffle | 
|  | 525 | } | 
|  | 526 |  | 
|  | 527 | define <8 x double> @shuffle_v8f64_33307474(<8 x double> %a, <8 x double> %b) { | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 528 | ; ALL-LABEL: shuffle_v8f64_33307474: | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 529 | ; ALL:       # BB#0: | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 530 | ; ALL-NEXT:    vpermpd {{.*#+}} ymm1 = ymm0[3,3,3,0] | 
| Chandler Carruth | 77e1a0a | 2014-11-21 12:33:46 +0000 | [diff] [blame] | 531 | ; ALL-NEXT:    vextractf64x4 $1, %zmm0, %ymm0 | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 532 | ; ALL-NEXT:    vpermpd {{.*#+}} ymm0 = ymm0[3,0,3,0] | 
| Chandler Carruth | c712927 | 2014-09-29 00:37:27 +0000 | [diff] [blame] | 533 | ; ALL-NEXT:    vinsertf64x4 $1, %ymm0, %zmm1, %zmm0 | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 534 | ; ALL-NEXT:    retq | 
|  | 535 | %shuffle = shufflevector <8 x double> %a, <8 x double> %b, <8 x i32> <i32 3, i32 3, i32 3, i32 0, i32 7, i32 4, i32 7, i32 4> | 
|  | 536 | ret <8 x double> %shuffle | 
|  | 537 | } | 
|  | 538 |  | 
|  | 539 | define <8 x double> @shuffle_v8f64_32104567(<8 x double> %a, <8 x double> %b) { | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 540 | ; ALL-LABEL: shuffle_v8f64_32104567: | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 541 | ; ALL:       # BB#0: | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 542 | ; ALL-NEXT:    vpermpd {{.*#+}} ymm1 = ymm0[3,2,1,0] | 
| Chandler Carruth | 77e1a0a | 2014-11-21 12:33:46 +0000 | [diff] [blame] | 543 | ; ALL-NEXT:    vextractf64x4 $1, %zmm0, %ymm0 | 
| Chandler Carruth | c712927 | 2014-09-29 00:37:27 +0000 | [diff] [blame] | 544 | ; ALL-NEXT:    vinsertf64x4 $1, %ymm0, %zmm1, %zmm0 | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 545 | ; ALL-NEXT:    retq | 
|  | 546 | %shuffle = shufflevector <8 x double> %a, <8 x double> %b, <8 x i32> <i32 3, i32 2, i32 1, i32 0, i32 4, i32 5, i32 6, i32 7> | 
|  | 547 | ret <8 x double> %shuffle | 
|  | 548 | } | 
|  | 549 |  | 
|  | 550 | define <8 x double> @shuffle_v8f64_00236744(<8 x double> %a, <8 x double> %b) { | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 551 | ; ALL-LABEL: shuffle_v8f64_00236744: | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 552 | ; ALL:       # BB#0: | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 553 | ; ALL-NEXT:    vpermilpd {{.*#+}} ymm1 = ymm0[0,0,2,3] | 
| Chandler Carruth | 77e1a0a | 2014-11-21 12:33:46 +0000 | [diff] [blame] | 554 | ; ALL-NEXT:    vextractf64x4 $1, %zmm0, %ymm0 | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 555 | ; ALL-NEXT:    vpermpd {{.*#+}} ymm0 = ymm0[2,3,0,0] | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 556 | ; ALL-NEXT:    vinsertf64x4 $1, %ymm0, %zmm1, %zmm0 | 
|  | 557 | ; ALL-NEXT:    retq | 
|  | 558 | %shuffle = shufflevector <8 x double> %a, <8 x double> %b, <8 x i32> <i32 0, i32 0, i32 2, i32 3, i32 6, i32 7, i32 4, i32 4> | 
|  | 559 | ret <8 x double> %shuffle | 
|  | 560 | } | 
|  | 561 |  | 
|  | 562 | define <8 x double> @shuffle_v8f64_00226644(<8 x double> %a, <8 x double> %b) { | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 563 | ; ALL-LABEL: shuffle_v8f64_00226644: | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 564 | ; ALL:       # BB#0: | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 565 | ; ALL-NEXT:    vpermilpd {{.*#+}} ymm1 = ymm0[0,0,2,2] | 
| Chandler Carruth | 77e1a0a | 2014-11-21 12:33:46 +0000 | [diff] [blame] | 566 | ; ALL-NEXT:    vextractf64x4 $1, %zmm0, %ymm0 | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 567 | ; ALL-NEXT:    vpermpd {{.*#+}} ymm0 = ymm0[2,2,0,0] | 
| Chandler Carruth | c712927 | 2014-09-29 00:37:27 +0000 | [diff] [blame] | 568 | ; ALL-NEXT:    vinsertf64x4 $1, %ymm0, %zmm1, %zmm0 | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 569 | ; ALL-NEXT:    retq | 
|  | 570 | %shuffle = shufflevector <8 x double> %a, <8 x double> %b, <8 x i32> <i32 0, i32 0, i32 2, i32 2, i32 6, i32 6, i32 4, i32 4> | 
|  | 571 | ret <8 x double> %shuffle | 
|  | 572 | } | 
|  | 573 |  | 
|  | 574 | define <8 x double> @shuffle_v8f64_10324567(<8 x double> %a, <8 x double> %b) { | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 575 | ; ALL-LABEL: shuffle_v8f64_10324567: | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 576 | ; ALL:       # BB#0: | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 577 | ; ALL-NEXT:    vpermilpd {{.*#+}} ymm1 = ymm0[1,0,3,2] | 
| Chandler Carruth | 77e1a0a | 2014-11-21 12:33:46 +0000 | [diff] [blame] | 578 | ; ALL-NEXT:    vextractf64x4 $1, %zmm0, %ymm0 | 
| Chandler Carruth | c712927 | 2014-09-29 00:37:27 +0000 | [diff] [blame] | 579 | ; ALL-NEXT:    vinsertf64x4 $1, %ymm0, %zmm1, %zmm0 | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 580 | ; ALL-NEXT:    retq | 
|  | 581 | %shuffle = shufflevector <8 x double> %a, <8 x double> %b, <8 x i32> <i32 1, i32 0, i32 3, i32 2, i32 4, i32 5, i32 6, i32 7> | 
|  | 582 | ret <8 x double> %shuffle | 
|  | 583 | } | 
|  | 584 |  | 
|  | 585 | define <8 x double> @shuffle_v8f64_11334567(<8 x double> %a, <8 x double> %b) { | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 586 | ; ALL-LABEL: shuffle_v8f64_11334567: | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 587 | ; ALL:       # BB#0: | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 588 | ; ALL-NEXT:    vpermilpd {{.*#+}} ymm1 = ymm0[1,1,3,3] | 
| Chandler Carruth | 77e1a0a | 2014-11-21 12:33:46 +0000 | [diff] [blame] | 589 | ; ALL-NEXT:    vextractf64x4 $1, %zmm0, %ymm0 | 
| Chandler Carruth | c712927 | 2014-09-29 00:37:27 +0000 | [diff] [blame] | 590 | ; ALL-NEXT:    vinsertf64x4 $1, %ymm0, %zmm1, %zmm0 | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 591 | ; ALL-NEXT:    retq | 
|  | 592 | %shuffle = shufflevector <8 x double> %a, <8 x double> %b, <8 x i32> <i32 1, i32 1, i32 3, i32 3, i32 4, i32 5, i32 6, i32 7> | 
|  | 593 | ret <8 x double> %shuffle | 
|  | 594 | } | 
|  | 595 |  | 
|  | 596 | define <8 x double> @shuffle_v8f64_01235467(<8 x double> %a, <8 x double> %b) { | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 597 | ; ALL-LABEL: shuffle_v8f64_01235467: | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 598 | ; ALL:       # BB#0: | 
| Chandler Carruth | 77e1a0a | 2014-11-21 12:33:46 +0000 | [diff] [blame] | 599 | ; ALL-NEXT:    vextractf64x4 $1, %zmm0, %ymm1 | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 600 | ; ALL-NEXT:    vpermilpd {{.*#+}} ymm1 = ymm1[1,0,2,3] | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 601 | ; ALL-NEXT:    vinsertf64x4 $1, %ymm1, %zmm0, %zmm0 | 
|  | 602 | ; ALL-NEXT:    retq | 
|  | 603 | %shuffle = shufflevector <8 x double> %a, <8 x double> %b, <8 x i32> <i32 0, i32 1, i32 2, i32 3, i32 5, i32 4, i32 6, i32 7> | 
|  | 604 | ret <8 x double> %shuffle | 
|  | 605 | } | 
|  | 606 |  | 
|  | 607 | define <8 x double> @shuffle_v8f64_01235466(<8 x double> %a, <8 x double> %b) { | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 608 | ; ALL-LABEL: shuffle_v8f64_01235466: | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 609 | ; ALL:       # BB#0: | 
| Chandler Carruth | 77e1a0a | 2014-11-21 12:33:46 +0000 | [diff] [blame] | 610 | ; ALL-NEXT:    vextractf64x4 $1, %zmm0, %ymm1 | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 611 | ; ALL-NEXT:    vpermilpd {{.*#+}} ymm1 = ymm1[1,0,2,2] | 
| Chandler Carruth | c712927 | 2014-09-29 00:37:27 +0000 | [diff] [blame] | 612 | ; ALL-NEXT:    vinsertf64x4 $1, %ymm1, %zmm0, %zmm0 | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 613 | ; ALL-NEXT:    retq | 
|  | 614 | %shuffle = shufflevector <8 x double> %a, <8 x double> %b, <8 x i32> <i32 0, i32 1, i32 2, i32 3, i32 5, i32 4, i32 6, i32 6> | 
|  | 615 | ret <8 x double> %shuffle | 
|  | 616 | } | 
|  | 617 |  | 
|  | 618 | define <8 x double> @shuffle_v8f64_002u6u44(<8 x double> %a, <8 x double> %b) { | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 619 | ; ALL-LABEL: shuffle_v8f64_002u6u44: | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 620 | ; ALL:       # BB#0: | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 621 | ; ALL-NEXT:    vpermilpd {{.*#+}} ymm1 = ymm0[0,0,2,2] | 
| Chandler Carruth | 77e1a0a | 2014-11-21 12:33:46 +0000 | [diff] [blame] | 622 | ; ALL-NEXT:    vextractf64x4 $1, %zmm0, %ymm0 | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 623 | ; ALL-NEXT:    vpermpd {{.*#+}} ymm0 = ymm0[2,1,0,0] | 
| Chandler Carruth | c712927 | 2014-09-29 00:37:27 +0000 | [diff] [blame] | 624 | ; ALL-NEXT:    vinsertf64x4 $1, %ymm0, %zmm1, %zmm0 | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 625 | ; ALL-NEXT:    retq | 
|  | 626 | %shuffle = shufflevector <8 x double> %a, <8 x double> %b, <8 x i32> <i32 0, i32 0, i32 2, i32 undef, i32 6, i32 undef, i32 4, i32 4> | 
|  | 627 | ret <8 x double> %shuffle | 
|  | 628 | } | 
|  | 629 |  | 
|  | 630 | define <8 x double> @shuffle_v8f64_00uu66uu(<8 x double> %a, <8 x double> %b) { | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 631 | ; ALL-LABEL: shuffle_v8f64_00uu66uu: | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 632 | ; ALL:       # BB#0: | 
| Chandler Carruth | b9d3fa1 | 2014-10-01 00:41:21 +0000 | [diff] [blame] | 633 | ; ALL-NEXT:    vbroadcastsd %xmm0, %ymm1 | 
| Chandler Carruth | 77e1a0a | 2014-11-21 12:33:46 +0000 | [diff] [blame] | 634 | ; ALL-NEXT:    vextractf64x4 $1, %zmm0, %ymm0 | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 635 | ; ALL-NEXT:    vpermpd {{.*#+}} ymm0 = ymm0[2,2,2,3] | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 636 | ; ALL-NEXT:    vinsertf64x4 $1, %ymm0, %zmm1, %zmm0 | 
|  | 637 | ; ALL-NEXT:    retq | 
|  | 638 | %shuffle = shufflevector <8 x double> %a, <8 x double> %b, <8 x i32> <i32 0, i32 0, i32 undef, i32 undef, i32 6, i32 6, i32 undef, i32 undef> | 
|  | 639 | ret <8 x double> %shuffle | 
|  | 640 | } | 
|  | 641 |  | 
|  | 642 | define <8 x double> @shuffle_v8f64_103245uu(<8 x double> %a, <8 x double> %b) { | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 643 | ; ALL-LABEL: shuffle_v8f64_103245uu: | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 644 | ; ALL:       # BB#0: | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 645 | ; ALL-NEXT:    vpermilpd {{.*#+}} ymm1 = ymm0[1,0,3,2] | 
| Chandler Carruth | 77e1a0a | 2014-11-21 12:33:46 +0000 | [diff] [blame] | 646 | ; ALL-NEXT:    vextractf64x4 $1, %zmm0, %ymm0 | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 647 | ; ALL-NEXT:    vinsertf64x4 $1, %ymm0, %zmm1, %zmm0 | 
|  | 648 | ; ALL-NEXT:    retq | 
|  | 649 | %shuffle = shufflevector <8 x double> %a, <8 x double> %b, <8 x i32> <i32 1, i32 0, i32 3, i32 2, i32 4, i32 5, i32 undef, i32 undef> | 
|  | 650 | ret <8 x double> %shuffle | 
|  | 651 | } | 
|  | 652 |  | 
|  | 653 | define <8 x double> @shuffle_v8f64_1133uu67(<8 x double> %a, <8 x double> %b) { | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 654 | ; ALL-LABEL: shuffle_v8f64_1133uu67: | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 655 | ; ALL:       # BB#0: | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 656 | ; ALL-NEXT:    vpermilpd {{.*#+}} ymm1 = ymm0[1,1,3,3] | 
| Chandler Carruth | 77e1a0a | 2014-11-21 12:33:46 +0000 | [diff] [blame] | 657 | ; ALL-NEXT:    vextractf64x4 $1, %zmm0, %ymm0 | 
| Chandler Carruth | c712927 | 2014-09-29 00:37:27 +0000 | [diff] [blame] | 658 | ; ALL-NEXT:    vinsertf64x4 $1, %ymm0, %zmm1, %zmm0 | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 659 | ; ALL-NEXT:    retq | 
|  | 660 | %shuffle = shufflevector <8 x double> %a, <8 x double> %b, <8 x i32> <i32 1, i32 1, i32 3, i32 3, i32 undef, i32 undef, i32 6, i32 7> | 
|  | 661 | ret <8 x double> %shuffle | 
|  | 662 | } | 
|  | 663 |  | 
|  | 664 | define <8 x double> @shuffle_v8f64_0uu354uu(<8 x double> %a, <8 x double> %b) { | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 665 | ; ALL-LABEL: shuffle_v8f64_0uu354uu: | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 666 | ; ALL:       # BB#0: | 
| Chandler Carruth | 77e1a0a | 2014-11-21 12:33:46 +0000 | [diff] [blame] | 667 | ; ALL-NEXT:    vextractf64x4 $1, %zmm0, %ymm1 | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 668 | ; ALL-NEXT:    vpermilpd {{.*#+}} ymm1 = ymm1[1,0,2,2] | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 669 | ; ALL-NEXT:    vinsertf64x4 $1, %ymm1, %zmm0, %zmm0 | 
|  | 670 | ; ALL-NEXT:    retq | 
|  | 671 | %shuffle = shufflevector <8 x double> %a, <8 x double> %b, <8 x i32> <i32 0, i32 undef, i32 undef, i32 3, i32 5, i32 4, i32 undef, i32 undef> | 
|  | 672 | ret <8 x double> %shuffle | 
|  | 673 | } | 
|  | 674 |  | 
|  | 675 | define <8 x double> @shuffle_v8f64_uuu3uu66(<8 x double> %a, <8 x double> %b) { | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 676 | ; ALL-LABEL: shuffle_v8f64_uuu3uu66: | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 677 | ; ALL:       # BB#0: | 
| Chandler Carruth | 77e1a0a | 2014-11-21 12:33:46 +0000 | [diff] [blame] | 678 | ; ALL-NEXT:    vextractf64x4 $1, %zmm0, %ymm1 | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 679 | ; ALL-NEXT:    vpermilpd {{.*#+}} ymm1 = ymm1[0,0,2,2] | 
| Chandler Carruth | c712927 | 2014-09-29 00:37:27 +0000 | [diff] [blame] | 680 | ; ALL-NEXT:    vinsertf64x4 $1, %ymm1, %zmm0, %zmm0 | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 681 | ; ALL-NEXT:    retq | 
|  | 682 | %shuffle = shufflevector <8 x double> %a, <8 x double> %b, <8 x i32> <i32 undef, i32 undef, i32 undef, i32 3, i32 undef, i32 undef, i32 6, i32 6> | 
|  | 683 | ret <8 x double> %shuffle | 
|  | 684 | } | 
|  | 685 |  | 
|  | 686 | define <8 x double> @shuffle_v8f64_c348cda0(<8 x double> %a, <8 x double> %b) { | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 687 | ; ALL-LABEL: shuffle_v8f64_c348cda0: | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 688 | ; ALL:       # BB#0: | 
| Chandler Carruth | 77e1a0a | 2014-11-21 12:33:46 +0000 | [diff] [blame] | 689 | ; ALL-NEXT:    vextractf64x4 $1, %zmm0, %ymm2 | 
| Chandler Carruth | 9f4d9fa | 2014-10-05 11:41:36 +0000 | [diff] [blame] | 690 | ; ALL-NEXT:    vperm2f128 {{.*#+}} ymm2 = ymm0[0,1],ymm2[0,1] | 
| Chandler Carruth | 77e1a0a | 2014-11-21 12:33:46 +0000 | [diff] [blame] | 691 | ; ALL-NEXT:    vextractf64x4 $1, %zmm1, %ymm3 | 
| Chandler Carruth | b9d3fa1 | 2014-10-01 00:41:21 +0000 | [diff] [blame] | 692 | ; ALL-NEXT:    vbroadcastsd %xmm1, %ymm4 | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 693 | ; ALL-NEXT:    vblendpd {{.*#+}} ymm4 = ymm3[0,1,2],ymm4[3] | 
|  | 694 | ; ALL-NEXT:    vblendpd {{.*#+}} ymm2 = ymm4[0],ymm2[1,2],ymm4[3] | 
|  | 695 | ; ALL-NEXT:    vblendpd {{.*#+}} ymm1 = ymm3[0,1],ymm1[2],ymm3[3] | 
| Chandler Carruth | b9d3fa1 | 2014-10-01 00:41:21 +0000 | [diff] [blame] | 696 | ; ALL-NEXT:    vbroadcastsd %xmm0, %ymm0 | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 697 | ; ALL-NEXT:    vblendpd {{.*#+}} ymm0 = ymm1[0,1,2],ymm0[3] | 
| Chandler Carruth | c712927 | 2014-09-29 00:37:27 +0000 | [diff] [blame] | 698 | ; ALL-NEXT:    vinsertf64x4 $1, %ymm0, %zmm2, %zmm0 | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 699 | ; ALL-NEXT:    retq | 
|  | 700 | %shuffle = shufflevector <8 x double> %a, <8 x double> %b, <8 x i32> <i32 12, i32 3, i32 4, i32 8, i32 12, i32 13, i32 10, i32 0> | 
|  | 701 | ret <8 x double> %shuffle | 
|  | 702 | } | 
|  | 703 |  | 
|  | 704 | define <8 x double> @shuffle_v8f64_f511235a(<8 x double> %a, <8 x double> %b) { | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 705 | ; ALL-LABEL: shuffle_v8f64_f511235a: | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 706 | ; ALL:       # BB#0: | 
| Chandler Carruth | 9f4d9fa | 2014-10-05 11:41:36 +0000 | [diff] [blame] | 707 | ; ALL-NEXT:    vperm2f128 {{.*#+}} ymm2 = ymm0[2,3,0,1] | 
| Chandler Carruth | 77e1a0a | 2014-11-21 12:33:46 +0000 | [diff] [blame] | 708 | ; ALL-NEXT:    vextractf64x4 $1, %zmm0, %ymm3 | 
| Chandler Carruth | 9f4d9fa | 2014-10-05 11:41:36 +0000 | [diff] [blame] | 709 | ; ALL-NEXT:    vpermpd {{.*#+}} ymm4 = ymm3[0,1,1,3] | 
|  | 710 | ; ALL-NEXT:    vblendpd {{.*#+}} ymm2 = ymm2[0,1],ymm4[2],ymm2[3] | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 711 | ; ALL-NEXT:    vpermilpd {{.*#+}} ymm4 = ymm1[0,0,2,2] | 
| Chandler Carruth | 9f4d9fa | 2014-10-05 11:41:36 +0000 | [diff] [blame] | 712 | ; ALL-NEXT:    vblendpd {{.*#+}} ymm2 = ymm2[0,1,2],ymm4[3] | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 713 | ; ALL-NEXT:    vpermpd {{.*#+}} ymm0 = ymm0[0,1,1,1] | 
| Chandler Carruth | 9f4d9fa | 2014-10-05 11:41:36 +0000 | [diff] [blame] | 714 | ; ALL-NEXT:    vblendpd {{.*#+}} ymm0 = ymm0[0],ymm3[1],ymm0[2,3] | 
| Chandler Carruth | 77e1a0a | 2014-11-21 12:33:46 +0000 | [diff] [blame] | 715 | ; ALL-NEXT:    vextractf64x4 $1, %zmm1, %ymm1 | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 716 | ; ALL-NEXT:    vpermpd {{.*#+}} ymm1 = ymm1[3,1,2,3] | 
| Chandler Carruth | f3e8806 | 2014-10-03 22:43:17 +0000 | [diff] [blame] | 717 | ; ALL-NEXT:    vblendpd {{.*#+}} ymm0 = ymm1[0],ymm0[1,2,3] | 
| Chandler Carruth | 9f4d9fa | 2014-10-05 11:41:36 +0000 | [diff] [blame] | 718 | ; ALL-NEXT:    vinsertf64x4 $1, %ymm2, %zmm0, %zmm0 | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 719 | ; ALL-NEXT:    retq | 
|  | 720 | %shuffle = shufflevector <8 x double> %a, <8 x double> %b, <8 x i32> <i32 15, i32 5, i32 1, i32 1, i32 2, i32 3, i32 5, i32 10> | 
|  | 721 | ret <8 x double> %shuffle | 
|  | 722 | } | 
|  | 723 |  | 
|  | 724 | define <8 x i64> @shuffle_v8i64_00000000(<8 x i64> %a, <8 x i64> %b) { | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 725 | ; ALL-LABEL: shuffle_v8i64_00000000: | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 726 | ; ALL:       # BB#0: | 
| Robert Khasanov | dd09a8f | 2014-10-28 12:28:51 +0000 | [diff] [blame] | 727 | ; ALL-NEXT:    vpbroadcastq %xmm0, %zmm0 | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 728 | ; ALL-NEXT:    retq | 
|  | 729 | %shuffle = shufflevector <8 x i64> %a, <8 x i64> %b, <8 x i32> <i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0> | 
|  | 730 | ret <8 x i64> %shuffle | 
|  | 731 | } | 
|  | 732 |  | 
|  | 733 | define <8 x i64> @shuffle_v8i64_00000010(<8 x i64> %a, <8 x i64> %b) { | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 734 | ; ALL-LABEL: shuffle_v8i64_00000010: | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 735 | ; ALL:       # BB#0: | 
| Chandler Carruth | b9d3fa1 | 2014-10-01 00:41:21 +0000 | [diff] [blame] | 736 | ; ALL-NEXT:    vpbroadcastq %xmm0, %ymm1 | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 737 | ; ALL-NEXT:    vpermq {{.*#+}} ymm0 = ymm0[0,0,1,0] | 
| Chandler Carruth | c712927 | 2014-09-29 00:37:27 +0000 | [diff] [blame] | 738 | ; ALL-NEXT:    vinserti64x4 $1, %ymm0, %zmm1, %zmm0 | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 739 | ; ALL-NEXT:    retq | 
|  | 740 | %shuffle = shufflevector <8 x i64> %a, <8 x i64> %b, <8 x i32> <i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 1, i32 0> | 
|  | 741 | ret <8 x i64> %shuffle | 
|  | 742 | } | 
|  | 743 |  | 
|  | 744 | define <8 x i64> @shuffle_v8i64_00000200(<8 x i64> %a, <8 x i64> %b) { | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 745 | ; ALL-LABEL: shuffle_v8i64_00000200: | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 746 | ; ALL:       # BB#0: | 
| Chandler Carruth | b9d3fa1 | 2014-10-01 00:41:21 +0000 | [diff] [blame] | 747 | ; ALL-NEXT:    vpbroadcastq %xmm0, %ymm1 | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 748 | ; ALL-NEXT:    vpermq {{.*#+}} ymm0 = ymm0[0,2,0,0] | 
| Chandler Carruth | c712927 | 2014-09-29 00:37:27 +0000 | [diff] [blame] | 749 | ; ALL-NEXT:    vinserti64x4 $1, %ymm0, %zmm1, %zmm0 | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 750 | ; ALL-NEXT:    retq | 
|  | 751 | %shuffle = shufflevector <8 x i64> %a, <8 x i64> %b, <8 x i32> <i32 0, i32 0, i32 0, i32 0, i32 0, i32 2, i32 0, i32 0> | 
|  | 752 | ret <8 x i64> %shuffle | 
|  | 753 | } | 
|  | 754 |  | 
|  | 755 | define <8 x i64> @shuffle_v8i64_00003000(<8 x i64> %a, <8 x i64> %b) { | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 756 | ; ALL-LABEL: shuffle_v8i64_00003000: | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 757 | ; ALL:       # BB#0: | 
| Chandler Carruth | b9d3fa1 | 2014-10-01 00:41:21 +0000 | [diff] [blame] | 758 | ; ALL-NEXT:    vpbroadcastq %xmm0, %ymm1 | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 759 | ; ALL-NEXT:    vpermq {{.*#+}} ymm0 = ymm0[3,0,0,0] | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 760 | ; ALL-NEXT:    vinserti64x4 $1, %ymm0, %zmm1, %zmm0 | 
|  | 761 | ; ALL-NEXT:    retq | 
|  | 762 | %shuffle = shufflevector <8 x i64> %a, <8 x i64> %b, <8 x i32> <i32 0, i32 0, i32 0, i32 0, i32 3, i32 0, i32 0, i32 0> | 
|  | 763 | ret <8 x i64> %shuffle | 
|  | 764 | } | 
|  | 765 |  | 
|  | 766 | define <8 x i64> @shuffle_v8i64_00040000(<8 x i64> %a, <8 x i64> %b) { | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 767 | ; ALL-LABEL: shuffle_v8i64_00040000: | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 768 | ; ALL:       # BB#0: | 
| Chandler Carruth | 77e1a0a | 2014-11-21 12:33:46 +0000 | [diff] [blame] | 769 | ; ALL-NEXT:    vextracti64x4 $1, %zmm0, %ymm1 | 
| Chandler Carruth | b9d3fa1 | 2014-10-01 00:41:21 +0000 | [diff] [blame] | 770 | ; ALL-NEXT:    vpbroadcastq %xmm1, %ymm1 | 
|  | 771 | ; ALL-NEXT:    vpbroadcastq %xmm0, %ymm0 | 
|  | 772 | ; ALL-NEXT:    vpblendd {{.*#+}} ymm1 = ymm0[0,1,2,3,4,5],ymm1[6,7] | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 773 | ; ALL-NEXT:    vinserti64x4 $1, %ymm0, %zmm1, %zmm0 | 
|  | 774 | ; ALL-NEXT:    retq | 
|  | 775 | %shuffle = shufflevector <8 x i64> %a, <8 x i64> %b, <8 x i32> <i32 0, i32 0, i32 0, i32 4, i32 0, i32 0, i32 0, i32 0> | 
|  | 776 | ret <8 x i64> %shuffle | 
|  | 777 | } | 
|  | 778 |  | 
|  | 779 | define <8 x i64> @shuffle_v8i64_00500000(<8 x i64> %a, <8 x i64> %b) { | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 780 | ; ALL-LABEL: shuffle_v8i64_00500000: | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 781 | ; ALL:       # BB#0: | 
| Chandler Carruth | 77e1a0a | 2014-11-21 12:33:46 +0000 | [diff] [blame] | 782 | ; ALL-NEXT:    vextracti64x4 $1, %zmm0, %ymm1 | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 783 | ; ALL-NEXT:    vpermq {{.*#+}} ymm1 = ymm1[0,1,1,3] | 
| Chandler Carruth | b9d3fa1 | 2014-10-01 00:41:21 +0000 | [diff] [blame] | 784 | ; ALL-NEXT:    vpbroadcastq %xmm0, %ymm0 | 
|  | 785 | ; ALL-NEXT:    vpblendd {{.*#+}} ymm1 = ymm0[0,1,2,3],ymm1[4,5],ymm0[6,7] | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 786 | ; ALL-NEXT:    vinserti64x4 $1, %ymm0, %zmm1, %zmm0 | 
|  | 787 | ; ALL-NEXT:    retq | 
|  | 788 | %shuffle = shufflevector <8 x i64> %a, <8 x i64> %b, <8 x i32> <i32 0, i32 0, i32 5, i32 0, i32 0, i32 0, i32 0, i32 0> | 
|  | 789 | ret <8 x i64> %shuffle | 
|  | 790 | } | 
|  | 791 |  | 
|  | 792 | define <8 x i64> @shuffle_v8i64_06000000(<8 x i64> %a, <8 x i64> %b) { | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 793 | ; ALL-LABEL: shuffle_v8i64_06000000: | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 794 | ; ALL:       # BB#0: | 
| Chandler Carruth | 77e1a0a | 2014-11-21 12:33:46 +0000 | [diff] [blame] | 795 | ; ALL-NEXT:    vextracti64x4 $1, %zmm0, %ymm1 | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 796 | ; ALL-NEXT:    vpermq {{.*#+}} ymm1 = ymm1[0,2,2,3] | 
| Chandler Carruth | b9d3fa1 | 2014-10-01 00:41:21 +0000 | [diff] [blame] | 797 | ; ALL-NEXT:    vpbroadcastq %xmm0, %ymm0 | 
|  | 798 | ; ALL-NEXT:    vpblendd {{.*#+}} ymm1 = ymm0[0,1],ymm1[2,3],ymm0[4,5,6,7] | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 799 | ; ALL-NEXT:    vinserti64x4 $1, %ymm0, %zmm1, %zmm0 | 
|  | 800 | ; ALL-NEXT:    retq | 
|  | 801 | %shuffle = shufflevector <8 x i64> %a, <8 x i64> %b, <8 x i32> <i32 0, i32 6, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0> | 
|  | 802 | ret <8 x i64> %shuffle | 
|  | 803 | } | 
|  | 804 |  | 
|  | 805 | define <8 x i64> @shuffle_v8i64_70000000(<8 x i64> %a, <8 x i64> %b) { | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 806 | ; ALL-LABEL: shuffle_v8i64_70000000: | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 807 | ; ALL:       # BB#0: | 
| Chandler Carruth | 77e1a0a | 2014-11-21 12:33:46 +0000 | [diff] [blame] | 808 | ; ALL-NEXT:    vextracti64x4 $1, %zmm0, %ymm1 | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 809 | ; ALL-NEXT:    vpermq {{.*#+}} ymm1 = ymm1[3,1,2,3] | 
| Chandler Carruth | b9d3fa1 | 2014-10-01 00:41:21 +0000 | [diff] [blame] | 810 | ; ALL-NEXT:    vpbroadcastq %xmm0, %ymm0 | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 811 | ; ALL-NEXT:    vpblendd {{.*#+}} ymm1 = ymm1[0,1],ymm0[2,3,4,5,6,7] | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 812 | ; ALL-NEXT:    vinserti64x4 $1, %ymm0, %zmm1, %zmm0 | 
|  | 813 | ; ALL-NEXT:    retq | 
|  | 814 | %shuffle = shufflevector <8 x i64> %a, <8 x i64> %b, <8 x i32> <i32 7, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0> | 
|  | 815 | ret <8 x i64> %shuffle | 
|  | 816 | } | 
|  | 817 |  | 
|  | 818 | define <8 x i64> @shuffle_v8i64_01014545(<8 x i64> %a, <8 x i64> %b) { | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 819 | ; ALL-LABEL: shuffle_v8i64_01014545: | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 820 | ; ALL:       # BB#0: | 
| Chandler Carruth | 77e1a0a | 2014-11-21 12:33:46 +0000 | [diff] [blame] | 821 | ; ALL-NEXT:    vextracti64x4 $1, %zmm0, %ymm1 | 
| Chandler Carruth | 9f4d9fa | 2014-10-05 11:41:36 +0000 | [diff] [blame] | 822 | ; ALL-NEXT:    vinserti128 $1, %xmm1, %ymm1, %ymm1 | 
|  | 823 | ; ALL-NEXT:    vinserti128 $1, %xmm0, %ymm0, %ymm0 | 
|  | 824 | ; ALL-NEXT:    vinserti64x4 $1, %ymm1, %zmm0, %zmm0 | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 825 | ; ALL-NEXT:    retq | 
|  | 826 | %shuffle = shufflevector <8 x i64> %a, <8 x i64> %b, <8 x i32> <i32 0, i32 1, i32 0, i32 1, i32 4, i32 5, i32 4, i32 5> | 
|  | 827 | ret <8 x i64> %shuffle | 
|  | 828 | } | 
|  | 829 |  | 
|  | 830 | define <8 x i64> @shuffle_v8i64_00112233(<8 x i64> %a, <8 x i64> %b) { | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 831 | ; ALL-LABEL: shuffle_v8i64_00112233: | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 832 | ; ALL:       # BB#0: | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 833 | ; ALL-NEXT:    vpermq {{.*#+}} ymm1 = ymm0[0,0,1,1] | 
|  | 834 | ; ALL-NEXT:    vpermq {{.*#+}} ymm0 = ymm0[2,2,3,3] | 
| Chandler Carruth | c712927 | 2014-09-29 00:37:27 +0000 | [diff] [blame] | 835 | ; ALL-NEXT:    vinserti64x4 $1, %ymm0, %zmm1, %zmm0 | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 836 | ; ALL-NEXT:    retq | 
|  | 837 | %shuffle = shufflevector <8 x i64> %a, <8 x i64> %b, <8 x i32> <i32 0, i32 0, i32 1, i32 1, i32 2, i32 2, i32 3, i32 3> | 
|  | 838 | ret <8 x i64> %shuffle | 
|  | 839 | } | 
|  | 840 |  | 
|  | 841 | define <8 x i64> @shuffle_v8i64_00001111(<8 x i64> %a, <8 x i64> %b) { | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 842 | ; ALL-LABEL: shuffle_v8i64_00001111: | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 843 | ; ALL:       # BB#0: | 
| Chandler Carruth | b9d3fa1 | 2014-10-01 00:41:21 +0000 | [diff] [blame] | 844 | ; ALL-NEXT:    vpbroadcastq %xmm0, %ymm1 | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 845 | ; ALL-NEXT:    vpermq {{.*#+}} ymm0 = ymm0[1,1,1,1] | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 846 | ; ALL-NEXT:    vinserti64x4 $1, %ymm0, %zmm1, %zmm0 | 
|  | 847 | ; ALL-NEXT:    retq | 
|  | 848 | %shuffle = shufflevector <8 x i64> %a, <8 x i64> %b, <8 x i32> <i32 0, i32 0, i32 0, i32 0, i32 1, i32 1, i32 1, i32 1> | 
|  | 849 | ret <8 x i64> %shuffle | 
|  | 850 | } | 
|  | 851 |  | 
|  | 852 | define <8 x i64> @shuffle_v8i64_81a3c5e7(<8 x i64> %a, <8 x i64> %b) { | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 853 | ; ALL-LABEL: shuffle_v8i64_81a3c5e7: | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 854 | ; ALL:       # BB#0: | 
| Chandler Carruth | 77e1a0a | 2014-11-21 12:33:46 +0000 | [diff] [blame] | 855 | ; ALL-NEXT:    vextracti64x4 $1, %zmm0, %ymm2 | 
|  | 856 | ; ALL-NEXT:    vextracti64x4 $1, %zmm1, %ymm3 | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 857 | ; ALL-NEXT:    vpblendd {{.*#+}} ymm2 = ymm3[0,1],ymm2[2,3],ymm3[4,5],ymm2[6,7] | 
|  | 858 | ; ALL-NEXT:    vpblendd {{.*#+}} ymm0 = ymm1[0,1],ymm0[2,3],ymm1[4,5],ymm0[6,7] | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 859 | ; ALL-NEXT:    vinserti64x4 $1, %ymm2, %zmm0, %zmm0 | 
|  | 860 | ; ALL-NEXT:    retq | 
|  | 861 | %shuffle = shufflevector <8 x i64> %a, <8 x i64> %b, <8 x i32> <i32 8, i32 1, i32 10, i32 3, i32 12, i32 5, i32 14, i32 7> | 
|  | 862 | ret <8 x i64> %shuffle | 
|  | 863 | } | 
|  | 864 |  | 
|  | 865 | define <8 x i64> @shuffle_v8i64_08080808(<8 x i64> %a, <8 x i64> %b) { | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 866 | ; ALL-LABEL: shuffle_v8i64_08080808: | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 867 | ; ALL:       # BB#0: | 
| Chandler Carruth | 9f4d9fa | 2014-10-05 11:41:36 +0000 | [diff] [blame] | 868 | ; ALL-NEXT:    vinserti128 $1, %xmm0, %ymm0, %ymm0 | 
| Chandler Carruth | b9d3fa1 | 2014-10-01 00:41:21 +0000 | [diff] [blame] | 869 | ; ALL-NEXT:    vpbroadcastq %xmm1, %ymm1 | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 870 | ; ALL-NEXT:    vpblendd {{.*#+}} ymm0 = ymm0[0,1],ymm1[2,3],ymm0[4,5],ymm1[6,7] | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 871 | ; ALL-NEXT:    vinserti64x4 $1, %ymm0, %zmm0, %zmm0 | 
|  | 872 | ; ALL-NEXT:    retq | 
|  | 873 | %shuffle = shufflevector <8 x i64> %a, <8 x i64> %b, <8 x i32> <i32 0, i32 8, i32 0, i32 8, i32 0, i32 8, i32 0, i32 8> | 
|  | 874 | ret <8 x i64> %shuffle | 
|  | 875 | } | 
|  | 876 |  | 
|  | 877 | define <8 x i64> @shuffle_v8i64_08084c4c(<8 x i64> %a, <8 x i64> %b) { | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 878 | ; ALL-LABEL: shuffle_v8i64_08084c4c: | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 879 | ; ALL:       # BB#0: | 
| Chandler Carruth | 77e1a0a | 2014-11-21 12:33:46 +0000 | [diff] [blame] | 880 | ; ALL-NEXT:    vextracti64x4 $1, %zmm0, %ymm2 | 
| Chandler Carruth | 9f4d9fa | 2014-10-05 11:41:36 +0000 | [diff] [blame] | 881 | ; ALL-NEXT:    vinserti128 $1, %xmm2, %ymm2, %ymm2 | 
| Chandler Carruth | 77e1a0a | 2014-11-21 12:33:46 +0000 | [diff] [blame] | 882 | ; ALL-NEXT:    vextracti64x4 $1, %zmm1, %ymm3 | 
| Chandler Carruth | b9d3fa1 | 2014-10-01 00:41:21 +0000 | [diff] [blame] | 883 | ; ALL-NEXT:    vpbroadcastq %xmm3, %ymm3 | 
| Chandler Carruth | 9f4d9fa | 2014-10-05 11:41:36 +0000 | [diff] [blame] | 884 | ; ALL-NEXT:    vpblendd {{.*#+}} ymm2 = ymm2[0,1],ymm3[2,3],ymm2[4,5],ymm3[6,7] | 
|  | 885 | ; ALL-NEXT:    vinserti128 $1, %xmm0, %ymm0, %ymm0 | 
| Chandler Carruth | b9d3fa1 | 2014-10-01 00:41:21 +0000 | [diff] [blame] | 886 | ; ALL-NEXT:    vpbroadcastq %xmm1, %ymm1 | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 887 | ; ALL-NEXT:    vpblendd {{.*#+}} ymm0 = ymm0[0,1],ymm1[2,3],ymm0[4,5],ymm1[6,7] | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 888 | ; ALL-NEXT:    vinserti64x4 $1, %ymm2, %zmm0, %zmm0 | 
|  | 889 | ; ALL-NEXT:    retq | 
|  | 890 | %shuffle = shufflevector <8 x i64> %a, <8 x i64> %b, <8 x i32> <i32 0, i32 8, i32 0, i32 8, i32 4, i32 12, i32 4, i32 12> | 
|  | 891 | ret <8 x i64> %shuffle | 
|  | 892 | } | 
|  | 893 |  | 
|  | 894 | define <8 x i64> @shuffle_v8i64_8823cc67(<8 x i64> %a, <8 x i64> %b) { | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 895 | ; ALL-LABEL: shuffle_v8i64_8823cc67: | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 896 | ; ALL:       # BB#0: | 
| Chandler Carruth | 77e1a0a | 2014-11-21 12:33:46 +0000 | [diff] [blame] | 897 | ; ALL-NEXT:    vextracti64x4 $1, %zmm0, %ymm2 | 
|  | 898 | ; ALL-NEXT:    vextracti64x4 $1, %zmm1, %ymm3 | 
| Chandler Carruth | b9d3fa1 | 2014-10-01 00:41:21 +0000 | [diff] [blame] | 899 | ; ALL-NEXT:    vpbroadcastq %xmm3, %ymm3 | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 900 | ; ALL-NEXT:    vpblendd {{.*#+}} ymm2 = ymm3[0,1,2,3],ymm2[4,5,6,7] | 
| Chandler Carruth | b9d3fa1 | 2014-10-01 00:41:21 +0000 | [diff] [blame] | 901 | ; ALL-NEXT:    vpbroadcastq %xmm1, %ymm1 | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 902 | ; ALL-NEXT:    vpblendd {{.*#+}} ymm0 = ymm1[0,1,2,3],ymm0[4,5,6,7] | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 903 | ; ALL-NEXT:    vinserti64x4 $1, %ymm2, %zmm0, %zmm0 | 
|  | 904 | ; ALL-NEXT:    retq | 
|  | 905 | %shuffle = shufflevector <8 x i64> %a, <8 x i64> %b, <8 x i32> <i32 8, i32 8, i32 2, i32 3, i32 12, i32 12, i32 6, i32 7> | 
|  | 906 | ret <8 x i64> %shuffle | 
|  | 907 | } | 
|  | 908 |  | 
|  | 909 | define <8 x i64> @shuffle_v8i64_9832dc76(<8 x i64> %a, <8 x i64> %b) { | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 910 | ; ALL-LABEL: shuffle_v8i64_9832dc76: | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 911 | ; ALL:       # BB#0: | 
| Chandler Carruth | ce5a26b | 2014-11-21 14:53:03 +0000 | [diff] [blame] | 912 | ; ALL-NEXT:    vpblendd {{.*#+}} ymm2 = ymm1[0,1,2,3],ymm0[4,5,6,7] | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 913 | ; ALL-NEXT:    vpshufd {{.*#+}} ymm2 = ymm2[2,3,0,1,6,7,4,5] | 
| Chandler Carruth | ce5a26b | 2014-11-21 14:53:03 +0000 | [diff] [blame] | 914 | ; ALL-NEXT:    vextracti64x4 $1, %zmm0, %ymm0 | 
|  | 915 | ; ALL-NEXT:    vextracti64x4 $1, %zmm1, %ymm1 | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 916 | ; ALL-NEXT:    vpblendd {{.*#+}} ymm0 = ymm1[0,1,2,3],ymm0[4,5,6,7] | 
| Chandler Carruth | ce5a26b | 2014-11-21 14:53:03 +0000 | [diff] [blame] | 917 | ; ALL-NEXT:    vpshufd {{.*#+}} ymm0 = ymm0[2,3,0,1,6,7,4,5] | 
|  | 918 | ; ALL-NEXT:    vinserti64x4 $1, %ymm0, %zmm2, %zmm0 | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 919 | ; ALL-NEXT:    retq | 
|  | 920 | %shuffle = shufflevector <8 x i64> %a, <8 x i64> %b, <8 x i32> <i32 9, i32 8, i32 3, i32 2, i32 13, i32 12, i32 7, i32 6> | 
|  | 921 | ret <8 x i64> %shuffle | 
|  | 922 | } | 
|  | 923 |  | 
|  | 924 | define <8 x i64> @shuffle_v8i64_9810dc54(<8 x i64> %a, <8 x i64> %b) { | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 925 | ; ALL-LABEL: shuffle_v8i64_9810dc54: | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 926 | ; ALL:       # BB#0: | 
| Chandler Carruth | d2b19bc | 2014-11-21 13:56:05 +0000 | [diff] [blame] | 927 | ; ALL-NEXT:    vinserti128 $1, %xmm0, %ymm1, %ymm2 | 
|  | 928 | ; ALL-NEXT:    vpshufd {{.*#+}} ymm2 = ymm2[2,3,0,1,6,7,4,5] | 
|  | 929 | ; ALL-NEXT:    vextracti64x4 $1, %zmm1, %ymm1 | 
|  | 930 | ; ALL-NEXT:    vextracti64x4 $1, %zmm0, %ymm0 | 
|  | 931 | ; ALL-NEXT:    vinserti128 $1, %xmm0, %ymm1, %ymm0 | 
|  | 932 | ; ALL-NEXT:    vpshufd {{.*#+}} ymm0 = ymm0[2,3,0,1,6,7,4,5] | 
|  | 933 | ; ALL-NEXT:    vinserti64x4 $1, %ymm0, %zmm2, %zmm0 | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 934 | ; ALL-NEXT:    retq | 
|  | 935 | %shuffle = shufflevector <8 x i64> %a, <8 x i64> %b, <8 x i32> <i32 9, i32 8, i32 1, i32 0, i32 13, i32 12, i32 5, i32 4> | 
|  | 936 | ret <8 x i64> %shuffle | 
|  | 937 | } | 
|  | 938 |  | 
|  | 939 | define <8 x i64> @shuffle_v8i64_08194c5d(<8 x i64> %a, <8 x i64> %b) { | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 940 | ; ALL-LABEL: shuffle_v8i64_08194c5d: | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 941 | ; ALL:       # BB#0: | 
| Chandler Carruth | 77e1a0a | 2014-11-21 12:33:46 +0000 | [diff] [blame] | 942 | ; ALL-NEXT:    vextracti64x4 $1, %zmm1, %ymm2 | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 943 | ; ALL-NEXT:    vpermq {{.*#+}} ymm2 = ymm2[0,0,2,1] | 
| Chandler Carruth | 77e1a0a | 2014-11-21 12:33:46 +0000 | [diff] [blame] | 944 | ; ALL-NEXT:    vextracti64x4 $1, %zmm0, %ymm3 | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 945 | ; ALL-NEXT:    vpermq {{.*#+}} ymm3 = ymm3[0,1,1,3] | 
|  | 946 | ; ALL-NEXT:    vpblendd {{.*#+}} ymm2 = ymm3[0,1],ymm2[2,3],ymm3[4,5],ymm2[6,7] | 
|  | 947 | ; ALL-NEXT:    vpermq {{.*#+}} ymm1 = ymm1[0,0,2,1] | 
|  | 948 | ; ALL-NEXT:    vpermq {{.*#+}} ymm0 = ymm0[0,1,1,3] | 
|  | 949 | ; ALL-NEXT:    vpblendd {{.*#+}} ymm0 = ymm0[0,1],ymm1[2,3],ymm0[4,5],ymm1[6,7] | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 950 | ; ALL-NEXT:    vinserti64x4 $1, %ymm2, %zmm0, %zmm0 | 
|  | 951 | ; ALL-NEXT:    retq | 
|  | 952 | %shuffle = shufflevector <8 x i64> %a, <8 x i64> %b, <8 x i32> <i32 0, i32 8, i32 1, i32 9, i32 4, i32 12, i32 5, i32 13> | 
|  | 953 | ret <8 x i64> %shuffle | 
|  | 954 | } | 
|  | 955 |  | 
|  | 956 | define <8 x i64> @shuffle_v8i64_2a3b6e7f(<8 x i64> %a, <8 x i64> %b) { | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 957 | ; ALL-LABEL: shuffle_v8i64_2a3b6e7f: | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 958 | ; ALL:       # BB#0: | 
| Chandler Carruth | 77e1a0a | 2014-11-21 12:33:46 +0000 | [diff] [blame] | 959 | ; ALL-NEXT:    vextracti64x4 $1, %zmm1, %ymm2 | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 960 | ; ALL-NEXT:    vpermq {{.*#+}} ymm2 = ymm2[0,2,2,3] | 
| Chandler Carruth | 77e1a0a | 2014-11-21 12:33:46 +0000 | [diff] [blame] | 961 | ; ALL-NEXT:    vextracti64x4 $1, %zmm0, %ymm3 | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 962 | ; ALL-NEXT:    vpermq {{.*#+}} ymm3 = ymm3[2,1,3,3] | 
|  | 963 | ; ALL-NEXT:    vpblendd {{.*#+}} ymm2 = ymm3[0,1],ymm2[2,3],ymm3[4,5],ymm2[6,7] | 
|  | 964 | ; ALL-NEXT:    vpermq {{.*#+}} ymm1 = ymm1[0,2,2,3] | 
|  | 965 | ; ALL-NEXT:    vpermq {{.*#+}} ymm0 = ymm0[2,1,3,3] | 
|  | 966 | ; ALL-NEXT:    vpblendd {{.*#+}} ymm0 = ymm0[0,1],ymm1[2,3],ymm0[4,5],ymm1[6,7] | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 967 | ; ALL-NEXT:    vinserti64x4 $1, %ymm2, %zmm0, %zmm0 | 
|  | 968 | ; ALL-NEXT:    retq | 
|  | 969 | %shuffle = shufflevector <8 x i64> %a, <8 x i64> %b, <8 x i32> <i32 2, i32 10, i32 3, i32 11, i32 6, i32 14, i32 7, i32 15> | 
|  | 970 | ret <8 x i64> %shuffle | 
|  | 971 | } | 
|  | 972 |  | 
|  | 973 | define <8 x i64> @shuffle_v8i64_08192a3b(<8 x i64> %a, <8 x i64> %b) { | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 974 | ; ALL-LABEL: shuffle_v8i64_08192a3b: | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 975 | ; ALL:       # BB#0: | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 976 | ; ALL-NEXT:    vpermq {{.*#+}} ymm2 = ymm1[0,2,2,3] | 
|  | 977 | ; ALL-NEXT:    vpermq {{.*#+}} ymm3 = ymm0[2,1,3,3] | 
|  | 978 | ; ALL-NEXT:    vpblendd {{.*#+}} ymm2 = ymm3[0,1],ymm2[2,3],ymm3[4,5],ymm2[6,7] | 
|  | 979 | ; ALL-NEXT:    vpermq {{.*#+}} ymm1 = ymm1[0,0,2,1] | 
|  | 980 | ; ALL-NEXT:    vpermq {{.*#+}} ymm0 = ymm0[0,1,1,3] | 
|  | 981 | ; ALL-NEXT:    vpblendd {{.*#+}} ymm0 = ymm0[0,1],ymm1[2,3],ymm0[4,5],ymm1[6,7] | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 982 | ; ALL-NEXT:    vinserti64x4 $1, %ymm2, %zmm0, %zmm0 | 
|  | 983 | ; ALL-NEXT:    retq | 
|  | 984 | %shuffle = shufflevector <8 x i64> %a, <8 x i64> %b, <8 x i32> <i32 0, i32 8, i32 1, i32 9, i32 2, i32 10, i32 3, i32 11> | 
|  | 985 | ret <8 x i64> %shuffle | 
|  | 986 | } | 
|  | 987 |  | 
|  | 988 | define <8 x i64> @shuffle_v8i64_08991abb(<8 x i64> %a, <8 x i64> %b) { | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 989 | ; ALL-LABEL: shuffle_v8i64_08991abb: | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 990 | ; ALL:       # BB#0: | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 991 | ; ALL-NEXT:    vpshufd {{.*#+}} ymm2 = ymm0[2,3,2,3,6,7,6,7] | 
|  | 992 | ; ALL-NEXT:    vpermq {{.*#+}} ymm3 = ymm1[0,2,3,3] | 
|  | 993 | ; ALL-NEXT:    vpblendd {{.*#+}} ymm2 = ymm2[0,1],ymm3[2,3,4,5,6,7] | 
|  | 994 | ; ALL-NEXT:    vpermq {{.*#+}} ymm1 = ymm1[0,0,1,1] | 
|  | 995 | ; ALL-NEXT:    vpblendd {{.*#+}} ymm0 = ymm0[0,1],ymm1[2,3,4,5,6,7] | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 996 | ; ALL-NEXT:    vinserti64x4 $1, %ymm2, %zmm0, %zmm0 | 
|  | 997 | ; ALL-NEXT:    retq | 
|  | 998 | %shuffle = shufflevector <8 x i64> %a, <8 x i64> %b, <8 x i32> <i32 0, i32 8, i32 9, i32 9, i32 1, i32 10, i32 11, i32 11> | 
|  | 999 | ret <8 x i64> %shuffle | 
|  | 1000 | } | 
|  | 1001 |  | 
|  | 1002 | define <8 x i64> @shuffle_v8i64_091b2d3f(<8 x i64> %a, <8 x i64> %b) { | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 1003 | ; ALL-LABEL: shuffle_v8i64_091b2d3f: | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 1004 | ; ALL:       # BB#0: | 
| Chandler Carruth | 77e1a0a | 2014-11-21 12:33:46 +0000 | [diff] [blame] | 1005 | ; ALL-NEXT:    vextracti64x4 $1, %zmm1, %ymm2 | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 1006 | ; ALL-NEXT:    vpermq {{.*#+}} ymm3 = ymm0[2,1,3,3] | 
|  | 1007 | ; ALL-NEXT:    vpblendd {{.*#+}} ymm2 = ymm3[0,1],ymm2[2,3],ymm3[4,5],ymm2[6,7] | 
|  | 1008 | ; ALL-NEXT:    vpermq {{.*#+}} ymm0 = ymm0[0,1,1,3] | 
|  | 1009 | ; ALL-NEXT:    vpblendd {{.*#+}} ymm0 = ymm0[0,1],ymm1[2,3],ymm0[4,5],ymm1[6,7] | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 1010 | ; ALL-NEXT:    vinserti64x4 $1, %ymm2, %zmm0, %zmm0 | 
|  | 1011 | ; ALL-NEXT:    retq | 
|  | 1012 | %shuffle = shufflevector <8 x i64> %a, <8 x i64> %b, <8 x i32> <i32 0, i32 9, i32 1, i32 11, i32 2, i32 13, i32 3, i32 15> | 
|  | 1013 | ret <8 x i64> %shuffle | 
|  | 1014 | } | 
|  | 1015 |  | 
|  | 1016 | define <8 x i64> @shuffle_v8i64_09ab1def(<8 x i64> %a, <8 x i64> %b) { | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 1017 | ; ALL-LABEL: shuffle_v8i64_09ab1def: | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 1018 | ; ALL:       # BB#0: | 
| Chandler Carruth | 77e1a0a | 2014-11-21 12:33:46 +0000 | [diff] [blame] | 1019 | ; ALL-NEXT:    vextracti64x4 $1, %zmm1, %ymm2 | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 1020 | ; ALL-NEXT:    vpshufd {{.*#+}} ymm3 = ymm0[2,3,2,3,6,7,6,7] | 
|  | 1021 | ; ALL-NEXT:    vpblendd {{.*#+}} ymm2 = ymm3[0,1],ymm2[2,3,4,5,6,7] | 
|  | 1022 | ; ALL-NEXT:    vpblendd {{.*#+}} ymm0 = ymm0[0,1],ymm1[2,3,4,5,6,7] | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 1023 | ; ALL-NEXT:    vinserti64x4 $1, %ymm2, %zmm0, %zmm0 | 
|  | 1024 | ; ALL-NEXT:    retq | 
|  | 1025 | %shuffle = shufflevector <8 x i64> %a, <8 x i64> %b, <8 x i32> <i32 0, i32 9, i32 10, i32 11, i32 1, i32 13, i32 14, i32 15> | 
|  | 1026 | ret <8 x i64> %shuffle | 
|  | 1027 | } | 
|  | 1028 |  | 
|  | 1029 | define <8 x i64> @shuffle_v8i64_00014445(<8 x i64> %a, <8 x i64> %b) { | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 1030 | ; ALL-LABEL: shuffle_v8i64_00014445: | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 1031 | ; ALL:       # BB#0: | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 1032 | ; ALL-NEXT:    vpermq {{.*#+}} ymm1 = ymm0[0,0,0,1] | 
| Chandler Carruth | 77e1a0a | 2014-11-21 12:33:46 +0000 | [diff] [blame] | 1033 | ; ALL-NEXT:    vextracti64x4 $1, %zmm0, %ymm0 | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 1034 | ; ALL-NEXT:    vpermq {{.*#+}} ymm0 = ymm0[0,0,0,1] | 
| Chandler Carruth | c712927 | 2014-09-29 00:37:27 +0000 | [diff] [blame] | 1035 | ; ALL-NEXT:    vinserti64x4 $1, %ymm0, %zmm1, %zmm0 | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 1036 | ; ALL-NEXT:    retq | 
|  | 1037 | %shuffle = shufflevector <8 x i64> %a, <8 x i64> %b, <8 x i32> <i32 0, i32 0, i32 0, i32 1, i32 4, i32 4, i32 4, i32 5> | 
|  | 1038 | ret <8 x i64> %shuffle | 
|  | 1039 | } | 
|  | 1040 |  | 
|  | 1041 | define <8 x i64> @shuffle_v8i64_00204464(<8 x i64> %a, <8 x i64> %b) { | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 1042 | ; ALL-LABEL: shuffle_v8i64_00204464: | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 1043 | ; ALL:       # BB#0: | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 1044 | ; ALL-NEXT:    vpermq {{.*#+}} ymm1 = ymm0[0,0,2,0] | 
| Chandler Carruth | 77e1a0a | 2014-11-21 12:33:46 +0000 | [diff] [blame] | 1045 | ; ALL-NEXT:    vextracti64x4 $1, %zmm0, %ymm0 | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 1046 | ; ALL-NEXT:    vpermq {{.*#+}} ymm0 = ymm0[0,0,2,0] | 
| Chandler Carruth | c712927 | 2014-09-29 00:37:27 +0000 | [diff] [blame] | 1047 | ; ALL-NEXT:    vinserti64x4 $1, %ymm0, %zmm1, %zmm0 | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 1048 | ; ALL-NEXT:    retq | 
|  | 1049 | %shuffle = shufflevector <8 x i64> %a, <8 x i64> %b, <8 x i32> <i32 0, i32 0, i32 2, i32 0, i32 4, i32 4, i32 6, i32 4> | 
|  | 1050 | ret <8 x i64> %shuffle | 
|  | 1051 | } | 
|  | 1052 |  | 
|  | 1053 | define <8 x i64> @shuffle_v8i64_03004744(<8 x i64> %a, <8 x i64> %b) { | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 1054 | ; ALL-LABEL: shuffle_v8i64_03004744: | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 1055 | ; ALL:       # BB#0: | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 1056 | ; ALL-NEXT:    vpermq {{.*#+}} ymm1 = ymm0[0,3,0,0] | 
| Chandler Carruth | 77e1a0a | 2014-11-21 12:33:46 +0000 | [diff] [blame] | 1057 | ; ALL-NEXT:    vextracti64x4 $1, %zmm0, %ymm0 | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 1058 | ; ALL-NEXT:    vpermq {{.*#+}} ymm0 = ymm0[0,3,0,0] | 
| Chandler Carruth | c712927 | 2014-09-29 00:37:27 +0000 | [diff] [blame] | 1059 | ; ALL-NEXT:    vinserti64x4 $1, %ymm0, %zmm1, %zmm0 | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 1060 | ; ALL-NEXT:    retq | 
|  | 1061 | %shuffle = shufflevector <8 x i64> %a, <8 x i64> %b, <8 x i32> <i32 0, i32 3, i32 0, i32 0, i32 4, i32 7, i32 4, i32 4> | 
|  | 1062 | ret <8 x i64> %shuffle | 
|  | 1063 | } | 
|  | 1064 |  | 
|  | 1065 | define <8 x i64> @shuffle_v8i64_10005444(<8 x i64> %a, <8 x i64> %b) { | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 1066 | ; ALL-LABEL: shuffle_v8i64_10005444: | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 1067 | ; ALL:       # BB#0: | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 1068 | ; ALL-NEXT:    vpermq {{.*#+}} ymm1 = ymm0[1,0,0,0] | 
| Chandler Carruth | 77e1a0a | 2014-11-21 12:33:46 +0000 | [diff] [blame] | 1069 | ; ALL-NEXT:    vextracti64x4 $1, %zmm0, %ymm0 | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 1070 | ; ALL-NEXT:    vpermq {{.*#+}} ymm0 = ymm0[1,0,0,0] | 
| Chandler Carruth | c712927 | 2014-09-29 00:37:27 +0000 | [diff] [blame] | 1071 | ; ALL-NEXT:    vinserti64x4 $1, %ymm0, %zmm1, %zmm0 | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 1072 | ; ALL-NEXT:    retq | 
|  | 1073 | %shuffle = shufflevector <8 x i64> %a, <8 x i64> %b, <8 x i32> <i32 1, i32 0, i32 0, i32 0, i32 5, i32 4, i32 4, i32 4> | 
|  | 1074 | ret <8 x i64> %shuffle | 
|  | 1075 | } | 
|  | 1076 |  | 
|  | 1077 | define <8 x i64> @shuffle_v8i64_22006644(<8 x i64> %a, <8 x i64> %b) { | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 1078 | ; ALL-LABEL: shuffle_v8i64_22006644: | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 1079 | ; ALL:       # BB#0: | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 1080 | ; ALL-NEXT:    vpermq {{.*#+}} ymm1 = ymm0[2,2,0,0] | 
| Chandler Carruth | 77e1a0a | 2014-11-21 12:33:46 +0000 | [diff] [blame] | 1081 | ; ALL-NEXT:    vextracti64x4 $1, %zmm0, %ymm0 | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 1082 | ; ALL-NEXT:    vpermq {{.*#+}} ymm0 = ymm0[2,2,0,0] | 
| Chandler Carruth | c712927 | 2014-09-29 00:37:27 +0000 | [diff] [blame] | 1083 | ; ALL-NEXT:    vinserti64x4 $1, %ymm0, %zmm1, %zmm0 | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 1084 | ; ALL-NEXT:    retq | 
|  | 1085 | %shuffle = shufflevector <8 x i64> %a, <8 x i64> %b, <8 x i32> <i32 2, i32 2, i32 0, i32 0, i32 6, i32 6, i32 4, i32 4> | 
|  | 1086 | ret <8 x i64> %shuffle | 
|  | 1087 | } | 
|  | 1088 |  | 
|  | 1089 | define <8 x i64> @shuffle_v8i64_33307774(<8 x i64> %a, <8 x i64> %b) { | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 1090 | ; ALL-LABEL: shuffle_v8i64_33307774: | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 1091 | ; ALL:       # BB#0: | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 1092 | ; ALL-NEXT:    vpermq {{.*#+}} ymm1 = ymm0[3,3,3,0] | 
| Chandler Carruth | 77e1a0a | 2014-11-21 12:33:46 +0000 | [diff] [blame] | 1093 | ; ALL-NEXT:    vextracti64x4 $1, %zmm0, %ymm0 | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 1094 | ; ALL-NEXT:    vpermq {{.*#+}} ymm0 = ymm0[3,3,3,0] | 
| Chandler Carruth | c712927 | 2014-09-29 00:37:27 +0000 | [diff] [blame] | 1095 | ; ALL-NEXT:    vinserti64x4 $1, %ymm0, %zmm1, %zmm0 | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 1096 | ; ALL-NEXT:    retq | 
|  | 1097 | %shuffle = shufflevector <8 x i64> %a, <8 x i64> %b, <8 x i32> <i32 3, i32 3, i32 3, i32 0, i32 7, i32 7, i32 7, i32 4> | 
|  | 1098 | ret <8 x i64> %shuffle | 
|  | 1099 | } | 
|  | 1100 |  | 
|  | 1101 | define <8 x i64> @shuffle_v8i64_32107654(<8 x i64> %a, <8 x i64> %b) { | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 1102 | ; ALL-LABEL: shuffle_v8i64_32107654: | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 1103 | ; ALL:       # BB#0: | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 1104 | ; ALL-NEXT:    vpermq {{.*#+}} ymm1 = ymm0[3,2,1,0] | 
| Chandler Carruth | 77e1a0a | 2014-11-21 12:33:46 +0000 | [diff] [blame] | 1105 | ; ALL-NEXT:    vextracti64x4 $1, %zmm0, %ymm0 | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 1106 | ; ALL-NEXT:    vpermq {{.*#+}} ymm0 = ymm0[3,2,1,0] | 
| Chandler Carruth | c712927 | 2014-09-29 00:37:27 +0000 | [diff] [blame] | 1107 | ; ALL-NEXT:    vinserti64x4 $1, %ymm0, %zmm1, %zmm0 | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 1108 | ; ALL-NEXT:    retq | 
|  | 1109 | %shuffle = shufflevector <8 x i64> %a, <8 x i64> %b, <8 x i32> <i32 3, i32 2, i32 1, i32 0, i32 7, i32 6, i32 5, i32 4> | 
|  | 1110 | ret <8 x i64> %shuffle | 
|  | 1111 | } | 
|  | 1112 |  | 
|  | 1113 | define <8 x i64> @shuffle_v8i64_00234467(<8 x i64> %a, <8 x i64> %b) { | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 1114 | ; ALL-LABEL: shuffle_v8i64_00234467: | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 1115 | ; ALL:       # BB#0: | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 1116 | ; ALL-NEXT:    vpermq {{.*#+}} ymm1 = ymm0[0,0,2,3] | 
| Chandler Carruth | 77e1a0a | 2014-11-21 12:33:46 +0000 | [diff] [blame] | 1117 | ; ALL-NEXT:    vextracti64x4 $1, %zmm0, %ymm0 | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 1118 | ; ALL-NEXT:    vpermq {{.*#+}} ymm0 = ymm0[0,0,2,3] | 
| Chandler Carruth | c712927 | 2014-09-29 00:37:27 +0000 | [diff] [blame] | 1119 | ; ALL-NEXT:    vinserti64x4 $1, %ymm0, %zmm1, %zmm0 | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 1120 | ; ALL-NEXT:    retq | 
|  | 1121 | %shuffle = shufflevector <8 x i64> %a, <8 x i64> %b, <8 x i32> <i32 0, i32 0, i32 2, i32 3, i32 4, i32 4, i32 6, i32 7> | 
|  | 1122 | ret <8 x i64> %shuffle | 
|  | 1123 | } | 
|  | 1124 |  | 
|  | 1125 | define <8 x i64> @shuffle_v8i64_00224466(<8 x i64> %a, <8 x i64> %b) { | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 1126 | ; ALL-LABEL: shuffle_v8i64_00224466: | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 1127 | ; ALL:       # BB#0: | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 1128 | ; ALL-NEXT:    vpshufd {{.*#+}} ymm1 = ymm0[0,1,0,1,4,5,4,5] | 
| Chandler Carruth | 77e1a0a | 2014-11-21 12:33:46 +0000 | [diff] [blame] | 1129 | ; ALL-NEXT:    vextracti64x4 $1, %zmm0, %ymm0 | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 1130 | ; ALL-NEXT:    vpshufd {{.*#+}} ymm0 = ymm0[0,1,0,1,4,5,4,5] | 
| Chandler Carruth | c712927 | 2014-09-29 00:37:27 +0000 | [diff] [blame] | 1131 | ; ALL-NEXT:    vinserti64x4 $1, %ymm0, %zmm1, %zmm0 | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 1132 | ; ALL-NEXT:    retq | 
|  | 1133 | %shuffle = shufflevector <8 x i64> %a, <8 x i64> %b, <8 x i32> <i32 0, i32 0, i32 2, i32 2, i32 4, i32 4, i32 6, i32 6> | 
|  | 1134 | ret <8 x i64> %shuffle | 
|  | 1135 | } | 
|  | 1136 |  | 
|  | 1137 | define <8 x i64> @shuffle_v8i64_10325476(<8 x i64> %a, <8 x i64> %b) { | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 1138 | ; ALL-LABEL: shuffle_v8i64_10325476: | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 1139 | ; ALL:       # BB#0: | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 1140 | ; ALL-NEXT:    vpshufd {{.*#+}} ymm1 = ymm0[2,3,0,1,6,7,4,5] | 
| Chandler Carruth | 77e1a0a | 2014-11-21 12:33:46 +0000 | [diff] [blame] | 1141 | ; ALL-NEXT:    vextracti64x4 $1, %zmm0, %ymm0 | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 1142 | ; ALL-NEXT:    vpshufd {{.*#+}} ymm0 = ymm0[2,3,0,1,6,7,4,5] | 
| Chandler Carruth | c712927 | 2014-09-29 00:37:27 +0000 | [diff] [blame] | 1143 | ; ALL-NEXT:    vinserti64x4 $1, %ymm0, %zmm1, %zmm0 | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 1144 | ; ALL-NEXT:    retq | 
|  | 1145 | %shuffle = shufflevector <8 x i64> %a, <8 x i64> %b, <8 x i32> <i32 1, i32 0, i32 3, i32 2, i32 5, i32 4, i32 7, i32 6> | 
|  | 1146 | ret <8 x i64> %shuffle | 
|  | 1147 | } | 
|  | 1148 |  | 
|  | 1149 | define <8 x i64> @shuffle_v8i64_11335577(<8 x i64> %a, <8 x i64> %b) { | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 1150 | ; ALL-LABEL: shuffle_v8i64_11335577: | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 1151 | ; ALL:       # BB#0: | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 1152 | ; ALL-NEXT:    vpshufd {{.*#+}} ymm1 = ymm0[2,3,2,3,6,7,6,7] | 
| Chandler Carruth | 77e1a0a | 2014-11-21 12:33:46 +0000 | [diff] [blame] | 1153 | ; ALL-NEXT:    vextracti64x4 $1, %zmm0, %ymm0 | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 1154 | ; ALL-NEXT:    vpshufd {{.*#+}} ymm0 = ymm0[2,3,2,3,6,7,6,7] | 
| Chandler Carruth | c712927 | 2014-09-29 00:37:27 +0000 | [diff] [blame] | 1155 | ; ALL-NEXT:    vinserti64x4 $1, %ymm0, %zmm1, %zmm0 | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 1156 | ; ALL-NEXT:    retq | 
|  | 1157 | %shuffle = shufflevector <8 x i64> %a, <8 x i64> %b, <8 x i32> <i32 1, i32 1, i32 3, i32 3, i32 5, i32 5, i32 7, i32 7> | 
|  | 1158 | ret <8 x i64> %shuffle | 
|  | 1159 | } | 
|  | 1160 |  | 
|  | 1161 | define <8 x i64> @shuffle_v8i64_10235467(<8 x i64> %a, <8 x i64> %b) { | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 1162 | ; ALL-LABEL: shuffle_v8i64_10235467: | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 1163 | ; ALL:       # BB#0: | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 1164 | ; ALL-NEXT:    vpermq {{.*#+}} ymm1 = ymm0[1,0,2,3] | 
| Chandler Carruth | 77e1a0a | 2014-11-21 12:33:46 +0000 | [diff] [blame] | 1165 | ; ALL-NEXT:    vextracti64x4 $1, %zmm0, %ymm0 | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 1166 | ; ALL-NEXT:    vpermq {{.*#+}} ymm0 = ymm0[1,0,2,3] | 
| Chandler Carruth | c712927 | 2014-09-29 00:37:27 +0000 | [diff] [blame] | 1167 | ; ALL-NEXT:    vinserti64x4 $1, %ymm0, %zmm1, %zmm0 | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 1168 | ; ALL-NEXT:    retq | 
|  | 1169 | %shuffle = shufflevector <8 x i64> %a, <8 x i64> %b, <8 x i32> <i32 1, i32 0, i32 2, i32 3, i32 5, i32 4, i32 6, i32 7> | 
|  | 1170 | ret <8 x i64> %shuffle | 
|  | 1171 | } | 
|  | 1172 |  | 
|  | 1173 | define <8 x i64> @shuffle_v8i64_10225466(<8 x i64> %a, <8 x i64> %b) { | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 1174 | ; ALL-LABEL: shuffle_v8i64_10225466: | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 1175 | ; ALL:       # BB#0: | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 1176 | ; ALL-NEXT:    vpermq {{.*#+}} ymm1 = ymm0[1,0,2,2] | 
| Chandler Carruth | 77e1a0a | 2014-11-21 12:33:46 +0000 | [diff] [blame] | 1177 | ; ALL-NEXT:    vextracti64x4 $1, %zmm0, %ymm0 | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 1178 | ; ALL-NEXT:    vpermq {{.*#+}} ymm0 = ymm0[1,0,2,2] | 
| Chandler Carruth | c712927 | 2014-09-29 00:37:27 +0000 | [diff] [blame] | 1179 | ; ALL-NEXT:    vinserti64x4 $1, %ymm0, %zmm1, %zmm0 | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 1180 | ; ALL-NEXT:    retq | 
|  | 1181 | %shuffle = shufflevector <8 x i64> %a, <8 x i64> %b, <8 x i32> <i32 1, i32 0, i32 2, i32 2, i32 5, i32 4, i32 6, i32 6> | 
|  | 1182 | ret <8 x i64> %shuffle | 
|  | 1183 | } | 
|  | 1184 |  | 
|  | 1185 | define <8 x i64> @shuffle_v8i64_00015444(<8 x i64> %a, <8 x i64> %b) { | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 1186 | ; ALL-LABEL: shuffle_v8i64_00015444: | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 1187 | ; ALL:       # BB#0: | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 1188 | ; ALL-NEXT:    vpermq {{.*#+}} ymm1 = ymm0[0,0,0,1] | 
| Chandler Carruth | 77e1a0a | 2014-11-21 12:33:46 +0000 | [diff] [blame] | 1189 | ; ALL-NEXT:    vextracti64x4 $1, %zmm0, %ymm0 | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 1190 | ; ALL-NEXT:    vpermq {{.*#+}} ymm0 = ymm0[1,0,0,0] | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 1191 | ; ALL-NEXT:    vinserti64x4 $1, %ymm0, %zmm1, %zmm0 | 
|  | 1192 | ; ALL-NEXT:    retq | 
|  | 1193 | %shuffle = shufflevector <8 x i64> %a, <8 x i64> %b, <8 x i32> <i32 0, i32 0, i32 0, i32 1, i32 5, i32 4, i32 4, i32 4> | 
|  | 1194 | ret <8 x i64> %shuffle | 
|  | 1195 | } | 
|  | 1196 |  | 
|  | 1197 | define <8 x i64> @shuffle_v8i64_00204644(<8 x i64> %a, <8 x i64> %b) { | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 1198 | ; ALL-LABEL: shuffle_v8i64_00204644: | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 1199 | ; ALL:       # BB#0: | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 1200 | ; ALL-NEXT:    vpermq {{.*#+}} ymm1 = ymm0[0,0,2,0] | 
| Chandler Carruth | 77e1a0a | 2014-11-21 12:33:46 +0000 | [diff] [blame] | 1201 | ; ALL-NEXT:    vextracti64x4 $1, %zmm0, %ymm0 | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 1202 | ; ALL-NEXT:    vpermq {{.*#+}} ymm0 = ymm0[0,2,0,0] | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 1203 | ; ALL-NEXT:    vinserti64x4 $1, %ymm0, %zmm1, %zmm0 | 
|  | 1204 | ; ALL-NEXT:    retq | 
|  | 1205 | %shuffle = shufflevector <8 x i64> %a, <8 x i64> %b, <8 x i32> <i32 0, i32 0, i32 2, i32 0, i32 4, i32 6, i32 4, i32 4> | 
|  | 1206 | ret <8 x i64> %shuffle | 
|  | 1207 | } | 
|  | 1208 |  | 
|  | 1209 | define <8 x i64> @shuffle_v8i64_03004474(<8 x i64> %a, <8 x i64> %b) { | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 1210 | ; ALL-LABEL: shuffle_v8i64_03004474: | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 1211 | ; ALL:       # BB#0: | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 1212 | ; ALL-NEXT:    vpermq {{.*#+}} ymm1 = ymm0[0,3,0,0] | 
| Chandler Carruth | 77e1a0a | 2014-11-21 12:33:46 +0000 | [diff] [blame] | 1213 | ; ALL-NEXT:    vextracti64x4 $1, %zmm0, %ymm0 | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 1214 | ; ALL-NEXT:    vpermq {{.*#+}} ymm0 = ymm0[0,0,3,0] | 
| Chandler Carruth | c712927 | 2014-09-29 00:37:27 +0000 | [diff] [blame] | 1215 | ; ALL-NEXT:    vinserti64x4 $1, %ymm0, %zmm1, %zmm0 | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 1216 | ; ALL-NEXT:    retq | 
|  | 1217 | %shuffle = shufflevector <8 x i64> %a, <8 x i64> %b, <8 x i32> <i32 0, i32 3, i32 0, i32 0, i32 4, i32 4, i32 7, i32 4> | 
|  | 1218 | ret <8 x i64> %shuffle | 
|  | 1219 | } | 
|  | 1220 |  | 
|  | 1221 | define <8 x i64> @shuffle_v8i64_10004444(<8 x i64> %a, <8 x i64> %b) { | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 1222 | ; ALL-LABEL: shuffle_v8i64_10004444: | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 1223 | ; ALL:       # BB#0: | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 1224 | ; ALL-NEXT:    vpermq {{.*#+}} ymm1 = ymm0[1,0,0,0] | 
| Chandler Carruth | 77e1a0a | 2014-11-21 12:33:46 +0000 | [diff] [blame] | 1225 | ; ALL-NEXT:    vextracti64x4 $1, %zmm0, %ymm0 | 
| Chandler Carruth | b9d3fa1 | 2014-10-01 00:41:21 +0000 | [diff] [blame] | 1226 | ; ALL-NEXT:    vpbroadcastq %xmm0, %ymm0 | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 1227 | ; ALL-NEXT:    vinserti64x4 $1, %ymm0, %zmm1, %zmm0 | 
|  | 1228 | ; ALL-NEXT:    retq | 
|  | 1229 | %shuffle = shufflevector <8 x i64> %a, <8 x i64> %b, <8 x i32> <i32 1, i32 0, i32 0, i32 0, i32 4, i32 4, i32 4, i32 4> | 
|  | 1230 | ret <8 x i64> %shuffle | 
|  | 1231 | } | 
|  | 1232 |  | 
|  | 1233 | define <8 x i64> @shuffle_v8i64_22006446(<8 x i64> %a, <8 x i64> %b) { | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 1234 | ; ALL-LABEL: shuffle_v8i64_22006446: | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 1235 | ; ALL:       # BB#0: | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 1236 | ; ALL-NEXT:    vpermq {{.*#+}} ymm1 = ymm0[2,2,0,0] | 
| Chandler Carruth | 77e1a0a | 2014-11-21 12:33:46 +0000 | [diff] [blame] | 1237 | ; ALL-NEXT:    vextracti64x4 $1, %zmm0, %ymm0 | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 1238 | ; ALL-NEXT:    vpermq {{.*#+}} ymm0 = ymm0[2,0,0,2] | 
| Chandler Carruth | c712927 | 2014-09-29 00:37:27 +0000 | [diff] [blame] | 1239 | ; ALL-NEXT:    vinserti64x4 $1, %ymm0, %zmm1, %zmm0 | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 1240 | ; ALL-NEXT:    retq | 
|  | 1241 | %shuffle = shufflevector <8 x i64> %a, <8 x i64> %b, <8 x i32> <i32 2, i32 2, i32 0, i32 0, i32 6, i32 4, i32 4, i32 6> | 
|  | 1242 | ret <8 x i64> %shuffle | 
|  | 1243 | } | 
|  | 1244 |  | 
|  | 1245 | define <8 x i64> @shuffle_v8i64_33307474(<8 x i64> %a, <8 x i64> %b) { | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 1246 | ; ALL-LABEL: shuffle_v8i64_33307474: | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 1247 | ; ALL:       # BB#0: | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 1248 | ; ALL-NEXT:    vpermq {{.*#+}} ymm1 = ymm0[3,3,3,0] | 
| Chandler Carruth | 77e1a0a | 2014-11-21 12:33:46 +0000 | [diff] [blame] | 1249 | ; ALL-NEXT:    vextracti64x4 $1, %zmm0, %ymm0 | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 1250 | ; ALL-NEXT:    vpermq {{.*#+}} ymm0 = ymm0[3,0,3,0] | 
| Chandler Carruth | c712927 | 2014-09-29 00:37:27 +0000 | [diff] [blame] | 1251 | ; ALL-NEXT:    vinserti64x4 $1, %ymm0, %zmm1, %zmm0 | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 1252 | ; ALL-NEXT:    retq | 
|  | 1253 | %shuffle = shufflevector <8 x i64> %a, <8 x i64> %b, <8 x i32> <i32 3, i32 3, i32 3, i32 0, i32 7, i32 4, i32 7, i32 4> | 
|  | 1254 | ret <8 x i64> %shuffle | 
|  | 1255 | } | 
|  | 1256 |  | 
|  | 1257 | define <8 x i64> @shuffle_v8i64_32104567(<8 x i64> %a, <8 x i64> %b) { | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 1258 | ; ALL-LABEL: shuffle_v8i64_32104567: | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 1259 | ; ALL:       # BB#0: | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 1260 | ; ALL-NEXT:    vpermq {{.*#+}} ymm1 = ymm0[3,2,1,0] | 
| Chandler Carruth | 77e1a0a | 2014-11-21 12:33:46 +0000 | [diff] [blame] | 1261 | ; ALL-NEXT:    vextracti64x4 $1, %zmm0, %ymm0 | 
| Chandler Carruth | c712927 | 2014-09-29 00:37:27 +0000 | [diff] [blame] | 1262 | ; ALL-NEXT:    vinserti64x4 $1, %ymm0, %zmm1, %zmm0 | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 1263 | ; ALL-NEXT:    retq | 
|  | 1264 | %shuffle = shufflevector <8 x i64> %a, <8 x i64> %b, <8 x i32> <i32 3, i32 2, i32 1, i32 0, i32 4, i32 5, i32 6, i32 7> | 
|  | 1265 | ret <8 x i64> %shuffle | 
|  | 1266 | } | 
|  | 1267 |  | 
|  | 1268 | define <8 x i64> @shuffle_v8i64_00236744(<8 x i64> %a, <8 x i64> %b) { | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 1269 | ; ALL-LABEL: shuffle_v8i64_00236744: | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 1270 | ; ALL:       # BB#0: | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 1271 | ; ALL-NEXT:    vpermq {{.*#+}} ymm1 = ymm0[0,0,2,3] | 
| Chandler Carruth | 77e1a0a | 2014-11-21 12:33:46 +0000 | [diff] [blame] | 1272 | ; ALL-NEXT:    vextracti64x4 $1, %zmm0, %ymm0 | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 1273 | ; ALL-NEXT:    vpermq {{.*#+}} ymm0 = ymm0[2,3,0,0] | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 1274 | ; ALL-NEXT:    vinserti64x4 $1, %ymm0, %zmm1, %zmm0 | 
|  | 1275 | ; ALL-NEXT:    retq | 
|  | 1276 | %shuffle = shufflevector <8 x i64> %a, <8 x i64> %b, <8 x i32> <i32 0, i32 0, i32 2, i32 3, i32 6, i32 7, i32 4, i32 4> | 
|  | 1277 | ret <8 x i64> %shuffle | 
|  | 1278 | } | 
|  | 1279 |  | 
|  | 1280 | define <8 x i64> @shuffle_v8i64_00226644(<8 x i64> %a, <8 x i64> %b) { | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 1281 | ; ALL-LABEL: shuffle_v8i64_00226644: | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 1282 | ; ALL:       # BB#0: | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 1283 | ; ALL-NEXT:    vpshufd {{.*#+}} ymm1 = ymm0[0,1,0,1,4,5,4,5] | 
| Chandler Carruth | 77e1a0a | 2014-11-21 12:33:46 +0000 | [diff] [blame] | 1284 | ; ALL-NEXT:    vextracti64x4 $1, %zmm0, %ymm0 | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 1285 | ; ALL-NEXT:    vpermq {{.*#+}} ymm0 = ymm0[2,2,0,0] | 
| Chandler Carruth | c712927 | 2014-09-29 00:37:27 +0000 | [diff] [blame] | 1286 | ; ALL-NEXT:    vinserti64x4 $1, %ymm0, %zmm1, %zmm0 | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 1287 | ; ALL-NEXT:    retq | 
|  | 1288 | %shuffle = shufflevector <8 x i64> %a, <8 x i64> %b, <8 x i32> <i32 0, i32 0, i32 2, i32 2, i32 6, i32 6, i32 4, i32 4> | 
|  | 1289 | ret <8 x i64> %shuffle | 
|  | 1290 | } | 
|  | 1291 |  | 
|  | 1292 | define <8 x i64> @shuffle_v8i64_10324567(<8 x i64> %a, <8 x i64> %b) { | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 1293 | ; ALL-LABEL: shuffle_v8i64_10324567: | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 1294 | ; ALL:       # BB#0: | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 1295 | ; ALL-NEXT:    vpshufd {{.*#+}} ymm1 = ymm0[2,3,0,1,6,7,4,5] | 
| Chandler Carruth | 77e1a0a | 2014-11-21 12:33:46 +0000 | [diff] [blame] | 1296 | ; ALL-NEXT:    vextracti64x4 $1, %zmm0, %ymm0 | 
| Chandler Carruth | c712927 | 2014-09-29 00:37:27 +0000 | [diff] [blame] | 1297 | ; ALL-NEXT:    vinserti64x4 $1, %ymm0, %zmm1, %zmm0 | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 1298 | ; ALL-NEXT:    retq | 
|  | 1299 | %shuffle = shufflevector <8 x i64> %a, <8 x i64> %b, <8 x i32> <i32 1, i32 0, i32 3, i32 2, i32 4, i32 5, i32 6, i32 7> | 
|  | 1300 | ret <8 x i64> %shuffle | 
|  | 1301 | } | 
|  | 1302 |  | 
|  | 1303 | define <8 x i64> @shuffle_v8i64_11334567(<8 x i64> %a, <8 x i64> %b) { | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 1304 | ; ALL-LABEL: shuffle_v8i64_11334567: | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 1305 | ; ALL:       # BB#0: | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 1306 | ; ALL-NEXT:    vpshufd {{.*#+}} ymm1 = ymm0[2,3,2,3,6,7,6,7] | 
| Chandler Carruth | 77e1a0a | 2014-11-21 12:33:46 +0000 | [diff] [blame] | 1307 | ; ALL-NEXT:    vextracti64x4 $1, %zmm0, %ymm0 | 
| Chandler Carruth | c712927 | 2014-09-29 00:37:27 +0000 | [diff] [blame] | 1308 | ; ALL-NEXT:    vinserti64x4 $1, %ymm0, %zmm1, %zmm0 | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 1309 | ; ALL-NEXT:    retq | 
|  | 1310 | %shuffle = shufflevector <8 x i64> %a, <8 x i64> %b, <8 x i32> <i32 1, i32 1, i32 3, i32 3, i32 4, i32 5, i32 6, i32 7> | 
|  | 1311 | ret <8 x i64> %shuffle | 
|  | 1312 | } | 
|  | 1313 |  | 
|  | 1314 | define <8 x i64> @shuffle_v8i64_01235467(<8 x i64> %a, <8 x i64> %b) { | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 1315 | ; ALL-LABEL: shuffle_v8i64_01235467: | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 1316 | ; ALL:       # BB#0: | 
| Chandler Carruth | 77e1a0a | 2014-11-21 12:33:46 +0000 | [diff] [blame] | 1317 | ; ALL-NEXT:    vextracti64x4 $1, %zmm0, %ymm1 | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 1318 | ; ALL-NEXT:    vpermq {{.*#+}} ymm1 = ymm1[1,0,2,3] | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 1319 | ; ALL-NEXT:    vinserti64x4 $1, %ymm1, %zmm0, %zmm0 | 
|  | 1320 | ; ALL-NEXT:    retq | 
|  | 1321 | %shuffle = shufflevector <8 x i64> %a, <8 x i64> %b, <8 x i32> <i32 0, i32 1, i32 2, i32 3, i32 5, i32 4, i32 6, i32 7> | 
|  | 1322 | ret <8 x i64> %shuffle | 
|  | 1323 | } | 
|  | 1324 |  | 
|  | 1325 | define <8 x i64> @shuffle_v8i64_01235466(<8 x i64> %a, <8 x i64> %b) { | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 1326 | ; ALL-LABEL: shuffle_v8i64_01235466: | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 1327 | ; ALL:       # BB#0: | 
| Chandler Carruth | 77e1a0a | 2014-11-21 12:33:46 +0000 | [diff] [blame] | 1328 | ; ALL-NEXT:    vextracti64x4 $1, %zmm0, %ymm1 | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 1329 | ; ALL-NEXT:    vpermq {{.*#+}} ymm1 = ymm1[1,0,2,2] | 
| Chandler Carruth | c712927 | 2014-09-29 00:37:27 +0000 | [diff] [blame] | 1330 | ; ALL-NEXT:    vinserti64x4 $1, %ymm1, %zmm0, %zmm0 | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 1331 | ; ALL-NEXT:    retq | 
|  | 1332 | %shuffle = shufflevector <8 x i64> %a, <8 x i64> %b, <8 x i32> <i32 0, i32 1, i32 2, i32 3, i32 5, i32 4, i32 6, i32 6> | 
|  | 1333 | ret <8 x i64> %shuffle | 
|  | 1334 | } | 
|  | 1335 |  | 
|  | 1336 | define <8 x i64> @shuffle_v8i64_002u6u44(<8 x i64> %a, <8 x i64> %b) { | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 1337 | ; ALL-LABEL: shuffle_v8i64_002u6u44: | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 1338 | ; ALL:       # BB#0: | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 1339 | ; ALL-NEXT:    vpshufd {{.*#+}} ymm1 = ymm0[0,1,0,1,4,5,4,5] | 
| Chandler Carruth | 77e1a0a | 2014-11-21 12:33:46 +0000 | [diff] [blame] | 1340 | ; ALL-NEXT:    vextracti64x4 $1, %zmm0, %ymm0 | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 1341 | ; ALL-NEXT:    vpermq {{.*#+}} ymm0 = ymm0[2,1,0,0] | 
| Chandler Carruth | c712927 | 2014-09-29 00:37:27 +0000 | [diff] [blame] | 1342 | ; ALL-NEXT:    vinserti64x4 $1, %ymm0, %zmm1, %zmm0 | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 1343 | ; ALL-NEXT:    retq | 
|  | 1344 | %shuffle = shufflevector <8 x i64> %a, <8 x i64> %b, <8 x i32> <i32 0, i32 0, i32 2, i32 undef, i32 6, i32 undef, i32 4, i32 4> | 
|  | 1345 | ret <8 x i64> %shuffle | 
|  | 1346 | } | 
|  | 1347 |  | 
|  | 1348 | define <8 x i64> @shuffle_v8i64_00uu66uu(<8 x i64> %a, <8 x i64> %b) { | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 1349 | ; ALL-LABEL: shuffle_v8i64_00uu66uu: | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 1350 | ; ALL:       # BB#0: | 
| Chandler Carruth | b9d3fa1 | 2014-10-01 00:41:21 +0000 | [diff] [blame] | 1351 | ; ALL-NEXT:    vpbroadcastq %xmm0, %ymm1 | 
| Chandler Carruth | 77e1a0a | 2014-11-21 12:33:46 +0000 | [diff] [blame] | 1352 | ; ALL-NEXT:    vextracti64x4 $1, %zmm0, %ymm0 | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 1353 | ; ALL-NEXT:    vpermq {{.*#+}} ymm0 = ymm0[2,2,2,3] | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 1354 | ; ALL-NEXT:    vinserti64x4 $1, %ymm0, %zmm1, %zmm0 | 
|  | 1355 | ; ALL-NEXT:    retq | 
|  | 1356 | %shuffle = shufflevector <8 x i64> %a, <8 x i64> %b, <8 x i32> <i32 0, i32 0, i32 undef, i32 undef, i32 6, i32 6, i32 undef, i32 undef> | 
|  | 1357 | ret <8 x i64> %shuffle | 
|  | 1358 | } | 
|  | 1359 |  | 
|  | 1360 | define <8 x i64> @shuffle_v8i64_103245uu(<8 x i64> %a, <8 x i64> %b) { | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 1361 | ; ALL-LABEL: shuffle_v8i64_103245uu: | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 1362 | ; ALL:       # BB#0: | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 1363 | ; ALL-NEXT:    vpshufd {{.*#+}} ymm1 = ymm0[2,3,0,1,6,7,4,5] | 
| Chandler Carruth | 77e1a0a | 2014-11-21 12:33:46 +0000 | [diff] [blame] | 1364 | ; ALL-NEXT:    vextracti64x4 $1, %zmm0, %ymm0 | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 1365 | ; ALL-NEXT:    vinserti64x4 $1, %ymm0, %zmm1, %zmm0 | 
|  | 1366 | ; ALL-NEXT:    retq | 
|  | 1367 | %shuffle = shufflevector <8 x i64> %a, <8 x i64> %b, <8 x i32> <i32 1, i32 0, i32 3, i32 2, i32 4, i32 5, i32 undef, i32 undef> | 
|  | 1368 | ret <8 x i64> %shuffle | 
|  | 1369 | } | 
|  | 1370 |  | 
|  | 1371 | define <8 x i64> @shuffle_v8i64_1133uu67(<8 x i64> %a, <8 x i64> %b) { | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 1372 | ; ALL-LABEL: shuffle_v8i64_1133uu67: | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 1373 | ; ALL:       # BB#0: | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 1374 | ; ALL-NEXT:    vpshufd {{.*#+}} ymm1 = ymm0[2,3,2,3,6,7,6,7] | 
| Chandler Carruth | 77e1a0a | 2014-11-21 12:33:46 +0000 | [diff] [blame] | 1375 | ; ALL-NEXT:    vextracti64x4 $1, %zmm0, %ymm0 | 
| Chandler Carruth | c712927 | 2014-09-29 00:37:27 +0000 | [diff] [blame] | 1376 | ; ALL-NEXT:    vinserti64x4 $1, %ymm0, %zmm1, %zmm0 | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 1377 | ; ALL-NEXT:    retq | 
|  | 1378 | %shuffle = shufflevector <8 x i64> %a, <8 x i64> %b, <8 x i32> <i32 1, i32 1, i32 3, i32 3, i32 undef, i32 undef, i32 6, i32 7> | 
|  | 1379 | ret <8 x i64> %shuffle | 
|  | 1380 | } | 
|  | 1381 |  | 
|  | 1382 | define <8 x i64> @shuffle_v8i64_0uu354uu(<8 x i64> %a, <8 x i64> %b) { | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 1383 | ; ALL-LABEL: shuffle_v8i64_0uu354uu: | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 1384 | ; ALL:       # BB#0: | 
| Chandler Carruth | 77e1a0a | 2014-11-21 12:33:46 +0000 | [diff] [blame] | 1385 | ; ALL-NEXT:    vextracti64x4 $1, %zmm0, %ymm1 | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 1386 | ; ALL-NEXT:    vpshufd {{.*#+}} ymm1 = ymm1[2,3,0,1,6,7,4,5] | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 1387 | ; ALL-NEXT:    vinserti64x4 $1, %ymm1, %zmm0, %zmm0 | 
|  | 1388 | ; ALL-NEXT:    retq | 
|  | 1389 | %shuffle = shufflevector <8 x i64> %a, <8 x i64> %b, <8 x i32> <i32 0, i32 undef, i32 undef, i32 3, i32 5, i32 4, i32 undef, i32 undef> | 
|  | 1390 | ret <8 x i64> %shuffle | 
|  | 1391 | } | 
|  | 1392 |  | 
|  | 1393 | define <8 x i64> @shuffle_v8i64_uuu3uu66(<8 x i64> %a, <8 x i64> %b) { | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 1394 | ; ALL-LABEL: shuffle_v8i64_uuu3uu66: | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 1395 | ; ALL:       # BB#0: | 
| Chandler Carruth | 77e1a0a | 2014-11-21 12:33:46 +0000 | [diff] [blame] | 1396 | ; ALL-NEXT:    vextracti64x4 $1, %zmm0, %ymm1 | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 1397 | ; ALL-NEXT:    vpshufd {{.*#+}} ymm1 = ymm1[0,1,0,1,4,5,4,5] | 
| Chandler Carruth | c712927 | 2014-09-29 00:37:27 +0000 | [diff] [blame] | 1398 | ; ALL-NEXT:    vinserti64x4 $1, %ymm1, %zmm0, %zmm0 | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 1399 | ; ALL-NEXT:    retq | 
|  | 1400 | %shuffle = shufflevector <8 x i64> %a, <8 x i64> %b, <8 x i32> <i32 undef, i32 undef, i32 undef, i32 3, i32 undef, i32 undef, i32 6, i32 6> | 
|  | 1401 | ret <8 x i64> %shuffle | 
|  | 1402 | } | 
|  | 1403 |  | 
|  | 1404 | define <8 x i64> @shuffle_v8i64_6caa87e5(<8 x i64> %a, <8 x i64> %b) { | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 1405 | ; ALL-LABEL: shuffle_v8i64_6caa87e5: | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 1406 | ; ALL:       # BB#0: | 
| Chandler Carruth | 77e1a0a | 2014-11-21 12:33:46 +0000 | [diff] [blame] | 1407 | ; ALL-NEXT:    vextracti64x4 $1, %zmm0, %ymm0 | 
| Chandler Carruth | 9f4d9fa | 2014-10-05 11:41:36 +0000 | [diff] [blame] | 1408 | ; ALL-NEXT:    vperm2i128 {{.*#+}} ymm2 = ymm0[0,1,0,1] | 
| Chandler Carruth | 77e1a0a | 2014-11-21 12:33:46 +0000 | [diff] [blame] | 1409 | ; ALL-NEXT:    vextracti64x4 $1, %zmm1, %ymm3 | 
| Chandler Carruth | 9f4d9fa | 2014-10-05 11:41:36 +0000 | [diff] [blame] | 1410 | ; ALL-NEXT:    vpblendd {{.*#+}} ymm4 = ymm1[0,1,2,3],ymm3[4,5],ymm1[6,7] | 
|  | 1411 | ; ALL-NEXT:    vpblendd {{.*#+}} ymm2 = ymm4[0,1],ymm2[2,3],ymm4[4,5],ymm2[6,7] | 
|  | 1412 | ; ALL-NEXT:    vperm2i128 {{.*#+}} ymm0 = ymm0[2,3,0,1] | 
| Chandler Carruth | ce5a26b | 2014-11-21 14:53:03 +0000 | [diff] [blame] | 1413 | ; ALL-NEXT:    vpblendd {{.*#+}} ymm1 = ymm3[0,1,2,3],ymm1[4,5,6,7] | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 1414 | ; ALL-NEXT:    vpshufd {{.*#+}} ymm1 = ymm1[0,1,0,1,4,5,4,5] | 
| Chandler Carruth | a41dceb | 2014-09-30 22:04:45 +0000 | [diff] [blame] | 1415 | ; ALL-NEXT:    vpblendd {{.*#+}} ymm0 = ymm0[0,1],ymm1[2,3,4,5,6,7] | 
| Chandler Carruth | 9f4d9fa | 2014-10-05 11:41:36 +0000 | [diff] [blame] | 1416 | ; ALL-NEXT:    vinserti64x4 $1, %ymm2, %zmm0, %zmm0 | 
| Chandler Carruth | 24e3b69 | 2014-09-28 23:53:10 +0000 | [diff] [blame] | 1417 | ; ALL-NEXT:    retq | 
|  | 1418 | %shuffle = shufflevector <8 x i64> %a, <8 x i64> %b, <8 x i32> <i32 6, i32 12, i32 10, i32 10, i32 8, i32 7, i32 14, i32 5> | 
|  | 1419 | ret <8 x i64> %shuffle | 
|  | 1420 | } | 
| Adam Nemet | e5dbcb7 | 2015-01-13 22:20:18 +0000 | [diff] [blame] | 1421 |  | 
| Adam Nemet | f07a0ba | 2015-01-13 22:40:15 +0000 | [diff] [blame^] | 1422 | define <8 x double> @shuffle_v8f64_082a4c6e(<8 x double> %a, <8 x double> %b) { | 
|  | 1423 | ; ALL-LABEL: shuffle_v8f64_082a4c6e: | 
| Adam Nemet | e5dbcb7 | 2015-01-13 22:20:18 +0000 | [diff] [blame] | 1424 | ; ALL:       # BB#0: | 
|  | 1425 | ; ALL-NEXT:    vunpcklpd {{.*#+}} zmm0 = zmm0[0],zmm1[0],zmm0[2],zmm1[2],zmm0[4],zmm1[4],zmm0[6],zmm1[6] | 
|  | 1426 | ; ALL-NEXT:    retq | 
|  | 1427 | %shuffle = shufflevector <8 x double> %a, <8 x double> %b, <8 x i32><i32 0, i32 8, i32 2, i32 10, i32 4, i32 12, i32 6, i32 14> | 
|  | 1428 | ret <8 x double> %shuffle | 
|  | 1429 | } | 
|  | 1430 |  | 
| Adam Nemet | f07a0ba | 2015-01-13 22:40:15 +0000 | [diff] [blame^] | 1431 | define <8 x i64> @shuffle_v8i64_082a4c6e(<8 x i64> %a, <8 x i64> %b) { | 
|  | 1432 | ; ALL-LABEL: shuffle_v8i64_082a4c6e: | 
| Adam Nemet | e5dbcb7 | 2015-01-13 22:20:18 +0000 | [diff] [blame] | 1433 | ; ALL:       # BB#0: | 
|  | 1434 | ; ALL-NEXT:    vpunpcklqdq {{.*#+}} zmm0 = zmm0[0],zmm1[0],zmm0[2],zmm1[2],zmm0[4],zmm1[4],zmm0[6],zmm1[6] | 
|  | 1435 | ; ALL-NEXT:    retq | 
|  | 1436 | %shuffle = shufflevector <8 x i64> %a, <8 x i64> %b, <8 x i32><i32 0, i32 8, i32 2, i32 10, i32 4, i32 12, i32 6, i32 14> | 
|  | 1437 | ret <8 x i64> %shuffle | 
|  | 1438 | } | 
|  | 1439 |  | 
| Adam Nemet | f07a0ba | 2015-01-13 22:40:15 +0000 | [diff] [blame^] | 1440 | define <8 x double> @shuffle_v8f64_193b5d7f(<8 x double> %a, <8 x double> %b) { | 
|  | 1441 | ; ALL-LABEL: shuffle_v8f64_193b5d7f: | 
| Adam Nemet | e5dbcb7 | 2015-01-13 22:20:18 +0000 | [diff] [blame] | 1442 | ; ALL:       # BB#0: | 
|  | 1443 | ; ALL-NEXT:    vunpckhpd {{.*#+}} zmm0 = zmm0[1],zmm1[1],zmm0[3],zmm1[3],zmm0[5],zmm1[5],zmm0[7],zmm1[7] | 
|  | 1444 | ; ALL-NEXT:    retq | 
|  | 1445 | %shuffle = shufflevector <8 x double> %a, <8 x double> %b, <8 x i32><i32 1, i32 9, i32 3, i32 11, i32 5, i32 13, i32 7, i32 15> | 
|  | 1446 | ret <8 x double> %shuffle | 
|  | 1447 | } | 
|  | 1448 |  | 
| Adam Nemet | f07a0ba | 2015-01-13 22:40:15 +0000 | [diff] [blame^] | 1449 | define <8 x i64> @shuffle_v8i64_193b5d7f(<8 x i64> %a, <8 x i64> %b) { | 
|  | 1450 | ; ALL-LABEL: shuffle_v8i64_193b5d7f: | 
| Adam Nemet | e5dbcb7 | 2015-01-13 22:20:18 +0000 | [diff] [blame] | 1451 | ; ALL:       # BB#0: | 
|  | 1452 | ; ALL-NEXT:    vpunpckhqdq {{.*#+}} zmm0 = zmm0[1],zmm1[1],zmm0[3],zmm1[3],zmm0[5],zmm1[5],zmm0[7],zmm1[7] | 
|  | 1453 | ; ALL-NEXT:    retq | 
|  | 1454 | %shuffle = shufflevector <8 x i64> %a, <8 x i64> %b, <8 x i32><i32 1, i32 9, i32 3, i32 11, i32 5, i32 13, i32 7, i32 15> | 
|  | 1455 | ret <8 x i64> %shuffle | 
|  | 1456 | } |